| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.69 for barcode 0.99. |
| 4 |
# |
| 5 |
# Report bugs to <[email protected]>. |
| 6 |
# |
| 7 |
# |
| 8 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 |
# |
| 10 |
# |
| 11 |
# This configure script is free software; the Free Software Foundation |
| 12 |
# gives unlimited permission to copy, distribute and modify it. |
| 13 |
## -------------------- ## |
| 14 |
## M4sh Initialization. ## |
| 15 |
## -------------------- ## |
| 16 |
|
| 17 |
# Be more Bourne compatible |
| 18 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 19 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 |
emulate sh |
| 21 |
NULLCMD=: |
| 22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 |
# is contrary to our usage. Disable this feature. |
| 24 |
alias -g '${1+"$@"}'='"$@"' |
| 25 |
setopt NO_GLOB_SUBST |
| 26 |
else |
| 27 |
case `(set -o) 2>/dev/null` in #( |
| 28 |
*posix*) : |
| 29 |
set -o posix ;; #( |
| 30 |
*) : |
| 31 |
;; |
| 32 |
esac |
| 33 |
fi |
| 34 |
|
| 35 |
|
| 36 |
as_nl=' |
| 37 |
' |
| 38 |
export as_nl |
| 39 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 |
# but without wasting forks for bash or zsh. |
| 45 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 |
as_echo='print -r --' |
| 48 |
as_echo_n='print -rn --' |
| 49 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 |
as_echo='printf %s\n' |
| 51 |
as_echo_n='printf %s' |
| 52 |
else |
| 53 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 |
as_echo_n='/usr/ucb/echo -n' |
| 56 |
else |
| 57 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 |
as_echo_n_body='eval |
| 59 |
arg=$1; |
| 60 |
case $arg in #( |
| 61 |
*"$as_nl"*) |
| 62 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 |
esac; |
| 65 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 |
' |
| 67 |
export as_echo_n_body |
| 68 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 |
fi |
| 70 |
export as_echo_body |
| 71 |
as_echo='sh -c $as_echo_body as_echo' |
| 72 |
fi |
| 73 |
|
| 74 |
# The user is always right. |
| 75 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 76 |
PATH_SEPARATOR=: |
| 77 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 |
PATH_SEPARATOR=';' |
| 80 |
} |
| 81 |
fi |
| 82 |
|
| 83 |
|
| 84 |
# IFS |
| 85 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 86 |
# there to prevent editors from complaining about space-tab. |
| 87 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 |
# splitting by setting IFS to empty value.) |
| 89 |
IFS=" "" $as_nl" |
| 90 |
|
| 91 |
# Find who we are. Look in the path if we contain no directory separator. |
| 92 |
as_myself= |
| 93 |
case $0 in #(( |
| 94 |
*[\\/]* ) as_myself=$0 ;; |
| 95 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 |
for as_dir in $PATH |
| 97 |
do |
| 98 |
IFS=$as_save_IFS |
| 99 |
test -z "$as_dir" && as_dir=. |
| 100 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 |
done |
| 102 |
IFS=$as_save_IFS |
| 103 |
|
| 104 |
;; |
| 105 |
esac |
| 106 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 |
# in which case we are not to be found in the path. |
| 108 |
if test "x$as_myself" = x; then |
| 109 |
as_myself=$0 |
| 110 |
fi |
| 111 |
if test ! -f "$as_myself"; then |
| 112 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 |
exit 1 |
| 114 |
fi |
| 115 |
|
| 116 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 117 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 |
# suppresses any "Segmentation fault" message there. '((' could |
| 119 |
# trigger a bug in pdksh 5.2.14. |
| 120 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 |
do eval test x\${$as_var+set} = xset \ |
| 122 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 |
done |
| 124 |
PS1='$ ' |
| 125 |
PS2='> ' |
| 126 |
PS4='+ ' |
| 127 |
|
| 128 |
# NLS nuisances. |
| 129 |
LC_ALL=C |
| 130 |
export LC_ALL |
| 131 |
LANGUAGE=C |
| 132 |
export LANGUAGE |
| 133 |
|
| 134 |
# CDPATH. |
| 135 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 |
|
| 137 |
# Use a proper internal environment variable to ensure we don't fall |
| 138 |
# into an infinite loop, continuously re-executing ourselves. |
| 139 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 |
_as_can_reexec=no; export _as_can_reexec; |
| 141 |
# We cannot yet assume a decent shell, so we have to provide a |
| 142 |
# neutralization value for shells without unset; and this also |
| 143 |
# works around shells that cannot unset nonexistent variables. |
| 144 |
# Preserve -v and -x to the replacement shell. |
| 145 |
BASH_ENV=/dev/null |
| 146 |
ENV=/dev/null |
| 147 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 |
case $- in # (((( |
| 149 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 150 |
*v* ) as_opts=-v ;; |
| 151 |
*x* ) as_opts=-x ;; |
| 152 |
* ) as_opts= ;; |
| 153 |
esac |
| 154 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 156 |
# out after a failed `exec'. |
| 157 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 |
as_fn_exit 255 |
| 159 |
fi |
| 160 |
# We don't want this to propagate to other subprocesses. |
| 161 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 162 |
if test "x$CONFIG_SHELL" = x; then |
| 163 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 |
emulate sh |
| 165 |
NULLCMD=: |
| 166 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 |
# is contrary to our usage. Disable this feature. |
| 168 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 |
setopt NO_GLOB_SUBST |
| 170 |
else |
| 171 |
case \`(set -o) 2>/dev/null\` in #( |
| 172 |
*posix*) : |
| 173 |
set -o posix ;; #( |
| 174 |
*) : |
| 175 |
;; |
| 176 |
esac |
| 177 |
fi |
| 178 |
" |
| 179 |
as_required="as_fn_return () { (exit \$1); } |
| 180 |
as_fn_success () { as_fn_return 0; } |
| 181 |
as_fn_failure () { as_fn_return 1; } |
| 182 |
as_fn_ret_success () { return 0; } |
| 183 |
as_fn_ret_failure () { return 1; } |
| 184 |
|
| 185 |
exitcode=0 |
| 186 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 |
|
| 192 |
else |
| 193 |
exitcode=1; echo positional parameters were not saved. |
| 194 |
fi |
| 195 |
test x\$exitcode = x0 || exit 1 |
| 196 |
test -x / || exit 1" |
| 197 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 |
test \$(( 1 + 1 )) = 2 || 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 |
if (eval "$as_required") 2>/dev/null; then : |
| 211 |
as_have_required=yes |
| 212 |
else |
| 213 |
as_have_required=no |
| 214 |
fi |
| 215 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 216 |
|
| 217 |
else |
| 218 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 219 |
as_found=false |
| 220 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 221 |
do |
| 222 |
IFS=$as_save_IFS |
| 223 |
test -z "$as_dir" && as_dir=. |
| 224 |
as_found=: |
| 225 |
case $as_dir in #( |
| 226 |
/*) |
| 227 |
for as_base in sh bash ksh sh5; do |
| 228 |
# Try only shells that exist, to save several forks. |
| 229 |
as_shell=$as_dir/$as_base |
| 230 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 231 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 233 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 234 |
break 2 |
| 235 |
fi |
| 236 |
fi |
| 237 |
done;; |
| 238 |
esac |
| 239 |
as_found=false |
| 240 |
done |
| 241 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 243 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 244 |
fi; } |
| 245 |
IFS=$as_save_IFS |
| 246 |
|
| 247 |
|
| 248 |
if test "x$CONFIG_SHELL" != x; then : |
| 249 |
export CONFIG_SHELL |
| 250 |
# We cannot yet assume a decent shell, so we have to provide a |
| 251 |
# neutralization value for shells without unset; and this also |
| 252 |
# works around shells that cannot unset nonexistent variables. |
| 253 |
# Preserve -v and -x to the replacement shell. |
| 254 |
BASH_ENV=/dev/null |
| 255 |
ENV=/dev/null |
| 256 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 |
case $- in # (((( |
| 258 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 259 |
*v* ) as_opts=-v ;; |
| 260 |
*x* ) as_opts=-x ;; |
| 261 |
* ) as_opts= ;; |
| 262 |
esac |
| 263 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 265 |
# out after a failed `exec'. |
| 266 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 |
exit 255 |
| 268 |
fi |
| 269 |
|
| 270 |
if test x$as_have_required = xno; then : |
| 271 |
$as_echo "$0: This script requires a shell more modern than all" |
| 272 |
$as_echo "$0: the shells that I found on your system." |
| 273 |
if test x${ZSH_VERSION+set} = xset ; then |
| 274 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 275 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 276 |
else |
| 277 |
$as_echo "$0: Please tell [email protected] and |
| 278 |
$0: [email protected] about your system, including any |
| 279 |
$0: error possibly output before this message. Then install |
| 280 |
$0: a modern shell, or manually run the script under such a |
| 281 |
$0: shell if you do have one." |
| 282 |
fi |
| 283 |
exit 1 |
| 284 |
fi |
| 285 |
fi |
| 286 |
fi |
| 287 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 288 |
export SHELL |
| 289 |
# Unset more variables known to interfere with behavior of common tools. |
| 290 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 291 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 292 |
|
| 293 |
## --------------------- ## |
| 294 |
## M4sh Shell Functions. ## |
| 295 |
## --------------------- ## |
| 296 |
# as_fn_unset VAR |
| 297 |
# --------------- |
| 298 |
# Portably unset VAR. |
| 299 |
as_fn_unset () |
| 300 |
{ |
| 301 |
{ eval $1=; unset $1;} |
| 302 |
} |
| 303 |
as_unset=as_fn_unset |
| 304 |
|
| 305 |
# as_fn_set_status STATUS |
| 306 |
# ----------------------- |
| 307 |
# Set $? to STATUS, without forking. |
| 308 |
as_fn_set_status () |
| 309 |
{ |
| 310 |
return $1 |
| 311 |
} # as_fn_set_status |
| 312 |
|
| 313 |
# as_fn_exit STATUS |
| 314 |
# ----------------- |
| 315 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 316 |
as_fn_exit () |
| 317 |
{ |
| 318 |
set +e |
| 319 |
as_fn_set_status $1 |
| 320 |
exit $1 |
| 321 |
} # as_fn_exit |
| 322 |
|
| 323 |
# as_fn_mkdir_p |
| 324 |
# ------------- |
| 325 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 326 |
as_fn_mkdir_p () |
| 327 |
{ |
| 328 |
|
| 329 |
case $as_dir in #( |
| 330 |
-*) as_dir=./$as_dir;; |
| 331 |
esac |
| 332 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 333 |
as_dirs= |
| 334 |
while :; do |
| 335 |
case $as_dir in #( |
| 336 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 337 |
*) as_qdir=$as_dir;; |
| 338 |
esac |
| 339 |
as_dirs="'$as_qdir' $as_dirs" |
| 340 |
as_dir=`$as_dirname -- "$as_dir" || |
| 341 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 342 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 343 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 344 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 345 |
$as_echo X"$as_dir" | |
| 346 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 347 |
s//\1/ |
| 348 |
q |
| 349 |
} |
| 350 |
/^X\(\/\/\)[^/].*/{ |
| 351 |
s//\1/ |
| 352 |
q |
| 353 |
} |
| 354 |
/^X\(\/\/\)$/{ |
| 355 |
s//\1/ |
| 356 |
q |
| 357 |
} |
| 358 |
/^X\(\/\).*/{ |
| 359 |
s//\1/ |
| 360 |
q |
| 361 |
} |
| 362 |
s/.*/./; q'` |
| 363 |
test -d "$as_dir" && break |
| 364 |
done |
| 365 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 366 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 367 |
|
| 368 |
|
| 369 |
} # as_fn_mkdir_p |
| 370 |
|
| 371 |
# as_fn_executable_p FILE |
| 372 |
# ----------------------- |
| 373 |
# Test if FILE is an executable regular file. |
| 374 |
as_fn_executable_p () |
| 375 |
{ |
| 376 |
test -f "$1" && test -x "$1" |
| 377 |
} # as_fn_executable_p |
| 378 |
# as_fn_append VAR VALUE |
| 379 |
# ---------------------- |
| 380 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 381 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 382 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 383 |
# implementations. |
| 384 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 385 |
eval 'as_fn_append () |
| 386 |
{ |
| 387 |
eval $1+=\$2 |
| 388 |
}' |
| 389 |
else |
| 390 |
as_fn_append () |
| 391 |
{ |
| 392 |
eval $1=\$$1\$2 |
| 393 |
} |
| 394 |
fi # as_fn_append |
| 395 |
|
| 396 |
# as_fn_arith ARG... |
| 397 |
# ------------------ |
| 398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 |
# must be portable across $(()) and expr. |
| 401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 402 |
eval 'as_fn_arith () |
| 403 |
{ |
| 404 |
as_val=$(( $* )) |
| 405 |
}' |
| 406 |
else |
| 407 |
as_fn_arith () |
| 408 |
{ |
| 409 |
as_val=`expr "$@" || test $? -eq 1` |
| 410 |
} |
| 411 |
fi # as_fn_arith |
| 412 |
|
| 413 |
|
| 414 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 415 |
# ---------------------------------------- |
| 416 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 417 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 418 |
# script with STATUS, using 1 if that was 0. |
| 419 |
as_fn_error () |
| 420 |
{ |
| 421 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 422 |
if test "$4"; then |
| 423 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 424 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 425 |
fi |
| 426 |
$as_echo "$as_me: error: $2" >&2 |
| 427 |
as_fn_exit $as_status |
| 428 |
} # as_fn_error |
| 429 |
|
| 430 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 431 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 432 |
as_expr=expr |
| 433 |
else |
| 434 |
as_expr=false |
| 435 |
fi |
| 436 |
|
| 437 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 438 |
as_basename=basename |
| 439 |
else |
| 440 |
as_basename=false |
| 441 |
fi |
| 442 |
|
| 443 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 444 |
as_dirname=dirname |
| 445 |
else |
| 446 |
as_dirname=false |
| 447 |
fi |
| 448 |
|
| 449 |
as_me=`$as_basename -- "$0" || |
| 450 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 451 |
X"$0" : 'X\(//\)$' \| \ |
| 452 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 453 |
$as_echo X/"$0" | |
| 454 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 455 |
s//\1/ |
| 456 |
q |
| 457 |
} |
| 458 |
/^X\/\(\/\/\)$/{ |
| 459 |
s//\1/ |
| 460 |
q |
| 461 |
} |
| 462 |
/^X\/\(\/\).*/{ |
| 463 |
s//\1/ |
| 464 |
q |
| 465 |
} |
| 466 |
s/.*/./; q'` |
| 467 |
|
| 468 |
# Avoid depending upon Character Ranges. |
| 469 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 470 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 471 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 472 |
as_cr_digits='0123456789' |
| 473 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 474 |
|
| 475 |
|
| 476 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 477 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 478 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 479 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 480 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 481 |
sed -n ' |
| 482 |
p |
| 483 |
/[$]LINENO/= |
| 484 |
' <$as_myself | |
| 485 |
sed ' |
| 486 |
s/[$]LINENO.*/&-/ |
| 487 |
t lineno |
| 488 |
b |
| 489 |
:lineno |
| 490 |
N |
| 491 |
:loop |
| 492 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 493 |
t loop |
| 494 |
s/-\n.*// |
| 495 |
' >$as_me.lineno && |
| 496 |
chmod +x "$as_me.lineno" || |
| 497 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 498 |
|
| 499 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 500 |
# already done that, so ensure we don't try to do so again and fall |
| 501 |
# in an infinite loop. This has already happened in practice. |
| 502 |
_as_can_reexec=no; export _as_can_reexec |
| 503 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 504 |
# (the dirname of $[0] is not the place where we might find the |
| 505 |
# original and so on. Autoconf is especially sensitive to this). |
| 506 |
. "./$as_me.lineno" |
| 507 |
# Exit status is that of the last command. |
| 508 |
exit |
| 509 |
} |
| 510 |
|
| 511 |
ECHO_C= ECHO_N= ECHO_T= |
| 512 |
case `echo -n x` in #((((( |
| 513 |
-n*) |
| 514 |
case `echo 'xy\c'` in |
| 515 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 516 |
xy) ECHO_C='\c';; |
| 517 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 518 |
ECHO_T=' ';; |
| 519 |
esac;; |
| 520 |
*) |
| 521 |
ECHO_N='-n';; |
| 522 |
esac |
| 523 |
|
| 524 |
rm -f conf$$ conf$$.exe conf$$.file |
| 525 |
if test -d conf$$.dir; then |
| 526 |
rm -f conf$$.dir/conf$$.file |
| 527 |
else |
| 528 |
rm -f conf$$.dir |
| 529 |
mkdir conf$$.dir 2>/dev/null |
| 530 |
fi |
| 531 |
if (echo >conf$$.file) 2>/dev/null; then |
| 532 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 533 |
as_ln_s='ln -s' |
| 534 |
# ... but there are two gotchas: |
| 535 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 536 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 537 |
# In both cases, we have to default to `cp -pR'. |
| 538 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 539 |
as_ln_s='cp -pR' |
| 540 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 541 |
as_ln_s=ln |
| 542 |
else |
| 543 |
as_ln_s='cp -pR' |
| 544 |
fi |
| 545 |
else |
| 546 |
as_ln_s='cp -pR' |
| 547 |
fi |
| 548 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 549 |
rmdir conf$$.dir 2>/dev/null |
| 550 |
|
| 551 |
if mkdir -p . 2>/dev/null; then |
| 552 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 553 |
else |
| 554 |
test -d ./-p && rmdir ./-p |
| 555 |
as_mkdir_p=false |
| 556 |
fi |
| 557 |
|
| 558 |
as_test_x='test -x' |
| 559 |
as_executable_p=as_fn_executable_p |
| 560 |
|
| 561 |
# Sed expression to map a string onto a valid CPP name. |
| 562 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 563 |
|
| 564 |
# Sed expression to map a string onto a valid variable name. |
| 565 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 566 |
|
| 567 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 568 |
|
| 569 |
|
| 570 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 571 |
exec 6>&1 |
| 572 |
|
| 573 |
# Name of the host. |
| 574 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 575 |
# so uname gets run too. |
| 576 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 577 |
|
| 578 |
# |
| 579 |
# Initializations. |
| 580 |
# |
| 581 |
ac_default_prefix=/usr/local |
| 582 |
ac_clean_files= |
| 583 |
ac_config_libobj_dir=. |
| 584 |
LIBOBJS= |
| 585 |
cross_compiling=no |
| 586 |
subdirs= |
| 587 |
MFLAGS= |
| 588 |
MAKEFLAGS= |
| 589 |
|
| 590 |
# Identity of this package. |
| 591 |
PACKAGE_NAME='barcode' |
| 592 |
PACKAGE_TARNAME='barcode' |
| 593 |
PACKAGE_VERSION='0.99' |
| 594 |
PACKAGE_STRING='barcode 0.99' |
| 595 |
PACKAGE_BUGREPORT='[email protected]' |
| 596 |
PACKAGE_URL='' |
| 597 |
|
| 598 |
# Factoring default headers for most tests. |
| 599 |
ac_includes_default="\ |
| 600 |
#include <stdio.h> |
| 601 |
#ifdef HAVE_SYS_TYPES_H |
| 602 |
# include <sys/types.h> |
| 603 |
#endif |
| 604 |
#ifdef HAVE_SYS_STAT_H |
| 605 |
# include <sys/stat.h> |
| 606 |
#endif |
| 607 |
#ifdef STDC_HEADERS |
| 608 |
# include <stdlib.h> |
| 609 |
# include <stddef.h> |
| 610 |
#else |
| 611 |
# ifdef HAVE_STDLIB_H |
| 612 |
# include <stdlib.h> |
| 613 |
# endif |
| 614 |
#endif |
| 615 |
#ifdef HAVE_STRING_H |
| 616 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 617 |
# include <memory.h> |
| 618 |
# endif |
| 619 |
# include <string.h> |
| 620 |
#endif |
| 621 |
#ifdef HAVE_STRINGS_H |
| 622 |
# include <strings.h> |
| 623 |
#endif |
| 624 |
#ifdef HAVE_INTTYPES_H |
| 625 |
# include <inttypes.h> |
| 626 |
#endif |
| 627 |
#ifdef HAVE_STDINT_H |
| 628 |
# include <stdint.h> |
| 629 |
#endif |
| 630 |
#ifdef HAVE_UNISTD_H |
| 631 |
# include <unistd.h> |
| 632 |
#endif" |
| 633 |
|
| 634 |
gt_needs= |
| 635 |
ac_func_list= |
| 636 |
ac_header_list= |
| 637 |
gl_getopt_required=POSIX |
| 638 |
gl_getopt_required=POSIX |
| 639 |
ac_subst_vars='gltests_LTLIBOBJS |
| 640 |
gltests_LIBOBJS |
| 641 |
gl_LTLIBOBJS |
| 642 |
gl_LIBOBJS |
| 643 |
am__EXEEXT_FALSE |
| 644 |
am__EXEEXT_TRUE |
| 645 |
LTLIBOBJS |
| 646 |
LIBOBJS |
| 647 |
INFOTOHTML |
| 648 |
REMOVEHTMLTAGS |
| 649 |
GMAKEDEPEND2 |
| 650 |
GMAKEDEPEND1 |
| 651 |
GMAKEDEPEND0 |
| 652 |
NO_STRERROR |
| 653 |
LIBPAPER |
| 654 |
NO_LIBPAPER |
| 655 |
gltests_WITNESS |
| 656 |
HAVE_WINT_T |
| 657 |
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H |
| 658 |
NEXT_WCHAR_H |
| 659 |
REPLACE_WCSWIDTH |
| 660 |
REPLACE_WCWIDTH |
| 661 |
REPLACE_WCSNRTOMBS |
| 662 |
REPLACE_WCSRTOMBS |
| 663 |
REPLACE_WCRTOMB |
| 664 |
REPLACE_MBSNRTOWCS |
| 665 |
REPLACE_MBSRTOWCS |
| 666 |
REPLACE_MBRLEN |
| 667 |
REPLACE_MBRTOWC |
| 668 |
REPLACE_MBSINIT |
| 669 |
REPLACE_WCTOB |
| 670 |
REPLACE_BTOWC |
| 671 |
REPLACE_MBSTATE_T |
| 672 |
HAVE_DECL_WCWIDTH |
| 673 |
HAVE_DECL_WCTOB |
| 674 |
HAVE_WCSWIDTH |
| 675 |
HAVE_WCSTOK |
| 676 |
HAVE_WCSSTR |
| 677 |
HAVE_WCSPBRK |
| 678 |
HAVE_WCSSPN |
| 679 |
HAVE_WCSCSPN |
| 680 |
HAVE_WCSRCHR |
| 681 |
HAVE_WCSCHR |
| 682 |
HAVE_WCSDUP |
| 683 |
HAVE_WCSXFRM |
| 684 |
HAVE_WCSCOLL |
| 685 |
HAVE_WCSNCASECMP |
| 686 |
HAVE_WCSCASECMP |
| 687 |
HAVE_WCSNCMP |
| 688 |
HAVE_WCSCMP |
| 689 |
HAVE_WCSNCAT |
| 690 |
HAVE_WCSCAT |
| 691 |
HAVE_WCPNCPY |
| 692 |
HAVE_WCSNCPY |
| 693 |
HAVE_WCPCPY |
| 694 |
HAVE_WCSCPY |
| 695 |
HAVE_WCSNLEN |
| 696 |
HAVE_WCSLEN |
| 697 |
HAVE_WMEMSET |
| 698 |
HAVE_WMEMMOVE |
| 699 |
HAVE_WMEMCPY |
| 700 |
HAVE_WMEMCMP |
| 701 |
HAVE_WMEMCHR |
| 702 |
HAVE_WCSNRTOMBS |
| 703 |
HAVE_WCSRTOMBS |
| 704 |
HAVE_WCRTOMB |
| 705 |
HAVE_MBSNRTOWCS |
| 706 |
HAVE_MBSRTOWCS |
| 707 |
HAVE_MBRLEN |
| 708 |
HAVE_MBRTOWC |
| 709 |
HAVE_MBSINIT |
| 710 |
HAVE_BTOWC |
| 711 |
GNULIB_WCSWIDTH |
| 712 |
GNULIB_WCSTOK |
| 713 |
GNULIB_WCSSTR |
| 714 |
GNULIB_WCSPBRK |
| 715 |
GNULIB_WCSSPN |
| 716 |
GNULIB_WCSCSPN |
| 717 |
GNULIB_WCSRCHR |
| 718 |
GNULIB_WCSCHR |
| 719 |
GNULIB_WCSDUP |
| 720 |
GNULIB_WCSXFRM |
| 721 |
GNULIB_WCSCOLL |
| 722 |
GNULIB_WCSNCASECMP |
| 723 |
GNULIB_WCSCASECMP |
| 724 |
GNULIB_WCSNCMP |
| 725 |
GNULIB_WCSCMP |
| 726 |
GNULIB_WCSNCAT |
| 727 |
GNULIB_WCSCAT |
| 728 |
GNULIB_WCPNCPY |
| 729 |
GNULIB_WCSNCPY |
| 730 |
GNULIB_WCPCPY |
| 731 |
GNULIB_WCSCPY |
| 732 |
GNULIB_WCSNLEN |
| 733 |
GNULIB_WCSLEN |
| 734 |
GNULIB_WMEMSET |
| 735 |
GNULIB_WMEMMOVE |
| 736 |
GNULIB_WMEMCPY |
| 737 |
GNULIB_WMEMCMP |
| 738 |
GNULIB_WMEMCHR |
| 739 |
GNULIB_WCWIDTH |
| 740 |
GNULIB_WCSNRTOMBS |
| 741 |
GNULIB_WCSRTOMBS |
| 742 |
GNULIB_WCRTOMB |
| 743 |
GNULIB_MBSNRTOWCS |
| 744 |
GNULIB_MBSRTOWCS |
| 745 |
GNULIB_MBRLEN |
| 746 |
GNULIB_MBRTOWC |
| 747 |
GNULIB_MBSINIT |
| 748 |
GNULIB_WCTOB |
| 749 |
GNULIB_BTOWC |
| 750 |
HAVE_FEATURES_H |
| 751 |
HAVE_UNISTD_H |
| 752 |
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H |
| 753 |
NEXT_UNISTD_H |
| 754 |
PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
| 755 |
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
| 756 |
TIME_H_DEFINES_STRUCT_TIMESPEC |
| 757 |
NEXT_AS_FIRST_DIRECTIVE_TIME_H |
| 758 |
NEXT_TIME_H |
| 759 |
REPLACE_TIMEGM |
| 760 |
REPLACE_NANOSLEEP |
| 761 |
REPLACE_MKTIME |
| 762 |
REPLACE_LOCALTIME_R |
| 763 |
HAVE_TIMEGM |
| 764 |
HAVE_STRPTIME |
| 765 |
HAVE_NANOSLEEP |
| 766 |
HAVE_DECL_LOCALTIME_R |
| 767 |
GNULIB_TIME_R |
| 768 |
GNULIB_TIMEGM |
| 769 |
GNULIB_STRPTIME |
| 770 |
GNULIB_NANOSLEEP |
| 771 |
GNULIB_MKTIME |
| 772 |
WINDOWS_64_BIT_OFF_T |
| 773 |
NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H |
| 774 |
NEXT_SYS_TYPES_H |
| 775 |
NEXT_AS_FIRST_DIRECTIVE_STRING_H |
| 776 |
NEXT_STRING_H |
| 777 |
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 778 |
NEXT_STDLIB_H |
| 779 |
NEXT_AS_FIRST_DIRECTIVE_STDIO_H |
| 780 |
NEXT_STDIO_H |
| 781 |
GL_GENERATE_STDINT_H_FALSE |
| 782 |
GL_GENERATE_STDINT_H_TRUE |
| 783 |
STDINT_H |
| 784 |
WINT_T_SUFFIX |
| 785 |
WCHAR_T_SUFFIX |
| 786 |
SIG_ATOMIC_T_SUFFIX |
| 787 |
SIZE_T_SUFFIX |
| 788 |
PTRDIFF_T_SUFFIX |
| 789 |
HAVE_SIGNED_WINT_T |
| 790 |
HAVE_SIGNED_WCHAR_T |
| 791 |
HAVE_SIGNED_SIG_ATOMIC_T |
| 792 |
BITSIZEOF_WINT_T |
| 793 |
BITSIZEOF_WCHAR_T |
| 794 |
BITSIZEOF_SIG_ATOMIC_T |
| 795 |
BITSIZEOF_SIZE_T |
| 796 |
BITSIZEOF_PTRDIFF_T |
| 797 |
HAVE_SYS_BITYPES_H |
| 798 |
HAVE_SYS_INTTYPES_H |
| 799 |
HAVE_STDINT_H |
| 800 |
NEXT_AS_FIRST_DIRECTIVE_STDINT_H |
| 801 |
NEXT_STDINT_H |
| 802 |
HAVE_SYS_TYPES_H |
| 803 |
HAVE_INTTYPES_H |
| 804 |
HAVE_WCHAR_H |
| 805 |
HAVE_UNSIGNED_LONG_LONG_INT |
| 806 |
HAVE_LONG_LONG_INT |
| 807 |
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
| 808 |
NEXT_STDDEF_H |
| 809 |
GL_GENERATE_STDDEF_H_FALSE |
| 810 |
GL_GENERATE_STDDEF_H_TRUE |
| 811 |
STDDEF_H |
| 812 |
HAVE_WCHAR_T |
| 813 |
REPLACE_NULL |
| 814 |
HAVE__BOOL |
| 815 |
GL_GENERATE_STDBOOL_H_FALSE |
| 816 |
GL_GENERATE_STDBOOL_H_TRUE |
| 817 |
STDBOOL_H |
| 818 |
ASM_SYMBOL_PREFIX |
| 819 |
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H |
| 820 |
NEXT_SIGNAL_H |
| 821 |
HAVE_SEARCH_H |
| 822 |
NEXT_AS_FIRST_DIRECTIVE_SEARCH_H |
| 823 |
NEXT_SEARCH_H |
| 824 |
REPLACE_TSEARCH |
| 825 |
HAVE_TSEARCH |
| 826 |
GNULIB_TSEARCH |
| 827 |
RINT_LIBM |
| 828 |
REPLACE_RAISE |
| 829 |
REPLACE_PTHREAD_SIGMASK |
| 830 |
HAVE_SIGHANDLER_T |
| 831 |
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T |
| 832 |
HAVE_STRUCT_SIGACTION_SA_SIGACTION |
| 833 |
HAVE_SIGACTION |
| 834 |
HAVE_SIGINFO_T |
| 835 |
HAVE_SIGSET_T |
| 836 |
HAVE_RAISE |
| 837 |
HAVE_PTHREAD_SIGMASK |
| 838 |
HAVE_POSIX_SIGNALBLOCKING |
| 839 |
GNULIB_SIGACTION |
| 840 |
GNULIB_SIGPROCMASK |
| 841 |
GNULIB_SIGNAL_H_SIGPIPE |
| 842 |
GNULIB_RAISE |
| 843 |
GNULIB_PTHREAD_SIGMASK |
| 844 |
APPLE_UNIVERSAL_BUILD |
| 845 |
UNDEFINE_STRTOK_R |
| 846 |
REPLACE_STRTOK_R |
| 847 |
REPLACE_STRSIGNAL |
| 848 |
REPLACE_STRNLEN |
| 849 |
REPLACE_STRNDUP |
| 850 |
REPLACE_STRNCAT |
| 851 |
REPLACE_STRERROR_R |
| 852 |
REPLACE_STRERROR |
| 853 |
REPLACE_STRCHRNUL |
| 854 |
REPLACE_STRCASESTR |
| 855 |
REPLACE_STRSTR |
| 856 |
REPLACE_STRDUP |
| 857 |
REPLACE_STPNCPY |
| 858 |
REPLACE_MEMMEM |
| 859 |
REPLACE_MEMCHR |
| 860 |
HAVE_STRVERSCMP |
| 861 |
HAVE_DECL_STRSIGNAL |
| 862 |
HAVE_DECL_STRERROR_R |
| 863 |
HAVE_DECL_STRTOK_R |
| 864 |
HAVE_STRCASESTR |
| 865 |
HAVE_STRSEP |
| 866 |
HAVE_STRPBRK |
| 867 |
HAVE_DECL_STRNLEN |
| 868 |
HAVE_DECL_STRNDUP |
| 869 |
HAVE_DECL_STRDUP |
| 870 |
HAVE_STRCHRNUL |
| 871 |
HAVE_STPNCPY |
| 872 |
HAVE_STPCPY |
| 873 |
HAVE_RAWMEMCHR |
| 874 |
HAVE_DECL_MEMRCHR |
| 875 |
HAVE_MEMPCPY |
| 876 |
HAVE_DECL_MEMMEM |
| 877 |
HAVE_MEMCHR |
| 878 |
HAVE_FFSLL |
| 879 |
HAVE_FFSL |
| 880 |
HAVE_MBSLEN |
| 881 |
GNULIB_STRVERSCMP |
| 882 |
GNULIB_STRSIGNAL |
| 883 |
GNULIB_STRERROR_R |
| 884 |
GNULIB_STRERROR |
| 885 |
GNULIB_MBSTOK_R |
| 886 |
GNULIB_MBSSEP |
| 887 |
GNULIB_MBSSPN |
| 888 |
GNULIB_MBSPBRK |
| 889 |
GNULIB_MBSCSPN |
| 890 |
GNULIB_MBSCASESTR |
| 891 |
GNULIB_MBSPCASECMP |
| 892 |
GNULIB_MBSNCASECMP |
| 893 |
GNULIB_MBSCASECMP |
| 894 |
GNULIB_MBSSTR |
| 895 |
GNULIB_MBSRCHR |
| 896 |
GNULIB_MBSCHR |
| 897 |
GNULIB_MBSNLEN |
| 898 |
GNULIB_MBSLEN |
| 899 |
GNULIB_STRTOK_R |
| 900 |
GNULIB_STRCASESTR |
| 901 |
GNULIB_STRSTR |
| 902 |
GNULIB_STRSEP |
| 903 |
GNULIB_STRPBRK |
| 904 |
GNULIB_STRNLEN |
| 905 |
GNULIB_STRNDUP |
| 906 |
GNULIB_STRNCAT |
| 907 |
GNULIB_STRDUP |
| 908 |
GNULIB_STRCHRNUL |
| 909 |
GNULIB_STPNCPY |
| 910 |
GNULIB_STPCPY |
| 911 |
GNULIB_RAWMEMCHR |
| 912 |
GNULIB_MEMRCHR |
| 913 |
GNULIB_MEMPCPY |
| 914 |
GNULIB_MEMMEM |
| 915 |
GNULIB_MEMCHR |
| 916 |
GNULIB_FFSLL |
| 917 |
GNULIB_FFSL |
| 918 |
NEXT_AS_FIRST_DIRECTIVE_MATH_H |
| 919 |
NEXT_MATH_H |
| 920 |
REPLACE_TRUNCL |
| 921 |
REPLACE_TRUNCF |
| 922 |
REPLACE_TRUNC |
| 923 |
REPLACE_SQRTL |
| 924 |
REPLACE_SIGNBIT_USING_GCC |
| 925 |
REPLACE_SIGNBIT |
| 926 |
REPLACE_ROUNDL |
| 927 |
REPLACE_ROUNDF |
| 928 |
REPLACE_ROUND |
| 929 |
REPLACE_REMAINDERL |
| 930 |
REPLACE_REMAINDERF |
| 931 |
REPLACE_REMAINDER |
| 932 |
REPLACE_NAN |
| 933 |
REPLACE_MODFL |
| 934 |
REPLACE_MODFF |
| 935 |
REPLACE_MODF |
| 936 |
REPLACE_LOGBL |
| 937 |
REPLACE_LOGBF |
| 938 |
REPLACE_LOGB |
| 939 |
REPLACE_LOG2L |
| 940 |
REPLACE_LOG2F |
| 941 |
REPLACE_LOG2 |
| 942 |
REPLACE_LOG1PL |
| 943 |
REPLACE_LOG1PF |
| 944 |
REPLACE_LOG1P |
| 945 |
REPLACE_LOG10L |
| 946 |
REPLACE_LOG10F |
| 947 |
REPLACE_LOG10 |
| 948 |
REPLACE_LOGL |
| 949 |
REPLACE_LOGF |
| 950 |
REPLACE_LOG |
| 951 |
REPLACE_LDEXPL |
| 952 |
REPLACE_ISNAN |
| 953 |
REPLACE_ISINF |
| 954 |
REPLACE_ISFINITE |
| 955 |
REPLACE_ILOGBF |
| 956 |
REPLACE_ILOGB |
| 957 |
REPLACE_HYPOTL |
| 958 |
REPLACE_HYPOTF |
| 959 |
REPLACE_HYPOT |
| 960 |
REPLACE_HUGE_VAL |
| 961 |
REPLACE_FREXPL |
| 962 |
REPLACE_FREXP |
| 963 |
REPLACE_FREXPF |
| 964 |
REPLACE_FMODL |
| 965 |
REPLACE_FMODF |
| 966 |
REPLACE_FMOD |
| 967 |
REPLACE_FMAL |
| 968 |
REPLACE_FMAF |
| 969 |
REPLACE_FMA |
| 970 |
REPLACE_FLOORL |
| 971 |
REPLACE_FLOORF |
| 972 |
REPLACE_FLOOR |
| 973 |
REPLACE_FABSL |
| 974 |
REPLACE_EXP2L |
| 975 |
REPLACE_EXP2 |
| 976 |
REPLACE_EXPM1F |
| 977 |
REPLACE_EXPM1 |
| 978 |
REPLACE_CEILL |
| 979 |
REPLACE_CEILF |
| 980 |
REPLACE_CEIL |
| 981 |
REPLACE_CBRTL |
| 982 |
REPLACE_CBRTF |
| 983 |
HAVE_DECL_TRUNCL |
| 984 |
HAVE_DECL_TRUNCF |
| 985 |
HAVE_DECL_TRUNC |
| 986 |
HAVE_DECL_TANL |
| 987 |
HAVE_DECL_SQRTL |
| 988 |
HAVE_DECL_SINL |
| 989 |
HAVE_DECL_ROUNDL |
| 990 |
HAVE_DECL_ROUNDF |
| 991 |
HAVE_DECL_ROUND |
| 992 |
HAVE_DECL_RINTF |
| 993 |
HAVE_DECL_REMAINDERL |
| 994 |
HAVE_DECL_REMAINDER |
| 995 |
HAVE_DECL_LOGB |
| 996 |
HAVE_DECL_LOG2L |
| 997 |
HAVE_DECL_LOG2F |
| 998 |
HAVE_DECL_LOG2 |
| 999 |
HAVE_DECL_LOG10L |
| 1000 |
HAVE_DECL_LOGL |
| 1001 |
HAVE_DECL_LDEXPL |
| 1002 |
HAVE_DECL_FREXPL |
| 1003 |
HAVE_DECL_FLOORL |
| 1004 |
HAVE_DECL_FLOORF |
| 1005 |
HAVE_DECL_EXPM1L |
| 1006 |
HAVE_DECL_EXP2L |
| 1007 |
HAVE_DECL_EXP2F |
| 1008 |
HAVE_DECL_EXP2 |
| 1009 |
HAVE_DECL_EXPL |
| 1010 |
HAVE_DECL_COSL |
| 1011 |
HAVE_DECL_COPYSIGNF |
| 1012 |
HAVE_DECL_CEILL |
| 1013 |
HAVE_DECL_CEILF |
| 1014 |
HAVE_DECL_CBRTL |
| 1015 |
HAVE_DECL_CBRTF |
| 1016 |
HAVE_DECL_ATANL |
| 1017 |
HAVE_DECL_ASINL |
| 1018 |
HAVE_DECL_ACOSL |
| 1019 |
HAVE_TANHF |
| 1020 |
HAVE_TANL |
| 1021 |
HAVE_TANF |
| 1022 |
HAVE_SQRTL |
| 1023 |
HAVE_SQRTF |
| 1024 |
HAVE_SINHF |
| 1025 |
HAVE_SINL |
| 1026 |
HAVE_SINF |
| 1027 |
HAVE_RINTL |
| 1028 |
HAVE_RINT |
| 1029 |
HAVE_REMAINDERF |
| 1030 |
HAVE_REMAINDER |
| 1031 |
HAVE_POWF |
| 1032 |
HAVE_MODFL |
| 1033 |
HAVE_MODFF |
| 1034 |
HAVE_LOGBL |
| 1035 |
HAVE_LOGBF |
| 1036 |
HAVE_LOG1PL |
| 1037 |
HAVE_LOG1PF |
| 1038 |
HAVE_LOG1P |
| 1039 |
HAVE_LOG10L |
| 1040 |
HAVE_LOG10F |
| 1041 |
HAVE_LOGL |
| 1042 |
HAVE_LOGF |
| 1043 |
HAVE_LDEXPF |
| 1044 |
HAVE_ISNANL |
| 1045 |
HAVE_ISNAND |
| 1046 |
HAVE_ISNANF |
| 1047 |
HAVE_ILOGBL |
| 1048 |
HAVE_ILOGBF |
| 1049 |
HAVE_ILOGB |
| 1050 |
HAVE_HYPOTL |
| 1051 |
HAVE_HYPOTF |
| 1052 |
HAVE_FREXPF |
| 1053 |
HAVE_FMODL |
| 1054 |
HAVE_FMODF |
| 1055 |
HAVE_FMAL |
| 1056 |
HAVE_FMAF |
| 1057 |
HAVE_FMA |
| 1058 |
HAVE_FABSL |
| 1059 |
HAVE_FABSF |
| 1060 |
HAVE_EXPM1F |
| 1061 |
HAVE_EXPM1 |
| 1062 |
HAVE_EXPL |
| 1063 |
HAVE_EXPF |
| 1064 |
HAVE_COSHF |
| 1065 |
HAVE_COSL |
| 1066 |
HAVE_COSF |
| 1067 |
HAVE_COPYSIGNL |
| 1068 |
HAVE_COPYSIGN |
| 1069 |
HAVE_CBRTL |
| 1070 |
HAVE_CBRTF |
| 1071 |
HAVE_CBRT |
| 1072 |
HAVE_ATAN2F |
| 1073 |
HAVE_ATANL |
| 1074 |
HAVE_ATANF |
| 1075 |
HAVE_ASINL |
| 1076 |
HAVE_ASINF |
| 1077 |
HAVE_ACOSL |
| 1078 |
HAVE_ACOSF |
| 1079 |
GNULIB_TRUNCL |
| 1080 |
GNULIB_TRUNCF |
| 1081 |
GNULIB_TRUNC |
| 1082 |
GNULIB_TANHF |
| 1083 |
GNULIB_TANL |
| 1084 |
GNULIB_TANF |
| 1085 |
GNULIB_SQRTL |
| 1086 |
GNULIB_SQRTF |
| 1087 |
GNULIB_SINHF |
| 1088 |
GNULIB_SINL |
| 1089 |
GNULIB_SINF |
| 1090 |
GNULIB_SIGNBIT |
| 1091 |
GNULIB_ROUNDL |
| 1092 |
GNULIB_ROUNDF |
| 1093 |
GNULIB_ROUND |
| 1094 |
GNULIB_RINTL |
| 1095 |
GNULIB_RINTF |
| 1096 |
GNULIB_RINT |
| 1097 |
GNULIB_REMAINDERL |
| 1098 |
GNULIB_REMAINDERF |
| 1099 |
GNULIB_REMAINDER |
| 1100 |
GNULIB_POWF |
| 1101 |
GNULIB_MODFL |
| 1102 |
GNULIB_MODFF |
| 1103 |
GNULIB_MODF |
| 1104 |
GNULIB_LOGBL |
| 1105 |
GNULIB_LOGBF |
| 1106 |
GNULIB_LOGB |
| 1107 |
GNULIB_LOG2L |
| 1108 |
GNULIB_LOG2F |
| 1109 |
GNULIB_LOG2 |
| 1110 |
GNULIB_LOG1PL |
| 1111 |
GNULIB_LOG1PF |
| 1112 |
GNULIB_LOG1P |
| 1113 |
GNULIB_LOG10L |
| 1114 |
GNULIB_LOG10F |
| 1115 |
GNULIB_LOG10 |
| 1116 |
GNULIB_LOGL |
| 1117 |
GNULIB_LOGF |
| 1118 |
GNULIB_LOG |
| 1119 |
GNULIB_LDEXPL |
| 1120 |
GNULIB_LDEXPF |
| 1121 |
GNULIB_ISNANL |
| 1122 |
GNULIB_ISNAND |
| 1123 |
GNULIB_ISNANF |
| 1124 |
GNULIB_ISNAN |
| 1125 |
GNULIB_ISINF |
| 1126 |
GNULIB_ISFINITE |
| 1127 |
GNULIB_ILOGBL |
| 1128 |
GNULIB_ILOGBF |
| 1129 |
GNULIB_ILOGB |
| 1130 |
GNULIB_HYPOTL |
| 1131 |
GNULIB_HYPOTF |
| 1132 |
GNULIB_HYPOT |
| 1133 |
GNULIB_FREXPL |
| 1134 |
GNULIB_FREXP |
| 1135 |
GNULIB_FREXPF |
| 1136 |
GNULIB_FMODL |
| 1137 |
GNULIB_FMODF |
| 1138 |
GNULIB_FMOD |
| 1139 |
GNULIB_FMAL |
| 1140 |
GNULIB_FMAF |
| 1141 |
GNULIB_FMA |
| 1142 |
GNULIB_FLOORL |
| 1143 |
GNULIB_FLOORF |
| 1144 |
GNULIB_FLOOR |
| 1145 |
GNULIB_FABSL |
| 1146 |
GNULIB_FABSF |
| 1147 |
GNULIB_EXPM1L |
| 1148 |
GNULIB_EXPM1F |
| 1149 |
GNULIB_EXPM1 |
| 1150 |
GNULIB_EXP2L |
| 1151 |
GNULIB_EXP2F |
| 1152 |
GNULIB_EXP2 |
| 1153 |
GNULIB_EXPL |
| 1154 |
GNULIB_EXPF |
| 1155 |
GNULIB_COSHF |
| 1156 |
GNULIB_COSL |
| 1157 |
GNULIB_COSF |
| 1158 |
GNULIB_COPYSIGNL |
| 1159 |
GNULIB_COPYSIGNF |
| 1160 |
GNULIB_COPYSIGN |
| 1161 |
GNULIB_CEILL |
| 1162 |
GNULIB_CEILF |
| 1163 |
GNULIB_CEIL |
| 1164 |
GNULIB_CBRTL |
| 1165 |
GNULIB_CBRTF |
| 1166 |
GNULIB_CBRT |
| 1167 |
GNULIB_ATAN2F |
| 1168 |
GNULIB_ATANL |
| 1169 |
GNULIB_ATANF |
| 1170 |
GNULIB_ASINL |
| 1171 |
GNULIB_ASINF |
| 1172 |
GNULIB_ACOSL |
| 1173 |
GNULIB_ACOSF |
| 1174 |
GNULIB_GL_UNISTD_H_GETOPT |
| 1175 |
GETOPT_H |
| 1176 |
HAVE_GETOPT_H |
| 1177 |
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H |
| 1178 |
NEXT_GETOPT_H |
| 1179 |
WINDOWS_64_BIT_ST_SIZE |
| 1180 |
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H |
| 1181 |
NEXT_SYS_STAT_H |
| 1182 |
REPLACE_UTIMENSAT |
| 1183 |
REPLACE_STAT |
| 1184 |
REPLACE_MKNOD |
| 1185 |
REPLACE_MKFIFO |
| 1186 |
REPLACE_MKDIR |
| 1187 |
REPLACE_LSTAT |
| 1188 |
REPLACE_FUTIMENS |
| 1189 |
REPLACE_FSTATAT |
| 1190 |
REPLACE_FSTAT |
| 1191 |
HAVE_UTIMENSAT |
| 1192 |
HAVE_MKNODAT |
| 1193 |
HAVE_MKNOD |
| 1194 |
HAVE_MKFIFOAT |
| 1195 |
HAVE_MKFIFO |
| 1196 |
HAVE_MKDIRAT |
| 1197 |
HAVE_LSTAT |
| 1198 |
HAVE_LCHMOD |
| 1199 |
HAVE_FUTIMENS |
| 1200 |
HAVE_FSTATAT |
| 1201 |
HAVE_FCHMODAT |
| 1202 |
GNULIB_UTIMENSAT |
| 1203 |
GNULIB_STAT |
| 1204 |
GNULIB_MKNODAT |
| 1205 |
GNULIB_MKNOD |
| 1206 |
GNULIB_MKFIFOAT |
| 1207 |
GNULIB_MKFIFO |
| 1208 |
GNULIB_MKDIRAT |
| 1209 |
GNULIB_LSTAT |
| 1210 |
GNULIB_LCHMOD |
| 1211 |
GNULIB_FUTIMENS |
| 1212 |
GNULIB_FSTATAT |
| 1213 |
GNULIB_FSTAT |
| 1214 |
GNULIB_FCHMODAT |
| 1215 |
REPLACE_VSPRINTF |
| 1216 |
REPLACE_VSNPRINTF |
| 1217 |
REPLACE_VPRINTF |
| 1218 |
REPLACE_VFPRINTF |
| 1219 |
REPLACE_VDPRINTF |
| 1220 |
REPLACE_VASPRINTF |
| 1221 |
REPLACE_TMPFILE |
| 1222 |
REPLACE_STDIO_WRITE_FUNCS |
| 1223 |
REPLACE_STDIO_READ_FUNCS |
| 1224 |
REPLACE_SPRINTF |
| 1225 |
REPLACE_SNPRINTF |
| 1226 |
REPLACE_RENAMEAT |
| 1227 |
REPLACE_RENAME |
| 1228 |
REPLACE_REMOVE |
| 1229 |
REPLACE_PRINTF |
| 1230 |
REPLACE_POPEN |
| 1231 |
REPLACE_PERROR |
| 1232 |
REPLACE_OBSTACK_PRINTF |
| 1233 |
REPLACE_GETLINE |
| 1234 |
REPLACE_GETDELIM |
| 1235 |
REPLACE_FTELLO |
| 1236 |
REPLACE_FTELL |
| 1237 |
REPLACE_FSEEKO |
| 1238 |
REPLACE_FSEEK |
| 1239 |
REPLACE_FREOPEN |
| 1240 |
REPLACE_FPURGE |
| 1241 |
REPLACE_FPRINTF |
| 1242 |
REPLACE_FOPEN |
| 1243 |
REPLACE_FFLUSH |
| 1244 |
REPLACE_FDOPEN |
| 1245 |
REPLACE_FCLOSE |
| 1246 |
REPLACE_DPRINTF |
| 1247 |
HAVE_VDPRINTF |
| 1248 |
HAVE_VASPRINTF |
| 1249 |
HAVE_RENAMEAT |
| 1250 |
HAVE_POPEN |
| 1251 |
HAVE_PCLOSE |
| 1252 |
HAVE_FTELLO |
| 1253 |
HAVE_FSEEKO |
| 1254 |
HAVE_DPRINTF |
| 1255 |
HAVE_DECL_VSNPRINTF |
| 1256 |
HAVE_DECL_SNPRINTF |
| 1257 |
HAVE_DECL_OBSTACK_PRINTF |
| 1258 |
HAVE_DECL_GETLINE |
| 1259 |
HAVE_DECL_GETDELIM |
| 1260 |
HAVE_DECL_FTELLO |
| 1261 |
HAVE_DECL_FSEEKO |
| 1262 |
HAVE_DECL_FPURGE |
| 1263 |
GNULIB_VSPRINTF_POSIX |
| 1264 |
GNULIB_VSNPRINTF |
| 1265 |
GNULIB_VPRINTF_POSIX |
| 1266 |
GNULIB_VPRINTF |
| 1267 |
GNULIB_VFPRINTF_POSIX |
| 1268 |
GNULIB_VFPRINTF |
| 1269 |
GNULIB_VDPRINTF |
| 1270 |
GNULIB_VSCANF |
| 1271 |
GNULIB_VFSCANF |
| 1272 |
GNULIB_VASPRINTF |
| 1273 |
GNULIB_TMPFILE |
| 1274 |
GNULIB_STDIO_H_SIGPIPE |
| 1275 |
GNULIB_STDIO_H_NONBLOCKING |
| 1276 |
GNULIB_SPRINTF_POSIX |
| 1277 |
GNULIB_SNPRINTF |
| 1278 |
GNULIB_SCANF |
| 1279 |
GNULIB_RENAMEAT |
| 1280 |
GNULIB_RENAME |
| 1281 |
GNULIB_REMOVE |
| 1282 |
GNULIB_PUTS |
| 1283 |
GNULIB_PUTCHAR |
| 1284 |
GNULIB_PUTC |
| 1285 |
GNULIB_PRINTF_POSIX |
| 1286 |
GNULIB_PRINTF |
| 1287 |
GNULIB_POPEN |
| 1288 |
GNULIB_PERROR |
| 1289 |
GNULIB_PCLOSE |
| 1290 |
GNULIB_OBSTACK_PRINTF_POSIX |
| 1291 |
GNULIB_OBSTACK_PRINTF |
| 1292 |
GNULIB_GETLINE |
| 1293 |
GNULIB_GETDELIM |
| 1294 |
GNULIB_GETCHAR |
| 1295 |
GNULIB_GETC |
| 1296 |
GNULIB_FWRITE |
| 1297 |
GNULIB_FTELLO |
| 1298 |
GNULIB_FTELL |
| 1299 |
GNULIB_FSEEKO |
| 1300 |
GNULIB_FSEEK |
| 1301 |
GNULIB_FSCANF |
| 1302 |
GNULIB_FREOPEN |
| 1303 |
GNULIB_FREAD |
| 1304 |
GNULIB_FPUTS |
| 1305 |
GNULIB_FPUTC |
| 1306 |
GNULIB_FPURGE |
| 1307 |
GNULIB_FPRINTF_POSIX |
| 1308 |
GNULIB_FPRINTF |
| 1309 |
GNULIB_FOPEN |
| 1310 |
GNULIB_FGETS |
| 1311 |
GNULIB_FGETC |
| 1312 |
GNULIB_FFLUSH |
| 1313 |
GNULIB_FDOPEN |
| 1314 |
GNULIB_FCLOSE |
| 1315 |
GNULIB_DPRINTF |
| 1316 |
REPLACE_ITOLD |
| 1317 |
GL_GENERATE_FLOAT_H_FALSE |
| 1318 |
GL_GENERATE_FLOAT_H_TRUE |
| 1319 |
FLOAT_H |
| 1320 |
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H |
| 1321 |
NEXT_FLOAT_H |
| 1322 |
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H |
| 1323 |
NEXT_FCNTL_H |
| 1324 |
REPLACE_OPENAT |
| 1325 |
REPLACE_OPEN |
| 1326 |
REPLACE_FCNTL |
| 1327 |
HAVE_OPENAT |
| 1328 |
HAVE_FCNTL |
| 1329 |
GNULIB_OPENAT |
| 1330 |
GNULIB_OPEN |
| 1331 |
GNULIB_NONBLOCKING |
| 1332 |
GNULIB_FCNTL |
| 1333 |
EOVERFLOW_VALUE |
| 1334 |
EOVERFLOW_HIDDEN |
| 1335 |
ENOLINK_VALUE |
| 1336 |
ENOLINK_HIDDEN |
| 1337 |
EMULTIHOP_VALUE |
| 1338 |
EMULTIHOP_HIDDEN |
| 1339 |
GL_GENERATE_ERRNO_H_FALSE |
| 1340 |
GL_GENERATE_ERRNO_H_TRUE |
| 1341 |
ERRNO_H |
| 1342 |
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H |
| 1343 |
NEXT_ERRNO_H |
| 1344 |
PRAGMA_COLUMNS |
| 1345 |
PRAGMA_SYSTEM_HEADER |
| 1346 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 1347 |
INCLUDE_NEXT |
| 1348 |
HAVE_WINSOCK2_H |
| 1349 |
HAVE_MSVC_INVALID_PARAMETER_HANDLER |
| 1350 |
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS |
| 1351 |
UNISTD_H_HAVE_WINSOCK2_H |
| 1352 |
REPLACE_WRITE |
| 1353 |
REPLACE_USLEEP |
| 1354 |
REPLACE_UNLINKAT |
| 1355 |
REPLACE_UNLINK |
| 1356 |
REPLACE_TTYNAME_R |
| 1357 |
REPLACE_SYMLINK |
| 1358 |
REPLACE_SLEEP |
| 1359 |
REPLACE_RMDIR |
| 1360 |
REPLACE_READLINK |
| 1361 |
REPLACE_READ |
| 1362 |
REPLACE_PWRITE |
| 1363 |
REPLACE_PREAD |
| 1364 |
REPLACE_LSEEK |
| 1365 |
REPLACE_LINKAT |
| 1366 |
REPLACE_LINK |
| 1367 |
REPLACE_LCHOWN |
| 1368 |
REPLACE_ISATTY |
| 1369 |
REPLACE_GETPAGESIZE |
| 1370 |
REPLACE_GETGROUPS |
| 1371 |
REPLACE_GETLOGIN_R |
| 1372 |
REPLACE_GETDOMAINNAME |
| 1373 |
REPLACE_GETCWD |
| 1374 |
REPLACE_FTRUNCATE |
| 1375 |
REPLACE_FCHOWNAT |
| 1376 |
REPLACE_DUP2 |
| 1377 |
REPLACE_DUP |
| 1378 |
REPLACE_CLOSE |
| 1379 |
REPLACE_CHOWN |
| 1380 |
HAVE_SYS_PARAM_H |
| 1381 |
HAVE_OS_H |
| 1382 |
HAVE_DECL_TTYNAME_R |
| 1383 |
HAVE_DECL_SETHOSTNAME |
| 1384 |
HAVE_DECL_GETUSERSHELL |
| 1385 |
HAVE_DECL_GETPAGESIZE |
| 1386 |
HAVE_DECL_GETLOGIN_R |
| 1387 |
HAVE_DECL_GETDOMAINNAME |
| 1388 |
HAVE_DECL_FDATASYNC |
| 1389 |
HAVE_DECL_FCHDIR |
| 1390 |
HAVE_DECL_ENVIRON |
| 1391 |
HAVE_USLEEP |
| 1392 |
HAVE_UNLINKAT |
| 1393 |
HAVE_SYMLINKAT |
| 1394 |
HAVE_SYMLINK |
| 1395 |
HAVE_SLEEP |
| 1396 |
HAVE_SETHOSTNAME |
| 1397 |
HAVE_READLINKAT |
| 1398 |
HAVE_READLINK |
| 1399 |
HAVE_PWRITE |
| 1400 |
HAVE_PREAD |
| 1401 |
HAVE_PIPE2 |
| 1402 |
HAVE_PIPE |
| 1403 |
HAVE_LINKAT |
| 1404 |
HAVE_LINK |
| 1405 |
HAVE_LCHOWN |
| 1406 |
HAVE_GROUP_MEMBER |
| 1407 |
HAVE_GETPAGESIZE |
| 1408 |
HAVE_GETLOGIN |
| 1409 |
HAVE_GETHOSTNAME |
| 1410 |
HAVE_GETGROUPS |
| 1411 |
HAVE_GETDTABLESIZE |
| 1412 |
HAVE_FTRUNCATE |
| 1413 |
HAVE_FSYNC |
| 1414 |
HAVE_FDATASYNC |
| 1415 |
HAVE_FCHOWNAT |
| 1416 |
HAVE_FCHDIR |
| 1417 |
HAVE_FACCESSAT |
| 1418 |
HAVE_EUIDACCESS |
| 1419 |
HAVE_DUP3 |
| 1420 |
HAVE_DUP2 |
| 1421 |
HAVE_CHOWN |
| 1422 |
GNULIB_WRITE |
| 1423 |
GNULIB_USLEEP |
| 1424 |
GNULIB_UNLINKAT |
| 1425 |
GNULIB_UNLINK |
| 1426 |
GNULIB_UNISTD_H_SIGPIPE |
| 1427 |
GNULIB_UNISTD_H_NONBLOCKING |
| 1428 |
GNULIB_TTYNAME_R |
| 1429 |
GNULIB_SYMLINKAT |
| 1430 |
GNULIB_SYMLINK |
| 1431 |
GNULIB_SLEEP |
| 1432 |
GNULIB_SETHOSTNAME |
| 1433 |
GNULIB_RMDIR |
| 1434 |
GNULIB_READLINKAT |
| 1435 |
GNULIB_READLINK |
| 1436 |
GNULIB_READ |
| 1437 |
GNULIB_PWRITE |
| 1438 |
GNULIB_PREAD |
| 1439 |
GNULIB_PIPE2 |
| 1440 |
GNULIB_PIPE |
| 1441 |
GNULIB_LSEEK |
| 1442 |
GNULIB_LINKAT |
| 1443 |
GNULIB_LINK |
| 1444 |
GNULIB_LCHOWN |
| 1445 |
GNULIB_ISATTY |
| 1446 |
GNULIB_GROUP_MEMBER |
| 1447 |
GNULIB_GETUSERSHELL |
| 1448 |
GNULIB_GETPAGESIZE |
| 1449 |
GNULIB_GETLOGIN_R |
| 1450 |
GNULIB_GETLOGIN |
| 1451 |
GNULIB_GETHOSTNAME |
| 1452 |
GNULIB_GETGROUPS |
| 1453 |
GNULIB_GETDTABLESIZE |
| 1454 |
GNULIB_GETDOMAINNAME |
| 1455 |
GNULIB_GETCWD |
| 1456 |
GNULIB_FTRUNCATE |
| 1457 |
GNULIB_FSYNC |
| 1458 |
GNULIB_FDATASYNC |
| 1459 |
GNULIB_FCHOWNAT |
| 1460 |
GNULIB_FCHDIR |
| 1461 |
GNULIB_FACCESSAT |
| 1462 |
GNULIB_EUIDACCESS |
| 1463 |
GNULIB_ENVIRON |
| 1464 |
GNULIB_DUP3 |
| 1465 |
GNULIB_DUP2 |
| 1466 |
GNULIB_DUP |
| 1467 |
GNULIB_CLOSE |
| 1468 |
GNULIB_CHOWN |
| 1469 |
GNULIB_CHDIR |
| 1470 |
REPLACE_WCTOMB |
| 1471 |
REPLACE_UNSETENV |
| 1472 |
REPLACE_STRTOD |
| 1473 |
REPLACE_SETENV |
| 1474 |
REPLACE_REALPATH |
| 1475 |
REPLACE_REALLOC |
| 1476 |
REPLACE_RANDOM_R |
| 1477 |
REPLACE_PUTENV |
| 1478 |
REPLACE_PTSNAME_R |
| 1479 |
REPLACE_PTSNAME |
| 1480 |
REPLACE_MKSTEMP |
| 1481 |
REPLACE_MBTOWC |
| 1482 |
REPLACE_MALLOC |
| 1483 |
REPLACE_CANONICALIZE_FILE_NAME |
| 1484 |
REPLACE_CALLOC |
| 1485 |
HAVE_DECL_UNSETENV |
| 1486 |
HAVE_UNLOCKPT |
| 1487 |
HAVE_SYS_LOADAVG_H |
| 1488 |
HAVE_STRUCT_RANDOM_DATA |
| 1489 |
HAVE_STRTOULL |
| 1490 |
HAVE_STRTOLL |
| 1491 |
HAVE_STRTOD |
| 1492 |
HAVE_DECL_SETENV |
| 1493 |
HAVE_SETENV |
| 1494 |
HAVE_SECURE_GETENV |
| 1495 |
HAVE_RPMATCH |
| 1496 |
HAVE_REALPATH |
| 1497 |
HAVE_RANDOM_R |
| 1498 |
HAVE_RANDOM_H |
| 1499 |
HAVE_RANDOM |
| 1500 |
HAVE_PTSNAME_R |
| 1501 |
HAVE_PTSNAME |
| 1502 |
HAVE_POSIX_OPENPT |
| 1503 |
HAVE_MKSTEMPS |
| 1504 |
HAVE_MKSTEMP |
| 1505 |
HAVE_MKOSTEMPS |
| 1506 |
HAVE_MKOSTEMP |
| 1507 |
HAVE_MKDTEMP |
| 1508 |
HAVE_GRANTPT |
| 1509 |
HAVE_GETSUBOPT |
| 1510 |
HAVE_DECL_GETLOADAVG |
| 1511 |
HAVE_CANONICALIZE_FILE_NAME |
| 1512 |
HAVE_ATOLL |
| 1513 |
HAVE__EXIT |
| 1514 |
GNULIB_WCTOMB |
| 1515 |
GNULIB_UNSETENV |
| 1516 |
GNULIB_UNLOCKPT |
| 1517 |
GNULIB_SYSTEM_POSIX |
| 1518 |
GNULIB_STRTOULL |
| 1519 |
GNULIB_STRTOLL |
| 1520 |
GNULIB_STRTOD |
| 1521 |
GNULIB_SETENV |
| 1522 |
GNULIB_SECURE_GETENV |
| 1523 |
GNULIB_RPMATCH |
| 1524 |
GNULIB_REALPATH |
| 1525 |
GNULIB_REALLOC_POSIX |
| 1526 |
GNULIB_RANDOM_R |
| 1527 |
GNULIB_RANDOM |
| 1528 |
GNULIB_PUTENV |
| 1529 |
GNULIB_PTSNAME_R |
| 1530 |
GNULIB_PTSNAME |
| 1531 |
GNULIB_POSIX_OPENPT |
| 1532 |
GNULIB_MKSTEMPS |
| 1533 |
GNULIB_MKSTEMP |
| 1534 |
GNULIB_MKOSTEMPS |
| 1535 |
GNULIB_MKOSTEMP |
| 1536 |
GNULIB_MKDTEMP |
| 1537 |
GNULIB_MBTOWC |
| 1538 |
GNULIB_MALLOC_POSIX |
| 1539 |
GNULIB_GRANTPT |
| 1540 |
GNULIB_GETSUBOPT |
| 1541 |
GNULIB_GETLOADAVG |
| 1542 |
GNULIB_CANONICALIZE_FILE_NAME |
| 1543 |
GNULIB_CALLOC_POSIX |
| 1544 |
GNULIB_ATOLL |
| 1545 |
GNULIB__EXIT |
| 1546 |
GL_GENERATE_ALLOCA_H_FALSE |
| 1547 |
GL_GENERATE_ALLOCA_H_TRUE |
| 1548 |
ALLOCA_H |
| 1549 |
ALLOCA |
| 1550 |
GL_COND_LIBTOOL_FALSE |
| 1551 |
GL_COND_LIBTOOL_TRUE |
| 1552 |
POSUB |
| 1553 |
LTLIBINTL |
| 1554 |
LIBINTL |
| 1555 |
INTLLIBS |
| 1556 |
LTLIBICONV |
| 1557 |
LIBICONV |
| 1558 |
INTL_MACOSX_LIBS |
| 1559 |
XGETTEXT_EXTRA_OPTIONS |
| 1560 |
MSGMERGE |
| 1561 |
XGETTEXT_015 |
| 1562 |
XGETTEXT |
| 1563 |
GMSGFMT_015 |
| 1564 |
MSGFMT_015 |
| 1565 |
GMSGFMT |
| 1566 |
MSGFMT |
| 1567 |
GETTEXT_MACRO_VERSION |
| 1568 |
USE_NLS |
| 1569 |
OTOOL64 |
| 1570 |
OTOOL |
| 1571 |
LIPO |
| 1572 |
NMEDIT |
| 1573 |
DSYMUTIL |
| 1574 |
MANIFEST_TOOL |
| 1575 |
ac_ct_AR |
| 1576 |
DLLTOOL |
| 1577 |
OBJDUMP |
| 1578 |
LN_S |
| 1579 |
NM |
| 1580 |
ac_ct_DUMPBIN |
| 1581 |
DUMPBIN |
| 1582 |
LD |
| 1583 |
FGREP |
| 1584 |
SED |
| 1585 |
LIBTOOL |
| 1586 |
RANLIB |
| 1587 |
ARFLAGS |
| 1588 |
AR |
| 1589 |
EGREP |
| 1590 |
GREP |
| 1591 |
CPP |
| 1592 |
am__fastdepCC_FALSE |
| 1593 |
am__fastdepCC_TRUE |
| 1594 |
CCDEPMODE |
| 1595 |
am__nodep |
| 1596 |
AMDEPBACKSLASH |
| 1597 |
AMDEP_FALSE |
| 1598 |
AMDEP_TRUE |
| 1599 |
am__quote |
| 1600 |
am__include |
| 1601 |
DEPDIR |
| 1602 |
OBJEXT |
| 1603 |
EXEEXT |
| 1604 |
ac_ct_CC |
| 1605 |
CPPFLAGS |
| 1606 |
LDFLAGS |
| 1607 |
CFLAGS |
| 1608 |
CC |
| 1609 |
target_os |
| 1610 |
target_vendor |
| 1611 |
target_cpu |
| 1612 |
target |
| 1613 |
host_os |
| 1614 |
host_vendor |
| 1615 |
host_cpu |
| 1616 |
host |
| 1617 |
build_os |
| 1618 |
build_vendor |
| 1619 |
build_cpu |
| 1620 |
build |
| 1621 |
am__untar |
| 1622 |
am__tar |
| 1623 |
AMTAR |
| 1624 |
am__leading_dot |
| 1625 |
SET_MAKE |
| 1626 |
AWK |
| 1627 |
mkdir_p |
| 1628 |
MKDIR_P |
| 1629 |
INSTALL_STRIP_PROGRAM |
| 1630 |
STRIP |
| 1631 |
install_sh |
| 1632 |
MAKEINFO |
| 1633 |
AUTOHEADER |
| 1634 |
AUTOMAKE |
| 1635 |
AUTOCONF |
| 1636 |
ACLOCAL |
| 1637 |
VERSION |
| 1638 |
PACKAGE |
| 1639 |
CYGPATH_W |
| 1640 |
am__isrc |
| 1641 |
INSTALL_DATA |
| 1642 |
INSTALL_SCRIPT |
| 1643 |
INSTALL_PROGRAM |
| 1644 |
target_alias |
| 1645 |
host_alias |
| 1646 |
build_alias |
| 1647 |
LIBS |
| 1648 |
ECHO_T |
| 1649 |
ECHO_N |
| 1650 |
ECHO_C |
| 1651 |
DEFS |
| 1652 |
mandir |
| 1653 |
localedir |
| 1654 |
libdir |
| 1655 |
psdir |
| 1656 |
pdfdir |
| 1657 |
dvidir |
| 1658 |
htmldir |
| 1659 |
infodir |
| 1660 |
docdir |
| 1661 |
oldincludedir |
| 1662 |
includedir |
| 1663 |
localstatedir |
| 1664 |
sharedstatedir |
| 1665 |
sysconfdir |
| 1666 |
datadir |
| 1667 |
datarootdir |
| 1668 |
libexecdir |
| 1669 |
sbindir |
| 1670 |
bindir |
| 1671 |
program_transform_name |
| 1672 |
prefix |
| 1673 |
exec_prefix |
| 1674 |
PACKAGE_URL |
| 1675 |
PACKAGE_BUGREPORT |
| 1676 |
PACKAGE_STRING |
| 1677 |
PACKAGE_VERSION |
| 1678 |
PACKAGE_TARNAME |
| 1679 |
PACKAGE_NAME |
| 1680 |
PATH_SEPARATOR |
| 1681 |
SHELL' |
| 1682 |
ac_subst_files='' |
| 1683 |
ac_user_opts=' |
| 1684 |
enable_option_checking |
| 1685 |
enable_dependency_tracking |
| 1686 |
enable_largefile |
| 1687 |
enable_shared |
| 1688 |
enable_static |
| 1689 |
with_pic |
| 1690 |
enable_fast_install |
| 1691 |
with_gnu_ld |
| 1692 |
with_sysroot |
| 1693 |
enable_libtool_lock |
| 1694 |
enable_nls |
| 1695 |
enable_rpath |
| 1696 |
with_libiconv_prefix |
| 1697 |
with_libintl_prefix |
| 1698 |
' |
| 1699 |
ac_precious_vars='build_alias |
| 1700 |
host_alias |
| 1701 |
target_alias |
| 1702 |
CC |
| 1703 |
CFLAGS |
| 1704 |
LDFLAGS |
| 1705 |
LIBS |
| 1706 |
CPPFLAGS |
| 1707 |
CPP' |
| 1708 |
|
| 1709 |
|
| 1710 |
# Initialize some variables set by options. |
| 1711 |
ac_init_help= |
| 1712 |
ac_init_version=false |
| 1713 |
ac_unrecognized_opts= |
| 1714 |
ac_unrecognized_sep= |
| 1715 |
# The variables have the same names as the options, with |
| 1716 |
# dashes changed to underlines. |
| 1717 |
cache_file=/dev/null |
| 1718 |
exec_prefix=NONE |
| 1719 |
no_create= |
| 1720 |
no_recursion= |
| 1721 |
prefix=NONE |
| 1722 |
program_prefix=NONE |
| 1723 |
program_suffix=NONE |
| 1724 |
program_transform_name=s,x,x, |
| 1725 |
silent= |
| 1726 |
site= |
| 1727 |
srcdir= |
| 1728 |
verbose= |
| 1729 |
x_includes=NONE |
| 1730 |
x_libraries=NONE |
| 1731 |
|
| 1732 |
# Installation directory options. |
| 1733 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1734 |
# and all the variables that are supposed to be based on exec_prefix |
| 1735 |
# by default will actually change. |
| 1736 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 1737 |
# (The list follows the same order as the GNU Coding Standards.) |
| 1738 |
bindir='${exec_prefix}/bin' |
| 1739 |
sbindir='${exec_prefix}/sbin' |
| 1740 |
libexecdir='${exec_prefix}/libexec' |
| 1741 |
datarootdir='${prefix}/share' |
| 1742 |
datadir='${datarootdir}' |
| 1743 |
sysconfdir='${prefix}/etc' |
| 1744 |
sharedstatedir='${prefix}/com' |
| 1745 |
localstatedir='${prefix}/var' |
| 1746 |
includedir='${prefix}/include' |
| 1747 |
oldincludedir='/usr/include' |
| 1748 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1749 |
infodir='${datarootdir}/info' |
| 1750 |
htmldir='${docdir}' |
| 1751 |
dvidir='${docdir}' |
| 1752 |
pdfdir='${docdir}' |
| 1753 |
psdir='${docdir}' |
| 1754 |
libdir='${exec_prefix}/lib' |
| 1755 |
localedir='${datarootdir}/locale' |
| 1756 |
mandir='${datarootdir}/man' |
| 1757 |
|
| 1758 |
ac_prev= |
| 1759 |
ac_dashdash= |
| 1760 |
for ac_option |
| 1761 |
do |
| 1762 |
# If the previous option needs an argument, assign it. |
| 1763 |
if test -n "$ac_prev"; then |
| 1764 |
eval $ac_prev=\$ac_option |
| 1765 |
ac_prev= |
| 1766 |
continue |
| 1767 |
fi |
| 1768 |
|
| 1769 |
case $ac_option in |
| 1770 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1771 |
*=) ac_optarg= ;; |
| 1772 |
*) ac_optarg=yes ;; |
| 1773 |
esac |
| 1774 |
|
| 1775 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 1776 |
|
| 1777 |
case $ac_dashdash$ac_option in |
| 1778 |
--) |
| 1779 |
ac_dashdash=yes ;; |
| 1780 |
|
| 1781 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1782 |
ac_prev=bindir ;; |
| 1783 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1784 |
bindir=$ac_optarg ;; |
| 1785 |
|
| 1786 |
-build | --build | --buil | --bui | --bu) |
| 1787 |
ac_prev=build_alias ;; |
| 1788 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1789 |
build_alias=$ac_optarg ;; |
| 1790 |
|
| 1791 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1792 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1793 |
ac_prev=cache_file ;; |
| 1794 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1795 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1796 |
cache_file=$ac_optarg ;; |
| 1797 |
|
| 1798 |
--config-cache | -C) |
| 1799 |
cache_file=config.cache ;; |
| 1800 |
|
| 1801 |
-datadir | --datadir | --datadi | --datad) |
| 1802 |
ac_prev=datadir ;; |
| 1803 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1804 |
datadir=$ac_optarg ;; |
| 1805 |
|
| 1806 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1807 |
| --dataroo | --dataro | --datar) |
| 1808 |
ac_prev=datarootdir ;; |
| 1809 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1810 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1811 |
datarootdir=$ac_optarg ;; |
| 1812 |
|
| 1813 |
-disable-* | --disable-*) |
| 1814 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1815 |
# Reject names that are not valid shell variable names. |
| 1816 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1817 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 1818 |
ac_useropt_orig=$ac_useropt |
| 1819 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1820 |
case $ac_user_opts in |
| 1821 |
*" |
| 1822 |
"enable_$ac_useropt" |
| 1823 |
"*) ;; |
| 1824 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1825 |
ac_unrecognized_sep=', ';; |
| 1826 |
esac |
| 1827 |
eval enable_$ac_useropt=no ;; |
| 1828 |
|
| 1829 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1830 |
ac_prev=docdir ;; |
| 1831 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1832 |
docdir=$ac_optarg ;; |
| 1833 |
|
| 1834 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1835 |
ac_prev=dvidir ;; |
| 1836 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1837 |
dvidir=$ac_optarg ;; |
| 1838 |
|
| 1839 |
-enable-* | --enable-*) |
| 1840 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1841 |
# Reject names that are not valid shell variable names. |
| 1842 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1843 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 1844 |
ac_useropt_orig=$ac_useropt |
| 1845 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1846 |
case $ac_user_opts in |
| 1847 |
*" |
| 1848 |
"enable_$ac_useropt" |
| 1849 |
"*) ;; |
| 1850 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1851 |
ac_unrecognized_sep=', ';; |
| 1852 |
esac |
| 1853 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1854 |
|
| 1855 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1856 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1857 |
| --exec | --exe | --ex) |
| 1858 |
ac_prev=exec_prefix ;; |
| 1859 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1860 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1861 |
| --exec=* | --exe=* | --ex=*) |
| 1862 |
exec_prefix=$ac_optarg ;; |
| 1863 |
|
| 1864 |
-gas | --gas | --ga | --g) |
| 1865 |
# Obsolete; use --with-gas. |
| 1866 |
with_gas=yes ;; |
| 1867 |
|
| 1868 |
-help | --help | --hel | --he | -h) |
| 1869 |
ac_init_help=long ;; |
| 1870 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1871 |
ac_init_help=recursive ;; |
| 1872 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1873 |
ac_init_help=short ;; |
| 1874 |
|
| 1875 |
-host | --host | --hos | --ho) |
| 1876 |
ac_prev=host_alias ;; |
| 1877 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1878 |
host_alias=$ac_optarg ;; |
| 1879 |
|
| 1880 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1881 |
ac_prev=htmldir ;; |
| 1882 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1883 |
| --ht=*) |
| 1884 |
htmldir=$ac_optarg ;; |
| 1885 |
|
| 1886 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1887 |
| --includ | --inclu | --incl | --inc) |
| 1888 |
ac_prev=includedir ;; |
| 1889 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1890 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1891 |
includedir=$ac_optarg ;; |
| 1892 |
|
| 1893 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1894 |
ac_prev=infodir ;; |
| 1895 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1896 |
infodir=$ac_optarg ;; |
| 1897 |
|
| 1898 |
-libdir | --libdir | --libdi | --libd) |
| 1899 |
ac_prev=libdir ;; |
| 1900 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1901 |
libdir=$ac_optarg ;; |
| 1902 |
|
| 1903 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1904 |
| --libexe | --libex | --libe) |
| 1905 |
ac_prev=libexecdir ;; |
| 1906 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1907 |
| --libexe=* | --libex=* | --libe=*) |
| 1908 |
libexecdir=$ac_optarg ;; |
| 1909 |
|
| 1910 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1911 |
ac_prev=localedir ;; |
| 1912 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1913 |
localedir=$ac_optarg ;; |
| 1914 |
|
| 1915 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1916 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1917 |
ac_prev=localstatedir ;; |
| 1918 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1919 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1920 |
localstatedir=$ac_optarg ;; |
| 1921 |
|
| 1922 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1923 |
ac_prev=mandir ;; |
| 1924 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1925 |
mandir=$ac_optarg ;; |
| 1926 |
|
| 1927 |
-nfp | --nfp | --nf) |
| 1928 |
# Obsolete; use --without-fp. |
| 1929 |
with_fp=no ;; |
| 1930 |
|
| 1931 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1932 |
| --no-cr | --no-c | -n) |
| 1933 |
no_create=yes ;; |
| 1934 |
|
| 1935 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1936 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1937 |
no_recursion=yes ;; |
| 1938 |
|
| 1939 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1940 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1941 |
| --oldin | --oldi | --old | --ol | --o) |
| 1942 |
ac_prev=oldincludedir ;; |
| 1943 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1944 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1945 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1946 |
oldincludedir=$ac_optarg ;; |
| 1947 |
|
| 1948 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1949 |
ac_prev=prefix ;; |
| 1950 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1951 |
prefix=$ac_optarg ;; |
| 1952 |
|
| 1953 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1954 |
| --program-pre | --program-pr | --program-p) |
| 1955 |
ac_prev=program_prefix ;; |
| 1956 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1957 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1958 |
program_prefix=$ac_optarg ;; |
| 1959 |
|
| 1960 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1961 |
| --program-suf | --program-su | --program-s) |
| 1962 |
ac_prev=program_suffix ;; |
| 1963 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1964 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1965 |
program_suffix=$ac_optarg ;; |
| 1966 |
|
| 1967 |
-program-transform-name | --program-transform-name \ |
| 1968 |
| --program-transform-nam | --program-transform-na \ |
| 1969 |
| --program-transform-n | --program-transform- \ |
| 1970 |
| --program-transform | --program-transfor \ |
| 1971 |
| --program-transfo | --program-transf \ |
| 1972 |
| --program-trans | --program-tran \ |
| 1973 |
| --progr-tra | --program-tr | --program-t) |
| 1974 |
ac_prev=program_transform_name ;; |
| 1975 |
-program-transform-name=* | --program-transform-name=* \ |
| 1976 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1977 |
| --program-transform-n=* | --program-transform-=* \ |
| 1978 |
| --program-transform=* | --program-transfor=* \ |
| 1979 |
| --program-transfo=* | --program-transf=* \ |
| 1980 |
| --program-trans=* | --program-tran=* \ |
| 1981 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1982 |
program_transform_name=$ac_optarg ;; |
| 1983 |
|
| 1984 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1985 |
ac_prev=pdfdir ;; |
| 1986 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1987 |
pdfdir=$ac_optarg ;; |
| 1988 |
|
| 1989 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1990 |
ac_prev=psdir ;; |
| 1991 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1992 |
psdir=$ac_optarg ;; |
| 1993 |
|
| 1994 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1995 |
| -silent | --silent | --silen | --sile | --sil) |
| 1996 |
silent=yes ;; |
| 1997 |
|
| 1998 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1999 |
ac_prev=sbindir ;; |
| 2000 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 2001 |
| --sbi=* | --sb=*) |
| 2002 |
sbindir=$ac_optarg ;; |
| 2003 |
|
| 2004 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 2005 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 2006 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 2007 |
| --sha | --sh) |
| 2008 |
ac_prev=sharedstatedir ;; |
| 2009 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 2010 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 2011 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 2012 |
| --sha=* | --sh=*) |
| 2013 |
sharedstatedir=$ac_optarg ;; |
| 2014 |
|
| 2015 |
-site | --site | --sit) |
| 2016 |
ac_prev=site ;; |
| 2017 |
-site=* | --site=* | --sit=*) |
| 2018 |
site=$ac_optarg ;; |
| 2019 |
|
| 2020 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 2021 |
ac_prev=srcdir ;; |
| 2022 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 2023 |
srcdir=$ac_optarg ;; |
| 2024 |
|
| 2025 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 2026 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 2027 |
ac_prev=sysconfdir ;; |
| 2028 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 2029 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 2030 |
sysconfdir=$ac_optarg ;; |
| 2031 |
|
| 2032 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 2033 |
ac_prev=target_alias ;; |
| 2034 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 2035 |
target_alias=$ac_optarg ;; |
| 2036 |
|
| 2037 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 2038 |
verbose=yes ;; |
| 2039 |
|
| 2040 |
-version | --version | --versio | --versi | --vers | -V) |
| 2041 |
ac_init_version=: ;; |
| 2042 |
|
| 2043 |
-with-* | --with-*) |
| 2044 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 2045 |
# Reject names that are not valid shell variable names. |
| 2046 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 2047 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 2048 |
ac_useropt_orig=$ac_useropt |
| 2049 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 2050 |
case $ac_user_opts in |
| 2051 |
*" |
| 2052 |
"with_$ac_useropt" |
| 2053 |
"*) ;; |
| 2054 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 2055 |
ac_unrecognized_sep=', ';; |
| 2056 |
esac |
| 2057 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 2058 |
|
| 2059 |
-without-* | --without-*) |
| 2060 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 2061 |
# Reject names that are not valid shell variable names. |
| 2062 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 2063 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 2064 |
ac_useropt_orig=$ac_useropt |
| 2065 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 2066 |
case $ac_user_opts in |
| 2067 |
*" |
| 2068 |
"with_$ac_useropt" |
| 2069 |
"*) ;; |
| 2070 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 2071 |
ac_unrecognized_sep=', ';; |
| 2072 |
esac |
| 2073 |
eval with_$ac_useropt=no ;; |
| 2074 |
|
| 2075 |
--x) |
| 2076 |
# Obsolete; use --with-x. |
| 2077 |
with_x=yes ;; |
| 2078 |
|
| 2079 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 2080 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 2081 |
ac_prev=x_includes ;; |
| 2082 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 2083 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 2084 |
x_includes=$ac_optarg ;; |
| 2085 |
|
| 2086 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 2087 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 2088 |
ac_prev=x_libraries ;; |
| 2089 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 2090 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 2091 |
x_libraries=$ac_optarg ;; |
| 2092 |
|
| 2093 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 2094 |
Try \`$0 --help' for more information" |
| 2095 |
;; |
| 2096 |
|
| 2097 |
*=*) |
| 2098 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 2099 |
# Reject names that are not valid shell variable names. |
| 2100 |
case $ac_envvar in #( |
| 2101 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 2102 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 2103 |
esac |
| 2104 |
eval $ac_envvar=\$ac_optarg |
| 2105 |
export $ac_envvar ;; |
| 2106 |
|
| 2107 |
*) |
| 2108 |
# FIXME: should be removed in autoconf 3.0. |
| 2109 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 2110 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 2111 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 2112 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 2113 |
;; |
| 2114 |
|
| 2115 |
esac |
| 2116 |
done |
| 2117 |
|
| 2118 |
if test -n "$ac_prev"; then |
| 2119 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 2120 |
as_fn_error $? "missing argument to $ac_option" |
| 2121 |
fi |
| 2122 |
|
| 2123 |
if test -n "$ac_unrecognized_opts"; then |
| 2124 |
case $enable_option_checking in |
| 2125 |
no) ;; |
| 2126 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 2127 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 2128 |
esac |
| 2129 |
fi |
| 2130 |
|
| 2131 |
# Check all directory arguments for consistency. |
| 2132 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 2133 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 2134 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 2135 |
libdir localedir mandir |
| 2136 |
do |
| 2137 |
eval ac_val=\$$ac_var |
| 2138 |
# Remove trailing slashes. |
| 2139 |
case $ac_val in |
| 2140 |
*/ ) |
| 2141 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 2142 |
eval $ac_var=\$ac_val;; |
| 2143 |
esac |
| 2144 |
# Be sure to have absolute directory names. |
| 2145 |
case $ac_val in |
| 2146 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 2147 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 2148 |
esac |
| 2149 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 2150 |
done |
| 2151 |
|
| 2152 |
# There might be people who depend on the old broken behavior: `$host' |
| 2153 |
# used to hold the argument of --host etc. |
| 2154 |
# FIXME: To remove some day. |
| 2155 |
build=$build_alias |
| 2156 |
host=$host_alias |
| 2157 |
target=$target_alias |
| 2158 |
|
| 2159 |
# FIXME: To remove some day. |
| 2160 |
if test "x$host_alias" != x; then |
| 2161 |
if test "x$build_alias" = x; then |
| 2162 |
cross_compiling=maybe |
| 2163 |
elif test "x$build_alias" != "x$host_alias"; then |
| 2164 |
cross_compiling=yes |
| 2165 |
fi |
| 2166 |
fi |
| 2167 |
|
| 2168 |
ac_tool_prefix= |
| 2169 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 2170 |
|
| 2171 |
test "$silent" = yes && exec 6>/dev/null |
| 2172 |
|
| 2173 |
|
| 2174 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 2175 |
ac_ls_di=`ls -di .` && |
| 2176 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 2177 |
as_fn_error $? "working directory cannot be determined" |
| 2178 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 2179 |
as_fn_error $? "pwd does not report name of working directory" |
| 2180 |
|
| 2181 |
|
| 2182 |
# Find the source files, if location was not specified. |
| 2183 |
if test -z "$srcdir"; then |
| 2184 |
ac_srcdir_defaulted=yes |
| 2185 |
# Try the directory containing this script, then the parent directory. |
| 2186 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 2187 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 2188 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 2189 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 2190 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 2191 |
$as_echo X"$as_myself" | |
| 2192 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 2193 |
s//\1/ |
| 2194 |
q |
| 2195 |
} |
| 2196 |
/^X\(\/\/\)[^/].*/{ |
| 2197 |
s//\1/ |
| 2198 |
q |
| 2199 |
} |
| 2200 |
/^X\(\/\/\)$/{ |
| 2201 |
s//\1/ |
| 2202 |
q |
| 2203 |
} |
| 2204 |
/^X\(\/\).*/{ |
| 2205 |
s//\1/ |
| 2206 |
q |
| 2207 |
} |
| 2208 |
s/.*/./; q'` |
| 2209 |
srcdir=$ac_confdir |
| 2210 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 2211 |
srcdir=.. |
| 2212 |
fi |
| 2213 |
else |
| 2214 |
ac_srcdir_defaulted=no |
| 2215 |
fi |
| 2216 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 2217 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 2218 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 2219 |
fi |
| 2220 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 2221 |
ac_abs_confdir=`( |
| 2222 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 2223 |
pwd)` |
| 2224 |
# When building in place, set srcdir=. |
| 2225 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 2226 |
srcdir=. |
| 2227 |
fi |
| 2228 |
# Remove unnecessary trailing slashes from srcdir. |
| 2229 |
# Double slashes in file names in object file debugging info |
| 2230 |
# mess up M-x gdb in Emacs. |
| 2231 |
case $srcdir in |
| 2232 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 2233 |
esac |
| 2234 |
for ac_var in $ac_precious_vars; do |
| 2235 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 2236 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 2237 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 2238 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 2239 |
done |
| 2240 |
|
| 2241 |
# |
| 2242 |
# Report the --help message. |
| 2243 |
# |
| 2244 |
if test "$ac_init_help" = "long"; then |
| 2245 |
# Omit some internal or obsolete options to make the list less imposing. |
| 2246 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 2247 |
cat <<_ACEOF |
| 2248 |
\`configure' configures barcode 0.99 to adapt to many kinds of systems. |
| 2249 |
|
| 2250 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 2251 |
|
| 2252 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 2253 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 2254 |
|
| 2255 |
Defaults for the options are specified in brackets. |
| 2256 |
|
| 2257 |
Configuration: |
| 2258 |
-h, --help display this help and exit |
| 2259 |
--help=short display options specific to this package |
| 2260 |
--help=recursive display the short help of all the included packages |
| 2261 |
-V, --version display version information and exit |
| 2262 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 2263 |
--cache-file=FILE cache test results in FILE [disabled] |
| 2264 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 2265 |
-n, --no-create do not create output files |
| 2266 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 2267 |
|
| 2268 |
Installation directories: |
| 2269 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 2270 |
[$ac_default_prefix] |
| 2271 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 2272 |
[PREFIX] |
| 2273 |
|
| 2274 |
By default, \`make install' will install all the files in |
| 2275 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 2276 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 2277 |
for instance \`--prefix=\$HOME'. |
| 2278 |
|
| 2279 |
For better control, use the options below. |
| 2280 |
|
| 2281 |
Fine tuning of the installation directories: |
| 2282 |
--bindir=DIR user executables [EPREFIX/bin] |
| 2283 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 2284 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 2285 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 2286 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 2287 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 2288 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 2289 |
--includedir=DIR C header files [PREFIX/include] |
| 2290 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 2291 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 2292 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 2293 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 2294 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 2295 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 2296 |
--docdir=DIR documentation root [DATAROOTDIR/doc/barcode] |
| 2297 |
--htmldir=DIR html documentation [DOCDIR] |
| 2298 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 2299 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 2300 |
--psdir=DIR ps documentation [DOCDIR] |
| 2301 |
_ACEOF |
| 2302 |
|
| 2303 |
cat <<\_ACEOF |
| 2304 |
|
| 2305 |
Program names: |
| 2306 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 2307 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 2308 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 2309 |
|
| 2310 |
System types: |
| 2311 |
--build=BUILD configure for building on BUILD [guessed] |
| 2312 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 2313 |
--target=TARGET configure for building compilers for TARGET [HOST] |
| 2314 |
_ACEOF |
| 2315 |
fi |
| 2316 |
|
| 2317 |
if test -n "$ac_init_help"; then |
| 2318 |
case $ac_init_help in |
| 2319 |
short | recursive ) echo "Configuration of barcode 0.99:";; |
| 2320 |
esac |
| 2321 |
cat <<\_ACEOF |
| 2322 |
|
| 2323 |
Optional Features: |
| 2324 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 2325 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 2326 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 2327 |
--disable-dependency-tracking speeds up one-time build |
| 2328 |
--enable-dependency-tracking do not reject slow dependency extractors |
| 2329 |
--disable-largefile omit support for large files |
| 2330 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
| 2331 |
--enable-static[=PKGS] build static libraries [default=yes] |
| 2332 |
--enable-fast-install[=PKGS] |
| 2333 |
optimize for fast installation [default=yes] |
| 2334 |
--disable-libtool-lock avoid locking (might break parallel builds) |
| 2335 |
--disable-nls do not use Native Language Support |
| 2336 |
--disable-rpath do not hardcode runtime library paths |
| 2337 |
|
| 2338 |
Optional Packages: |
| 2339 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 2340 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 2341 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 2342 |
both] |
| 2343 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 2344 |
--with-sysroot=DIR Search for dependent libraries within DIR |
| 2345 |
(or the compiler's sysroot if not specified). |
| 2346 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 2347 |
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 2348 |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 2349 |
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 2350 |
--without-libintl-prefix don't search for libintl in includedir and libdir |
| 2351 |
|
| 2352 |
Some influential environment variables: |
| 2353 |
CC C compiler command |
| 2354 |
CFLAGS C compiler flags |
| 2355 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 2356 |
nonstandard directory <lib dir> |
| 2357 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 2358 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 2359 |
you have headers in a nonstandard directory <include dir> |
| 2360 |
CPP C preprocessor |
| 2361 |
|
| 2362 |
Use these variables to override the choices made by `configure' or to help |
| 2363 |
it to find libraries and programs with nonstandard names/locations. |
| 2364 |
|
| 2365 |
Report bugs to <[email protected]>. |
| 2366 |
_ACEOF |
| 2367 |
ac_status=$? |
| 2368 |
fi |
| 2369 |
|
| 2370 |
if test "$ac_init_help" = "recursive"; then |
| 2371 |
# If there are subdirs, report their specific --help. |
| 2372 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2373 |
test -d "$ac_dir" || |
| 2374 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2375 |
continue |
| 2376 |
ac_builddir=. |
| 2377 |
|
| 2378 |
case "$ac_dir" in |
| 2379 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2380 |
*) |
| 2381 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2382 |
# A ".." for each directory in $ac_dir_suffix. |
| 2383 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2384 |
case $ac_top_builddir_sub in |
| 2385 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2386 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2387 |
esac ;; |
| 2388 |
esac |
| 2389 |
ac_abs_top_builddir=$ac_pwd |
| 2390 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2391 |
# for backward compatibility: |
| 2392 |
ac_top_builddir=$ac_top_build_prefix |
| 2393 |
|
| 2394 |
case $srcdir in |
| 2395 |
.) # We are building in place. |
| 2396 |
ac_srcdir=. |
| 2397 |
ac_top_srcdir=$ac_top_builddir_sub |
| 2398 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 2399 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 2400 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 2401 |
ac_top_srcdir=$srcdir |
| 2402 |
ac_abs_top_srcdir=$srcdir ;; |
| 2403 |
*) # Relative name. |
| 2404 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2405 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2406 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2407 |
esac |
| 2408 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2409 |
|
| 2410 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 2411 |
# Check for guested configure. |
| 2412 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 2413 |
echo && |
| 2414 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2415 |
elif test -f "$ac_srcdir/configure"; then |
| 2416 |
echo && |
| 2417 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 2418 |
else |
| 2419 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2420 |
fi || ac_status=$? |
| 2421 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 2422 |
done |
| 2423 |
fi |
| 2424 |
|
| 2425 |
test -n "$ac_init_help" && exit $ac_status |
| 2426 |
if $ac_init_version; then |
| 2427 |
cat <<\_ACEOF |
| 2428 |
barcode configure 0.99 |
| 2429 |
generated by GNU Autoconf 2.69 |
| 2430 |
|
| 2431 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 2432 |
This configure script is free software; the Free Software Foundation |
| 2433 |
gives unlimited permission to copy, distribute and modify it. |
| 2434 |
_ACEOF |
| 2435 |
exit |
| 2436 |
fi |
| 2437 |
|
| 2438 |
## ------------------------ ## |
| 2439 |
## Autoconf initialization. ## |
| 2440 |
## ------------------------ ## |
| 2441 |
|
| 2442 |
# ac_fn_c_try_compile LINENO |
| 2443 |
# -------------------------- |
| 2444 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2445 |
ac_fn_c_try_compile () |
| 2446 |
{ |
| 2447 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2448 |
rm -f conftest.$ac_objext |
| 2449 |
if { { ac_try="$ac_compile" |
| 2450 |
case "(($ac_try" in |
| 2451 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2452 |
*) ac_try_echo=$ac_try;; |
| 2453 |
esac |
| 2454 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2455 |
$as_echo "$ac_try_echo"; } >&5 |
| 2456 |
(eval "$ac_compile") 2>conftest.err |
| 2457 |
ac_status=$? |
| 2458 |
if test -s conftest.err; then |
| 2459 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2460 |
cat conftest.er1 >&5 |
| 2461 |
mv -f conftest.er1 conftest.err |
| 2462 |
fi |
| 2463 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2464 |
test $ac_status = 0; } && { |
| 2465 |
test -z "$ac_c_werror_flag" || |
| 2466 |
test ! -s conftest.err |
| 2467 |
} && test -s conftest.$ac_objext; then : |
| 2468 |
ac_retval=0 |
| 2469 |
else |
| 2470 |
$as_echo "$as_me: failed program was:" >&5 |
| 2471 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2472 |
|
| 2473 |
ac_retval=1 |
| 2474 |
fi |
| 2475 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2476 |
as_fn_set_status $ac_retval |
| 2477 |
|
| 2478 |
} # ac_fn_c_try_compile |
| 2479 |
|
| 2480 |
# ac_fn_c_try_cpp LINENO |
| 2481 |
# ---------------------- |
| 2482 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2483 |
ac_fn_c_try_cpp () |
| 2484 |
{ |
| 2485 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2486 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2487 |
case "(($ac_try" in |
| 2488 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2489 |
*) ac_try_echo=$ac_try;; |
| 2490 |
esac |
| 2491 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2492 |
$as_echo "$ac_try_echo"; } >&5 |
| 2493 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2494 |
ac_status=$? |
| 2495 |
if test -s conftest.err; then |
| 2496 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2497 |
cat conftest.er1 >&5 |
| 2498 |
mv -f conftest.er1 conftest.err |
| 2499 |
fi |
| 2500 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2501 |
test $ac_status = 0; } > conftest.i && { |
| 2502 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2503 |
test ! -s conftest.err |
| 2504 |
}; then : |
| 2505 |
ac_retval=0 |
| 2506 |
else |
| 2507 |
$as_echo "$as_me: failed program was:" >&5 |
| 2508 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2509 |
|
| 2510 |
ac_retval=1 |
| 2511 |
fi |
| 2512 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2513 |
as_fn_set_status $ac_retval |
| 2514 |
|
| 2515 |
} # ac_fn_c_try_cpp |
| 2516 |
|
| 2517 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2518 |
# ------------------------------------------------------- |
| 2519 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2520 |
# the include files in INCLUDES and setting the cache variable VAR |
| 2521 |
# accordingly. |
| 2522 |
ac_fn_c_check_header_mongrel () |
| 2523 |
{ |
| 2524 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2525 |
if eval \${$3+:} false; then : |
| 2526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2527 |
$as_echo_n "checking for $2... " >&6; } |
| 2528 |
if eval \${$3+:} false; then : |
| 2529 |
$as_echo_n "(cached) " >&6 |
| 2530 |
fi |
| 2531 |
eval ac_res=\$$3 |
| 2532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2533 |
$as_echo "$ac_res" >&6; } |
| 2534 |
else |
| 2535 |
# Is the header compilable? |
| 2536 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2537 |
$as_echo_n "checking $2 usability... " >&6; } |
| 2538 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2539 |
/* end confdefs.h. */ |
| 2540 |
$4 |
| 2541 |
#include <$2> |
| 2542 |
_ACEOF |
| 2543 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2544 |
ac_header_compiler=yes |
| 2545 |
else |
| 2546 |
ac_header_compiler=no |
| 2547 |
fi |
| 2548 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2550 |
$as_echo "$ac_header_compiler" >&6; } |
| 2551 |
|
| 2552 |
# Is the header present? |
| 2553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2554 |
$as_echo_n "checking $2 presence... " >&6; } |
| 2555 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2556 |
/* end confdefs.h. */ |
| 2557 |
#include <$2> |
| 2558 |
_ACEOF |
| 2559 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 2560 |
ac_header_preproc=yes |
| 2561 |
else |
| 2562 |
ac_header_preproc=no |
| 2563 |
fi |
| 2564 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 2565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2566 |
$as_echo "$ac_header_preproc" >&6; } |
| 2567 |
|
| 2568 |
# So? What about this header? |
| 2569 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2570 |
yes:no: ) |
| 2571 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2572 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2574 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2575 |
;; |
| 2576 |
no:yes:* ) |
| 2577 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2578 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2580 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2581 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2582 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2584 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2585 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2586 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2587 |
( $as_echo "## ---------------------------------- ## |
| 2588 |
## Report this to [email protected] ## |
| 2589 |
## ---------------------------------- ##" |
| 2590 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2591 |
;; |
| 2592 |
esac |
| 2593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2594 |
$as_echo_n "checking for $2... " >&6; } |
| 2595 |
if eval \${$3+:} false; then : |
| 2596 |
$as_echo_n "(cached) " >&6 |
| 2597 |
else |
| 2598 |
eval "$3=\$ac_header_compiler" |
| 2599 |
fi |
| 2600 |
eval ac_res=\$$3 |
| 2601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2602 |
$as_echo "$ac_res" >&6; } |
| 2603 |
fi |
| 2604 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2605 |
|
| 2606 |
} # ac_fn_c_check_header_mongrel |
| 2607 |
|
| 2608 |
# ac_fn_c_try_run LINENO |
| 2609 |
# ---------------------- |
| 2610 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2611 |
# that executables *can* be run. |
| 2612 |
ac_fn_c_try_run () |
| 2613 |
{ |
| 2614 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2615 |
if { { ac_try="$ac_link" |
| 2616 |
case "(($ac_try" in |
| 2617 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2618 |
*) ac_try_echo=$ac_try;; |
| 2619 |
esac |
| 2620 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2621 |
$as_echo "$ac_try_echo"; } >&5 |
| 2622 |
(eval "$ac_link") 2>&5 |
| 2623 |
ac_status=$? |
| 2624 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2625 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2626 |
{ { case "(($ac_try" in |
| 2627 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2628 |
*) ac_try_echo=$ac_try;; |
| 2629 |
esac |
| 2630 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2631 |
$as_echo "$ac_try_echo"; } >&5 |
| 2632 |
(eval "$ac_try") 2>&5 |
| 2633 |
ac_status=$? |
| 2634 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2635 |
test $ac_status = 0; }; }; then : |
| 2636 |
ac_retval=0 |
| 2637 |
else |
| 2638 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2639 |
$as_echo "$as_me: failed program was:" >&5 |
| 2640 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2641 |
|
| 2642 |
ac_retval=$ac_status |
| 2643 |
fi |
| 2644 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2645 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2646 |
as_fn_set_status $ac_retval |
| 2647 |
|
| 2648 |
} # ac_fn_c_try_run |
| 2649 |
|
| 2650 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2651 |
# ------------------------------------------------------- |
| 2652 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 2653 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 2654 |
ac_fn_c_check_header_compile () |
| 2655 |
{ |
| 2656 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2657 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2658 |
$as_echo_n "checking for $2... " >&6; } |
| 2659 |
if eval \${$3+:} false; then : |
| 2660 |
$as_echo_n "(cached) " >&6 |
| 2661 |
else |
| 2662 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2663 |
/* end confdefs.h. */ |
| 2664 |
$4 |
| 2665 |
#include <$2> |
| 2666 |
_ACEOF |
| 2667 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2668 |
eval "$3=yes" |
| 2669 |
else |
| 2670 |
eval "$3=no" |
| 2671 |
fi |
| 2672 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2673 |
fi |
| 2674 |
eval ac_res=\$$3 |
| 2675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2676 |
$as_echo "$ac_res" >&6; } |
| 2677 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2678 |
|
| 2679 |
} # ac_fn_c_check_header_compile |
| 2680 |
|
| 2681 |
# ac_fn_c_try_link LINENO |
| 2682 |
# ----------------------- |
| 2683 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2684 |
ac_fn_c_try_link () |
| 2685 |
{ |
| 2686 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2687 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2688 |
if { { ac_try="$ac_link" |
| 2689 |
case "(($ac_try" in |
| 2690 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2691 |
*) ac_try_echo=$ac_try;; |
| 2692 |
esac |
| 2693 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2694 |
$as_echo "$ac_try_echo"; } >&5 |
| 2695 |
(eval "$ac_link") 2>conftest.err |
| 2696 |
ac_status=$? |
| 2697 |
if test -s conftest.err; then |
| 2698 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2699 |
cat conftest.er1 >&5 |
| 2700 |
mv -f conftest.er1 conftest.err |
| 2701 |
fi |
| 2702 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2703 |
test $ac_status = 0; } && { |
| 2704 |
test -z "$ac_c_werror_flag" || |
| 2705 |
test ! -s conftest.err |
| 2706 |
} && test -s conftest$ac_exeext && { |
| 2707 |
test "$cross_compiling" = yes || |
| 2708 |
test -x conftest$ac_exeext |
| 2709 |
}; then : |
| 2710 |
ac_retval=0 |
| 2711 |
else |
| 2712 |
$as_echo "$as_me: failed program was:" >&5 |
| 2713 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2714 |
|
| 2715 |
ac_retval=1 |
| 2716 |
fi |
| 2717 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2718 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2719 |
# interfere with the next link command; also delete a directory that is |
| 2720 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2721 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2722 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2723 |
as_fn_set_status $ac_retval |
| 2724 |
|
| 2725 |
} # ac_fn_c_try_link |
| 2726 |
|
| 2727 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 2728 |
# ---------------------------------- |
| 2729 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2730 |
ac_fn_c_check_func () |
| 2731 |
{ |
| 2732 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2734 |
$as_echo_n "checking for $2... " >&6; } |
| 2735 |
if eval \${$3+:} false; then : |
| 2736 |
$as_echo_n "(cached) " >&6 |
| 2737 |
else |
| 2738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2739 |
/* end confdefs.h. */ |
| 2740 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2741 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2742 |
#define $2 innocuous_$2 |
| 2743 |
|
| 2744 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2745 |
which can conflict with char $2 (); below. |
| 2746 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2747 |
<limits.h> exists even on freestanding compilers. */ |
| 2748 |
|
| 2749 |
#ifdef __STDC__ |
| 2750 |
# include <limits.h> |
| 2751 |
#else |
| 2752 |
# include <assert.h> |
| 2753 |
#endif |
| 2754 |
|
| 2755 |
#undef $2 |
| 2756 |
|
| 2757 |
/* Override any GCC internal prototype to avoid an error. |
| 2758 |
Use char because int might match the return type of a GCC |
| 2759 |
builtin and then its argument prototype would still apply. */ |
| 2760 |
#ifdef __cplusplus |
| 2761 |
extern "C" |
| 2762 |
#endif |
| 2763 |
char $2 (); |
| 2764 |
/* The GNU C library defines this for functions which it implements |
| 2765 |
to always fail with ENOSYS. Some functions are actually named |
| 2766 |
something starting with __ and the normal name is an alias. */ |
| 2767 |
#if defined __stub_$2 || defined __stub___$2 |
| 2768 |
choke me |
| 2769 |
#endif |
| 2770 |
|
| 2771 |
int |
| 2772 |
main () |
| 2773 |
{ |
| 2774 |
return $2 (); |
| 2775 |
; |
| 2776 |
return 0; |
| 2777 |
} |
| 2778 |
_ACEOF |
| 2779 |
if ac_fn_c_try_link "$LINENO"; then : |
| 2780 |
eval "$3=yes" |
| 2781 |
else |
| 2782 |
eval "$3=no" |
| 2783 |
fi |
| 2784 |
rm -f core conftest.err conftest.$ac_objext \ |
| 2785 |
conftest$ac_exeext conftest.$ac_ext |
| 2786 |
fi |
| 2787 |
eval ac_res=\$$3 |
| 2788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2789 |
$as_echo "$ac_res" >&6; } |
| 2790 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2791 |
|
| 2792 |
} # ac_fn_c_check_func |
| 2793 |
|
| 2794 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2795 |
# ------------------------------------------- |
| 2796 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2797 |
# variable VAR accordingly. |
| 2798 |
ac_fn_c_check_type () |
| 2799 |
{ |
| 2800 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2802 |
$as_echo_n "checking for $2... " >&6; } |
| 2803 |
if eval \${$3+:} false; then : |
| 2804 |
$as_echo_n "(cached) " >&6 |
| 2805 |
else |
| 2806 |
eval "$3=no" |
| 2807 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2808 |
/* end confdefs.h. */ |
| 2809 |
$4 |
| 2810 |
int |
| 2811 |
main () |
| 2812 |
{ |
| 2813 |
if (sizeof ($2)) |
| 2814 |
return 0; |
| 2815 |
; |
| 2816 |
return 0; |
| 2817 |
} |
| 2818 |
_ACEOF |
| 2819 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2821 |
/* end confdefs.h. */ |
| 2822 |
$4 |
| 2823 |
int |
| 2824 |
main () |
| 2825 |
{ |
| 2826 |
if (sizeof (($2))) |
| 2827 |
return 0; |
| 2828 |
; |
| 2829 |
return 0; |
| 2830 |
} |
| 2831 |
_ACEOF |
| 2832 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2833 |
|
| 2834 |
else |
| 2835 |
eval "$3=yes" |
| 2836 |
fi |
| 2837 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2838 |
fi |
| 2839 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2840 |
fi |
| 2841 |
eval ac_res=\$$3 |
| 2842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2843 |
$as_echo "$ac_res" >&6; } |
| 2844 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2845 |
|
| 2846 |
} # ac_fn_c_check_type |
| 2847 |
|
| 2848 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2849 |
# -------------------------------------------- |
| 2850 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2851 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2852 |
# computed |
| 2853 |
ac_fn_c_compute_int () |
| 2854 |
{ |
| 2855 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2856 |
if test "$cross_compiling" = yes; then |
| 2857 |
# Depending upon the size, compute the lo and hi bounds. |
| 2858 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2859 |
/* end confdefs.h. */ |
| 2860 |
$4 |
| 2861 |
int |
| 2862 |
main () |
| 2863 |
{ |
| 2864 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2865 |
test_array [0] = 0; |
| 2866 |
return test_array [0]; |
| 2867 |
|
| 2868 |
; |
| 2869 |
return 0; |
| 2870 |
} |
| 2871 |
_ACEOF |
| 2872 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2873 |
ac_lo=0 ac_mid=0 |
| 2874 |
while :; do |
| 2875 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2876 |
/* end confdefs.h. */ |
| 2877 |
$4 |
| 2878 |
int |
| 2879 |
main () |
| 2880 |
{ |
| 2881 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2882 |
test_array [0] = 0; |
| 2883 |
return test_array [0]; |
| 2884 |
|
| 2885 |
; |
| 2886 |
return 0; |
| 2887 |
} |
| 2888 |
_ACEOF |
| 2889 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2890 |
ac_hi=$ac_mid; break |
| 2891 |
else |
| 2892 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2893 |
if test $ac_lo -le $ac_mid; then |
| 2894 |
ac_lo= ac_hi= |
| 2895 |
break |
| 2896 |
fi |
| 2897 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2898 |
fi |
| 2899 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2900 |
done |
| 2901 |
else |
| 2902 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2903 |
/* end confdefs.h. */ |
| 2904 |
$4 |
| 2905 |
int |
| 2906 |
main () |
| 2907 |
{ |
| 2908 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2909 |
test_array [0] = 0; |
| 2910 |
return test_array [0]; |
| 2911 |
|
| 2912 |
; |
| 2913 |
return 0; |
| 2914 |
} |
| 2915 |
_ACEOF |
| 2916 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2917 |
ac_hi=-1 ac_mid=-1 |
| 2918 |
while :; do |
| 2919 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2920 |
/* end confdefs.h. */ |
| 2921 |
$4 |
| 2922 |
int |
| 2923 |
main () |
| 2924 |
{ |
| 2925 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2926 |
test_array [0] = 0; |
| 2927 |
return test_array [0]; |
| 2928 |
|
| 2929 |
; |
| 2930 |
return 0; |
| 2931 |
} |
| 2932 |
_ACEOF |
| 2933 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2934 |
ac_lo=$ac_mid; break |
| 2935 |
else |
| 2936 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2937 |
if test $ac_mid -le $ac_hi; then |
| 2938 |
ac_lo= ac_hi= |
| 2939 |
break |
| 2940 |
fi |
| 2941 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2942 |
fi |
| 2943 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2944 |
done |
| 2945 |
else |
| 2946 |
ac_lo= ac_hi= |
| 2947 |
fi |
| 2948 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2949 |
fi |
| 2950 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2951 |
# Binary search between lo and hi bounds. |
| 2952 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2953 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2954 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2955 |
/* end confdefs.h. */ |
| 2956 |
$4 |
| 2957 |
int |
| 2958 |
main () |
| 2959 |
{ |
| 2960 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2961 |
test_array [0] = 0; |
| 2962 |
return test_array [0]; |
| 2963 |
|
| 2964 |
; |
| 2965 |
return 0; |
| 2966 |
} |
| 2967 |
_ACEOF |
| 2968 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2969 |
ac_hi=$ac_mid |
| 2970 |
else |
| 2971 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2972 |
fi |
| 2973 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2974 |
done |
| 2975 |
case $ac_lo in #(( |
| 2976 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2977 |
'') ac_retval=1 ;; |
| 2978 |
esac |
| 2979 |
else |
| 2980 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2981 |
/* end confdefs.h. */ |
| 2982 |
$4 |
| 2983 |
static long int longval () { return $2; } |
| 2984 |
static unsigned long int ulongval () { return $2; } |
| 2985 |
#include <stdio.h> |
| 2986 |
#include <stdlib.h> |
| 2987 |
int |
| 2988 |
main () |
| 2989 |
{ |
| 2990 |
|
| 2991 |
FILE *f = fopen ("conftest.val", "w"); |
| 2992 |
if (! f) |
| 2993 |
return 1; |
| 2994 |
if (($2) < 0) |
| 2995 |
{ |
| 2996 |
long int i = longval (); |
| 2997 |
if (i != ($2)) |
| 2998 |
return 1; |
| 2999 |
fprintf (f, "%ld", i); |
| 3000 |
} |
| 3001 |
else |
| 3002 |
{ |
| 3003 |
unsigned long int i = ulongval (); |
| 3004 |
if (i != ($2)) |
| 3005 |
return 1; |
| 3006 |
fprintf (f, "%lu", i); |
| 3007 |
} |
| 3008 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 3009 |
on some platforms. */ |
| 3010 |
return ferror (f) || fclose (f) != 0; |
| 3011 |
|
| 3012 |
; |
| 3013 |
return 0; |
| 3014 |
} |
| 3015 |
_ACEOF |
| 3016 |
if ac_fn_c_try_run "$LINENO"; then : |
| 3017 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 3018 |
else |
| 3019 |
ac_retval=1 |
| 3020 |
fi |
| 3021 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3022 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3023 |
rm -f conftest.val |
| 3024 |
|
| 3025 |
fi |
| 3026 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3027 |
as_fn_set_status $ac_retval |
| 3028 |
|
| 3029 |
} # ac_fn_c_compute_int |
| 3030 |
|
| 3031 |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 3032 |
# --------------------------------------------- |
| 3033 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 3034 |
# accordingly. |
| 3035 |
ac_fn_c_check_decl () |
| 3036 |
{ |
| 3037 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3038 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 3039 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 3040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 3041 |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 3042 |
if eval \${$3+:} false; then : |
| 3043 |
$as_echo_n "(cached) " >&6 |
| 3044 |
else |
| 3045 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3046 |
/* end confdefs.h. */ |
| 3047 |
$4 |
| 3048 |
int |
| 3049 |
main () |
| 3050 |
{ |
| 3051 |
#ifndef $as_decl_name |
| 3052 |
#ifdef __cplusplus |
| 3053 |
(void) $as_decl_use; |
| 3054 |
#else |
| 3055 |
(void) $as_decl_name; |
| 3056 |
#endif |
| 3057 |
#endif |
| 3058 |
|
| 3059 |
; |
| 3060 |
return 0; |
| 3061 |
} |
| 3062 |
_ACEOF |
| 3063 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3064 |
eval "$3=yes" |
| 3065 |
else |
| 3066 |
eval "$3=no" |
| 3067 |
fi |
| 3068 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3069 |
fi |
| 3070 |
eval ac_res=\$$3 |
| 3071 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3072 |
$as_echo "$ac_res" >&6; } |
| 3073 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3074 |
|
| 3075 |
} # ac_fn_c_check_decl |
| 3076 |
cat >config.log <<_ACEOF |
| 3077 |
This file contains any messages produced by compilers while |
| 3078 |
running configure, to aid debugging if configure makes a mistake. |
| 3079 |
|
| 3080 |
It was created by barcode $as_me 0.99, which was |
| 3081 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 3082 |
|
| 3083 |
$ $0 $@ |
| 3084 |
|
| 3085 |
_ACEOF |
| 3086 |
exec 5>>config.log |
| 3087 |
{ |
| 3088 |
cat <<_ASUNAME |
| 3089 |
## --------- ## |
| 3090 |
## Platform. ## |
| 3091 |
## --------- ## |
| 3092 |
|
| 3093 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3094 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 3095 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 3096 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 3097 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 3098 |
|
| 3099 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 3100 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 3101 |
|
| 3102 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 3103 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 3104 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 3105 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 3106 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 3107 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 3108 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 3109 |
|
| 3110 |
_ASUNAME |
| 3111 |
|
| 3112 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3113 |
for as_dir in $PATH |
| 3114 |
do |
| 3115 |
IFS=$as_save_IFS |
| 3116 |
test -z "$as_dir" && as_dir=. |
| 3117 |
$as_echo "PATH: $as_dir" |
| 3118 |
done |
| 3119 |
IFS=$as_save_IFS |
| 3120 |
|
| 3121 |
} >&5 |
| 3122 |
|
| 3123 |
cat >&5 <<_ACEOF |
| 3124 |
|
| 3125 |
|
| 3126 |
## ----------- ## |
| 3127 |
## Core tests. ## |
| 3128 |
## ----------- ## |
| 3129 |
|
| 3130 |
_ACEOF |
| 3131 |
|
| 3132 |
|
| 3133 |
# Keep a trace of the command line. |
| 3134 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 3135 |
# Strip out --silent because we don't want to record it for future runs. |
| 3136 |
# Also quote any args containing shell meta-characters. |
| 3137 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 3138 |
ac_configure_args= |
| 3139 |
ac_configure_args0= |
| 3140 |
ac_configure_args1= |
| 3141 |
ac_must_keep_next=false |
| 3142 |
for ac_pass in 1 2 |
| 3143 |
do |
| 3144 |
for ac_arg |
| 3145 |
do |
| 3146 |
case $ac_arg in |
| 3147 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3148 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3149 |
| -silent | --silent | --silen | --sile | --sil) |
| 3150 |
continue ;; |
| 3151 |
*\'*) |
| 3152 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3153 |
esac |
| 3154 |
case $ac_pass in |
| 3155 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 3156 |
2) |
| 3157 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 3158 |
if test $ac_must_keep_next = true; then |
| 3159 |
ac_must_keep_next=false # Got value, back to normal. |
| 3160 |
else |
| 3161 |
case $ac_arg in |
| 3162 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3163 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3164 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3165 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 3166 |
case "$ac_configure_args0 " in |
| 3167 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3168 |
esac |
| 3169 |
;; |
| 3170 |
-* ) ac_must_keep_next=true ;; |
| 3171 |
esac |
| 3172 |
fi |
| 3173 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 3174 |
;; |
| 3175 |
esac |
| 3176 |
done |
| 3177 |
done |
| 3178 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 3179 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 3180 |
|
| 3181 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 3182 |
# config.log. We remove comments because anyway the quotes in there |
| 3183 |
# would cause problems or look ugly. |
| 3184 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3185 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3186 |
trap 'exit_status=$? |
| 3187 |
# Save into config.log some information that might help in debugging. |
| 3188 |
{ |
| 3189 |
echo |
| 3190 |
|
| 3191 |
$as_echo "## ---------------- ## |
| 3192 |
## Cache variables. ## |
| 3193 |
## ---------------- ##" |
| 3194 |
echo |
| 3195 |
# The following way of writing the cache mishandles newlines in values, |
| 3196 |
( |
| 3197 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3198 |
eval ac_val=\$$ac_var |
| 3199 |
case $ac_val in #( |
| 3200 |
*${as_nl}*) |
| 3201 |
case $ac_var in #( |
| 3202 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3203 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3204 |
esac |
| 3205 |
case $ac_var in #( |
| 3206 |
_ | IFS | as_nl) ;; #( |
| 3207 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 3208 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 3209 |
esac ;; |
| 3210 |
esac |
| 3211 |
done |
| 3212 |
(set) 2>&1 | |
| 3213 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3214 |
*${as_nl}ac_space=\ *) |
| 3215 |
sed -n \ |
| 3216 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 3217 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3218 |
;; #( |
| 3219 |
*) |
| 3220 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3221 |
;; |
| 3222 |
esac | |
| 3223 |
sort |
| 3224 |
) |
| 3225 |
echo |
| 3226 |
|
| 3227 |
$as_echo "## ----------------- ## |
| 3228 |
## Output variables. ## |
| 3229 |
## ----------------- ##" |
| 3230 |
echo |
| 3231 |
for ac_var in $ac_subst_vars |
| 3232 |
do |
| 3233 |
eval ac_val=\$$ac_var |
| 3234 |
case $ac_val in |
| 3235 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3236 |
esac |
| 3237 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 3238 |
done | sort |
| 3239 |
echo |
| 3240 |
|
| 3241 |
if test -n "$ac_subst_files"; then |
| 3242 |
$as_echo "## ------------------- ## |
| 3243 |
## File substitutions. ## |
| 3244 |
## ------------------- ##" |
| 3245 |
echo |
| 3246 |
for ac_var in $ac_subst_files |
| 3247 |
do |
| 3248 |
eval ac_val=\$$ac_var |
| 3249 |
case $ac_val in |
| 3250 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3251 |
esac |
| 3252 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 3253 |
done | sort |
| 3254 |
echo |
| 3255 |
fi |
| 3256 |
|
| 3257 |
if test -s confdefs.h; then |
| 3258 |
$as_echo "## ----------- ## |
| 3259 |
## confdefs.h. ## |
| 3260 |
## ----------- ##" |
| 3261 |
echo |
| 3262 |
cat confdefs.h |
| 3263 |
echo |
| 3264 |
fi |
| 3265 |
test "$ac_signal" != 0 && |
| 3266 |
$as_echo "$as_me: caught signal $ac_signal" |
| 3267 |
$as_echo "$as_me: exit $exit_status" |
| 3268 |
} >&5 |
| 3269 |
rm -f core *.core core.conftest.* && |
| 3270 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3271 |
exit $exit_status |
| 3272 |
' 0 |
| 3273 |
for ac_signal in 1 2 13 15; do |
| 3274 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 3275 |
done |
| 3276 |
ac_signal=0 |
| 3277 |
|
| 3278 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3279 |
rm -f -r conftest* confdefs.h |
| 3280 |
|
| 3281 |
$as_echo "/* confdefs.h */" > confdefs.h |
| 3282 |
|
| 3283 |
# Predefined preprocessor variables. |
| 3284 |
|
| 3285 |
cat >>confdefs.h <<_ACEOF |
| 3286 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 3287 |
_ACEOF |
| 3288 |
|
| 3289 |
cat >>confdefs.h <<_ACEOF |
| 3290 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3291 |
_ACEOF |
| 3292 |
|
| 3293 |
cat >>confdefs.h <<_ACEOF |
| 3294 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3295 |
_ACEOF |
| 3296 |
|
| 3297 |
cat >>confdefs.h <<_ACEOF |
| 3298 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 3299 |
_ACEOF |
| 3300 |
|
| 3301 |
cat >>confdefs.h <<_ACEOF |
| 3302 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3303 |
_ACEOF |
| 3304 |
|
| 3305 |
cat >>confdefs.h <<_ACEOF |
| 3306 |
#define PACKAGE_URL "$PACKAGE_URL" |
| 3307 |
_ACEOF |
| 3308 |
|
| 3309 |
|
| 3310 |
# Let the site file select an alternate cache file if it wants to. |
| 3311 |
# Prefer an explicitly selected file to automatically selected ones. |
| 3312 |
ac_site_file1=NONE |
| 3313 |
ac_site_file2=NONE |
| 3314 |
if test -n "$CONFIG_SITE"; then |
| 3315 |
# We do not want a PATH search for config.site. |
| 3316 |
case $CONFIG_SITE in #(( |
| 3317 |
-*) ac_site_file1=./$CONFIG_SITE;; |
| 3318 |
*/*) ac_site_file1=$CONFIG_SITE;; |
| 3319 |
*) ac_site_file1=./$CONFIG_SITE;; |
| 3320 |
esac |
| 3321 |
elif test "x$prefix" != xNONE; then |
| 3322 |
ac_site_file1=$prefix/share/config.site |
| 3323 |
ac_site_file2=$prefix/etc/config.site |
| 3324 |
else |
| 3325 |
ac_site_file1=$ac_default_prefix/share/config.site |
| 3326 |
ac_site_file2=$ac_default_prefix/etc/config.site |
| 3327 |
fi |
| 3328 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3329 |
do |
| 3330 |
test "x$ac_site_file" = xNONE && continue |
| 3331 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 3332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 3333 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3334 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 3335 |
. "$ac_site_file" \ |
| 3336 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3337 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3338 |
as_fn_error $? "failed to load site script $ac_site_file |
| 3339 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3340 |
fi |
| 3341 |
done |
| 3342 |
|
| 3343 |
if test -r "$cache_file"; then |
| 3344 |
# Some versions of bash will fail to source /dev/null (special files |
| 3345 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3346 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 3347 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 3348 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3349 |
case $cache_file in |
| 3350 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3351 |
*) . "./$cache_file";; |
| 3352 |
esac |
| 3353 |
fi |
| 3354 |
else |
| 3355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 3356 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3357 |
>$cache_file |
| 3358 |
fi |
| 3359 |
|
| 3360 |
gt_needs="$gt_needs need-ngettext" |
| 3361 |
as_fn_append ac_func_list " _set_invalid_parameter_handler" |
| 3362 |
as_fn_append ac_header_list " sys/socket.h" |
| 3363 |
as_fn_append ac_header_list " unistd.h" |
| 3364 |
as_fn_append ac_func_list " symlink" |
| 3365 |
as_fn_append ac_header_list " sys/stat.h" |
| 3366 |
gl_getopt_required=GNU |
| 3367 |
as_fn_append ac_header_list " getopt.h" |
| 3368 |
as_fn_append ac_header_list " math.h" |
| 3369 |
as_fn_append ac_header_list " sys/mman.h" |
| 3370 |
as_fn_append ac_func_list " mprotect" |
| 3371 |
as_fn_append ac_func_list " lstat" |
| 3372 |
as_fn_append ac_header_list " sys/param.h" |
| 3373 |
as_fn_append ac_header_list " search.h" |
| 3374 |
as_fn_append ac_func_list " snprintf" |
| 3375 |
as_fn_append ac_header_list " wchar.h" |
| 3376 |
as_fn_append ac_header_list " stdint.h" |
| 3377 |
as_fn_append ac_func_list " strdup" |
| 3378 |
as_fn_append ac_header_list " sys/time.h" |
| 3379 |
as_fn_append ac_func_list " vasnprintf" |
| 3380 |
as_fn_append ac_header_list " features.h" |
| 3381 |
# Check that the precious variables saved in the cache have kept the same |
| 3382 |
# value. |
| 3383 |
ac_cache_corrupted=false |
| 3384 |
for ac_var in $ac_precious_vars; do |
| 3385 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3386 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 3387 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3388 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 3389 |
case $ac_old_set,$ac_new_set in |
| 3390 |
set,) |
| 3391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3392 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3393 |
ac_cache_corrupted=: ;; |
| 3394 |
,set) |
| 3395 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3396 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3397 |
ac_cache_corrupted=: ;; |
| 3398 |
,);; |
| 3399 |
*) |
| 3400 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3401 |
# differences in whitespace do not lead to failure. |
| 3402 |
ac_old_val_w=`echo x $ac_old_val` |
| 3403 |
ac_new_val_w=`echo x $ac_new_val` |
| 3404 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3406 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3407 |
ac_cache_corrupted=: |
| 3408 |
else |
| 3409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3410 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3411 |
eval $ac_var=\$ac_old_val |
| 3412 |
fi |
| 3413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3414 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3416 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3417 |
fi;; |
| 3418 |
esac |
| 3419 |
# Pass precious variables to config.status. |
| 3420 |
if test "$ac_new_set" = set; then |
| 3421 |
case $ac_new_val in |
| 3422 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3423 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 3424 |
esac |
| 3425 |
case " $ac_configure_args " in |
| 3426 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3427 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3428 |
esac |
| 3429 |
fi |
| 3430 |
done |
| 3431 |
if $ac_cache_corrupted; then |
| 3432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3433 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3434 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3435 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3436 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 3437 |
fi |
| 3438 |
## -------------------- ## |
| 3439 |
## Main body of script. ## |
| 3440 |
## -------------------- ## |
| 3441 |
|
| 3442 |
ac_ext=c |
| 3443 |
ac_cpp='$CPP $CPPFLAGS' |
| 3444 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3445 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3446 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3447 |
|
| 3448 |
|
| 3449 |
|
| 3450 |
|
| 3451 |
ac_aux_dir= |
| 3452 |
for ac_dir in build-aux "$srcdir"/build-aux; do |
| 3453 |
if test -f "$ac_dir/install-sh"; then |
| 3454 |
ac_aux_dir=$ac_dir |
| 3455 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3456 |
break |
| 3457 |
elif test -f "$ac_dir/install.sh"; then |
| 3458 |
ac_aux_dir=$ac_dir |
| 3459 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3460 |
break |
| 3461 |
elif test -f "$ac_dir/shtool"; then |
| 3462 |
ac_aux_dir=$ac_dir |
| 3463 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3464 |
break |
| 3465 |
fi |
| 3466 |
done |
| 3467 |
if test -z "$ac_aux_dir"; then |
| 3468 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 |
| 3469 |
fi |
| 3470 |
|
| 3471 |
# These three variables are undocumented and unsupported, |
| 3472 |
# and are intended to be withdrawn in a future Autoconf release. |
| 3473 |
# They can cause serious problems if a builder's source tree is in a directory |
| 3474 |
# whose full name contains unusual characters. |
| 3475 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3476 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3477 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3478 |
|
| 3479 |
|
| 3480 |
am__api_version='1.11' |
| 3481 |
|
| 3482 |
# Find a good install program. We prefer a C program (faster), |
| 3483 |
# so one script is as good as another. But avoid the broken or |
| 3484 |
# incompatible versions: |
| 3485 |
# SysV /etc/install, /usr/sbin/install |
| 3486 |
# SunOS /usr/etc/install |
| 3487 |
# IRIX /sbin/install |
| 3488 |
# AIX /bin/install |
| 3489 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3490 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3491 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3492 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3493 |
# OS/2's system install, which has a completely different semantic |
| 3494 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 3495 |
# Reject install programs that cannot install multiple files. |
| 3496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3497 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3498 |
if test -z "$INSTALL"; then |
| 3499 |
if ${ac_cv_path_install+:} false; then : |
| 3500 |
$as_echo_n "(cached) " >&6 |
| 3501 |
else |
| 3502 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3503 |
for as_dir in $PATH |
| 3504 |
do |
| 3505 |
IFS=$as_save_IFS |
| 3506 |
test -z "$as_dir" && as_dir=. |
| 3507 |
# Account for people who put trailing slashes in PATH elements. |
| 3508 |
case $as_dir/ in #(( |
| 3509 |
./ | .// | /[cC]/* | \ |
| 3510 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3511 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3512 |
/usr/ucb/* ) ;; |
| 3513 |
*) |
| 3514 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 3515 |
# Don't use installbsd from OSF since it installs stuff as root |
| 3516 |
# by default. |
| 3517 |
for ac_prog in ginstall scoinst install; do |
| 3518 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3519 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3520 |
if test $ac_prog = install && |
| 3521 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3522 |
# AIX install. It has an incompatible calling convention. |
| 3523 |
: |
| 3524 |
elif test $ac_prog = install && |
| 3525 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3526 |
# program-specific install script used by HP pwplus--don't use. |
| 3527 |
: |
| 3528 |
else |
| 3529 |
rm -rf conftest.one conftest.two conftest.dir |
| 3530 |
echo one > conftest.one |
| 3531 |
echo two > conftest.two |
| 3532 |
mkdir conftest.dir |
| 3533 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3534 |
test -s conftest.one && test -s conftest.two && |
| 3535 |
test -s conftest.dir/conftest.one && |
| 3536 |
test -s conftest.dir/conftest.two |
| 3537 |
then |
| 3538 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3539 |
break 3 |
| 3540 |
fi |
| 3541 |
fi |
| 3542 |
fi |
| 3543 |
done |
| 3544 |
done |
| 3545 |
;; |
| 3546 |
esac |
| 3547 |
|
| 3548 |
done |
| 3549 |
IFS=$as_save_IFS |
| 3550 |
|
| 3551 |
rm -rf conftest.one conftest.two conftest.dir |
| 3552 |
|
| 3553 |
fi |
| 3554 |
if test "${ac_cv_path_install+set}" = set; then |
| 3555 |
INSTALL=$ac_cv_path_install |
| 3556 |
else |
| 3557 |
# As a last resort, use the slow shell script. Don't cache a |
| 3558 |
# value for INSTALL within a source directory, because that will |
| 3559 |
# break other packages using the cache if that directory is |
| 3560 |
# removed, or if the value is a relative name. |
| 3561 |
INSTALL=$ac_install_sh |
| 3562 |
fi |
| 3563 |
fi |
| 3564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3565 |
$as_echo "$INSTALL" >&6; } |
| 3566 |
|
| 3567 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3568 |
# It thinks the first close brace ends the variable substitution. |
| 3569 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3570 |
|
| 3571 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3572 |
|
| 3573 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3574 |
|
| 3575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3576 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
| 3577 |
# Just in case |
| 3578 |
sleep 1 |
| 3579 |
echo timestamp > conftest.file |
| 3580 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 3581 |
# name. Accept space and tab only in the latter. |
| 3582 |
am_lf=' |
| 3583 |
' |
| 3584 |
case `pwd` in |
| 3585 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 3586 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3587 |
esac |
| 3588 |
case $srcdir in |
| 3589 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3590 |
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 3591 |
esac |
| 3592 |
|
| 3593 |
# Do `set' in a subshell so we don't clobber the current shell's |
| 3594 |
# arguments. Must try -L first in case configure is actually a |
| 3595 |
# symlink; some systems play weird games with the mod time of symlinks |
| 3596 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 3597 |
# directory). |
| 3598 |
if ( |
| 3599 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3600 |
if test "$*" = "X"; then |
| 3601 |
# -L didn't work. |
| 3602 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 3603 |
fi |
| 3604 |
rm -f conftest.file |
| 3605 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3606 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 3607 |
|
| 3608 |
# If neither matched, then we have a broken ls. This can happen |
| 3609 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3610 |
# broken ls alias from the environment. This has actually |
| 3611 |
# happened. Such a system could not be considered "sane". |
| 3612 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 3613 |
alias in your environment" "$LINENO" 5 |
| 3614 |
fi |
| 3615 |
|
| 3616 |
test "$2" = conftest.file |
| 3617 |
) |
| 3618 |
then |
| 3619 |
# Ok. |
| 3620 |
: |
| 3621 |
else |
| 3622 |
as_fn_error $? "newly created file is older than distributed files! |
| 3623 |
Check your system clock" "$LINENO" 5 |
| 3624 |
fi |
| 3625 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3626 |
$as_echo "yes" >&6; } |
| 3627 |
test "$program_prefix" != NONE && |
| 3628 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3629 |
# Use a double $ so make ignores it. |
| 3630 |
test "$program_suffix" != NONE && |
| 3631 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3632 |
# Double any \ or $. |
| 3633 |
# By default was `s,x,x', remove it if useless. |
| 3634 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3635 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3636 |
|
| 3637 |
# expand $ac_aux_dir to an absolute path |
| 3638 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3639 |
|
| 3640 |
if test x"${MISSING+set}" != xset; then |
| 3641 |
case $am_aux_dir in |
| 3642 |
*\ * | *\ *) |
| 3643 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3644 |
*) |
| 3645 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3646 |
esac |
| 3647 |
fi |
| 3648 |
# Use eval to expand $SHELL |
| 3649 |
if eval "$MISSING --run true"; then |
| 3650 |
am_missing_run="$MISSING --run " |
| 3651 |
else |
| 3652 |
am_missing_run= |
| 3653 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 3654 |
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3655 |
fi |
| 3656 |
|
| 3657 |
if test x"${install_sh}" != xset; then |
| 3658 |
case $am_aux_dir in |
| 3659 |
*\ * | *\ *) |
| 3660 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3661 |
*) |
| 3662 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3663 |
esac |
| 3664 |
fi |
| 3665 |
|
| 3666 |
# Installed binaries are usually stripped using `strip' when the user |
| 3667 |
# run `make install-strip'. However `strip' might not be the right |
| 3668 |
# tool to use in cross-compilation environments, therefore Automake |
| 3669 |
# will honor the `STRIP' environment variable to overrule this program. |
| 3670 |
if test "$cross_compiling" != no; then |
| 3671 |
if test -n "$ac_tool_prefix"; then |
| 3672 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3673 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3674 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3675 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3676 |
if ${ac_cv_prog_STRIP+:} false; then : |
| 3677 |
$as_echo_n "(cached) " >&6 |
| 3678 |
else |
| 3679 |
if test -n "$STRIP"; then |
| 3680 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3681 |
else |
| 3682 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3683 |
for as_dir in $PATH |
| 3684 |
do |
| 3685 |
IFS=$as_save_IFS |
| 3686 |
test -z "$as_dir" && as_dir=. |
| 3687 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3688 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3689 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3690 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3691 |
break 2 |
| 3692 |
fi |
| 3693 |
done |
| 3694 |
done |
| 3695 |
IFS=$as_save_IFS |
| 3696 |
|
| 3697 |
fi |
| 3698 |
fi |
| 3699 |
STRIP=$ac_cv_prog_STRIP |
| 3700 |
if test -n "$STRIP"; then |
| 3701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3702 |
$as_echo "$STRIP" >&6; } |
| 3703 |
else |
| 3704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3705 |
$as_echo "no" >&6; } |
| 3706 |
fi |
| 3707 |
|
| 3708 |
|
| 3709 |
fi |
| 3710 |
if test -z "$ac_cv_prog_STRIP"; then |
| 3711 |
ac_ct_STRIP=$STRIP |
| 3712 |
# Extract the first word of "strip", so it can be a program name with args. |
| 3713 |
set dummy strip; ac_word=$2 |
| 3714 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3715 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3716 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 3717 |
$as_echo_n "(cached) " >&6 |
| 3718 |
else |
| 3719 |
if test -n "$ac_ct_STRIP"; then |
| 3720 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3721 |
else |
| 3722 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3723 |
for as_dir in $PATH |
| 3724 |
do |
| 3725 |
IFS=$as_save_IFS |
| 3726 |
test -z "$as_dir" && as_dir=. |
| 3727 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3728 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3729 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 3730 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3731 |
break 2 |
| 3732 |
fi |
| 3733 |
done |
| 3734 |
done |
| 3735 |
IFS=$as_save_IFS |
| 3736 |
|
| 3737 |
fi |
| 3738 |
fi |
| 3739 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3740 |
if test -n "$ac_ct_STRIP"; then |
| 3741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3742 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 3743 |
else |
| 3744 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3745 |
$as_echo "no" >&6; } |
| 3746 |
fi |
| 3747 |
|
| 3748 |
if test "x$ac_ct_STRIP" = x; then |
| 3749 |
STRIP=":" |
| 3750 |
else |
| 3751 |
case $cross_compiling:$ac_tool_warned in |
| 3752 |
yes:) |
| 3753 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3754 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3755 |
ac_tool_warned=yes ;; |
| 3756 |
esac |
| 3757 |
STRIP=$ac_ct_STRIP |
| 3758 |
fi |
| 3759 |
else |
| 3760 |
STRIP="$ac_cv_prog_STRIP" |
| 3761 |
fi |
| 3762 |
|
| 3763 |
fi |
| 3764 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3765 |
|
| 3766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3767 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3768 |
if test -z "$MKDIR_P"; then |
| 3769 |
if ${ac_cv_path_mkdir+:} false; then : |
| 3770 |
$as_echo_n "(cached) " >&6 |
| 3771 |
else |
| 3772 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3773 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3774 |
do |
| 3775 |
IFS=$as_save_IFS |
| 3776 |
test -z "$as_dir" && as_dir=. |
| 3777 |
for ac_prog in mkdir gmkdir; do |
| 3778 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3779 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 3780 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3781 |
'mkdir (GNU coreutils) '* | \ |
| 3782 |
'mkdir (coreutils) '* | \ |
| 3783 |
'mkdir (fileutils) '4.1*) |
| 3784 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3785 |
break 3;; |
| 3786 |
esac |
| 3787 |
done |
| 3788 |
done |
| 3789 |
done |
| 3790 |
IFS=$as_save_IFS |
| 3791 |
|
| 3792 |
fi |
| 3793 |
|
| 3794 |
test -d ./--version && rmdir ./--version |
| 3795 |
if test "${ac_cv_path_mkdir+set}" = set; then |
| 3796 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 3797 |
else |
| 3798 |
# As a last resort, use the slow shell script. Don't cache a |
| 3799 |
# value for MKDIR_P within a source directory, because that will |
| 3800 |
# break other packages using the cache if that directory is |
| 3801 |
# removed, or if the value is a relative name. |
| 3802 |
MKDIR_P="$ac_install_sh -d" |
| 3803 |
fi |
| 3804 |
fi |
| 3805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3806 |
$as_echo "$MKDIR_P" >&6; } |
| 3807 |
|
| 3808 |
mkdir_p="$MKDIR_P" |
| 3809 |
case $mkdir_p in |
| 3810 |
[\\/$]* | ?:[\\/]*) ;; |
| 3811 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3812 |
esac |
| 3813 |
|
| 3814 |
for ac_prog in gawk mawk nawk awk |
| 3815 |
do |
| 3816 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3817 |
set dummy $ac_prog; ac_word=$2 |
| 3818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3819 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3820 |
if ${ac_cv_prog_AWK+:} false; then : |
| 3821 |
$as_echo_n "(cached) " >&6 |
| 3822 |
else |
| 3823 |
if test -n "$AWK"; then |
| 3824 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3825 |
else |
| 3826 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3827 |
for as_dir in $PATH |
| 3828 |
do |
| 3829 |
IFS=$as_save_IFS |
| 3830 |
test -z "$as_dir" && as_dir=. |
| 3831 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3832 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3833 |
ac_cv_prog_AWK="$ac_prog" |
| 3834 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3835 |
break 2 |
| 3836 |
fi |
| 3837 |
done |
| 3838 |
done |
| 3839 |
IFS=$as_save_IFS |
| 3840 |
|
| 3841 |
fi |
| 3842 |
fi |
| 3843 |
AWK=$ac_cv_prog_AWK |
| 3844 |
if test -n "$AWK"; then |
| 3845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3846 |
$as_echo "$AWK" >&6; } |
| 3847 |
else |
| 3848 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3849 |
$as_echo "no" >&6; } |
| 3850 |
fi |
| 3851 |
|
| 3852 |
|
| 3853 |
test -n "$AWK" && break |
| 3854 |
done |
| 3855 |
|
| 3856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3857 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3858 |
set x ${MAKE-make} |
| 3859 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3860 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 3861 |
$as_echo_n "(cached) " >&6 |
| 3862 |
else |
| 3863 |
cat >conftest.make <<\_ACEOF |
| 3864 |
SHELL = /bin/sh |
| 3865 |
all: |
| 3866 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3867 |
_ACEOF |
| 3868 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3869 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3870 |
*@@@%%%=?*=@@@%%%*) |
| 3871 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3872 |
*) |
| 3873 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3874 |
esac |
| 3875 |
rm -f conftest.make |
| 3876 |
fi |
| 3877 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3879 |
$as_echo "yes" >&6; } |
| 3880 |
SET_MAKE= |
| 3881 |
else |
| 3882 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3883 |
$as_echo "no" >&6; } |
| 3884 |
SET_MAKE="MAKE=${MAKE-make}" |
| 3885 |
fi |
| 3886 |
|
| 3887 |
rm -rf .tst 2>/dev/null |
| 3888 |
mkdir .tst 2>/dev/null |
| 3889 |
if test -d .tst; then |
| 3890 |
am__leading_dot=. |
| 3891 |
else |
| 3892 |
am__leading_dot=_ |
| 3893 |
fi |
| 3894 |
rmdir .tst 2>/dev/null |
| 3895 |
|
| 3896 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3897 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3898 |
# is not polluted with repeated "-I." |
| 3899 |
am__isrc=' -I$(srcdir)' |
| 3900 |
# test to see if srcdir already configured |
| 3901 |
if test -f $srcdir/config.status; then |
| 3902 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3903 |
fi |
| 3904 |
fi |
| 3905 |
|
| 3906 |
# test whether we have cygpath |
| 3907 |
if test -z "$CYGPATH_W"; then |
| 3908 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3909 |
CYGPATH_W='cygpath -w' |
| 3910 |
else |
| 3911 |
CYGPATH_W=echo |
| 3912 |
fi |
| 3913 |
fi |
| 3914 |
|
| 3915 |
|
| 3916 |
# Define the identity of the package. |
| 3917 |
PACKAGE='barcode' |
| 3918 |
VERSION='0.99' |
| 3919 |
|
| 3920 |
|
| 3921 |
cat >>confdefs.h <<_ACEOF |
| 3922 |
#define PACKAGE "$PACKAGE" |
| 3923 |
_ACEOF |
| 3924 |
|
| 3925 |
|
| 3926 |
cat >>confdefs.h <<_ACEOF |
| 3927 |
#define VERSION "$VERSION" |
| 3928 |
_ACEOF |
| 3929 |
|
| 3930 |
# Some tools Automake needs. |
| 3931 |
|
| 3932 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3933 |
|
| 3934 |
|
| 3935 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3936 |
|
| 3937 |
|
| 3938 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3939 |
|
| 3940 |
|
| 3941 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3942 |
|
| 3943 |
|
| 3944 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3945 |
|
| 3946 |
# We need awk for the "check" target. The system "awk" is bad on |
| 3947 |
# some platforms. |
| 3948 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 3949 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 3950 |
AMTAR='$${TAR-tar}' |
| 3951 |
|
| 3952 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3953 |
|
| 3954 |
|
| 3955 |
|
| 3956 |
|
| 3957 |
|
| 3958 |
|
| 3959 |
# Make sure we can run config.sub. |
| 3960 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3961 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3962 |
|
| 3963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3964 |
$as_echo_n "checking build system type... " >&6; } |
| 3965 |
if ${ac_cv_build+:} false; then : |
| 3966 |
$as_echo_n "(cached) " >&6 |
| 3967 |
else |
| 3968 |
ac_build_alias=$build_alias |
| 3969 |
test "x$ac_build_alias" = x && |
| 3970 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3971 |
test "x$ac_build_alias" = x && |
| 3972 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3973 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3974 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3975 |
|
| 3976 |
fi |
| 3977 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3978 |
$as_echo "$ac_cv_build" >&6; } |
| 3979 |
case $ac_cv_build in |
| 3980 |
*-*-*) ;; |
| 3981 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3982 |
esac |
| 3983 |
build=$ac_cv_build |
| 3984 |
ac_save_IFS=$IFS; IFS='-' |
| 3985 |
set x $ac_cv_build |
| 3986 |
shift |
| 3987 |
build_cpu=$1 |
| 3988 |
build_vendor=$2 |
| 3989 |
shift; shift |
| 3990 |
# Remember, the first character of IFS is used to create $*, |
| 3991 |
# except with old shells: |
| 3992 |
build_os=$* |
| 3993 |
IFS=$ac_save_IFS |
| 3994 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3995 |
|
| 3996 |
|
| 3997 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3998 |
$as_echo_n "checking host system type... " >&6; } |
| 3999 |
if ${ac_cv_host+:} false; then : |
| 4000 |
$as_echo_n "(cached) " >&6 |
| 4001 |
else |
| 4002 |
if test "x$host_alias" = x; then |
| 4003 |
ac_cv_host=$ac_cv_build |
| 4004 |
else |
| 4005 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4006 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4007 |
fi |
| 4008 |
|
| 4009 |
fi |
| 4010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4011 |
$as_echo "$ac_cv_host" >&6; } |
| 4012 |
case $ac_cv_host in |
| 4013 |
*-*-*) ;; |
| 4014 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4015 |
esac |
| 4016 |
host=$ac_cv_host |
| 4017 |
ac_save_IFS=$IFS; IFS='-' |
| 4018 |
set x $ac_cv_host |
| 4019 |
shift |
| 4020 |
host_cpu=$1 |
| 4021 |
host_vendor=$2 |
| 4022 |
shift; shift |
| 4023 |
# Remember, the first character of IFS is used to create $*, |
| 4024 |
# except with old shells: |
| 4025 |
host_os=$* |
| 4026 |
IFS=$ac_save_IFS |
| 4027 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4028 |
|
| 4029 |
|
| 4030 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 4031 |
$as_echo_n "checking target system type... " >&6; } |
| 4032 |
if ${ac_cv_target+:} false; then : |
| 4033 |
$as_echo_n "(cached) " >&6 |
| 4034 |
else |
| 4035 |
if test "x$target_alias" = x; then |
| 4036 |
ac_cv_target=$ac_cv_host |
| 4037 |
else |
| 4038 |
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 4039 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 4040 |
fi |
| 4041 |
|
| 4042 |
fi |
| 4043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 4044 |
$as_echo "$ac_cv_target" >&6; } |
| 4045 |
case $ac_cv_target in |
| 4046 |
*-*-*) ;; |
| 4047 |
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 4048 |
esac |
| 4049 |
target=$ac_cv_target |
| 4050 |
ac_save_IFS=$IFS; IFS='-' |
| 4051 |
set x $ac_cv_target |
| 4052 |
shift |
| 4053 |
target_cpu=$1 |
| 4054 |
target_vendor=$2 |
| 4055 |
shift; shift |
| 4056 |
# Remember, the first character of IFS is used to create $*, |
| 4057 |
# except with old shells: |
| 4058 |
target_os=$* |
| 4059 |
IFS=$ac_save_IFS |
| 4060 |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 4061 |
|
| 4062 |
|
| 4063 |
# The aliases save the names the user supplied, while $host etc. |
| 4064 |
# will get canonicalized. |
| 4065 |
test -n "$target_alias" && |
| 4066 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
| 4067 |
NONENONEs,x,x, && |
| 4068 |
program_prefix=${target_alias}- |
| 4069 |
|
| 4070 |
|
| 4071 |
|
| 4072 |
|
| 4073 |
ac_config_headers="$ac_config_headers config.h" |
| 4074 |
|
| 4075 |
|
| 4076 |
DEPDIR="${am__leading_dot}deps" |
| 4077 |
|
| 4078 |
ac_config_commands="$ac_config_commands depfiles" |
| 4079 |
|
| 4080 |
|
| 4081 |
am_make=${MAKE-make} |
| 4082 |
cat > confinc << 'END' |
| 4083 |
am__doit: |
| 4084 |
@echo this is the am__doit target |
| 4085 |
.PHONY: am__doit |
| 4086 |
END |
| 4087 |
# If we don't find an include directive, just comment out the code. |
| 4088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4089 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4090 |
am__include="#" |
| 4091 |
am__quote= |
| 4092 |
_am_result=none |
| 4093 |
# First try GNU make style include. |
| 4094 |
echo "include confinc" > confmf |
| 4095 |
# Ignore all kinds of additional output from `make'. |
| 4096 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4097 |
*the\ am__doit\ target*) |
| 4098 |
am__include=include |
| 4099 |
am__quote= |
| 4100 |
_am_result=GNU |
| 4101 |
;; |
| 4102 |
esac |
| 4103 |
# Now try BSD make style include. |
| 4104 |
if test "$am__include" = "#"; then |
| 4105 |
echo '.include "confinc"' > confmf |
| 4106 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4107 |
*the\ am__doit\ target*) |
| 4108 |
am__include=.include |
| 4109 |
am__quote="\"" |
| 4110 |
_am_result=BSD |
| 4111 |
;; |
| 4112 |
esac |
| 4113 |
fi |
| 4114 |
|
| 4115 |
|
| 4116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4117 |
$as_echo "$_am_result" >&6; } |
| 4118 |
rm -f confinc confmf |
| 4119 |
|
| 4120 |
# Check whether --enable-dependency-tracking was given. |
| 4121 |
if test "${enable_dependency_tracking+set}" = set; then : |
| 4122 |
enableval=$enable_dependency_tracking; |
| 4123 |
fi |
| 4124 |
|
| 4125 |
if test "x$enable_dependency_tracking" != xno; then |
| 4126 |
am_depcomp="$ac_aux_dir/depcomp" |
| 4127 |
AMDEPBACKSLASH='\' |
| 4128 |
am__nodep='_no' |
| 4129 |
fi |
| 4130 |
if test "x$enable_dependency_tracking" != xno; then |
| 4131 |
AMDEP_TRUE= |
| 4132 |
AMDEP_FALSE='#' |
| 4133 |
else |
| 4134 |
AMDEP_TRUE='#' |
| 4135 |
AMDEP_FALSE= |
| 4136 |
fi |
| 4137 |
|
| 4138 |
|
| 4139 |
ac_ext=c |
| 4140 |
ac_cpp='$CPP $CPPFLAGS' |
| 4141 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4142 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4143 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4144 |
if test -n "$ac_tool_prefix"; then |
| 4145 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4146 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4147 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4148 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4149 |
if ${ac_cv_prog_CC+:} false; then : |
| 4150 |
$as_echo_n "(cached) " >&6 |
| 4151 |
else |
| 4152 |
if test -n "$CC"; then |
| 4153 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4154 |
else |
| 4155 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4156 |
for as_dir in $PATH |
| 4157 |
do |
| 4158 |
IFS=$as_save_IFS |
| 4159 |
test -z "$as_dir" && as_dir=. |
| 4160 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4161 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4162 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4163 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4164 |
break 2 |
| 4165 |
fi |
| 4166 |
done |
| 4167 |
done |
| 4168 |
IFS=$as_save_IFS |
| 4169 |
|
| 4170 |
fi |
| 4171 |
fi |
| 4172 |
CC=$ac_cv_prog_CC |
| 4173 |
if test -n "$CC"; then |
| 4174 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4175 |
$as_echo "$CC" >&6; } |
| 4176 |
else |
| 4177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4178 |
$as_echo "no" >&6; } |
| 4179 |
fi |
| 4180 |
|
| 4181 |
|
| 4182 |
fi |
| 4183 |
if test -z "$ac_cv_prog_CC"; then |
| 4184 |
ac_ct_CC=$CC |
| 4185 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 4186 |
set dummy gcc; ac_word=$2 |
| 4187 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4188 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4189 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4190 |
$as_echo_n "(cached) " >&6 |
| 4191 |
else |
| 4192 |
if test -n "$ac_ct_CC"; then |
| 4193 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4194 |
else |
| 4195 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4196 |
for as_dir in $PATH |
| 4197 |
do |
| 4198 |
IFS=$as_save_IFS |
| 4199 |
test -z "$as_dir" && as_dir=. |
| 4200 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4201 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4202 |
ac_cv_prog_ac_ct_CC="gcc" |
| 4203 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4204 |
break 2 |
| 4205 |
fi |
| 4206 |
done |
| 4207 |
done |
| 4208 |
IFS=$as_save_IFS |
| 4209 |
|
| 4210 |
fi |
| 4211 |
fi |
| 4212 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4213 |
if test -n "$ac_ct_CC"; then |
| 4214 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4215 |
$as_echo "$ac_ct_CC" >&6; } |
| 4216 |
else |
| 4217 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4218 |
$as_echo "no" >&6; } |
| 4219 |
fi |
| 4220 |
|
| 4221 |
if test "x$ac_ct_CC" = x; then |
| 4222 |
CC="" |
| 4223 |
else |
| 4224 |
case $cross_compiling:$ac_tool_warned in |
| 4225 |
yes:) |
| 4226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4227 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4228 |
ac_tool_warned=yes ;; |
| 4229 |
esac |
| 4230 |
CC=$ac_ct_CC |
| 4231 |
fi |
| 4232 |
else |
| 4233 |
CC="$ac_cv_prog_CC" |
| 4234 |
fi |
| 4235 |
|
| 4236 |
if test -z "$CC"; then |
| 4237 |
if test -n "$ac_tool_prefix"; then |
| 4238 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4239 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4241 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4242 |
if ${ac_cv_prog_CC+:} false; then : |
| 4243 |
$as_echo_n "(cached) " >&6 |
| 4244 |
else |
| 4245 |
if test -n "$CC"; then |
| 4246 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4247 |
else |
| 4248 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4249 |
for as_dir in $PATH |
| 4250 |
do |
| 4251 |
IFS=$as_save_IFS |
| 4252 |
test -z "$as_dir" && as_dir=. |
| 4253 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4254 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4255 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4256 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4257 |
break 2 |
| 4258 |
fi |
| 4259 |
done |
| 4260 |
done |
| 4261 |
IFS=$as_save_IFS |
| 4262 |
|
| 4263 |
fi |
| 4264 |
fi |
| 4265 |
CC=$ac_cv_prog_CC |
| 4266 |
if test -n "$CC"; then |
| 4267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4268 |
$as_echo "$CC" >&6; } |
| 4269 |
else |
| 4270 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4271 |
$as_echo "no" >&6; } |
| 4272 |
fi |
| 4273 |
|
| 4274 |
|
| 4275 |
fi |
| 4276 |
fi |
| 4277 |
if test -z "$CC"; then |
| 4278 |
# Extract the first word of "cc", so it can be a program name with args. |
| 4279 |
set dummy cc; ac_word=$2 |
| 4280 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4281 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4282 |
if ${ac_cv_prog_CC+:} false; then : |
| 4283 |
$as_echo_n "(cached) " >&6 |
| 4284 |
else |
| 4285 |
if test -n "$CC"; then |
| 4286 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4287 |
else |
| 4288 |
ac_prog_rejected=no |
| 4289 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4290 |
for as_dir in $PATH |
| 4291 |
do |
| 4292 |
IFS=$as_save_IFS |
| 4293 |
test -z "$as_dir" && as_dir=. |
| 4294 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4295 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4296 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4297 |
ac_prog_rejected=yes |
| 4298 |
continue |
| 4299 |
fi |
| 4300 |
ac_cv_prog_CC="cc" |
| 4301 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4302 |
break 2 |
| 4303 |
fi |
| 4304 |
done |
| 4305 |
done |
| 4306 |
IFS=$as_save_IFS |
| 4307 |
|
| 4308 |
if test $ac_prog_rejected = yes; then |
| 4309 |
# We found a bogon in the path, so make sure we never use it. |
| 4310 |
set dummy $ac_cv_prog_CC |
| 4311 |
shift |
| 4312 |
if test $# != 0; then |
| 4313 |
# We chose a different compiler from the bogus one. |
| 4314 |
# However, it has the same basename, so the bogon will be chosen |
| 4315 |
# first if we set CC to just the basename; use the full file name. |
| 4316 |
shift |
| 4317 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4318 |
fi |
| 4319 |
fi |
| 4320 |
fi |
| 4321 |
fi |
| 4322 |
CC=$ac_cv_prog_CC |
| 4323 |
if test -n "$CC"; then |
| 4324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4325 |
$as_echo "$CC" >&6; } |
| 4326 |
else |
| 4327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4328 |
$as_echo "no" >&6; } |
| 4329 |
fi |
| 4330 |
|
| 4331 |
|
| 4332 |
fi |
| 4333 |
if test -z "$CC"; then |
| 4334 |
if test -n "$ac_tool_prefix"; then |
| 4335 |
for ac_prog in cl.exe |
| 4336 |
do |
| 4337 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4338 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4340 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4341 |
if ${ac_cv_prog_CC+:} false; then : |
| 4342 |
$as_echo_n "(cached) " >&6 |
| 4343 |
else |
| 4344 |
if test -n "$CC"; then |
| 4345 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4346 |
else |
| 4347 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4348 |
for as_dir in $PATH |
| 4349 |
do |
| 4350 |
IFS=$as_save_IFS |
| 4351 |
test -z "$as_dir" && as_dir=. |
| 4352 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4353 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4354 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4355 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4356 |
break 2 |
| 4357 |
fi |
| 4358 |
done |
| 4359 |
done |
| 4360 |
IFS=$as_save_IFS |
| 4361 |
|
| 4362 |
fi |
| 4363 |
fi |
| 4364 |
CC=$ac_cv_prog_CC |
| 4365 |
if test -n "$CC"; then |
| 4366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4367 |
$as_echo "$CC" >&6; } |
| 4368 |
else |
| 4369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4370 |
$as_echo "no" >&6; } |
| 4371 |
fi |
| 4372 |
|
| 4373 |
|
| 4374 |
test -n "$CC" && break |
| 4375 |
done |
| 4376 |
fi |
| 4377 |
if test -z "$CC"; then |
| 4378 |
ac_ct_CC=$CC |
| 4379 |
for ac_prog in cl.exe |
| 4380 |
do |
| 4381 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4382 |
set dummy $ac_prog; ac_word=$2 |
| 4383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4384 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4385 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4386 |
$as_echo_n "(cached) " >&6 |
| 4387 |
else |
| 4388 |
if test -n "$ac_ct_CC"; then |
| 4389 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4390 |
else |
| 4391 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4392 |
for as_dir in $PATH |
| 4393 |
do |
| 4394 |
IFS=$as_save_IFS |
| 4395 |
test -z "$as_dir" && as_dir=. |
| 4396 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4397 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4398 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4399 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4400 |
break 2 |
| 4401 |
fi |
| 4402 |
done |
| 4403 |
done |
| 4404 |
IFS=$as_save_IFS |
| 4405 |
|
| 4406 |
fi |
| 4407 |
fi |
| 4408 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4409 |
if test -n "$ac_ct_CC"; then |
| 4410 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4411 |
$as_echo "$ac_ct_CC" >&6; } |
| 4412 |
else |
| 4413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4414 |
$as_echo "no" >&6; } |
| 4415 |
fi |
| 4416 |
|
| 4417 |
|
| 4418 |
test -n "$ac_ct_CC" && break |
| 4419 |
done |
| 4420 |
|
| 4421 |
if test "x$ac_ct_CC" = x; then |
| 4422 |
CC="" |
| 4423 |
else |
| 4424 |
case $cross_compiling:$ac_tool_warned in |
| 4425 |
yes:) |
| 4426 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4427 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4428 |
ac_tool_warned=yes ;; |
| 4429 |
esac |
| 4430 |
CC=$ac_ct_CC |
| 4431 |
fi |
| 4432 |
fi |
| 4433 |
|
| 4434 |
fi |
| 4435 |
|
| 4436 |
|
| 4437 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4438 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4439 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4440 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4441 |
|
| 4442 |
# Provide some information about the compiler. |
| 4443 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4444 |
set X $ac_compile |
| 4445 |
ac_compiler=$2 |
| 4446 |
for ac_option in --version -v -V -qversion; do |
| 4447 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 4448 |
case "(($ac_try" in |
| 4449 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4450 |
*) ac_try_echo=$ac_try;; |
| 4451 |
esac |
| 4452 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4453 |
$as_echo "$ac_try_echo"; } >&5 |
| 4454 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4455 |
ac_status=$? |
| 4456 |
if test -s conftest.err; then |
| 4457 |
sed '10a\ |
| 4458 |
... rest of stderr output deleted ... |
| 4459 |
10q' conftest.err >conftest.er1 |
| 4460 |
cat conftest.er1 >&5 |
| 4461 |
fi |
| 4462 |
rm -f conftest.er1 conftest.err |
| 4463 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4464 |
test $ac_status = 0; } |
| 4465 |
done |
| 4466 |
|
| 4467 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4468 |
/* end confdefs.h. */ |
| 4469 |
|
| 4470 |
int |
| 4471 |
main () |
| 4472 |
{ |
| 4473 |
|
| 4474 |
; |
| 4475 |
return 0; |
| 4476 |
} |
| 4477 |
_ACEOF |
| 4478 |
ac_clean_files_save=$ac_clean_files |
| 4479 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4480 |
# Try to create an executable without -o first, disregard a.out. |
| 4481 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 4482 |
# of exeext. |
| 4483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4484 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 4485 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4486 |
|
| 4487 |
# The possible output files: |
| 4488 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4489 |
|
| 4490 |
ac_rmfiles= |
| 4491 |
for ac_file in $ac_files |
| 4492 |
do |
| 4493 |
case $ac_file in |
| 4494 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4495 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4496 |
esac |
| 4497 |
done |
| 4498 |
rm -f $ac_rmfiles |
| 4499 |
|
| 4500 |
if { { ac_try="$ac_link_default" |
| 4501 |
case "(($ac_try" in |
| 4502 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4503 |
*) ac_try_echo=$ac_try;; |
| 4504 |
esac |
| 4505 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4506 |
$as_echo "$ac_try_echo"; } >&5 |
| 4507 |
(eval "$ac_link_default") 2>&5 |
| 4508 |
ac_status=$? |
| 4509 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4510 |
test $ac_status = 0; }; then : |
| 4511 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4512 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4513 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4514 |
# so that the user can short-circuit this test for compilers unknown to |
| 4515 |
# Autoconf. |
| 4516 |
for ac_file in $ac_files '' |
| 4517 |
do |
| 4518 |
test -f "$ac_file" || continue |
| 4519 |
case $ac_file in |
| 4520 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4521 |
;; |
| 4522 |
[ab].out ) |
| 4523 |
# We found the default executable, but exeext='' is most |
| 4524 |
# certainly right. |
| 4525 |
break;; |
| 4526 |
*.* ) |
| 4527 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 4528 |
then :; else |
| 4529 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4530 |
fi |
| 4531 |
# We set ac_cv_exeext here because the later test for it is not |
| 4532 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 4533 |
# argument, so we may need to know it at that point already. |
| 4534 |
# Even if this section looks crufty: it has the advantage of |
| 4535 |
# actually working. |
| 4536 |
break;; |
| 4537 |
* ) |
| 4538 |
break;; |
| 4539 |
esac |
| 4540 |
done |
| 4541 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4542 |
|
| 4543 |
else |
| 4544 |
ac_file='' |
| 4545 |
fi |
| 4546 |
if test -z "$ac_file"; then : |
| 4547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4548 |
$as_echo "no" >&6; } |
| 4549 |
$as_echo "$as_me: failed program was:" >&5 |
| 4550 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4551 |
|
| 4552 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4553 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4554 |
as_fn_error 77 "C compiler cannot create executables |
| 4555 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4556 |
else |
| 4557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4558 |
$as_echo "yes" >&6; } |
| 4559 |
fi |
| 4560 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4561 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4562 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4563 |
$as_echo "$ac_file" >&6; } |
| 4564 |
ac_exeext=$ac_cv_exeext |
| 4565 |
|
| 4566 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4567 |
ac_clean_files=$ac_clean_files_save |
| 4568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4569 |
$as_echo_n "checking for suffix of executables... " >&6; } |
| 4570 |
if { { ac_try="$ac_link" |
| 4571 |
case "(($ac_try" in |
| 4572 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4573 |
*) ac_try_echo=$ac_try;; |
| 4574 |
esac |
| 4575 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4576 |
$as_echo "$ac_try_echo"; } >&5 |
| 4577 |
(eval "$ac_link") 2>&5 |
| 4578 |
ac_status=$? |
| 4579 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4580 |
test $ac_status = 0; }; then : |
| 4581 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4582 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4583 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4584 |
# `rm'. |
| 4585 |
for ac_file in conftest.exe conftest conftest.*; do |
| 4586 |
test -f "$ac_file" || continue |
| 4587 |
case $ac_file in |
| 4588 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4589 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4590 |
break;; |
| 4591 |
* ) break;; |
| 4592 |
esac |
| 4593 |
done |
| 4594 |
else |
| 4595 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4596 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4597 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4598 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4599 |
fi |
| 4600 |
rm -f conftest conftest$ac_cv_exeext |
| 4601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4602 |
$as_echo "$ac_cv_exeext" >&6; } |
| 4603 |
|
| 4604 |
rm -f conftest.$ac_ext |
| 4605 |
EXEEXT=$ac_cv_exeext |
| 4606 |
ac_exeext=$EXEEXT |
| 4607 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4608 |
/* end confdefs.h. */ |
| 4609 |
#include <stdio.h> |
| 4610 |
int |
| 4611 |
main () |
| 4612 |
{ |
| 4613 |
FILE *f = fopen ("conftest.out", "w"); |
| 4614 |
return ferror (f) || fclose (f) != 0; |
| 4615 |
|
| 4616 |
; |
| 4617 |
return 0; |
| 4618 |
} |
| 4619 |
_ACEOF |
| 4620 |
ac_clean_files="$ac_clean_files conftest.out" |
| 4621 |
# Check that the compiler produces executables we can run. If not, either |
| 4622 |
# the compiler is broken, or we cross compile. |
| 4623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4624 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4625 |
if test "$cross_compiling" != yes; then |
| 4626 |
{ { ac_try="$ac_link" |
| 4627 |
case "(($ac_try" in |
| 4628 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4629 |
*) ac_try_echo=$ac_try;; |
| 4630 |
esac |
| 4631 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4632 |
$as_echo "$ac_try_echo"; } >&5 |
| 4633 |
(eval "$ac_link") 2>&5 |
| 4634 |
ac_status=$? |
| 4635 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4636 |
test $ac_status = 0; } |
| 4637 |
if { ac_try='./conftest$ac_cv_exeext' |
| 4638 |
{ { case "(($ac_try" in |
| 4639 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4640 |
*) ac_try_echo=$ac_try;; |
| 4641 |
esac |
| 4642 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4643 |
$as_echo "$ac_try_echo"; } >&5 |
| 4644 |
(eval "$ac_try") 2>&5 |
| 4645 |
ac_status=$? |
| 4646 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4647 |
test $ac_status = 0; }; }; then |
| 4648 |
cross_compiling=no |
| 4649 |
else |
| 4650 |
if test "$cross_compiling" = maybe; then |
| 4651 |
cross_compiling=yes |
| 4652 |
else |
| 4653 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4654 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4655 |
as_fn_error $? "cannot run C compiled programs. |
| 4656 |
If you meant to cross compile, use \`--host'. |
| 4657 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4658 |
fi |
| 4659 |
fi |
| 4660 |
fi |
| 4661 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4662 |
$as_echo "$cross_compiling" >&6; } |
| 4663 |
|
| 4664 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4665 |
ac_clean_files=$ac_clean_files_save |
| 4666 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4667 |
$as_echo_n "checking for suffix of object files... " >&6; } |
| 4668 |
if ${ac_cv_objext+:} false; then : |
| 4669 |
$as_echo_n "(cached) " >&6 |
| 4670 |
else |
| 4671 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4672 |
/* end confdefs.h. */ |
| 4673 |
|
| 4674 |
int |
| 4675 |
main () |
| 4676 |
{ |
| 4677 |
|
| 4678 |
; |
| 4679 |
return 0; |
| 4680 |
} |
| 4681 |
_ACEOF |
| 4682 |
rm -f conftest.o conftest.obj |
| 4683 |
if { { ac_try="$ac_compile" |
| 4684 |
case "(($ac_try" in |
| 4685 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4686 |
*) ac_try_echo=$ac_try;; |
| 4687 |
esac |
| 4688 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4689 |
$as_echo "$ac_try_echo"; } >&5 |
| 4690 |
(eval "$ac_compile") 2>&5 |
| 4691 |
ac_status=$? |
| 4692 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4693 |
test $ac_status = 0; }; then : |
| 4694 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 4695 |
test -f "$ac_file" || continue; |
| 4696 |
case $ac_file in |
| 4697 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4698 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4699 |
break;; |
| 4700 |
esac |
| 4701 |
done |
| 4702 |
else |
| 4703 |
$as_echo "$as_me: failed program was:" >&5 |
| 4704 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4705 |
|
| 4706 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4707 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4708 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4709 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4710 |
fi |
| 4711 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4712 |
fi |
| 4713 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4714 |
$as_echo "$ac_cv_objext" >&6; } |
| 4715 |
OBJEXT=$ac_cv_objext |
| 4716 |
ac_objext=$OBJEXT |
| 4717 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4718 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4719 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 4720 |
$as_echo_n "(cached) " >&6 |
| 4721 |
else |
| 4722 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4723 |
/* end confdefs.h. */ |
| 4724 |
|
| 4725 |
int |
| 4726 |
main () |
| 4727 |
{ |
| 4728 |
#ifndef __GNUC__ |
| 4729 |
choke me |
| 4730 |
#endif |
| 4731 |
|
| 4732 |
; |
| 4733 |
return 0; |
| 4734 |
} |
| 4735 |
_ACEOF |
| 4736 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4737 |
ac_compiler_gnu=yes |
| 4738 |
else |
| 4739 |
ac_compiler_gnu=no |
| 4740 |
fi |
| 4741 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4742 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4743 |
|
| 4744 |
fi |
| 4745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4746 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4747 |
if test $ac_compiler_gnu = yes; then |
| 4748 |
GCC=yes |
| 4749 |
else |
| 4750 |
GCC= |
| 4751 |
fi |
| 4752 |
ac_test_CFLAGS=${CFLAGS+set} |
| 4753 |
ac_save_CFLAGS=$CFLAGS |
| 4754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4755 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4756 |
if ${ac_cv_prog_cc_g+:} false; then : |
| 4757 |
$as_echo_n "(cached) " >&6 |
| 4758 |
else |
| 4759 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 4760 |
ac_c_werror_flag=yes |
| 4761 |
ac_cv_prog_cc_g=no |
| 4762 |
CFLAGS="-g" |
| 4763 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4764 |
/* end confdefs.h. */ |
| 4765 |
|
| 4766 |
int |
| 4767 |
main () |
| 4768 |
{ |
| 4769 |
|
| 4770 |
; |
| 4771 |
return 0; |
| 4772 |
} |
| 4773 |
_ACEOF |
| 4774 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4775 |
ac_cv_prog_cc_g=yes |
| 4776 |
else |
| 4777 |
CFLAGS="" |
| 4778 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4779 |
/* end confdefs.h. */ |
| 4780 |
|
| 4781 |
int |
| 4782 |
main () |
| 4783 |
{ |
| 4784 |
|
| 4785 |
; |
| 4786 |
return 0; |
| 4787 |
} |
| 4788 |
_ACEOF |
| 4789 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4790 |
|
| 4791 |
else |
| 4792 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4793 |
CFLAGS="-g" |
| 4794 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4795 |
/* end confdefs.h. */ |
| 4796 |
|
| 4797 |
int |
| 4798 |
main () |
| 4799 |
{ |
| 4800 |
|
| 4801 |
; |
| 4802 |
return 0; |
| 4803 |
} |
| 4804 |
_ACEOF |
| 4805 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4806 |
ac_cv_prog_cc_g=yes |
| 4807 |
fi |
| 4808 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4809 |
fi |
| 4810 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4811 |
fi |
| 4812 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4813 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4814 |
fi |
| 4815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4816 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4817 |
if test "$ac_test_CFLAGS" = set; then |
| 4818 |
CFLAGS=$ac_save_CFLAGS |
| 4819 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4820 |
if test "$GCC" = yes; then |
| 4821 |
CFLAGS="-g -O2" |
| 4822 |
else |
| 4823 |
CFLAGS="-g" |
| 4824 |
fi |
| 4825 |
else |
| 4826 |
if test "$GCC" = yes; then |
| 4827 |
CFLAGS="-O2" |
| 4828 |
else |
| 4829 |
CFLAGS= |
| 4830 |
fi |
| 4831 |
fi |
| 4832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4833 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4834 |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 4835 |
$as_echo_n "(cached) " >&6 |
| 4836 |
else |
| 4837 |
ac_cv_prog_cc_c89=no |
| 4838 |
ac_save_CC=$CC |
| 4839 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4840 |
/* end confdefs.h. */ |
| 4841 |
#include <stdarg.h> |
| 4842 |
#include <stdio.h> |
| 4843 |
struct stat; |
| 4844 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4845 |
struct buf { int x; }; |
| 4846 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4847 |
static char *e (p, i) |
| 4848 |
char **p; |
| 4849 |
int i; |
| 4850 |
{ |
| 4851 |
return p[i]; |
| 4852 |
} |
| 4853 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 4854 |
{ |
| 4855 |
char *s; |
| 4856 |
va_list v; |
| 4857 |
va_start (v,p); |
| 4858 |
s = g (p, va_arg (v,int)); |
| 4859 |
va_end (v); |
| 4860 |
return s; |
| 4861 |
} |
| 4862 |
|
| 4863 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4864 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 4865 |
These don't provoke an error unfortunately, instead are silently treated |
| 4866 |
as 'x'. The following induces an error, until -std is added to get |
| 4867 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4868 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 4869 |
that's true only with -std. */ |
| 4870 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4871 |
|
| 4872 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4873 |
inside strings and character constants. */ |
| 4874 |
#define FOO(x) 'x' |
| 4875 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4876 |
|
| 4877 |
int test (int i, double x); |
| 4878 |
struct s1 {int (*f) (int a);}; |
| 4879 |
struct s2 {int (*f) (double a);}; |
| 4880 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4881 |
int argc; |
| 4882 |
char **argv; |
| 4883 |
int |
| 4884 |
main () |
| 4885 |
{ |
| 4886 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4887 |
; |
| 4888 |
return 0; |
| 4889 |
} |
| 4890 |
_ACEOF |
| 4891 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4892 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4893 |
do |
| 4894 |
CC="$ac_save_CC $ac_arg" |
| 4895 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4896 |
ac_cv_prog_cc_c89=$ac_arg |
| 4897 |
fi |
| 4898 |
rm -f core conftest.err conftest.$ac_objext |
| 4899 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4900 |
done |
| 4901 |
rm -f conftest.$ac_ext |
| 4902 |
CC=$ac_save_CC |
| 4903 |
|
| 4904 |
fi |
| 4905 |
# AC_CACHE_VAL |
| 4906 |
case "x$ac_cv_prog_cc_c89" in |
| 4907 |
x) |
| 4908 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4909 |
$as_echo "none needed" >&6; } ;; |
| 4910 |
xno) |
| 4911 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4912 |
$as_echo "unsupported" >&6; } ;; |
| 4913 |
*) |
| 4914 |
CC="$CC $ac_cv_prog_cc_c89" |
| 4915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4916 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4917 |
esac |
| 4918 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4919 |
|
| 4920 |
fi |
| 4921 |
|
| 4922 |
ac_ext=c |
| 4923 |
ac_cpp='$CPP $CPPFLAGS' |
| 4924 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4925 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4926 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4927 |
|
| 4928 |
depcc="$CC" am_compiler_list= |
| 4929 |
|
| 4930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4931 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4932 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4933 |
$as_echo_n "(cached) " >&6 |
| 4934 |
else |
| 4935 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4936 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 4937 |
# making bogus files that we don't know about and never remove. For |
| 4938 |
# instance it was reported that on HP-UX the gcc test will end up |
| 4939 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 4940 |
# in D'. |
| 4941 |
rm -rf conftest.dir |
| 4942 |
mkdir conftest.dir |
| 4943 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 4944 |
# using a relative directory. |
| 4945 |
cp "$am_depcomp" conftest.dir |
| 4946 |
cd conftest.dir |
| 4947 |
# We will build objects and dependencies in a subdirectory because |
| 4948 |
# it helps to detect inapplicable dependency modes. For instance |
| 4949 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 4950 |
# side effect of compilation, but ICC will put the dependencies in |
| 4951 |
# the current directory while Tru64 will put them in the object |
| 4952 |
# directory. |
| 4953 |
mkdir sub |
| 4954 |
|
| 4955 |
am_cv_CC_dependencies_compiler_type=none |
| 4956 |
if test "$am_compiler_list" = ""; then |
| 4957 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4958 |
fi |
| 4959 |
am__universal=false |
| 4960 |
case " $depcc " in #( |
| 4961 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4962 |
esac |
| 4963 |
|
| 4964 |
for depmode in $am_compiler_list; do |
| 4965 |
# Setup a source with many dependencies, because some compilers |
| 4966 |
# like to wrap large dependency lists on column 80 (with \), and |
| 4967 |
# we should not choose a depcomp mode which is confused by this. |
| 4968 |
# |
| 4969 |
# We need to recreate these files for each test, as the compiler may |
| 4970 |
# overwrite some of them when testing with obscure command lines. |
| 4971 |
# This happens at least with the AIX C compiler. |
| 4972 |
: > sub/conftest.c |
| 4973 |
for i in 1 2 3 4 5 6; do |
| 4974 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4975 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4976 |
# Solaris 8's {/usr,}/bin/sh. |
| 4977 |
touch sub/conftst$i.h |
| 4978 |
done |
| 4979 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4980 |
|
| 4981 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4982 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 4983 |
# handle `-M -o', and we need to detect this. Also, some Intel |
| 4984 |
# versions had trouble with output in subdirs |
| 4985 |
am__obj=sub/conftest.${OBJEXT-o} |
| 4986 |
am__minus_obj="-o $am__obj" |
| 4987 |
case $depmode in |
| 4988 |
gcc) |
| 4989 |
# This depmode causes a compiler race in universal mode. |
| 4990 |
test "$am__universal" = false || continue |
| 4991 |
;; |
| 4992 |
nosideeffect) |
| 4993 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 4994 |
# only be used when explicitly requested |
| 4995 |
if test "x$enable_dependency_tracking" = xyes; then |
| 4996 |
continue |
| 4997 |
else |
| 4998 |
break |
| 4999 |
fi |
| 5000 |
;; |
| 5001 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5002 |
# This compiler won't grok `-c -o', but also, the minuso test has |
| 5003 |
# not run yet. These depmodes are late enough in the game, and |
| 5004 |
# so weak that their functioning should not be impacted. |
| 5005 |
am__obj=conftest.${OBJEXT-o} |
| 5006 |
am__minus_obj= |
| 5007 |
;; |
| 5008 |
none) break ;; |
| 5009 |
esac |
| 5010 |
if depmode=$depmode \ |
| 5011 |
source=sub/conftest.c object=$am__obj \ |
| 5012 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5013 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5014 |
>/dev/null 2>conftest.err && |
| 5015 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5016 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5017 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5018 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5019 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5020 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5021 |
# that says an option was ignored or not supported. |
| 5022 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5023 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5024 |
# The diagnosis changed in icc 8.0: |
| 5025 |
# icc: Command line remark: option '-MP' not supported |
| 5026 |
if (grep 'ignoring option' conftest.err || |
| 5027 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5028 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 5029 |
break |
| 5030 |
fi |
| 5031 |
fi |
| 5032 |
done |
| 5033 |
|
| 5034 |
cd .. |
| 5035 |
rm -rf conftest.dir |
| 5036 |
else |
| 5037 |
am_cv_CC_dependencies_compiler_type=none |
| 5038 |
fi |
| 5039 |
|
| 5040 |
fi |
| 5041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5042 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5043 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5044 |
|
| 5045 |
if |
| 5046 |
test "x$enable_dependency_tracking" != xno \ |
| 5047 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5048 |
am__fastdepCC_TRUE= |
| 5049 |
am__fastdepCC_FALSE='#' |
| 5050 |
else |
| 5051 |
am__fastdepCC_TRUE='#' |
| 5052 |
am__fastdepCC_FALSE= |
| 5053 |
fi |
| 5054 |
|
| 5055 |
|
| 5056 |
|
| 5057 |
ac_ext=c |
| 5058 |
ac_cpp='$CPP $CPPFLAGS' |
| 5059 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5060 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5061 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5063 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5064 |
# On Suns, sometimes $CPP names a directory. |
| 5065 |
if test -n "$CPP" && test -d "$CPP"; then |
| 5066 |
CPP= |
| 5067 |
fi |
| 5068 |
if test -z "$CPP"; then |
| 5069 |
if ${ac_cv_prog_CPP+:} false; then : |
| 5070 |
$as_echo_n "(cached) " >&6 |
| 5071 |
else |
| 5072 |
# Double quotes because CPP needs to be expanded |
| 5073 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5074 |
do |
| 5075 |
ac_preproc_ok=false |
| 5076 |
for ac_c_preproc_warn_flag in '' yes |
| 5077 |
do |
| 5078 |
# Use a header file that comes with gcc, so configuring glibc |
| 5079 |
# with a fresh cross-compiler works. |
| 5080 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5081 |
# <limits.h> exists even on freestanding compilers. |
| 5082 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5083 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5084 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5085 |
/* end confdefs.h. */ |
| 5086 |
#ifdef __STDC__ |
| 5087 |
# include <limits.h> |
| 5088 |
#else |
| 5089 |
# include <assert.h> |
| 5090 |
#endif |
| 5091 |
Syntax error |
| 5092 |
_ACEOF |
| 5093 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 5094 |
|
| 5095 |
else |
| 5096 |
# Broken: fails on valid input. |
| 5097 |
continue |
| 5098 |
fi |
| 5099 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5100 |
|
| 5101 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 5102 |
# can be detected and how. |
| 5103 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5104 |
/* end confdefs.h. */ |
| 5105 |
#include <ac_nonexistent.h> |
| 5106 |
_ACEOF |
| 5107 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 5108 |
# Broken: success on invalid input. |
| 5109 |
continue |
| 5110 |
else |
| 5111 |
# Passes both tests. |
| 5112 |
ac_preproc_ok=: |
| 5113 |
break |
| 5114 |
fi |
| 5115 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5116 |
|
| 5117 |
done |
| 5118 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5119 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 5120 |
if $ac_preproc_ok; then : |
| 5121 |
break |
| 5122 |
fi |
| 5123 |
|
| 5124 |
done |
| 5125 |
ac_cv_prog_CPP=$CPP |
| 5126 |
|
| 5127 |
fi |
| 5128 |
CPP=$ac_cv_prog_CPP |
| 5129 |
else |
| 5130 |
ac_cv_prog_CPP=$CPP |
| 5131 |
fi |
| 5132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5133 |
$as_echo "$CPP" >&6; } |
| 5134 |
ac_preproc_ok=false |
| 5135 |
for ac_c_preproc_warn_flag in '' yes |
| 5136 |
do |
| 5137 |
# Use a header file that comes with gcc, so configuring glibc |
| 5138 |
# with a fresh cross-compiler works. |
| 5139 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5140 |
# <limits.h> exists even on freestanding compilers. |
| 5141 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5142 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5143 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5144 |
/* end confdefs.h. */ |
| 5145 |
#ifdef __STDC__ |
| 5146 |
# include <limits.h> |
| 5147 |
#else |
| 5148 |
# include <assert.h> |
| 5149 |
#endif |
| 5150 |
Syntax error |
| 5151 |
_ACEOF |
| 5152 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 5153 |
|
| 5154 |
else |
| 5155 |
# Broken: fails on valid input. |
| 5156 |
continue |
| 5157 |
fi |
| 5158 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5159 |
|
| 5160 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 5161 |
# can be detected and how. |
| 5162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5163 |
/* end confdefs.h. */ |
| 5164 |
#include <ac_nonexistent.h> |
| 5165 |
_ACEOF |
| 5166 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 5167 |
# Broken: success on invalid input. |
| 5168 |
continue |
| 5169 |
else |
| 5170 |
# Passes both tests. |
| 5171 |
ac_preproc_ok=: |
| 5172 |
break |
| 5173 |
fi |
| 5174 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5175 |
|
| 5176 |
done |
| 5177 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5178 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 5179 |
if $ac_preproc_ok; then : |
| 5180 |
|
| 5181 |
else |
| 5182 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5183 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5184 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5185 |
See \`config.log' for more details" "$LINENO" 5; } |
| 5186 |
fi |
| 5187 |
|
| 5188 |
ac_ext=c |
| 5189 |
ac_cpp='$CPP $CPPFLAGS' |
| 5190 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5191 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5192 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5193 |
|
| 5194 |
|
| 5195 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5196 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 5197 |
if ${ac_cv_path_GREP+:} false; then : |
| 5198 |
$as_echo_n "(cached) " >&6 |
| 5199 |
else |
| 5200 |
if test -z "$GREP"; then |
| 5201 |
ac_path_GREP_found=false |
| 5202 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5203 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5204 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5205 |
do |
| 5206 |
IFS=$as_save_IFS |
| 5207 |
test -z "$as_dir" && as_dir=. |
| 5208 |
for ac_prog in grep ggrep; do |
| 5209 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5210 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5211 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 5212 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 5213 |
# Check for GNU $ac_path_GREP |
| 5214 |
case `"$ac_path_GREP" --version 2>&1` in |
| 5215 |
*GNU*) |
| 5216 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5217 |
*) |
| 5218 |
ac_count=0 |
| 5219 |
$as_echo_n 0123456789 >"conftest.in" |
| 5220 |
while : |
| 5221 |
do |
| 5222 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5223 |
mv "conftest.tmp" "conftest.in" |
| 5224 |
cp "conftest.in" "conftest.nl" |
| 5225 |
$as_echo 'GREP' >> "conftest.nl" |
| 5226 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5227 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5228 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5229 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5230 |
# Best one so far, save it but keep looking for a better one |
| 5231 |
ac_cv_path_GREP="$ac_path_GREP" |
| 5232 |
ac_path_GREP_max=$ac_count |
| 5233 |
fi |
| 5234 |
# 10*(2^10) chars as input seems more than enough |
| 5235 |
test $ac_count -gt 10 && break |
| 5236 |
done |
| 5237 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5238 |
esac |
| 5239 |
|
| 5240 |
$ac_path_GREP_found && break 3 |
| 5241 |
done |
| 5242 |
done |
| 5243 |
done |
| 5244 |
IFS=$as_save_IFS |
| 5245 |
if test -z "$ac_cv_path_GREP"; then |
| 5246 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5247 |
fi |
| 5248 |
else |
| 5249 |
ac_cv_path_GREP=$GREP |
| 5250 |
fi |
| 5251 |
|
| 5252 |
fi |
| 5253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5254 |
$as_echo "$ac_cv_path_GREP" >&6; } |
| 5255 |
GREP="$ac_cv_path_GREP" |
| 5256 |
|
| 5257 |
|
| 5258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5259 |
$as_echo_n "checking for egrep... " >&6; } |
| 5260 |
if ${ac_cv_path_EGREP+:} false; then : |
| 5261 |
$as_echo_n "(cached) " >&6 |
| 5262 |
else |
| 5263 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5264 |
then ac_cv_path_EGREP="$GREP -E" |
| 5265 |
else |
| 5266 |
if test -z "$EGREP"; then |
| 5267 |
ac_path_EGREP_found=false |
| 5268 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5269 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5270 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5271 |
do |
| 5272 |
IFS=$as_save_IFS |
| 5273 |
test -z "$as_dir" && as_dir=. |
| 5274 |
for ac_prog in egrep; do |
| 5275 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5276 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5277 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 5278 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 5279 |
# Check for GNU $ac_path_EGREP |
| 5280 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 5281 |
*GNU*) |
| 5282 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5283 |
*) |
| 5284 |
ac_count=0 |
| 5285 |
$as_echo_n 0123456789 >"conftest.in" |
| 5286 |
while : |
| 5287 |
do |
| 5288 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5289 |
mv "conftest.tmp" "conftest.in" |
| 5290 |
cp "conftest.in" "conftest.nl" |
| 5291 |
$as_echo 'EGREP' >> "conftest.nl" |
| 5292 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5293 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5294 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5295 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5296 |
# Best one so far, save it but keep looking for a better one |
| 5297 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 5298 |
ac_path_EGREP_max=$ac_count |
| 5299 |
fi |
| 5300 |
# 10*(2^10) chars as input seems more than enough |
| 5301 |
test $ac_count -gt 10 && break |
| 5302 |
done |
| 5303 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5304 |
esac |
| 5305 |
|
| 5306 |
$ac_path_EGREP_found && break 3 |
| 5307 |
done |
| 5308 |
done |
| 5309 |
done |
| 5310 |
IFS=$as_save_IFS |
| 5311 |
if test -z "$ac_cv_path_EGREP"; then |
| 5312 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5313 |
fi |
| 5314 |
else |
| 5315 |
ac_cv_path_EGREP=$EGREP |
| 5316 |
fi |
| 5317 |
|
| 5318 |
fi |
| 5319 |
fi |
| 5320 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5321 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
| 5322 |
EGREP="$ac_cv_path_EGREP" |
| 5323 |
|
| 5324 |
|
| 5325 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5326 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 5327 |
if ${ac_cv_header_stdc+:} false; then : |
| 5328 |
$as_echo_n "(cached) " >&6 |
| 5329 |
else |
| 5330 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5331 |
/* end confdefs.h. */ |
| 5332 |
#include <stdlib.h> |
| 5333 |
#include <stdarg.h> |
| 5334 |
#include <string.h> |
| 5335 |
#include <float.h> |
| 5336 |
|
| 5337 |
int |
| 5338 |
main () |
| 5339 |
{ |
| 5340 |
|
| 5341 |
; |
| 5342 |
return 0; |
| 5343 |
} |
| 5344 |
_ACEOF |
| 5345 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5346 |
ac_cv_header_stdc=yes |
| 5347 |
else |
| 5348 |
ac_cv_header_stdc=no |
| 5349 |
fi |
| 5350 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5351 |
|
| 5352 |
if test $ac_cv_header_stdc = yes; then |
| 5353 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5354 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5355 |
/* end confdefs.h. */ |
| 5356 |
#include <string.h> |
| 5357 |
|
| 5358 |
_ACEOF |
| 5359 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5360 |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 5361 |
|
| 5362 |
else |
| 5363 |
ac_cv_header_stdc=no |
| 5364 |
fi |
| 5365 |
rm -f conftest* |
| 5366 |
|
| 5367 |
fi |
| 5368 |
|
| 5369 |
if test $ac_cv_header_stdc = yes; then |
| 5370 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5371 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5372 |
/* end confdefs.h. */ |
| 5373 |
#include <stdlib.h> |
| 5374 |
|
| 5375 |
_ACEOF |
| 5376 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5377 |
$EGREP "free" >/dev/null 2>&1; then : |
| 5378 |
|
| 5379 |
else |
| 5380 |
ac_cv_header_stdc=no |
| 5381 |
fi |
| 5382 |
rm -f conftest* |
| 5383 |
|
| 5384 |
fi |
| 5385 |
|
| 5386 |
if test $ac_cv_header_stdc = yes; then |
| 5387 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5388 |
if test "$cross_compiling" = yes; then : |
| 5389 |
: |
| 5390 |
else |
| 5391 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5392 |
/* end confdefs.h. */ |
| 5393 |
#include <ctype.h> |
| 5394 |
#include <stdlib.h> |
| 5395 |
#if ((' ' & 0x0FF) == 0x020) |
| 5396 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5397 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5398 |
#else |
| 5399 |
# define ISLOWER(c) \ |
| 5400 |
(('a' <= (c) && (c) <= 'i') \ |
| 5401 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 5402 |
|| ('s' <= (c) && (c) <= 'z')) |
| 5403 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5404 |
#endif |
| 5405 |
|
| 5406 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5407 |
int |
| 5408 |
main () |
| 5409 |
{ |
| 5410 |
int i; |
| 5411 |
for (i = 0; i < 256; i++) |
| 5412 |
if (XOR (islower (i), ISLOWER (i)) |
| 5413 |
|| toupper (i) != TOUPPER (i)) |
| 5414 |
return 2; |
| 5415 |
return 0; |
| 5416 |
} |
| 5417 |
_ACEOF |
| 5418 |
if ac_fn_c_try_run "$LINENO"; then : |
| 5419 |
|
| 5420 |
else |
| 5421 |
ac_cv_header_stdc=no |
| 5422 |
fi |
| 5423 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5424 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5425 |
fi |
| 5426 |
|
| 5427 |
fi |
| 5428 |
fi |
| 5429 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5430 |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 5431 |
if test $ac_cv_header_stdc = yes; then |
| 5432 |
|
| 5433 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5434 |
|
| 5435 |
fi |
| 5436 |
|
| 5437 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5438 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5439 |
inttypes.h stdint.h unistd.h |
| 5440 |
do : |
| 5441 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5442 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5443 |
" |
| 5444 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5445 |
cat >>confdefs.h <<_ACEOF |
| 5446 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5447 |
_ACEOF |
| 5448 |
|
| 5449 |
fi |
| 5450 |
|
| 5451 |
done |
| 5452 |
|
| 5453 |
|
| 5454 |
|
| 5455 |
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 5456 |
if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 5457 |
MINIX=yes |
| 5458 |
else |
| 5459 |
MINIX= |
| 5460 |
fi |
| 5461 |
|
| 5462 |
|
| 5463 |
if test "$MINIX" = yes; then |
| 5464 |
|
| 5465 |
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5466 |
|
| 5467 |
|
| 5468 |
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5469 |
|
| 5470 |
|
| 5471 |
$as_echo "#define _MINIX 1" >>confdefs.h |
| 5472 |
|
| 5473 |
|
| 5474 |
$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 5475 |
|
| 5476 |
fi |
| 5477 |
|
| 5478 |
|
| 5479 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5480 |
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5481 |
if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 5482 |
$as_echo_n "(cached) " >&6 |
| 5483 |
else |
| 5484 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5485 |
/* end confdefs.h. */ |
| 5486 |
|
| 5487 |
# define __EXTENSIONS__ 1 |
| 5488 |
$ac_includes_default |
| 5489 |
int |
| 5490 |
main () |
| 5491 |
{ |
| 5492 |
|
| 5493 |
; |
| 5494 |
return 0; |
| 5495 |
} |
| 5496 |
_ACEOF |
| 5497 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5498 |
ac_cv_safe_to_define___extensions__=yes |
| 5499 |
else |
| 5500 |
ac_cv_safe_to_define___extensions__=no |
| 5501 |
fi |
| 5502 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5503 |
fi |
| 5504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5505 |
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5506 |
test $ac_cv_safe_to_define___extensions__ = yes && |
| 5507 |
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5508 |
|
| 5509 |
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5510 |
|
| 5511 |
$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 5512 |
|
| 5513 |
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5514 |
|
| 5515 |
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5516 |
|
| 5517 |
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5518 |
|
| 5519 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 5520 |
$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 5521 |
if ${ac_cv_should_define__xopen_source+:} false; then : |
| 5522 |
$as_echo_n "(cached) " >&6 |
| 5523 |
else |
| 5524 |
ac_cv_should_define__xopen_source=no |
| 5525 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5526 |
/* end confdefs.h. */ |
| 5527 |
|
| 5528 |
#include <wchar.h> |
| 5529 |
mbstate_t x; |
| 5530 |
int |
| 5531 |
main () |
| 5532 |
{ |
| 5533 |
|
| 5534 |
; |
| 5535 |
return 0; |
| 5536 |
} |
| 5537 |
_ACEOF |
| 5538 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5539 |
|
| 5540 |
else |
| 5541 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5542 |
/* end confdefs.h. */ |
| 5543 |
|
| 5544 |
#define _XOPEN_SOURCE 500 |
| 5545 |
#include <wchar.h> |
| 5546 |
mbstate_t x; |
| 5547 |
int |
| 5548 |
main () |
| 5549 |
{ |
| 5550 |
|
| 5551 |
; |
| 5552 |
return 0; |
| 5553 |
} |
| 5554 |
_ACEOF |
| 5555 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5556 |
ac_cv_should_define__xopen_source=yes |
| 5557 |
fi |
| 5558 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5559 |
fi |
| 5560 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5561 |
fi |
| 5562 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 5563 |
$as_echo "$ac_cv_should_define__xopen_source" >&6; } |
| 5564 |
test $ac_cv_should_define__xopen_source = yes && |
| 5565 |
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 5566 |
|
| 5567 |
|
| 5568 |
|
| 5569 |
ac_ext=c |
| 5570 |
ac_cpp='$CPP $CPPFLAGS' |
| 5571 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5572 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5573 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5574 |
if test -n "$ac_tool_prefix"; then |
| 5575 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5576 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5577 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5578 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5579 |
if ${ac_cv_prog_CC+:} false; then : |
| 5580 |
$as_echo_n "(cached) " >&6 |
| 5581 |
else |
| 5582 |
if test -n "$CC"; then |
| 5583 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5584 |
else |
| 5585 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5586 |
for as_dir in $PATH |
| 5587 |
do |
| 5588 |
IFS=$as_save_IFS |
| 5589 |
test -z "$as_dir" && as_dir=. |
| 5590 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5591 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5592 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5593 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5594 |
break 2 |
| 5595 |
fi |
| 5596 |
done |
| 5597 |
done |
| 5598 |
IFS=$as_save_IFS |
| 5599 |
|
| 5600 |
fi |
| 5601 |
fi |
| 5602 |
CC=$ac_cv_prog_CC |
| 5603 |
if test -n "$CC"; then |
| 5604 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5605 |
$as_echo "$CC" >&6; } |
| 5606 |
else |
| 5607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5608 |
$as_echo "no" >&6; } |
| 5609 |
fi |
| 5610 |
|
| 5611 |
|
| 5612 |
fi |
| 5613 |
if test -z "$ac_cv_prog_CC"; then |
| 5614 |
ac_ct_CC=$CC |
| 5615 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 5616 |
set dummy gcc; ac_word=$2 |
| 5617 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5618 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5619 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 5620 |
$as_echo_n "(cached) " >&6 |
| 5621 |
else |
| 5622 |
if test -n "$ac_ct_CC"; then |
| 5623 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5624 |
else |
| 5625 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5626 |
for as_dir in $PATH |
| 5627 |
do |
| 5628 |
IFS=$as_save_IFS |
| 5629 |
test -z "$as_dir" && as_dir=. |
| 5630 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5631 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5632 |
ac_cv_prog_ac_ct_CC="gcc" |
| 5633 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5634 |
break 2 |
| 5635 |
fi |
| 5636 |
done |
| 5637 |
done |
| 5638 |
IFS=$as_save_IFS |
| 5639 |
|
| 5640 |
fi |
| 5641 |
fi |
| 5642 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5643 |
if test -n "$ac_ct_CC"; then |
| 5644 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5645 |
$as_echo "$ac_ct_CC" >&6; } |
| 5646 |
else |
| 5647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5648 |
$as_echo "no" >&6; } |
| 5649 |
fi |
| 5650 |
|
| 5651 |
if test "x$ac_ct_CC" = x; then |
| 5652 |
CC="" |
| 5653 |
else |
| 5654 |
case $cross_compiling:$ac_tool_warned in |
| 5655 |
yes:) |
| 5656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5657 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5658 |
ac_tool_warned=yes ;; |
| 5659 |
esac |
| 5660 |
CC=$ac_ct_CC |
| 5661 |
fi |
| 5662 |
else |
| 5663 |
CC="$ac_cv_prog_CC" |
| 5664 |
fi |
| 5665 |
|
| 5666 |
if test -z "$CC"; then |
| 5667 |
if test -n "$ac_tool_prefix"; then |
| 5668 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5669 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5670 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5671 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5672 |
if ${ac_cv_prog_CC+:} false; then : |
| 5673 |
$as_echo_n "(cached) " >&6 |
| 5674 |
else |
| 5675 |
if test -n "$CC"; then |
| 5676 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5677 |
else |
| 5678 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5679 |
for as_dir in $PATH |
| 5680 |
do |
| 5681 |
IFS=$as_save_IFS |
| 5682 |
test -z "$as_dir" && as_dir=. |
| 5683 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5684 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5685 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5686 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5687 |
break 2 |
| 5688 |
fi |
| 5689 |
done |
| 5690 |
done |
| 5691 |
IFS=$as_save_IFS |
| 5692 |
|
| 5693 |
fi |
| 5694 |
fi |
| 5695 |
CC=$ac_cv_prog_CC |
| 5696 |
if test -n "$CC"; then |
| 5697 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5698 |
$as_echo "$CC" >&6; } |
| 5699 |
else |
| 5700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5701 |
$as_echo "no" >&6; } |
| 5702 |
fi |
| 5703 |
|
| 5704 |
|
| 5705 |
fi |
| 5706 |
fi |
| 5707 |
if test -z "$CC"; then |
| 5708 |
# Extract the first word of "cc", so it can be a program name with args. |
| 5709 |
set dummy cc; ac_word=$2 |
| 5710 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5711 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5712 |
if ${ac_cv_prog_CC+:} false; then : |
| 5713 |
$as_echo_n "(cached) " >&6 |
| 5714 |
else |
| 5715 |
if test -n "$CC"; then |
| 5716 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5717 |
else |
| 5718 |
ac_prog_rejected=no |
| 5719 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5720 |
for as_dir in $PATH |
| 5721 |
do |
| 5722 |
IFS=$as_save_IFS |
| 5723 |
test -z "$as_dir" && as_dir=. |
| 5724 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5725 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5726 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5727 |
ac_prog_rejected=yes |
| 5728 |
continue |
| 5729 |
fi |
| 5730 |
ac_cv_prog_CC="cc" |
| 5731 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5732 |
break 2 |
| 5733 |
fi |
| 5734 |
done |
| 5735 |
done |
| 5736 |
IFS=$as_save_IFS |
| 5737 |
|
| 5738 |
if test $ac_prog_rejected = yes; then |
| 5739 |
# We found a bogon in the path, so make sure we never use it. |
| 5740 |
set dummy $ac_cv_prog_CC |
| 5741 |
shift |
| 5742 |
if test $# != 0; then |
| 5743 |
# We chose a different compiler from the bogus one. |
| 5744 |
# However, it has the same basename, so the bogon will be chosen |
| 5745 |
# first if we set CC to just the basename; use the full file name. |
| 5746 |
shift |
| 5747 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 5748 |
fi |
| 5749 |
fi |
| 5750 |
fi |
| 5751 |
fi |
| 5752 |
CC=$ac_cv_prog_CC |
| 5753 |
if test -n "$CC"; then |
| 5754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5755 |
$as_echo "$CC" >&6; } |
| 5756 |
else |
| 5757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5758 |
$as_echo "no" >&6; } |
| 5759 |
fi |
| 5760 |
|
| 5761 |
|
| 5762 |
fi |
| 5763 |
if test -z "$CC"; then |
| 5764 |
if test -n "$ac_tool_prefix"; then |
| 5765 |
for ac_prog in cl.exe |
| 5766 |
do |
| 5767 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5768 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5769 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5770 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5771 |
if ${ac_cv_prog_CC+:} false; then : |
| 5772 |
$as_echo_n "(cached) " >&6 |
| 5773 |
else |
| 5774 |
if test -n "$CC"; then |
| 5775 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5776 |
else |
| 5777 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5778 |
for as_dir in $PATH |
| 5779 |
do |
| 5780 |
IFS=$as_save_IFS |
| 5781 |
test -z "$as_dir" && as_dir=. |
| 5782 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5783 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5784 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5785 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5786 |
break 2 |
| 5787 |
fi |
| 5788 |
done |
| 5789 |
done |
| 5790 |
IFS=$as_save_IFS |
| 5791 |
|
| 5792 |
fi |
| 5793 |
fi |
| 5794 |
CC=$ac_cv_prog_CC |
| 5795 |
if test -n "$CC"; then |
| 5796 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5797 |
$as_echo "$CC" >&6; } |
| 5798 |
else |
| 5799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5800 |
$as_echo "no" >&6; } |
| 5801 |
fi |
| 5802 |
|
| 5803 |
|
| 5804 |
test -n "$CC" && break |
| 5805 |
done |
| 5806 |
fi |
| 5807 |
if test -z "$CC"; then |
| 5808 |
ac_ct_CC=$CC |
| 5809 |
for ac_prog in cl.exe |
| 5810 |
do |
| 5811 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5812 |
set dummy $ac_prog; ac_word=$2 |
| 5813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5814 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5815 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 5816 |
$as_echo_n "(cached) " >&6 |
| 5817 |
else |
| 5818 |
if test -n "$ac_ct_CC"; then |
| 5819 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5820 |
else |
| 5821 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5822 |
for as_dir in $PATH |
| 5823 |
do |
| 5824 |
IFS=$as_save_IFS |
| 5825 |
test -z "$as_dir" && as_dir=. |
| 5826 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5827 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5828 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5829 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5830 |
break 2 |
| 5831 |
fi |
| 5832 |
done |
| 5833 |
done |
| 5834 |
IFS=$as_save_IFS |
| 5835 |
|
| 5836 |
fi |
| 5837 |
fi |
| 5838 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5839 |
if test -n "$ac_ct_CC"; then |
| 5840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5841 |
$as_echo "$ac_ct_CC" >&6; } |
| 5842 |
else |
| 5843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5844 |
$as_echo "no" >&6; } |
| 5845 |
fi |
| 5846 |
|
| 5847 |
|
| 5848 |
test -n "$ac_ct_CC" && break |
| 5849 |
done |
| 5850 |
|
| 5851 |
if test "x$ac_ct_CC" = x; then |
| 5852 |
CC="" |
| 5853 |
else |
| 5854 |
case $cross_compiling:$ac_tool_warned in |
| 5855 |
yes:) |
| 5856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5857 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5858 |
ac_tool_warned=yes ;; |
| 5859 |
esac |
| 5860 |
CC=$ac_ct_CC |
| 5861 |
fi |
| 5862 |
fi |
| 5863 |
|
| 5864 |
fi |
| 5865 |
|
| 5866 |
|
| 5867 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5868 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5869 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5870 |
See \`config.log' for more details" "$LINENO" 5; } |
| 5871 |
|
| 5872 |
# Provide some information about the compiler. |
| 5873 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5874 |
set X $ac_compile |
| 5875 |
ac_compiler=$2 |
| 5876 |
for ac_option in --version -v -V -qversion; do |
| 5877 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5878 |
case "(($ac_try" in |
| 5879 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5880 |
*) ac_try_echo=$ac_try;; |
| 5881 |
esac |
| 5882 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5883 |
$as_echo "$ac_try_echo"; } >&5 |
| 5884 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5885 |
ac_status=$? |
| 5886 |
if test -s conftest.err; then |
| 5887 |
sed '10a\ |
| 5888 |
... rest of stderr output deleted ... |
| 5889 |
10q' conftest.err >conftest.er1 |
| 5890 |
cat conftest.er1 >&5 |
| 5891 |
fi |
| 5892 |
rm -f conftest.er1 conftest.err |
| 5893 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5894 |
test $ac_status = 0; } |
| 5895 |
done |
| 5896 |
|
| 5897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5898 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5899 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 5900 |
$as_echo_n "(cached) " >&6 |
| 5901 |
else |
| 5902 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5903 |
/* end confdefs.h. */ |
| 5904 |
|
| 5905 |
int |
| 5906 |
main () |
| 5907 |
{ |
| 5908 |
#ifndef __GNUC__ |
| 5909 |
choke me |
| 5910 |
#endif |
| 5911 |
|
| 5912 |
; |
| 5913 |
return 0; |
| 5914 |
} |
| 5915 |
_ACEOF |
| 5916 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5917 |
ac_compiler_gnu=yes |
| 5918 |
else |
| 5919 |
ac_compiler_gnu=no |
| 5920 |
fi |
| 5921 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5922 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5923 |
|
| 5924 |
fi |
| 5925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5926 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5927 |
if test $ac_compiler_gnu = yes; then |
| 5928 |
GCC=yes |
| 5929 |
else |
| 5930 |
GCC= |
| 5931 |
fi |
| 5932 |
ac_test_CFLAGS=${CFLAGS+set} |
| 5933 |
ac_save_CFLAGS=$CFLAGS |
| 5934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5935 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5936 |
if ${ac_cv_prog_cc_g+:} false; then : |
| 5937 |
$as_echo_n "(cached) " >&6 |
| 5938 |
else |
| 5939 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 5940 |
ac_c_werror_flag=yes |
| 5941 |
ac_cv_prog_cc_g=no |
| 5942 |
CFLAGS="-g" |
| 5943 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5944 |
/* end confdefs.h. */ |
| 5945 |
|
| 5946 |
int |
| 5947 |
main () |
| 5948 |
{ |
| 5949 |
|
| 5950 |
; |
| 5951 |
return 0; |
| 5952 |
} |
| 5953 |
_ACEOF |
| 5954 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5955 |
ac_cv_prog_cc_g=yes |
| 5956 |
else |
| 5957 |
CFLAGS="" |
| 5958 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5959 |
/* end confdefs.h. */ |
| 5960 |
|
| 5961 |
int |
| 5962 |
main () |
| 5963 |
{ |
| 5964 |
|
| 5965 |
; |
| 5966 |
return 0; |
| 5967 |
} |
| 5968 |
_ACEOF |
| 5969 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5970 |
|
| 5971 |
else |
| 5972 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 5973 |
CFLAGS="-g" |
| 5974 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5975 |
/* end confdefs.h. */ |
| 5976 |
|
| 5977 |
int |
| 5978 |
main () |
| 5979 |
{ |
| 5980 |
|
| 5981 |
; |
| 5982 |
return 0; |
| 5983 |
} |
| 5984 |
_ACEOF |
| 5985 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5986 |
ac_cv_prog_cc_g=yes |
| 5987 |
fi |
| 5988 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5989 |
fi |
| 5990 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5991 |
fi |
| 5992 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5993 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 5994 |
fi |
| 5995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5996 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5997 |
if test "$ac_test_CFLAGS" = set; then |
| 5998 |
CFLAGS=$ac_save_CFLAGS |
| 5999 |
elif test $ac_cv_prog_cc_g = yes; then |
| 6000 |
if test "$GCC" = yes; then |
| 6001 |
CFLAGS="-g -O2" |
| 6002 |
else |
| 6003 |
CFLAGS="-g" |
| 6004 |
fi |
| 6005 |
else |
| 6006 |
if test "$GCC" = yes; then |
| 6007 |
CFLAGS="-O2" |
| 6008 |
else |
| 6009 |
CFLAGS= |
| 6010 |
fi |
| 6011 |
fi |
| 6012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 6013 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 6014 |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 6015 |
$as_echo_n "(cached) " >&6 |
| 6016 |
else |
| 6017 |
ac_cv_prog_cc_c89=no |
| 6018 |
ac_save_CC=$CC |
| 6019 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6020 |
/* end confdefs.h. */ |
| 6021 |
#include <stdarg.h> |
| 6022 |
#include <stdio.h> |
| 6023 |
struct stat; |
| 6024 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6025 |
struct buf { int x; }; |
| 6026 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6027 |
static char *e (p, i) |
| 6028 |
char **p; |
| 6029 |
int i; |
| 6030 |
{ |
| 6031 |
return p[i]; |
| 6032 |
} |
| 6033 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 6034 |
{ |
| 6035 |
char *s; |
| 6036 |
va_list v; |
| 6037 |
va_start (v,p); |
| 6038 |
s = g (p, va_arg (v,int)); |
| 6039 |
va_end (v); |
| 6040 |
return s; |
| 6041 |
} |
| 6042 |
|
| 6043 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6044 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 6045 |
These don't provoke an error unfortunately, instead are silently treated |
| 6046 |
as 'x'. The following induces an error, until -std is added to get |
| 6047 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6048 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 6049 |
that's true only with -std. */ |
| 6050 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6051 |
|
| 6052 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6053 |
inside strings and character constants. */ |
| 6054 |
#define FOO(x) 'x' |
| 6055 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6056 |
|
| 6057 |
int test (int i, double x); |
| 6058 |
struct s1 {int (*f) (int a);}; |
| 6059 |
struct s2 {int (*f) (double a);}; |
| 6060 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6061 |
int argc; |
| 6062 |
char **argv; |
| 6063 |
int |
| 6064 |
main () |
| 6065 |
{ |
| 6066 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6067 |
; |
| 6068 |
return 0; |
| 6069 |
} |
| 6070 |
_ACEOF |
| 6071 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6072 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6073 |
do |
| 6074 |
CC="$ac_save_CC $ac_arg" |
| 6075 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6076 |
ac_cv_prog_cc_c89=$ac_arg |
| 6077 |
fi |
| 6078 |
rm -f core conftest.err conftest.$ac_objext |
| 6079 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6080 |
done |
| 6081 |
rm -f conftest.$ac_ext |
| 6082 |
CC=$ac_save_CC |
| 6083 |
|
| 6084 |
fi |
| 6085 |
# AC_CACHE_VAL |
| 6086 |
case "x$ac_cv_prog_cc_c89" in |
| 6087 |
x) |
| 6088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6089 |
$as_echo "none needed" >&6; } ;; |
| 6090 |
xno) |
| 6091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6092 |
$as_echo "unsupported" >&6; } ;; |
| 6093 |
*) |
| 6094 |
CC="$CC $ac_cv_prog_cc_c89" |
| 6095 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6096 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6097 |
esac |
| 6098 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 6099 |
|
| 6100 |
fi |
| 6101 |
|
| 6102 |
ac_ext=c |
| 6103 |
ac_cpp='$CPP $CPPFLAGS' |
| 6104 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6105 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6106 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6107 |
|
| 6108 |
depcc="$CC" am_compiler_list= |
| 6109 |
|
| 6110 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6111 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 6112 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 6113 |
$as_echo_n "(cached) " >&6 |
| 6114 |
else |
| 6115 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6116 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 6117 |
# making bogus files that we don't know about and never remove. For |
| 6118 |
# instance it was reported that on HP-UX the gcc test will end up |
| 6119 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 6120 |
# in D'. |
| 6121 |
rm -rf conftest.dir |
| 6122 |
mkdir conftest.dir |
| 6123 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 6124 |
# using a relative directory. |
| 6125 |
cp "$am_depcomp" conftest.dir |
| 6126 |
cd conftest.dir |
| 6127 |
# We will build objects and dependencies in a subdirectory because |
| 6128 |
# it helps to detect inapplicable dependency modes. For instance |
| 6129 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 6130 |
# side effect of compilation, but ICC will put the dependencies in |
| 6131 |
# the current directory while Tru64 will put them in the object |
| 6132 |
# directory. |
| 6133 |
mkdir sub |
| 6134 |
|
| 6135 |
am_cv_CC_dependencies_compiler_type=none |
| 6136 |
if test "$am_compiler_list" = ""; then |
| 6137 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6138 |
fi |
| 6139 |
am__universal=false |
| 6140 |
case " $depcc " in #( |
| 6141 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6142 |
esac |
| 6143 |
|
| 6144 |
for depmode in $am_compiler_list; do |
| 6145 |
# Setup a source with many dependencies, because some compilers |
| 6146 |
# like to wrap large dependency lists on column 80 (with \), and |
| 6147 |
# we should not choose a depcomp mode which is confused by this. |
| 6148 |
# |
| 6149 |
# We need to recreate these files for each test, as the compiler may |
| 6150 |
# overwrite some of them when testing with obscure command lines. |
| 6151 |
# This happens at least with the AIX C compiler. |
| 6152 |
: > sub/conftest.c |
| 6153 |
for i in 1 2 3 4 5 6; do |
| 6154 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6155 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6156 |
# Solaris 8's {/usr,}/bin/sh. |
| 6157 |
touch sub/conftst$i.h |
| 6158 |
done |
| 6159 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6160 |
|
| 6161 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6162 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 6163 |
# handle `-M -o', and we need to detect this. Also, some Intel |
| 6164 |
# versions had trouble with output in subdirs |
| 6165 |
am__obj=sub/conftest.${OBJEXT-o} |
| 6166 |
am__minus_obj="-o $am__obj" |
| 6167 |
case $depmode in |
| 6168 |
gcc) |
| 6169 |
# This depmode causes a compiler race in universal mode. |
| 6170 |
test "$am__universal" = false || continue |
| 6171 |
;; |
| 6172 |
nosideeffect) |
| 6173 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 6174 |
# only be used when explicitly requested |
| 6175 |
if test "x$enable_dependency_tracking" = xyes; then |
| 6176 |
continue |
| 6177 |
else |
| 6178 |
break |
| 6179 |
fi |
| 6180 |
;; |
| 6181 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 6182 |
# This compiler won't grok `-c -o', but also, the minuso test has |
| 6183 |
# not run yet. These depmodes are late enough in the game, and |
| 6184 |
# so weak that their functioning should not be impacted. |
| 6185 |
am__obj=conftest.${OBJEXT-o} |
| 6186 |
am__minus_obj= |
| 6187 |
;; |
| 6188 |
none) break ;; |
| 6189 |
esac |
| 6190 |
if depmode=$depmode \ |
| 6191 |
source=sub/conftest.c object=$am__obj \ |
| 6192 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6193 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6194 |
>/dev/null 2>conftest.err && |
| 6195 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6196 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6197 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6198 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6199 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 6200 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 6201 |
# that says an option was ignored or not supported. |
| 6202 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6203 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 6204 |
# The diagnosis changed in icc 8.0: |
| 6205 |
# icc: Command line remark: option '-MP' not supported |
| 6206 |
if (grep 'ignoring option' conftest.err || |
| 6207 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6208 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 6209 |
break |
| 6210 |
fi |
| 6211 |
fi |
| 6212 |
done |
| 6213 |
|
| 6214 |
cd .. |
| 6215 |
rm -rf conftest.dir |
| 6216 |
else |
| 6217 |
am_cv_CC_dependencies_compiler_type=none |
| 6218 |
fi |
| 6219 |
|
| 6220 |
fi |
| 6221 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 6222 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 6223 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 6224 |
|
| 6225 |
if |
| 6226 |
test "x$enable_dependency_tracking" != xno \ |
| 6227 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 6228 |
am__fastdepCC_TRUE= |
| 6229 |
am__fastdepCC_FALSE='#' |
| 6230 |
else |
| 6231 |
am__fastdepCC_TRUE='#' |
| 6232 |
am__fastdepCC_FALSE= |
| 6233 |
fi |
| 6234 |
|
| 6235 |
|
| 6236 |
|
| 6237 |
|
| 6238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 |
| 6239 |
$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } |
| 6240 |
if ${gl_cv_c_amsterdam_compiler+:} false; then : |
| 6241 |
$as_echo_n "(cached) " >&6 |
| 6242 |
else |
| 6243 |
|
| 6244 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6245 |
/* end confdefs.h. */ |
| 6246 |
|
| 6247 |
#ifdef __ACK__ |
| 6248 |
Amsterdam |
| 6249 |
#endif |
| 6250 |
|
| 6251 |
_ACEOF |
| 6252 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6253 |
$EGREP "Amsterdam" >/dev/null 2>&1; then : |
| 6254 |
gl_cv_c_amsterdam_compiler=yes |
| 6255 |
else |
| 6256 |
gl_cv_c_amsterdam_compiler=no |
| 6257 |
fi |
| 6258 |
rm -f conftest* |
| 6259 |
|
| 6260 |
|
| 6261 |
fi |
| 6262 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 |
| 6263 |
$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } |
| 6264 |
if test -z "$AR"; then |
| 6265 |
if test $gl_cv_c_amsterdam_compiler = yes; then |
| 6266 |
AR='cc -c.a' |
| 6267 |
if test -z "$ARFLAGS"; then |
| 6268 |
ARFLAGS='-o' |
| 6269 |
fi |
| 6270 |
else |
| 6271 |
if test -n "$ac_tool_prefix"; then |
| 6272 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6273 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6274 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6275 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6276 |
if ${ac_cv_prog_AR+:} false; then : |
| 6277 |
$as_echo_n "(cached) " >&6 |
| 6278 |
else |
| 6279 |
if test -n "$AR"; then |
| 6280 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6281 |
else |
| 6282 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6283 |
for as_dir in $PATH |
| 6284 |
do |
| 6285 |
IFS=$as_save_IFS |
| 6286 |
test -z "$as_dir" && as_dir=. |
| 6287 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6288 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6289 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6290 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6291 |
break 2 |
| 6292 |
fi |
| 6293 |
done |
| 6294 |
done |
| 6295 |
IFS=$as_save_IFS |
| 6296 |
|
| 6297 |
fi |
| 6298 |
fi |
| 6299 |
AR=$ac_cv_prog_AR |
| 6300 |
if test -n "$AR"; then |
| 6301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6302 |
$as_echo "$AR" >&6; } |
| 6303 |
else |
| 6304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6305 |
$as_echo "no" >&6; } |
| 6306 |
fi |
| 6307 |
|
| 6308 |
|
| 6309 |
fi |
| 6310 |
if test -z "$ac_cv_prog_AR"; then |
| 6311 |
ac_ct_AR=$AR |
| 6312 |
# Extract the first word of "ar", so it can be a program name with args. |
| 6313 |
set dummy ar; ac_word=$2 |
| 6314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6315 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6316 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6317 |
$as_echo_n "(cached) " >&6 |
| 6318 |
else |
| 6319 |
if test -n "$ac_ct_AR"; then |
| 6320 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6321 |
else |
| 6322 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6323 |
for as_dir in $PATH |
| 6324 |
do |
| 6325 |
IFS=$as_save_IFS |
| 6326 |
test -z "$as_dir" && as_dir=. |
| 6327 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6328 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6329 |
ac_cv_prog_ac_ct_AR="ar" |
| 6330 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6331 |
break 2 |
| 6332 |
fi |
| 6333 |
done |
| 6334 |
done |
| 6335 |
IFS=$as_save_IFS |
| 6336 |
|
| 6337 |
fi |
| 6338 |
fi |
| 6339 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6340 |
if test -n "$ac_ct_AR"; then |
| 6341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6342 |
$as_echo "$ac_ct_AR" >&6; } |
| 6343 |
else |
| 6344 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6345 |
$as_echo "no" >&6; } |
| 6346 |
fi |
| 6347 |
|
| 6348 |
if test "x$ac_ct_AR" = x; then |
| 6349 |
AR="ar" |
| 6350 |
else |
| 6351 |
case $cross_compiling:$ac_tool_warned in |
| 6352 |
yes:) |
| 6353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6354 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6355 |
ac_tool_warned=yes ;; |
| 6356 |
esac |
| 6357 |
AR=$ac_ct_AR |
| 6358 |
fi |
| 6359 |
else |
| 6360 |
AR="$ac_cv_prog_AR" |
| 6361 |
fi |
| 6362 |
|
| 6363 |
if test -z "$ARFLAGS"; then |
| 6364 |
ARFLAGS='cru' |
| 6365 |
fi |
| 6366 |
fi |
| 6367 |
else |
| 6368 |
if test -z "$ARFLAGS"; then |
| 6369 |
ARFLAGS='cru' |
| 6370 |
fi |
| 6371 |
fi |
| 6372 |
|
| 6373 |
|
| 6374 |
if test -z "$RANLIB"; then |
| 6375 |
if test $gl_cv_c_amsterdam_compiler = yes; then |
| 6376 |
RANLIB=':' |
| 6377 |
else |
| 6378 |
if test -n "$ac_tool_prefix"; then |
| 6379 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6380 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6381 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6382 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6383 |
if ${ac_cv_prog_RANLIB+:} false; then : |
| 6384 |
$as_echo_n "(cached) " >&6 |
| 6385 |
else |
| 6386 |
if test -n "$RANLIB"; then |
| 6387 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6388 |
else |
| 6389 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6390 |
for as_dir in $PATH |
| 6391 |
do |
| 6392 |
IFS=$as_save_IFS |
| 6393 |
test -z "$as_dir" && as_dir=. |
| 6394 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6395 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6396 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6397 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6398 |
break 2 |
| 6399 |
fi |
| 6400 |
done |
| 6401 |
done |
| 6402 |
IFS=$as_save_IFS |
| 6403 |
|
| 6404 |
fi |
| 6405 |
fi |
| 6406 |
RANLIB=$ac_cv_prog_RANLIB |
| 6407 |
if test -n "$RANLIB"; then |
| 6408 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6409 |
$as_echo "$RANLIB" >&6; } |
| 6410 |
else |
| 6411 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6412 |
$as_echo "no" >&6; } |
| 6413 |
fi |
| 6414 |
|
| 6415 |
|
| 6416 |
fi |
| 6417 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 6418 |
ac_ct_RANLIB=$RANLIB |
| 6419 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 6420 |
set dummy ranlib; ac_word=$2 |
| 6421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6422 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6423 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6424 |
$as_echo_n "(cached) " >&6 |
| 6425 |
else |
| 6426 |
if test -n "$ac_ct_RANLIB"; then |
| 6427 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6428 |
else |
| 6429 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6430 |
for as_dir in $PATH |
| 6431 |
do |
| 6432 |
IFS=$as_save_IFS |
| 6433 |
test -z "$as_dir" && as_dir=. |
| 6434 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6435 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6436 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6437 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6438 |
break 2 |
| 6439 |
fi |
| 6440 |
done |
| 6441 |
done |
| 6442 |
IFS=$as_save_IFS |
| 6443 |
|
| 6444 |
fi |
| 6445 |
fi |
| 6446 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6447 |
if test -n "$ac_ct_RANLIB"; then |
| 6448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6449 |
$as_echo "$ac_ct_RANLIB" >&6; } |
| 6450 |
else |
| 6451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6452 |
$as_echo "no" >&6; } |
| 6453 |
fi |
| 6454 |
|
| 6455 |
if test "x$ac_ct_RANLIB" = x; then |
| 6456 |
RANLIB=":" |
| 6457 |
else |
| 6458 |
case $cross_compiling:$ac_tool_warned in |
| 6459 |
yes:) |
| 6460 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6461 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6462 |
ac_tool_warned=yes ;; |
| 6463 |
esac |
| 6464 |
RANLIB=$ac_ct_RANLIB |
| 6465 |
fi |
| 6466 |
else |
| 6467 |
RANLIB="$ac_cv_prog_RANLIB" |
| 6468 |
fi |
| 6469 |
|
| 6470 |
fi |
| 6471 |
fi |
| 6472 |
|
| 6473 |
|
| 6474 |
|
| 6475 |
|
| 6476 |
|
| 6477 |
|
| 6478 |
|
| 6479 |
|
| 6480 |
# Check whether --enable-largefile was given. |
| 6481 |
if test "${enable_largefile+set}" = set; then : |
| 6482 |
enableval=$enable_largefile; |
| 6483 |
fi |
| 6484 |
|
| 6485 |
if test "$enable_largefile" != no; then |
| 6486 |
|
| 6487 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 6488 |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 6489 |
if ${ac_cv_sys_largefile_CC+:} false; then : |
| 6490 |
$as_echo_n "(cached) " >&6 |
| 6491 |
else |
| 6492 |
ac_cv_sys_largefile_CC=no |
| 6493 |
if test "$GCC" != yes; then |
| 6494 |
ac_save_CC=$CC |
| 6495 |
while :; do |
| 6496 |
# IRIX 6.2 and later do not support large files by default, |
| 6497 |
# so use the C compiler's -n32 option if that helps. |
| 6498 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6499 |
/* end confdefs.h. */ |
| 6500 |
#include <sys/types.h> |
| 6501 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 6502 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6503 |
since some C++ compilers masquerading as C compilers |
| 6504 |
incorrectly reject 9223372036854775807. */ |
| 6505 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6506 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6507 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 6508 |
? 1 : -1]; |
| 6509 |
int |
| 6510 |
main () |
| 6511 |
{ |
| 6512 |
|
| 6513 |
; |
| 6514 |
return 0; |
| 6515 |
} |
| 6516 |
_ACEOF |
| 6517 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6518 |
break |
| 6519 |
fi |
| 6520 |
rm -f core conftest.err conftest.$ac_objext |
| 6521 |
CC="$CC -n32" |
| 6522 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6523 |
ac_cv_sys_largefile_CC=' -n32'; break |
| 6524 |
fi |
| 6525 |
rm -f core conftest.err conftest.$ac_objext |
| 6526 |
break |
| 6527 |
done |
| 6528 |
CC=$ac_save_CC |
| 6529 |
rm -f conftest.$ac_ext |
| 6530 |
fi |
| 6531 |
fi |
| 6532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 6533 |
$as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 6534 |
if test "$ac_cv_sys_largefile_CC" != no; then |
| 6535 |
CC=$CC$ac_cv_sys_largefile_CC |
| 6536 |
fi |
| 6537 |
|
| 6538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 6539 |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 6540 |
if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 6541 |
$as_echo_n "(cached) " >&6 |
| 6542 |
else |
| 6543 |
while :; do |
| 6544 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6545 |
/* end confdefs.h. */ |
| 6546 |
#include <sys/types.h> |
| 6547 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 6548 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6549 |
since some C++ compilers masquerading as C compilers |
| 6550 |
incorrectly reject 9223372036854775807. */ |
| 6551 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6552 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6553 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 6554 |
? 1 : -1]; |
| 6555 |
int |
| 6556 |
main () |
| 6557 |
{ |
| 6558 |
|
| 6559 |
; |
| 6560 |
return 0; |
| 6561 |
} |
| 6562 |
_ACEOF |
| 6563 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6564 |
ac_cv_sys_file_offset_bits=no; break |
| 6565 |
fi |
| 6566 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6567 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6568 |
/* end confdefs.h. */ |
| 6569 |
#define _FILE_OFFSET_BITS 64 |
| 6570 |
#include <sys/types.h> |
| 6571 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 6572 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6573 |
since some C++ compilers masquerading as C compilers |
| 6574 |
incorrectly reject 9223372036854775807. */ |
| 6575 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6576 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6577 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 6578 |
? 1 : -1]; |
| 6579 |
int |
| 6580 |
main () |
| 6581 |
{ |
| 6582 |
|
| 6583 |
; |
| 6584 |
return 0; |
| 6585 |
} |
| 6586 |
_ACEOF |
| 6587 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6588 |
ac_cv_sys_file_offset_bits=64; break |
| 6589 |
fi |
| 6590 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6591 |
ac_cv_sys_file_offset_bits=unknown |
| 6592 |
break |
| 6593 |
done |
| 6594 |
fi |
| 6595 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 6596 |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 6597 |
case $ac_cv_sys_file_offset_bits in #( |
| 6598 |
no | unknown) ;; |
| 6599 |
*) |
| 6600 |
cat >>confdefs.h <<_ACEOF |
| 6601 |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 6602 |
_ACEOF |
| 6603 |
;; |
| 6604 |
esac |
| 6605 |
rm -rf conftest* |
| 6606 |
if test $ac_cv_sys_file_offset_bits = unknown; then |
| 6607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 6608 |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 6609 |
if ${ac_cv_sys_large_files+:} false; then : |
| 6610 |
$as_echo_n "(cached) " >&6 |
| 6611 |
else |
| 6612 |
while :; do |
| 6613 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6614 |
/* end confdefs.h. */ |
| 6615 |
#include <sys/types.h> |
| 6616 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 6617 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6618 |
since some C++ compilers masquerading as C compilers |
| 6619 |
incorrectly reject 9223372036854775807. */ |
| 6620 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6621 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6622 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 6623 |
? 1 : -1]; |
| 6624 |
int |
| 6625 |
main () |
| 6626 |
{ |
| 6627 |
|
| 6628 |
; |
| 6629 |
return 0; |
| 6630 |
} |
| 6631 |
_ACEOF |
| 6632 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6633 |
ac_cv_sys_large_files=no; break |
| 6634 |
fi |
| 6635 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6636 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6637 |
/* end confdefs.h. */ |
| 6638 |
#define _LARGE_FILES 1 |
| 6639 |
#include <sys/types.h> |
| 6640 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 6641 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6642 |
since some C++ compilers masquerading as C compilers |
| 6643 |
incorrectly reject 9223372036854775807. */ |
| 6644 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6645 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6646 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 6647 |
? 1 : -1]; |
| 6648 |
int |
| 6649 |
main () |
| 6650 |
{ |
| 6651 |
|
| 6652 |
; |
| 6653 |
return 0; |
| 6654 |
} |
| 6655 |
_ACEOF |
| 6656 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6657 |
ac_cv_sys_large_files=1; break |
| 6658 |
fi |
| 6659 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6660 |
ac_cv_sys_large_files=unknown |
| 6661 |
break |
| 6662 |
done |
| 6663 |
fi |
| 6664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 6665 |
$as_echo "$ac_cv_sys_large_files" >&6; } |
| 6666 |
case $ac_cv_sys_large_files in #( |
| 6667 |
no | unknown) ;; |
| 6668 |
*) |
| 6669 |
cat >>confdefs.h <<_ACEOF |
| 6670 |
#define _LARGE_FILES $ac_cv_sys_large_files |
| 6671 |
_ACEOF |
| 6672 |
;; |
| 6673 |
esac |
| 6674 |
rm -rf conftest* |
| 6675 |
fi |
| 6676 |
|
| 6677 |
|
| 6678 |
$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h |
| 6679 |
|
| 6680 |
fi |
| 6681 |
|
| 6682 |
|
| 6683 |
|
| 6684 |
# Code from module alloca-opt: |
| 6685 |
# Code from module calloc-gnu: |
| 6686 |
# Code from module calloc-posix: |
| 6687 |
# Code from module close: |
| 6688 |
# Code from module dosname: |
| 6689 |
# Code from module errno: |
| 6690 |
# Code from module error: |
| 6691 |
# Code from module extensions: |
| 6692 |
|
| 6693 |
# Code from module extern-inline: |
| 6694 |
# Code from module fcntl-h: |
| 6695 |
# Code from module fd-hook: |
| 6696 |
# Code from module float: |
| 6697 |
# Code from module fopen: |
| 6698 |
# Code from module free: |
| 6699 |
# Code from module fstat: |
| 6700 |
# Code from module getopt-gnu: |
| 6701 |
# Code from module getopt-posix: |
| 6702 |
# Code from module gettext: |
| 6703 |
# Code from module gettext-h: |
| 6704 |
# Code from module git-version-gen: |
| 6705 |
# Code from module havelib: |
| 6706 |
# Code from module include_next: |
| 6707 |
# Code from module intprops: |
| 6708 |
# Code from module largefile: |
| 6709 |
|
| 6710 |
# Code from module malloc-gnu: |
| 6711 |
# Code from module malloc-posix: |
| 6712 |
# Code from module math: |
| 6713 |
# Code from module memchr: |
| 6714 |
# Code from module memcpy: |
| 6715 |
# Code from module memset: |
| 6716 |
# Code from module msvc-inval: |
| 6717 |
# Code from module msvc-nothrow: |
| 6718 |
# Code from module multiarch: |
| 6719 |
# Code from module nocrash: |
| 6720 |
# Code from module open: |
| 6721 |
# Code from module pathmax: |
| 6722 |
# Code from module raise: |
| 6723 |
# Code from module rint: |
| 6724 |
# Code from module search: |
| 6725 |
# Code from module signal-h: |
| 6726 |
# Code from module sigpipe: |
| 6727 |
# Code from module sigprocmask: |
| 6728 |
# Code from module size_max: |
| 6729 |
# Code from module snippet/_Noreturn: |
| 6730 |
# Code from module snippet/arg-nonnull: |
| 6731 |
# Code from module snippet/c++defs: |
| 6732 |
# Code from module snippet/warn-on-use: |
| 6733 |
# Code from module snprintf: |
| 6734 |
# Code from module ssize_t: |
| 6735 |
# Code from module stat: |
| 6736 |
# Code from module stdbool: |
| 6737 |
# Code from module stddef: |
| 6738 |
# Code from module stdint: |
| 6739 |
# Code from module stdio: |
| 6740 |
# Code from module stdlib: |
| 6741 |
# Code from module strdup-posix: |
| 6742 |
# Code from module strerror: |
| 6743 |
# Code from module strerror-override: |
| 6744 |
# Code from module string: |
| 6745 |
# Code from module sys_stat: |
| 6746 |
# Code from module sys_types: |
| 6747 |
# Code from module time: |
| 6748 |
# Code from module unistd: |
| 6749 |
# Code from module vasnprintf: |
| 6750 |
# Code from module verify: |
| 6751 |
# Code from module wchar: |
| 6752 |
# Code from module write: |
| 6753 |
# Code from module xsize: |
| 6754 |
|
| 6755 |
|
| 6756 |
|
| 6757 |
for ac_prog in gawk mawk nawk awk |
| 6758 |
do |
| 6759 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6760 |
set dummy $ac_prog; ac_word=$2 |
| 6761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6762 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6763 |
if ${ac_cv_prog_AWK+:} false; then : |
| 6764 |
$as_echo_n "(cached) " >&6 |
| 6765 |
else |
| 6766 |
if test -n "$AWK"; then |
| 6767 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 6768 |
else |
| 6769 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6770 |
for as_dir in $PATH |
| 6771 |
do |
| 6772 |
IFS=$as_save_IFS |
| 6773 |
test -z "$as_dir" && as_dir=. |
| 6774 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6775 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6776 |
ac_cv_prog_AWK="$ac_prog" |
| 6777 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6778 |
break 2 |
| 6779 |
fi |
| 6780 |
done |
| 6781 |
done |
| 6782 |
IFS=$as_save_IFS |
| 6783 |
|
| 6784 |
fi |
| 6785 |
fi |
| 6786 |
AWK=$ac_cv_prog_AWK |
| 6787 |
if test -n "$AWK"; then |
| 6788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 6789 |
$as_echo "$AWK" >&6; } |
| 6790 |
else |
| 6791 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6792 |
$as_echo "no" >&6; } |
| 6793 |
fi |
| 6794 |
|
| 6795 |
|
| 6796 |
test -n "$AWK" && break |
| 6797 |
done |
| 6798 |
|
| 6799 |
|
| 6800 |
|
| 6801 |
if test -n "$ac_tool_prefix"; then |
| 6802 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6803 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6805 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6806 |
if ${ac_cv_prog_AR+:} false; then : |
| 6807 |
$as_echo_n "(cached) " >&6 |
| 6808 |
else |
| 6809 |
if test -n "$AR"; then |
| 6810 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6811 |
else |
| 6812 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6813 |
for as_dir in $PATH |
| 6814 |
do |
| 6815 |
IFS=$as_save_IFS |
| 6816 |
test -z "$as_dir" && as_dir=. |
| 6817 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6818 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6819 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6820 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6821 |
break 2 |
| 6822 |
fi |
| 6823 |
done |
| 6824 |
done |
| 6825 |
IFS=$as_save_IFS |
| 6826 |
|
| 6827 |
fi |
| 6828 |
fi |
| 6829 |
AR=$ac_cv_prog_AR |
| 6830 |
if test -n "$AR"; then |
| 6831 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6832 |
$as_echo "$AR" >&6; } |
| 6833 |
else |
| 6834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6835 |
$as_echo "no" >&6; } |
| 6836 |
fi |
| 6837 |
|
| 6838 |
|
| 6839 |
fi |
| 6840 |
if test -z "$ac_cv_prog_AR"; then |
| 6841 |
ac_ct_AR=$AR |
| 6842 |
# Extract the first word of "ar", so it can be a program name with args. |
| 6843 |
set dummy ar; ac_word=$2 |
| 6844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6845 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6846 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6847 |
$as_echo_n "(cached) " >&6 |
| 6848 |
else |
| 6849 |
if test -n "$ac_ct_AR"; then |
| 6850 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6851 |
else |
| 6852 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6853 |
for as_dir in $PATH |
| 6854 |
do |
| 6855 |
IFS=$as_save_IFS |
| 6856 |
test -z "$as_dir" && as_dir=. |
| 6857 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6858 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6859 |
ac_cv_prog_ac_ct_AR="ar" |
| 6860 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6861 |
break 2 |
| 6862 |
fi |
| 6863 |
done |
| 6864 |
done |
| 6865 |
IFS=$as_save_IFS |
| 6866 |
|
| 6867 |
fi |
| 6868 |
fi |
| 6869 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6870 |
if test -n "$ac_ct_AR"; then |
| 6871 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6872 |
$as_echo "$ac_ct_AR" >&6; } |
| 6873 |
else |
| 6874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6875 |
$as_echo "no" >&6; } |
| 6876 |
fi |
| 6877 |
|
| 6878 |
if test "x$ac_ct_AR" = x; then |
| 6879 |
AR="" |
| 6880 |
else |
| 6881 |
case $cross_compiling:$ac_tool_warned in |
| 6882 |
yes:) |
| 6883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6884 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6885 |
ac_tool_warned=yes ;; |
| 6886 |
esac |
| 6887 |
AR=$ac_ct_AR |
| 6888 |
fi |
| 6889 |
else |
| 6890 |
AR="$ac_cv_prog_AR" |
| 6891 |
fi |
| 6892 |
|
| 6893 |
case `pwd` in |
| 6894 |
*\ * | *\ *) |
| 6895 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 6896 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 6897 |
esac |
| 6898 |
|
| 6899 |
|
| 6900 |
|
| 6901 |
macro_version='2.4.2' |
| 6902 |
macro_revision='1.3337' |
| 6903 |
|
| 6904 |
|
| 6905 |
|
| 6906 |
|
| 6907 |
|
| 6908 |
|
| 6909 |
|
| 6910 |
|
| 6911 |
|
| 6912 |
|
| 6913 |
|
| 6914 |
|
| 6915 |
|
| 6916 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 6917 |
|
| 6918 |
# Backslashify metacharacters that are still active within |
| 6919 |
# double-quoted strings. |
| 6920 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 6921 |
|
| 6922 |
# Same as above, but do not quote variable references. |
| 6923 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 6924 |
|
| 6925 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 6926 |
# double_quote_subst'ed string. |
| 6927 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6928 |
|
| 6929 |
# Sed substitution to delay expansion of an escaped single quote. |
| 6930 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6931 |
|
| 6932 |
# Sed substitution to avoid accidental globbing in evaled expressions |
| 6933 |
no_glob_subst='s/\*/\\\*/g' |
| 6934 |
|
| 6935 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 6936 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6937 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 6938 |
|
| 6939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 6940 |
$as_echo_n "checking how to print strings... " >&6; } |
| 6941 |
# Test print first, because it will be a builtin if present. |
| 6942 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 6943 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6944 |
ECHO='print -r --' |
| 6945 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 6946 |
ECHO='printf %s\n' |
| 6947 |
else |
| 6948 |
# Use this function as a fallback that always works. |
| 6949 |
func_fallback_echo () |
| 6950 |
{ |
| 6951 |
eval 'cat <<_LTECHO_EOF |
| 6952 |
$1 |
| 6953 |
_LTECHO_EOF' |
| 6954 |
} |
| 6955 |
ECHO='func_fallback_echo' |
| 6956 |
fi |
| 6957 |
|
| 6958 |
# func_echo_all arg... |
| 6959 |
# Invoke $ECHO with all args, space-separated. |
| 6960 |
func_echo_all () |
| 6961 |
{ |
| 6962 |
$ECHO "" |
| 6963 |
} |
| 6964 |
|
| 6965 |
case "$ECHO" in |
| 6966 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 6967 |
$as_echo "printf" >&6; } ;; |
| 6968 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 6969 |
$as_echo "print -r" >&6; } ;; |
| 6970 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 6971 |
$as_echo "cat" >&6; } ;; |
| 6972 |
esac |
| 6973 |
|
| 6974 |
|
| 6975 |
|
| 6976 |
|
| 6977 |
|
| 6978 |
|
| 6979 |
|
| 6980 |
|
| 6981 |
|
| 6982 |
|
| 6983 |
|
| 6984 |
|
| 6985 |
|
| 6986 |
|
| 6987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6988 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6989 |
if ${ac_cv_path_SED+:} false; then : |
| 6990 |
$as_echo_n "(cached) " >&6 |
| 6991 |
else |
| 6992 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6993 |
for ac_i in 1 2 3 4 5 6 7; do |
| 6994 |
ac_script="$ac_script$as_nl$ac_script" |
| 6995 |
done |
| 6996 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6997 |
{ ac_script=; unset ac_script;} |
| 6998 |
if test -z "$SED"; then |
| 6999 |
ac_path_SED_found=false |
| 7000 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 7001 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7002 |
for as_dir in $PATH |
| 7003 |
do |
| 7004 |
IFS=$as_save_IFS |
| 7005 |
test -z "$as_dir" && as_dir=. |
| 7006 |
for ac_prog in sed gsed; do |
| 7007 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7008 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 7009 |
as_fn_executable_p "$ac_path_SED" || continue |
| 7010 |
# Check for GNU ac_path_SED and select it if it is found. |
| 7011 |
# Check for GNU $ac_path_SED |
| 7012 |
case `"$ac_path_SED" --version 2>&1` in |
| 7013 |
*GNU*) |
| 7014 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 7015 |
*) |
| 7016 |
ac_count=0 |
| 7017 |
$as_echo_n 0123456789 >"conftest.in" |
| 7018 |
while : |
| 7019 |
do |
| 7020 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7021 |
mv "conftest.tmp" "conftest.in" |
| 7022 |
cp "conftest.in" "conftest.nl" |
| 7023 |
$as_echo '' >> "conftest.nl" |
| 7024 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7025 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7026 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7027 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 7028 |
# Best one so far, save it but keep looking for a better one |
| 7029 |
ac_cv_path_SED="$ac_path_SED" |
| 7030 |
ac_path_SED_max=$ac_count |
| 7031 |
fi |
| 7032 |
# 10*(2^10) chars as input seems more than enough |
| 7033 |
test $ac_count -gt 10 && break |
| 7034 |
done |
| 7035 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7036 |
esac |
| 7037 |
|
| 7038 |
$ac_path_SED_found && break 3 |
| 7039 |
done |
| 7040 |
done |
| 7041 |
done |
| 7042 |
IFS=$as_save_IFS |
| 7043 |
if test -z "$ac_cv_path_SED"; then |
| 7044 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 7045 |
fi |
| 7046 |
else |
| 7047 |
ac_cv_path_SED=$SED |
| 7048 |
fi |
| 7049 |
|
| 7050 |
fi |
| 7051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 7052 |
$as_echo "$ac_cv_path_SED" >&6; } |
| 7053 |
SED="$ac_cv_path_SED" |
| 7054 |
rm -f conftest.sed |
| 7055 |
|
| 7056 |
test -z "$SED" && SED=sed |
| 7057 |
Xsed="$SED -e 1s/^X//" |
| 7058 |
|
| 7059 |
|
| 7060 |
|
| 7061 |
|
| 7062 |
|
| 7063 |
|
| 7064 |
|
| 7065 |
|
| 7066 |
|
| 7067 |
|
| 7068 |
|
| 7069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 7070 |
$as_echo_n "checking for fgrep... " >&6; } |
| 7071 |
if ${ac_cv_path_FGREP+:} false; then : |
| 7072 |
$as_echo_n "(cached) " >&6 |
| 7073 |
else |
| 7074 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 7075 |
then ac_cv_path_FGREP="$GREP -F" |
| 7076 |
else |
| 7077 |
if test -z "$FGREP"; then |
| 7078 |
ac_path_FGREP_found=false |
| 7079 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 7080 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7081 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7082 |
do |
| 7083 |
IFS=$as_save_IFS |
| 7084 |
test -z "$as_dir" && as_dir=. |
| 7085 |
for ac_prog in fgrep; do |
| 7086 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7087 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 7088 |
as_fn_executable_p "$ac_path_FGREP" || continue |
| 7089 |
# Check for GNU ac_path_FGREP and select it if it is found. |
| 7090 |
# Check for GNU $ac_path_FGREP |
| 7091 |
case `"$ac_path_FGREP" --version 2>&1` in |
| 7092 |
*GNU*) |
| 7093 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 7094 |
*) |
| 7095 |
ac_count=0 |
| 7096 |
$as_echo_n 0123456789 >"conftest.in" |
| 7097 |
while : |
| 7098 |
do |
| 7099 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7100 |
mv "conftest.tmp" "conftest.in" |
| 7101 |
cp "conftest.in" "conftest.nl" |
| 7102 |
$as_echo 'FGREP' >> "conftest.nl" |
| 7103 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7104 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7105 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7106 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 7107 |
# Best one so far, save it but keep looking for a better one |
| 7108 |
ac_cv_path_FGREP="$ac_path_FGREP" |
| 7109 |
ac_path_FGREP_max=$ac_count |
| 7110 |
fi |
| 7111 |
# 10*(2^10) chars as input seems more than enough |
| 7112 |
test $ac_count -gt 10 && break |
| 7113 |
done |
| 7114 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7115 |
esac |
| 7116 |
|
| 7117 |
$ac_path_FGREP_found && break 3 |
| 7118 |
done |
| 7119 |
done |
| 7120 |
done |
| 7121 |
IFS=$as_save_IFS |
| 7122 |
if test -z "$ac_cv_path_FGREP"; then |
| 7123 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 7124 |
fi |
| 7125 |
else |
| 7126 |
ac_cv_path_FGREP=$FGREP |
| 7127 |
fi |
| 7128 |
|
| 7129 |
fi |
| 7130 |
fi |
| 7131 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 7132 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
| 7133 |
FGREP="$ac_cv_path_FGREP" |
| 7134 |
|
| 7135 |
|
| 7136 |
test -z "$GREP" && GREP=grep |
| 7137 |
|
| 7138 |
|
| 7139 |
|
| 7140 |
|
| 7141 |
|
| 7142 |
|
| 7143 |
|
| 7144 |
|
| 7145 |
|
| 7146 |
|
| 7147 |
|
| 7148 |
|
| 7149 |
|
| 7150 |
|
| 7151 |
|
| 7152 |
|
| 7153 |
|
| 7154 |
|
| 7155 |
|
| 7156 |
# Check whether --with-gnu-ld was given. |
| 7157 |
if test "${with_gnu_ld+set}" = set; then : |
| 7158 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 7159 |
else |
| 7160 |
with_gnu_ld=no |
| 7161 |
fi |
| 7162 |
|
| 7163 |
ac_prog=ld |
| 7164 |
if test "$GCC" = yes; then |
| 7165 |
# Check if gcc -print-prog-name=ld gives a path. |
| 7166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7167 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 7168 |
case $host in |
| 7169 |
*-*-mingw*) |
| 7170 |
# gcc leaves a trailing carriage return which upsets mingw |
| 7171 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7172 |
*) |
| 7173 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7174 |
esac |
| 7175 |
case $ac_prog in |
| 7176 |
# Accept absolute paths. |
| 7177 |
[\\/]* | ?:[\\/]*) |
| 7178 |
re_direlt='/[^/][^/]*/\.\./' |
| 7179 |
# Canonicalize the pathname of ld |
| 7180 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 7181 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 7182 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 7183 |
done |
| 7184 |
test -z "$LD" && LD="$ac_prog" |
| 7185 |
;; |
| 7186 |
"") |
| 7187 |
# If it fails, then pretend we aren't using GCC. |
| 7188 |
ac_prog=ld |
| 7189 |
;; |
| 7190 |
*) |
| 7191 |
# If it is relative, then search for the first ld in PATH. |
| 7192 |
with_gnu_ld=unknown |
| 7193 |
;; |
| 7194 |
esac |
| 7195 |
elif test "$with_gnu_ld" = yes; then |
| 7196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 7197 |
$as_echo_n "checking for GNU ld... " >&6; } |
| 7198 |
else |
| 7199 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 7200 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
| 7201 |
fi |
| 7202 |
if ${lt_cv_path_LD+:} false; then : |
| 7203 |
$as_echo_n "(cached) " >&6 |
| 7204 |
else |
| 7205 |
if test -z "$LD"; then |
| 7206 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7207 |
for ac_dir in $PATH; do |
| 7208 |
IFS="$lt_save_ifs" |
| 7209 |
test -z "$ac_dir" && ac_dir=. |
| 7210 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7211 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 7212 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 7213 |
# but apparently some variants of GNU ld only accept -v. |
| 7214 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 7215 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 7216 |
*GNU* | *'with BFD'*) |
| 7217 |
test "$with_gnu_ld" != no && break |
| 7218 |
;; |
| 7219 |
*) |
| 7220 |
test "$with_gnu_ld" != yes && break |
| 7221 |
;; |
| 7222 |
esac |
| 7223 |
fi |
| 7224 |
done |
| 7225 |
IFS="$lt_save_ifs" |
| 7226 |
else |
| 7227 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7228 |
fi |
| 7229 |
fi |
| 7230 |
|
| 7231 |
LD="$lt_cv_path_LD" |
| 7232 |
if test -n "$LD"; then |
| 7233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 7234 |
$as_echo "$LD" >&6; } |
| 7235 |
else |
| 7236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7237 |
$as_echo "no" >&6; } |
| 7238 |
fi |
| 7239 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 7241 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 7242 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
| 7243 |
$as_echo_n "(cached) " >&6 |
| 7244 |
else |
| 7245 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 7246 |
case `$LD -v 2>&1 </dev/null` in |
| 7247 |
*GNU* | *'with BFD'*) |
| 7248 |
lt_cv_prog_gnu_ld=yes |
| 7249 |
;; |
| 7250 |
*) |
| 7251 |
lt_cv_prog_gnu_ld=no |
| 7252 |
;; |
| 7253 |
esac |
| 7254 |
fi |
| 7255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 7256 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 7257 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 7258 |
|
| 7259 |
|
| 7260 |
|
| 7261 |
|
| 7262 |
|
| 7263 |
|
| 7264 |
|
| 7265 |
|
| 7266 |
|
| 7267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 7268 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 7269 |
if ${lt_cv_path_NM+:} false; then : |
| 7270 |
$as_echo_n "(cached) " >&6 |
| 7271 |
else |
| 7272 |
if test -n "$NM"; then |
| 7273 |
# Let the user override the test. |
| 7274 |
lt_cv_path_NM="$NM" |
| 7275 |
else |
| 7276 |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 7277 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 7278 |
lt_nm_to_check="$lt_nm_to_check nm" |
| 7279 |
fi |
| 7280 |
for lt_tmp_nm in $lt_nm_to_check; do |
| 7281 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7282 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 7283 |
IFS="$lt_save_ifs" |
| 7284 |
test -z "$ac_dir" && ac_dir=. |
| 7285 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 7286 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 7287 |
# Check to see if the nm accepts a BSD-compat flag. |
| 7288 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 7289 |
# nm: unknown option "B" ignored |
| 7290 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 7291 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 7292 |
*/dev/null* | *'Invalid file or object type'*) |
| 7293 |
lt_cv_path_NM="$tmp_nm -B" |
| 7294 |
break |
| 7295 |
;; |
| 7296 |
*) |
| 7297 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 7298 |
*/dev/null*) |
| 7299 |
lt_cv_path_NM="$tmp_nm -p" |
| 7300 |
break |
| 7301 |
;; |
| 7302 |
*) |
| 7303 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 7304 |
continue # so that we can try to find one that supports BSD flags |
| 7305 |
;; |
| 7306 |
esac |
| 7307 |
;; |
| 7308 |
esac |
| 7309 |
fi |
| 7310 |
done |
| 7311 |
IFS="$lt_save_ifs" |
| 7312 |
done |
| 7313 |
: ${lt_cv_path_NM=no} |
| 7314 |
fi |
| 7315 |
fi |
| 7316 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 7317 |
$as_echo "$lt_cv_path_NM" >&6; } |
| 7318 |
if test "$lt_cv_path_NM" != "no"; then |
| 7319 |
NM="$lt_cv_path_NM" |
| 7320 |
else |
| 7321 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
| 7322 |
if test -n "$DUMPBIN"; then : |
| 7323 |
# Let the user override the test. |
| 7324 |
else |
| 7325 |
if test -n "$ac_tool_prefix"; then |
| 7326 |
for ac_prog in dumpbin "link -dump" |
| 7327 |
do |
| 7328 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7329 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7331 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7332 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 7333 |
$as_echo_n "(cached) " >&6 |
| 7334 |
else |
| 7335 |
if test -n "$DUMPBIN"; then |
| 7336 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 7337 |
else |
| 7338 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7339 |
for as_dir in $PATH |
| 7340 |
do |
| 7341 |
IFS=$as_save_IFS |
| 7342 |
test -z "$as_dir" && as_dir=. |
| 7343 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7344 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7345 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 7346 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7347 |
break 2 |
| 7348 |
fi |
| 7349 |
done |
| 7350 |
done |
| 7351 |
IFS=$as_save_IFS |
| 7352 |
|
| 7353 |
fi |
| 7354 |
fi |
| 7355 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
| 7356 |
if test -n "$DUMPBIN"; then |
| 7357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 7358 |
$as_echo "$DUMPBIN" >&6; } |
| 7359 |
else |
| 7360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7361 |
$as_echo "no" >&6; } |
| 7362 |
fi |
| 7363 |
|
| 7364 |
|
| 7365 |
test -n "$DUMPBIN" && break |
| 7366 |
done |
| 7367 |
fi |
| 7368 |
if test -z "$DUMPBIN"; then |
| 7369 |
ac_ct_DUMPBIN=$DUMPBIN |
| 7370 |
for ac_prog in dumpbin "link -dump" |
| 7371 |
do |
| 7372 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7373 |
set dummy $ac_prog; ac_word=$2 |
| 7374 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7375 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7376 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 7377 |
$as_echo_n "(cached) " >&6 |
| 7378 |
else |
| 7379 |
if test -n "$ac_ct_DUMPBIN"; then |
| 7380 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 7381 |
else |
| 7382 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7383 |
for as_dir in $PATH |
| 7384 |
do |
| 7385 |
IFS=$as_save_IFS |
| 7386 |
test -z "$as_dir" && as_dir=. |
| 7387 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7388 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7389 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 7390 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7391 |
break 2 |
| 7392 |
fi |
| 7393 |
done |
| 7394 |
done |
| 7395 |
IFS=$as_save_IFS |
| 7396 |
|
| 7397 |
fi |
| 7398 |
fi |
| 7399 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 7400 |
if test -n "$ac_ct_DUMPBIN"; then |
| 7401 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 7402 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
| 7403 |
else |
| 7404 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7405 |
$as_echo "no" >&6; } |
| 7406 |
fi |
| 7407 |
|
| 7408 |
|
| 7409 |
test -n "$ac_ct_DUMPBIN" && break |
| 7410 |
done |
| 7411 |
|
| 7412 |
if test "x$ac_ct_DUMPBIN" = x; then |
| 7413 |
DUMPBIN=":" |
| 7414 |
else |
| 7415 |
case $cross_compiling:$ac_tool_warned in |
| 7416 |
yes:) |
| 7417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7418 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7419 |
ac_tool_warned=yes ;; |
| 7420 |
esac |
| 7421 |
DUMPBIN=$ac_ct_DUMPBIN |
| 7422 |
fi |
| 7423 |
fi |
| 7424 |
|
| 7425 |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 7426 |
*COFF*) |
| 7427 |
DUMPBIN="$DUMPBIN -symbols" |
| 7428 |
;; |
| 7429 |
*) |
| 7430 |
DUMPBIN=: |
| 7431 |
;; |
| 7432 |
esac |
| 7433 |
fi |
| 7434 |
|
| 7435 |
if test "$DUMPBIN" != ":"; then |
| 7436 |
NM="$DUMPBIN" |
| 7437 |
fi |
| 7438 |
fi |
| 7439 |
test -z "$NM" && NM=nm |
| 7440 |
|
| 7441 |
|
| 7442 |
|
| 7443 |
|
| 7444 |
|
| 7445 |
|
| 7446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 7447 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 7448 |
if ${lt_cv_nm_interface+:} false; then : |
| 7449 |
$as_echo_n "(cached) " >&6 |
| 7450 |
else |
| 7451 |
lt_cv_nm_interface="BSD nm" |
| 7452 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 7453 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 7454 |
(eval "$ac_compile" 2>conftest.err) |
| 7455 |
cat conftest.err >&5 |
| 7456 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 7457 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 7458 |
cat conftest.err >&5 |
| 7459 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 7460 |
cat conftest.out >&5 |
| 7461 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 7462 |
lt_cv_nm_interface="MS dumpbin" |
| 7463 |
fi |
| 7464 |
rm -f conftest* |
| 7465 |
fi |
| 7466 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 7467 |
$as_echo "$lt_cv_nm_interface" >&6; } |
| 7468 |
|
| 7469 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 7470 |
$as_echo_n "checking whether ln -s works... " >&6; } |
| 7471 |
LN_S=$as_ln_s |
| 7472 |
if test "$LN_S" = "ln -s"; then |
| 7473 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7474 |
$as_echo "yes" >&6; } |
| 7475 |
else |
| 7476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 7477 |
$as_echo "no, using $LN_S" >&6; } |
| 7478 |
fi |
| 7479 |
|
| 7480 |
# find the maximum length of command line arguments |
| 7481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 7482 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 7483 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 7484 |
$as_echo_n "(cached) " >&6 |
| 7485 |
else |
| 7486 |
i=0 |
| 7487 |
teststring="ABCD" |
| 7488 |
|
| 7489 |
case $build_os in |
| 7490 |
msdosdjgpp*) |
| 7491 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 7492 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 7493 |
# during glob expansion). Even if it were fixed, the result of this |
| 7494 |
# check would be larger than it should be. |
| 7495 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 7496 |
;; |
| 7497 |
|
| 7498 |
gnu*) |
| 7499 |
# Under GNU Hurd, this test is not required because there is |
| 7500 |
# no limit to the length of command line arguments. |
| 7501 |
# Libtool will interpret -1 as no limit whatsoever |
| 7502 |
lt_cv_sys_max_cmd_len=-1; |
| 7503 |
;; |
| 7504 |
|
| 7505 |
cygwin* | mingw* | cegcc*) |
| 7506 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 7507 |
# about 5 minutes as the teststring grows exponentially. |
| 7508 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 7509 |
# you end up with a "frozen" computer, even though with patience |
| 7510 |
# the test eventually succeeds (with a max line length of 256k). |
| 7511 |
# Instead, let's just punt: use the minimum linelength reported by |
| 7512 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 7513 |
lt_cv_sys_max_cmd_len=8192; |
| 7514 |
;; |
| 7515 |
|
| 7516 |
mint*) |
| 7517 |
# On MiNT this can take a long time and run out of memory. |
| 7518 |
lt_cv_sys_max_cmd_len=8192; |
| 7519 |
;; |
| 7520 |
|
| 7521 |
amigaos*) |
| 7522 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 7523 |
# So we just punt and use a minimum line length of 8192. |
| 7524 |
lt_cv_sys_max_cmd_len=8192; |
| 7525 |
;; |
| 7526 |
|
| 7527 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 7528 |
# This has been around since 386BSD, at least. Likely further. |
| 7529 |
if test -x /sbin/sysctl; then |
| 7530 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 7531 |
elif test -x /usr/sbin/sysctl; then |
| 7532 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 7533 |
else |
| 7534 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 7535 |
fi |
| 7536 |
# And add a safety zone |
| 7537 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 7538 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 7539 |
;; |
| 7540 |
|
| 7541 |
interix*) |
| 7542 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 7543 |
lt_cv_sys_max_cmd_len=196608 |
| 7544 |
;; |
| 7545 |
|
| 7546 |
os2*) |
| 7547 |
# The test takes a long time on OS/2. |
| 7548 |
lt_cv_sys_max_cmd_len=8192 |
| 7549 |
;; |
| 7550 |
|
| 7551 |
osf*) |
| 7552 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 7553 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 7554 |
# nice to cause kernel panics so lets avoid the loop below. |
| 7555 |
# First set a reasonable default. |
| 7556 |
lt_cv_sys_max_cmd_len=16384 |
| 7557 |
# |
| 7558 |
if test -x /sbin/sysconfig; then |
| 7559 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 7560 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 7561 |
esac |
| 7562 |
fi |
| 7563 |
;; |
| 7564 |
sco3.2v5*) |
| 7565 |
lt_cv_sys_max_cmd_len=102400 |
| 7566 |
;; |
| 7567 |
sysv5* | sco5v6* | sysv4.2uw2*) |
| 7568 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 7569 |
if test -n "$kargmax"; then |
| 7570 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 7571 |
else |
| 7572 |
lt_cv_sys_max_cmd_len=32768 |
| 7573 |
fi |
| 7574 |
;; |
| 7575 |
*) |
| 7576 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 7577 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 7578 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 7579 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 7580 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 7581 |
else |
| 7582 |
# Make teststring a little bigger before we do anything with it. |
| 7583 |
# a 1K string should be a reasonable start. |
| 7584 |
for i in 1 2 3 4 5 6 7 8 ; do |
| 7585 |
teststring=$teststring$teststring |
| 7586 |
done |
| 7587 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 7588 |
# If test is not a shell built-in, we'll probably end up computing a |
| 7589 |
# maximum length that is only half of the actual maximum length, but |
| 7590 |
# we can't tell. |
| 7591 |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 7592 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 7593 |
test $i != 17 # 1/2 MB should be enough |
| 7594 |
do |
| 7595 |
i=`expr $i + 1` |
| 7596 |
teststring=$teststring$teststring |
| 7597 |
done |
| 7598 |
# Only check the string length outside the loop. |
| 7599 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 7600 |
teststring= |
| 7601 |
# Add a significant safety factor because C++ compilers can tack on |
| 7602 |
# massive amounts of additional arguments before passing them to the |
| 7603 |
# linker. It appears as though 1/2 is a usable value. |
| 7604 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 7605 |
fi |
| 7606 |
;; |
| 7607 |
esac |
| 7608 |
|
| 7609 |
fi |
| 7610 |
|
| 7611 |
if test -n $lt_cv_sys_max_cmd_len ; then |
| 7612 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 7613 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 7614 |
else |
| 7615 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 7616 |
$as_echo "none" >&6; } |
| 7617 |
fi |
| 7618 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 7619 |
|
| 7620 |
|
| 7621 |
|
| 7622 |
|
| 7623 |
|
| 7624 |
|
| 7625 |
: ${CP="cp -f"} |
| 7626 |
: ${MV="mv -f"} |
| 7627 |
: ${RM="rm -f"} |
| 7628 |
|
| 7629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 7630 |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 7631 |
# Try some XSI features |
| 7632 |
xsi_shell=no |
| 7633 |
( _lt_dummy="a/b/c" |
| 7634 |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 7635 |
= c,a/b,b/c, \ |
| 7636 |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
| 7637 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 7638 |
&& xsi_shell=yes |
| 7639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 7640 |
$as_echo "$xsi_shell" >&6; } |
| 7641 |
|
| 7642 |
|
| 7643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 7644 |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 7645 |
lt_shell_append=no |
| 7646 |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 7647 |
>/dev/null 2>&1 \ |
| 7648 |
&& lt_shell_append=yes |
| 7649 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 7650 |
$as_echo "$lt_shell_append" >&6; } |
| 7651 |
|
| 7652 |
|
| 7653 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 7654 |
lt_unset=unset |
| 7655 |
else |
| 7656 |
lt_unset=false |
| 7657 |
fi |
| 7658 |
|
| 7659 |
|
| 7660 |
|
| 7661 |
|
| 7662 |
|
| 7663 |
# test EBCDIC or ASCII |
| 7664 |
case `echo X|tr X '\101'` in |
| 7665 |
A) # ASCII based system |
| 7666 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 7667 |
lt_SP2NL='tr \040 \012' |
| 7668 |
lt_NL2SP='tr \015\012 \040\040' |
| 7669 |
;; |
| 7670 |
*) # EBCDIC based system |
| 7671 |
lt_SP2NL='tr \100 \n' |
| 7672 |
lt_NL2SP='tr \r\n \100\100' |
| 7673 |
;; |
| 7674 |
esac |
| 7675 |
|
| 7676 |
|
| 7677 |
|
| 7678 |
|
| 7679 |
|
| 7680 |
|
| 7681 |
|
| 7682 |
|
| 7683 |
|
| 7684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 7685 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 7686 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
| 7687 |
$as_echo_n "(cached) " >&6 |
| 7688 |
else |
| 7689 |
case $host in |
| 7690 |
*-*-mingw* ) |
| 7691 |
case $build in |
| 7692 |
*-*-mingw* ) # actually msys |
| 7693 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 7694 |
;; |
| 7695 |
*-*-cygwin* ) |
| 7696 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 7697 |
;; |
| 7698 |
* ) # otherwise, assume *nix |
| 7699 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 7700 |
;; |
| 7701 |
esac |
| 7702 |
;; |
| 7703 |
*-*-cygwin* ) |
| 7704 |
case $build in |
| 7705 |
*-*-mingw* ) # actually msys |
| 7706 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 7707 |
;; |
| 7708 |
*-*-cygwin* ) |
| 7709 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7710 |
;; |
| 7711 |
* ) # otherwise, assume *nix |
| 7712 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 7713 |
;; |
| 7714 |
esac |
| 7715 |
;; |
| 7716 |
* ) # unhandled hosts (and "normal" native builds) |
| 7717 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7718 |
;; |
| 7719 |
esac |
| 7720 |
|
| 7721 |
fi |
| 7722 |
|
| 7723 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 7724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 7725 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 7726 |
|
| 7727 |
|
| 7728 |
|
| 7729 |
|
| 7730 |
|
| 7731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 7732 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 7733 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 7734 |
$as_echo_n "(cached) " >&6 |
| 7735 |
else |
| 7736 |
#assume ordinary cross tools, or native build. |
| 7737 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 7738 |
case $host in |
| 7739 |
*-*-mingw* ) |
| 7740 |
case $build in |
| 7741 |
*-*-mingw* ) # actually msys |
| 7742 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 7743 |
;; |
| 7744 |
esac |
| 7745 |
;; |
| 7746 |
esac |
| 7747 |
|
| 7748 |
fi |
| 7749 |
|
| 7750 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 7751 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 7752 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 7753 |
|
| 7754 |
|
| 7755 |
|
| 7756 |
|
| 7757 |
|
| 7758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 7759 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 7760 |
if ${lt_cv_ld_reload_flag+:} false; then : |
| 7761 |
$as_echo_n "(cached) " >&6 |
| 7762 |
else |
| 7763 |
lt_cv_ld_reload_flag='-r' |
| 7764 |
fi |
| 7765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 7766 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 7767 |
reload_flag=$lt_cv_ld_reload_flag |
| 7768 |
case $reload_flag in |
| 7769 |
"" | " "*) ;; |
| 7770 |
*) reload_flag=" $reload_flag" ;; |
| 7771 |
esac |
| 7772 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7773 |
case $host_os in |
| 7774 |
cygwin* | mingw* | pw32* | cegcc*) |
| 7775 |
if test "$GCC" != yes; then |
| 7776 |
reload_cmds=false |
| 7777 |
fi |
| 7778 |
;; |
| 7779 |
darwin*) |
| 7780 |
if test "$GCC" = yes; then |
| 7781 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 7782 |
else |
| 7783 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 7784 |
fi |
| 7785 |
;; |
| 7786 |
esac |
| 7787 |
|
| 7788 |
|
| 7789 |
|
| 7790 |
|
| 7791 |
|
| 7792 |
|
| 7793 |
|
| 7794 |
|
| 7795 |
|
| 7796 |
if test -n "$ac_tool_prefix"; then |
| 7797 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 7798 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 7799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7800 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7801 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 7802 |
$as_echo_n "(cached) " >&6 |
| 7803 |
else |
| 7804 |
if test -n "$OBJDUMP"; then |
| 7805 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7806 |
else |
| 7807 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7808 |
for as_dir in $PATH |
| 7809 |
do |
| 7810 |
IFS=$as_save_IFS |
| 7811 |
test -z "$as_dir" && as_dir=. |
| 7812 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7813 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7814 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 7815 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7816 |
break 2 |
| 7817 |
fi |
| 7818 |
done |
| 7819 |
done |
| 7820 |
IFS=$as_save_IFS |
| 7821 |
|
| 7822 |
fi |
| 7823 |
fi |
| 7824 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7825 |
if test -n "$OBJDUMP"; then |
| 7826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7827 |
$as_echo "$OBJDUMP" >&6; } |
| 7828 |
else |
| 7829 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7830 |
$as_echo "no" >&6; } |
| 7831 |
fi |
| 7832 |
|
| 7833 |
|
| 7834 |
fi |
| 7835 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
| 7836 |
ac_ct_OBJDUMP=$OBJDUMP |
| 7837 |
# Extract the first word of "objdump", so it can be a program name with args. |
| 7838 |
set dummy objdump; ac_word=$2 |
| 7839 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7840 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7841 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 7842 |
$as_echo_n "(cached) " >&6 |
| 7843 |
else |
| 7844 |
if test -n "$ac_ct_OBJDUMP"; then |
| 7845 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7846 |
else |
| 7847 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7848 |
for as_dir in $PATH |
| 7849 |
do |
| 7850 |
IFS=$as_save_IFS |
| 7851 |
test -z "$as_dir" && as_dir=. |
| 7852 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7853 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7854 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 7855 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7856 |
break 2 |
| 7857 |
fi |
| 7858 |
done |
| 7859 |
done |
| 7860 |
IFS=$as_save_IFS |
| 7861 |
|
| 7862 |
fi |
| 7863 |
fi |
| 7864 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7865 |
if test -n "$ac_ct_OBJDUMP"; then |
| 7866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7867 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
| 7868 |
else |
| 7869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7870 |
$as_echo "no" >&6; } |
| 7871 |
fi |
| 7872 |
|
| 7873 |
if test "x$ac_ct_OBJDUMP" = x; then |
| 7874 |
OBJDUMP="false" |
| 7875 |
else |
| 7876 |
case $cross_compiling:$ac_tool_warned in |
| 7877 |
yes:) |
| 7878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7879 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7880 |
ac_tool_warned=yes ;; |
| 7881 |
esac |
| 7882 |
OBJDUMP=$ac_ct_OBJDUMP |
| 7883 |
fi |
| 7884 |
else |
| 7885 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 7886 |
fi |
| 7887 |
|
| 7888 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7889 |
|
| 7890 |
|
| 7891 |
|
| 7892 |
|
| 7893 |
|
| 7894 |
|
| 7895 |
|
| 7896 |
|
| 7897 |
|
| 7898 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 7899 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 7900 |
if ${lt_cv_deplibs_check_method+:} false; then : |
| 7901 |
$as_echo_n "(cached) " >&6 |
| 7902 |
else |
| 7903 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 7904 |
lt_cv_file_magic_test_file= |
| 7905 |
lt_cv_deplibs_check_method='unknown' |
| 7906 |
# Need to set the preceding variable on all platforms that support |
| 7907 |
# interlibrary dependencies. |
| 7908 |
# 'none' -- dependencies not supported. |
| 7909 |
# `unknown' -- same as none, but documents that we really don't know. |
| 7910 |
# 'pass_all' -- all dependencies passed with no checks. |
| 7911 |
# 'test_compile' -- check by making test program. |
| 7912 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 7913 |
# which responds to the $file_magic_cmd with a given extended regex. |
| 7914 |
# If you have `file' or equivalent on your system and you're not sure |
| 7915 |
# whether `pass_all' will *always* work, you probably want this one. |
| 7916 |
|
| 7917 |
case $host_os in |
| 7918 |
aix[4-9]*) |
| 7919 |
lt_cv_deplibs_check_method=pass_all |
| 7920 |
;; |
| 7921 |
|
| 7922 |
beos*) |
| 7923 |
lt_cv_deplibs_check_method=pass_all |
| 7924 |
;; |
| 7925 |
|
| 7926 |
bsdi[45]*) |
| 7927 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 7928 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 7929 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 7930 |
;; |
| 7931 |
|
| 7932 |
cygwin*) |
| 7933 |
# func_win32_libid is a shell function defined in ltmain.sh |
| 7934 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7935 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 7936 |
;; |
| 7937 |
|
| 7938 |
mingw* | pw32*) |
| 7939 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 7940 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 7941 |
# unless we find 'file', for example because we are cross-compiling. |
| 7942 |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 7943 |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 7944 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 7945 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 7946 |
else |
| 7947 |
# Keep this pattern in sync with the one in func_win32_libid. |
| 7948 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 7949 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7950 |
fi |
| 7951 |
;; |
| 7952 |
|
| 7953 |
cegcc*) |
| 7954 |
# use the weaker test based on 'objdump'. See mingw*. |
| 7955 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 7956 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 7957 |
;; |
| 7958 |
|
| 7959 |
darwin* | rhapsody*) |
| 7960 |
lt_cv_deplibs_check_method=pass_all |
| 7961 |
;; |
| 7962 |
|
| 7963 |
freebsd* | dragonfly*) |
| 7964 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 7965 |
case $host_cpu in |
| 7966 |
i*86 ) |
| 7967 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 7968 |
# Let's accept both of them until this is cleared up. |
| 7969 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 7970 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 7971 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 7972 |
;; |
| 7973 |
esac |
| 7974 |
else |
| 7975 |
lt_cv_deplibs_check_method=pass_all |
| 7976 |
fi |
| 7977 |
;; |
| 7978 |
|
| 7979 |
haiku*) |
| 7980 |
lt_cv_deplibs_check_method=pass_all |
| 7981 |
;; |
| 7982 |
|
| 7983 |
hpux10.20* | hpux11*) |
| 7984 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 7985 |
case $host_cpu in |
| 7986 |
ia64*) |
| 7987 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 7988 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 7989 |
;; |
| 7990 |
hppa*64*) |
| 7991 |
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]' |
| 7992 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 7993 |
;; |
| 7994 |
*) |
| 7995 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 7996 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 7997 |
;; |
| 7998 |
esac |
| 7999 |
;; |
| 8000 |
|
| 8001 |
interix[3-9]*) |
| 8002 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 8003 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 8004 |
;; |
| 8005 |
|
| 8006 |
irix5* | irix6* | nonstopux*) |
| 8007 |
case $LD in |
| 8008 |
*-32|*"-32 ") libmagic=32-bit;; |
| 8009 |
*-n32|*"-n32 ") libmagic=N32;; |
| 8010 |
*-64|*"-64 ") libmagic=64-bit;; |
| 8011 |
*) libmagic=never-match;; |
| 8012 |
esac |
| 8013 |
lt_cv_deplibs_check_method=pass_all |
| 8014 |
;; |
| 8015 |
|
| 8016 |
# This must be glibc/ELF. |
| 8017 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 8018 |
lt_cv_deplibs_check_method=pass_all |
| 8019 |
;; |
| 8020 |
|
| 8021 |
netbsd* | netbsdelf*-gnu) |
| 8022 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 8023 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 8024 |
else |
| 8025 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 8026 |
fi |
| 8027 |
;; |
| 8028 |
|
| 8029 |
newos6*) |
| 8030 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 8031 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 8032 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 8033 |
;; |
| 8034 |
|
| 8035 |
*nto* | *qnx*) |
| 8036 |
lt_cv_deplibs_check_method=pass_all |
| 8037 |
;; |
| 8038 |
|
| 8039 |
openbsd*) |
| 8040 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8041 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 8042 |
else |
| 8043 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 8044 |
fi |
| 8045 |
;; |
| 8046 |
|
| 8047 |
osf3* | osf4* | osf5*) |
| 8048 |
lt_cv_deplibs_check_method=pass_all |
| 8049 |
;; |
| 8050 |
|
| 8051 |
rdos*) |
| 8052 |
lt_cv_deplibs_check_method=pass_all |
| 8053 |
;; |
| 8054 |
|
| 8055 |
solaris*) |
| 8056 |
lt_cv_deplibs_check_method=pass_all |
| 8057 |
;; |
| 8058 |
|
| 8059 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8060 |
lt_cv_deplibs_check_method=pass_all |
| 8061 |
;; |
| 8062 |
|
| 8063 |
sysv4 | sysv4.3*) |
| 8064 |
case $host_vendor in |
| 8065 |
motorola) |
| 8066 |
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]' |
| 8067 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 8068 |
;; |
| 8069 |
ncr) |
| 8070 |
lt_cv_deplibs_check_method=pass_all |
| 8071 |
;; |
| 8072 |
sequent) |
| 8073 |
lt_cv_file_magic_cmd='/bin/file' |
| 8074 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 8075 |
;; |
| 8076 |
sni) |
| 8077 |
lt_cv_file_magic_cmd='/bin/file' |
| 8078 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 8079 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 8080 |
;; |
| 8081 |
siemens) |
| 8082 |
lt_cv_deplibs_check_method=pass_all |
| 8083 |
;; |
| 8084 |
pc) |
| 8085 |
lt_cv_deplibs_check_method=pass_all |
| 8086 |
;; |
| 8087 |
esac |
| 8088 |
;; |
| 8089 |
|
| 8090 |
tpf*) |
| 8091 |
lt_cv_deplibs_check_method=pass_all |
| 8092 |
;; |
| 8093 |
esac |
| 8094 |
|
| 8095 |
fi |
| 8096 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 8097 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 8098 |
|
| 8099 |
file_magic_glob= |
| 8100 |
want_nocaseglob=no |
| 8101 |
if test "$build" = "$host"; then |
| 8102 |
case $host_os in |
| 8103 |
mingw* | pw32*) |
| 8104 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 8105 |
want_nocaseglob=yes |
| 8106 |
else |
| 8107 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 8108 |
fi |
| 8109 |
;; |
| 8110 |
esac |
| 8111 |
fi |
| 8112 |
|
| 8113 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 8114 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 8115 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 8116 |
|
| 8117 |
|
| 8118 |
|
| 8119 |
|
| 8120 |
|
| 8121 |
|
| 8122 |
|
| 8123 |
|
| 8124 |
|
| 8125 |
|
| 8126 |
|
| 8127 |
|
| 8128 |
|
| 8129 |
|
| 8130 |
|
| 8131 |
|
| 8132 |
|
| 8133 |
|
| 8134 |
|
| 8135 |
|
| 8136 |
|
| 8137 |
|
| 8138 |
if test -n "$ac_tool_prefix"; then |
| 8139 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 8140 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 8141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8142 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8143 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 8144 |
$as_echo_n "(cached) " >&6 |
| 8145 |
else |
| 8146 |
if test -n "$DLLTOOL"; then |
| 8147 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 8148 |
else |
| 8149 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8150 |
for as_dir in $PATH |
| 8151 |
do |
| 8152 |
IFS=$as_save_IFS |
| 8153 |
test -z "$as_dir" && as_dir=. |
| 8154 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8155 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8156 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 8157 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8158 |
break 2 |
| 8159 |
fi |
| 8160 |
done |
| 8161 |
done |
| 8162 |
IFS=$as_save_IFS |
| 8163 |
|
| 8164 |
fi |
| 8165 |
fi |
| 8166 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
| 8167 |
if test -n "$DLLTOOL"; then |
| 8168 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 8169 |
$as_echo "$DLLTOOL" >&6; } |
| 8170 |
else |
| 8171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8172 |
$as_echo "no" >&6; } |
| 8173 |
fi |
| 8174 |
|
| 8175 |
|
| 8176 |
fi |
| 8177 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
| 8178 |
ac_ct_DLLTOOL=$DLLTOOL |
| 8179 |
# Extract the first word of "dlltool", so it can be a program name with args. |
| 8180 |
set dummy dlltool; ac_word=$2 |
| 8181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8182 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8183 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 8184 |
$as_echo_n "(cached) " >&6 |
| 8185 |
else |
| 8186 |
if test -n "$ac_ct_DLLTOOL"; then |
| 8187 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 8188 |
else |
| 8189 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8190 |
for as_dir in $PATH |
| 8191 |
do |
| 8192 |
IFS=$as_save_IFS |
| 8193 |
test -z "$as_dir" && as_dir=. |
| 8194 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8195 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8196 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 8197 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8198 |
break 2 |
| 8199 |
fi |
| 8200 |
done |
| 8201 |
done |
| 8202 |
IFS=$as_save_IFS |
| 8203 |
|
| 8204 |
fi |
| 8205 |
fi |
| 8206 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 8207 |
if test -n "$ac_ct_DLLTOOL"; then |
| 8208 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 8209 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
| 8210 |
else |
| 8211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8212 |
$as_echo "no" >&6; } |
| 8213 |
fi |
| 8214 |
|
| 8215 |
if test "x$ac_ct_DLLTOOL" = x; then |
| 8216 |
DLLTOOL="false" |
| 8217 |
else |
| 8218 |
case $cross_compiling:$ac_tool_warned in |
| 8219 |
yes:) |
| 8220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8221 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8222 |
ac_tool_warned=yes ;; |
| 8223 |
esac |
| 8224 |
DLLTOOL=$ac_ct_DLLTOOL |
| 8225 |
fi |
| 8226 |
else |
| 8227 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 8228 |
fi |
| 8229 |
|
| 8230 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 8231 |
|
| 8232 |
|
| 8233 |
|
| 8234 |
|
| 8235 |
|
| 8236 |
|
| 8237 |
|
| 8238 |
|
| 8239 |
|
| 8240 |
|
| 8241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 8242 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 8243 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 8244 |
$as_echo_n "(cached) " >&6 |
| 8245 |
else |
| 8246 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 8247 |
|
| 8248 |
case $host_os in |
| 8249 |
cygwin* | mingw* | pw32* | cegcc*) |
| 8250 |
# two different shell functions defined in ltmain.sh |
| 8251 |
# decide which to use based on capabilities of $DLLTOOL |
| 8252 |
case `$DLLTOOL --help 2>&1` in |
| 8253 |
*--identify-strict*) |
| 8254 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 8255 |
;; |
| 8256 |
*) |
| 8257 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 8258 |
;; |
| 8259 |
esac |
| 8260 |
;; |
| 8261 |
*) |
| 8262 |
# fallback: assume linklib IS sharedlib |
| 8263 |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 8264 |
;; |
| 8265 |
esac |
| 8266 |
|
| 8267 |
fi |
| 8268 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 8269 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 8270 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 8271 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 8272 |
|
| 8273 |
|
| 8274 |
|
| 8275 |
|
| 8276 |
|
| 8277 |
|
| 8278 |
|
| 8279 |
if test -n "$ac_tool_prefix"; then |
| 8280 |
for ac_prog in ar |
| 8281 |
do |
| 8282 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 8283 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 8284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8285 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8286 |
if ${ac_cv_prog_AR+:} false; then : |
| 8287 |
$as_echo_n "(cached) " >&6 |
| 8288 |
else |
| 8289 |
if test -n "$AR"; then |
| 8290 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 8291 |
else |
| 8292 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8293 |
for as_dir in $PATH |
| 8294 |
do |
| 8295 |
IFS=$as_save_IFS |
| 8296 |
test -z "$as_dir" && as_dir=. |
| 8297 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8298 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8299 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 8300 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8301 |
break 2 |
| 8302 |
fi |
| 8303 |
done |
| 8304 |
done |
| 8305 |
IFS=$as_save_IFS |
| 8306 |
|
| 8307 |
fi |
| 8308 |
fi |
| 8309 |
AR=$ac_cv_prog_AR |
| 8310 |
if test -n "$AR"; then |
| 8311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 8312 |
$as_echo "$AR" >&6; } |
| 8313 |
else |
| 8314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8315 |
$as_echo "no" >&6; } |
| 8316 |
fi |
| 8317 |
|
| 8318 |
|
| 8319 |
test -n "$AR" && break |
| 8320 |
done |
| 8321 |
fi |
| 8322 |
if test -z "$AR"; then |
| 8323 |
ac_ct_AR=$AR |
| 8324 |
for ac_prog in ar |
| 8325 |
do |
| 8326 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8327 |
set dummy $ac_prog; ac_word=$2 |
| 8328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8329 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8330 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 8331 |
$as_echo_n "(cached) " >&6 |
| 8332 |
else |
| 8333 |
if test -n "$ac_ct_AR"; then |
| 8334 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 8335 |
else |
| 8336 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8337 |
for as_dir in $PATH |
| 8338 |
do |
| 8339 |
IFS=$as_save_IFS |
| 8340 |
test -z "$as_dir" && as_dir=. |
| 8341 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8342 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8343 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 8344 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8345 |
break 2 |
| 8346 |
fi |
| 8347 |
done |
| 8348 |
done |
| 8349 |
IFS=$as_save_IFS |
| 8350 |
|
| 8351 |
fi |
| 8352 |
fi |
| 8353 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 8354 |
if test -n "$ac_ct_AR"; then |
| 8355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 8356 |
$as_echo "$ac_ct_AR" >&6; } |
| 8357 |
else |
| 8358 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8359 |
$as_echo "no" >&6; } |
| 8360 |
fi |
| 8361 |
|
| 8362 |
|
| 8363 |
test -n "$ac_ct_AR" && break |
| 8364 |
done |
| 8365 |
|
| 8366 |
if test "x$ac_ct_AR" = x; then |
| 8367 |
AR="false" |
| 8368 |
else |
| 8369 |
case $cross_compiling:$ac_tool_warned in |
| 8370 |
yes:) |
| 8371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8372 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8373 |
ac_tool_warned=yes ;; |
| 8374 |
esac |
| 8375 |
AR=$ac_ct_AR |
| 8376 |
fi |
| 8377 |
fi |
| 8378 |
|
| 8379 |
: ${AR=ar} |
| 8380 |
: ${AR_FLAGS=cru} |
| 8381 |
|
| 8382 |
|
| 8383 |
|
| 8384 |
|
| 8385 |
|
| 8386 |
|
| 8387 |
|
| 8388 |
|
| 8389 |
|
| 8390 |
|
| 8391 |
|
| 8392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 8393 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
| 8394 |
if ${lt_cv_ar_at_file+:} false; then : |
| 8395 |
$as_echo_n "(cached) " >&6 |
| 8396 |
else |
| 8397 |
lt_cv_ar_at_file=no |
| 8398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8399 |
/* end confdefs.h. */ |
| 8400 |
|
| 8401 |
int |
| 8402 |
main () |
| 8403 |
{ |
| 8404 |
|
| 8405 |
; |
| 8406 |
return 0; |
| 8407 |
} |
| 8408 |
_ACEOF |
| 8409 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8410 |
echo conftest.$ac_objext > conftest.lst |
| 8411 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 8412 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 8413 |
(eval $lt_ar_try) 2>&5 |
| 8414 |
ac_status=$? |
| 8415 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8416 |
test $ac_status = 0; } |
| 8417 |
if test "$ac_status" -eq 0; then |
| 8418 |
# Ensure the archiver fails upon bogus file names. |
| 8419 |
rm -f conftest.$ac_objext libconftest.a |
| 8420 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 8421 |
(eval $lt_ar_try) 2>&5 |
| 8422 |
ac_status=$? |
| 8423 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8424 |
test $ac_status = 0; } |
| 8425 |
if test "$ac_status" -ne 0; then |
| 8426 |
lt_cv_ar_at_file=@ |
| 8427 |
fi |
| 8428 |
fi |
| 8429 |
rm -f conftest.* libconftest.a |
| 8430 |
|
| 8431 |
fi |
| 8432 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8433 |
|
| 8434 |
fi |
| 8435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 8436 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
| 8437 |
|
| 8438 |
if test "x$lt_cv_ar_at_file" = xno; then |
| 8439 |
archiver_list_spec= |
| 8440 |
else |
| 8441 |
archiver_list_spec=$lt_cv_ar_at_file |
| 8442 |
fi |
| 8443 |
|
| 8444 |
|
| 8445 |
|
| 8446 |
|
| 8447 |
|
| 8448 |
|
| 8449 |
|
| 8450 |
if test -n "$ac_tool_prefix"; then |
| 8451 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 8452 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 8453 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8454 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8455 |
if ${ac_cv_prog_STRIP+:} false; then : |
| 8456 |
$as_echo_n "(cached) " >&6 |
| 8457 |
else |
| 8458 |
if test -n "$STRIP"; then |
| 8459 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 8460 |
else |
| 8461 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8462 |
for as_dir in $PATH |
| 8463 |
do |
| 8464 |
IFS=$as_save_IFS |
| 8465 |
test -z "$as_dir" && as_dir=. |
| 8466 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8467 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8468 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 8469 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8470 |
break 2 |
| 8471 |
fi |
| 8472 |
done |
| 8473 |
done |
| 8474 |
IFS=$as_save_IFS |
| 8475 |
|
| 8476 |
fi |
| 8477 |
fi |
| 8478 |
STRIP=$ac_cv_prog_STRIP |
| 8479 |
if test -n "$STRIP"; then |
| 8480 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 8481 |
$as_echo "$STRIP" >&6; } |
| 8482 |
else |
| 8483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8484 |
$as_echo "no" >&6; } |
| 8485 |
fi |
| 8486 |
|
| 8487 |
|
| 8488 |
fi |
| 8489 |
if test -z "$ac_cv_prog_STRIP"; then |
| 8490 |
ac_ct_STRIP=$STRIP |
| 8491 |
# Extract the first word of "strip", so it can be a program name with args. |
| 8492 |
set dummy strip; ac_word=$2 |
| 8493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8494 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8495 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 8496 |
$as_echo_n "(cached) " >&6 |
| 8497 |
else |
| 8498 |
if test -n "$ac_ct_STRIP"; then |
| 8499 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 8500 |
else |
| 8501 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8502 |
for as_dir in $PATH |
| 8503 |
do |
| 8504 |
IFS=$as_save_IFS |
| 8505 |
test -z "$as_dir" && as_dir=. |
| 8506 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8507 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8508 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 8509 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8510 |
break 2 |
| 8511 |
fi |
| 8512 |
done |
| 8513 |
done |
| 8514 |
IFS=$as_save_IFS |
| 8515 |
|
| 8516 |
fi |
| 8517 |
fi |
| 8518 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 8519 |
if test -n "$ac_ct_STRIP"; then |
| 8520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 8521 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 8522 |
else |
| 8523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8524 |
$as_echo "no" >&6; } |
| 8525 |
fi |
| 8526 |
|
| 8527 |
if test "x$ac_ct_STRIP" = x; then |
| 8528 |
STRIP=":" |
| 8529 |
else |
| 8530 |
case $cross_compiling:$ac_tool_warned in |
| 8531 |
yes:) |
| 8532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8533 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8534 |
ac_tool_warned=yes ;; |
| 8535 |
esac |
| 8536 |
STRIP=$ac_ct_STRIP |
| 8537 |
fi |
| 8538 |
else |
| 8539 |
STRIP="$ac_cv_prog_STRIP" |
| 8540 |
fi |
| 8541 |
|
| 8542 |
test -z "$STRIP" && STRIP=: |
| 8543 |
|
| 8544 |
|
| 8545 |
|
| 8546 |
|
| 8547 |
|
| 8548 |
|
| 8549 |
if test -n "$ac_tool_prefix"; then |
| 8550 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 8551 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 8552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8553 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8554 |
if ${ac_cv_prog_RANLIB+:} false; then : |
| 8555 |
$as_echo_n "(cached) " >&6 |
| 8556 |
else |
| 8557 |
if test -n "$RANLIB"; then |
| 8558 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 8559 |
else |
| 8560 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8561 |
for as_dir in $PATH |
| 8562 |
do |
| 8563 |
IFS=$as_save_IFS |
| 8564 |
test -z "$as_dir" && as_dir=. |
| 8565 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8566 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8567 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 8568 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8569 |
break 2 |
| 8570 |
fi |
| 8571 |
done |
| 8572 |
done |
| 8573 |
IFS=$as_save_IFS |
| 8574 |
|
| 8575 |
fi |
| 8576 |
fi |
| 8577 |
RANLIB=$ac_cv_prog_RANLIB |
| 8578 |
if test -n "$RANLIB"; then |
| 8579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 8580 |
$as_echo "$RANLIB" >&6; } |
| 8581 |
else |
| 8582 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8583 |
$as_echo "no" >&6; } |
| 8584 |
fi |
| 8585 |
|
| 8586 |
|
| 8587 |
fi |
| 8588 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 8589 |
ac_ct_RANLIB=$RANLIB |
| 8590 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 8591 |
set dummy ranlib; ac_word=$2 |
| 8592 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8593 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 8594 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 8595 |
$as_echo_n "(cached) " >&6 |
| 8596 |
else |
| 8597 |
if test -n "$ac_ct_RANLIB"; then |
| 8598 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8599 |
else |
| 8600 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8601 |
for as_dir in $PATH |
| 8602 |
do |
| 8603 |
IFS=$as_save_IFS |
| 8604 |
test -z "$as_dir" && as_dir=. |
| 8605 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8606 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8607 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8608 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8609 |
break 2 |
| 8610 |
fi |
| 8611 |
done |
| 8612 |
done |
| 8613 |
IFS=$as_save_IFS |
| 8614 |
|
| 8615 |
fi |
| 8616 |
fi |
| 8617 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8618 |
if test -n "$ac_ct_RANLIB"; then |
| 8619 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 8620 |
$as_echo "$ac_ct_RANLIB" >&6; } |
| 8621 |
else |
| 8622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8623 |
$as_echo "no" >&6; } |
| 8624 |
fi |
| 8625 |
|
| 8626 |
if test "x$ac_ct_RANLIB" = x; then |
| 8627 |
RANLIB=":" |
| 8628 |
else |
| 8629 |
case $cross_compiling:$ac_tool_warned in |
| 8630 |
yes:) |
| 8631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8632 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8633 |
ac_tool_warned=yes ;; |
| 8634 |
esac |
| 8635 |
RANLIB=$ac_ct_RANLIB |
| 8636 |
fi |
| 8637 |
else |
| 8638 |
RANLIB="$ac_cv_prog_RANLIB" |
| 8639 |
fi |
| 8640 |
|
| 8641 |
test -z "$RANLIB" && RANLIB=: |
| 8642 |
|
| 8643 |
|
| 8644 |
|
| 8645 |
|
| 8646 |
|
| 8647 |
|
| 8648 |
# Determine commands to create old-style static archives. |
| 8649 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 8650 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 8651 |
old_postuninstall_cmds= |
| 8652 |
|
| 8653 |
if test -n "$RANLIB"; then |
| 8654 |
case $host_os in |
| 8655 |
openbsd*) |
| 8656 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 8657 |
;; |
| 8658 |
*) |
| 8659 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 8660 |
;; |
| 8661 |
esac |
| 8662 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 8663 |
fi |
| 8664 |
|
| 8665 |
case $host_os in |
| 8666 |
darwin*) |
| 8667 |
lock_old_archive_extraction=yes ;; |
| 8668 |
*) |
| 8669 |
lock_old_archive_extraction=no ;; |
| 8670 |
esac |
| 8671 |
|
| 8672 |
|
| 8673 |
|
| 8674 |
|
| 8675 |
|
| 8676 |
|
| 8677 |
|
| 8678 |
|
| 8679 |
|
| 8680 |
|
| 8681 |
|
| 8682 |
|
| 8683 |
|
| 8684 |
|
| 8685 |
|
| 8686 |
|
| 8687 |
|
| 8688 |
|
| 8689 |
|
| 8690 |
|
| 8691 |
|
| 8692 |
|
| 8693 |
|
| 8694 |
|
| 8695 |
|
| 8696 |
|
| 8697 |
|
| 8698 |
|
| 8699 |
|
| 8700 |
|
| 8701 |
|
| 8702 |
|
| 8703 |
|
| 8704 |
|
| 8705 |
|
| 8706 |
|
| 8707 |
|
| 8708 |
|
| 8709 |
|
| 8710 |
# If no C compiler was specified, use CC. |
| 8711 |
LTCC=${LTCC-"$CC"} |
| 8712 |
|
| 8713 |
# If no C compiler flags were specified, use CFLAGS. |
| 8714 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8715 |
|
| 8716 |
# Allow CC to be a program name with arguments. |
| 8717 |
compiler=$CC |
| 8718 |
|
| 8719 |
|
| 8720 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 8721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 8722 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 8723 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 8724 |
$as_echo_n "(cached) " >&6 |
| 8725 |
else |
| 8726 |
|
| 8727 |
# These are sane defaults that work on at least a few old systems. |
| 8728 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8729 |
|
| 8730 |
# Character class describing NM global symbol codes. |
| 8731 |
symcode='[BCDEGRST]' |
| 8732 |
|
| 8733 |
# Regexp to match symbols that can be accessed directly from C. |
| 8734 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8735 |
|
| 8736 |
# Define system-specific variables. |
| 8737 |
case $host_os in |
| 8738 |
aix*) |
| 8739 |
symcode='[BCDT]' |
| 8740 |
;; |
| 8741 |
cygwin* | mingw* | pw32* | cegcc*) |
| 8742 |
symcode='[ABCDGISTW]' |
| 8743 |
;; |
| 8744 |
hpux*) |
| 8745 |
if test "$host_cpu" = ia64; then |
| 8746 |
symcode='[ABCDEGRST]' |
| 8747 |
fi |
| 8748 |
;; |
| 8749 |
irix* | nonstopux*) |
| 8750 |
symcode='[BCDEGRST]' |
| 8751 |
;; |
| 8752 |
osf*) |
| 8753 |
symcode='[BCDEGQRST]' |
| 8754 |
;; |
| 8755 |
solaris*) |
| 8756 |
symcode='[BDRT]' |
| 8757 |
;; |
| 8758 |
sco3.2v5*) |
| 8759 |
symcode='[DT]' |
| 8760 |
;; |
| 8761 |
sysv4.2uw2*) |
| 8762 |
symcode='[DT]' |
| 8763 |
;; |
| 8764 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 8765 |
symcode='[ABDT]' |
| 8766 |
;; |
| 8767 |
sysv4) |
| 8768 |
symcode='[DFNSTU]' |
| 8769 |
;; |
| 8770 |
esac |
| 8771 |
|
| 8772 |
# If we're using GNU nm, then use its standard symbol codes. |
| 8773 |
case `$NM -V 2>&1` in |
| 8774 |
*GNU* | *'with BFD'*) |
| 8775 |
symcode='[ABCDGIRSTW]' ;; |
| 8776 |
esac |
| 8777 |
|
| 8778 |
# Transform an extracted symbol line into a proper C declaration. |
| 8779 |
# Some systems (esp. on ia64) link data and code symbols differently, |
| 8780 |
# so use this general approach. |
| 8781 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8782 |
|
| 8783 |
# Transform an extracted symbol line into symbol name and symbol address |
| 8784 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 8785 |
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'" |
| 8786 |
|
| 8787 |
# Handle CRLF in mingw tool chain |
| 8788 |
opt_cr= |
| 8789 |
case $build_os in |
| 8790 |
mingw*) |
| 8791 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 8792 |
;; |
| 8793 |
esac |
| 8794 |
|
| 8795 |
# Try without a prefix underscore, then with it. |
| 8796 |
for ac_symprfx in "" "_"; do |
| 8797 |
|
| 8798 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 8799 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 8800 |
|
| 8801 |
# Write the raw and C identifiers. |
| 8802 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8803 |
# Fake it for dumpbin and say T for any non-static function |
| 8804 |
# and D for any global variable. |
| 8805 |
# Also find C++ and __fastcall symbols from MSVC++, |
| 8806 |
# which start with @ or ?. |
| 8807 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 8808 |
" {last_section=section; section=\$ 3};"\ |
| 8809 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 8810 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 8811 |
" \$ 0!~/External *\|/{next};"\ |
| 8812 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 8813 |
" {if(hide[section]) next};"\ |
| 8814 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 8815 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 8816 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 8817 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 8818 |
" ' prfx=^$ac_symprfx" |
| 8819 |
else |
| 8820 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 8821 |
fi |
| 8822 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 8823 |
|
| 8824 |
# Check to see that the pipe works correctly. |
| 8825 |
pipe_works=no |
| 8826 |
|
| 8827 |
rm -f conftest* |
| 8828 |
cat > conftest.$ac_ext <<_LT_EOF |
| 8829 |
#ifdef __cplusplus |
| 8830 |
extern "C" { |
| 8831 |
#endif |
| 8832 |
char nm_test_var; |
| 8833 |
void nm_test_func(void); |
| 8834 |
void nm_test_func(void){} |
| 8835 |
#ifdef __cplusplus |
| 8836 |
} |
| 8837 |
#endif |
| 8838 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 8839 |
_LT_EOF |
| 8840 |
|
| 8841 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 8842 |
(eval $ac_compile) 2>&5 |
| 8843 |
ac_status=$? |
| 8844 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8845 |
test $ac_status = 0; }; then |
| 8846 |
# Now try to grab the symbols. |
| 8847 |
nlist=conftest.nm |
| 8848 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 8849 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 8850 |
ac_status=$? |
| 8851 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8852 |
test $ac_status = 0; } && test -s "$nlist"; then |
| 8853 |
# Try sorting and uniquifying the output. |
| 8854 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 8855 |
mv -f "$nlist"T "$nlist" |
| 8856 |
else |
| 8857 |
rm -f "$nlist"T |
| 8858 |
fi |
| 8859 |
|
| 8860 |
# Make sure that we snagged all the symbols we need. |
| 8861 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 8862 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 8863 |
cat <<_LT_EOF > conftest.$ac_ext |
| 8864 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 8865 |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 8866 |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 8867 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 8868 |
# define LT_DLSYM_CONST |
| 8869 |
#elif defined(__osf__) |
| 8870 |
/* This system does not cope well with relocations in const data. */ |
| 8871 |
# define LT_DLSYM_CONST |
| 8872 |
#else |
| 8873 |
# define LT_DLSYM_CONST const |
| 8874 |
#endif |
| 8875 |
|
| 8876 |
#ifdef __cplusplus |
| 8877 |
extern "C" { |
| 8878 |
#endif |
| 8879 |
|
| 8880 |
_LT_EOF |
| 8881 |
# Now generate the symbol file. |
| 8882 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 8883 |
|
| 8884 |
cat <<_LT_EOF >> conftest.$ac_ext |
| 8885 |
|
| 8886 |
/* The mapping between symbol names and symbols. */ |
| 8887 |
LT_DLSYM_CONST struct { |
| 8888 |
const char *name; |
| 8889 |
void *address; |
| 8890 |
} |
| 8891 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
| 8892 |
{ |
| 8893 |
{ "@PROGRAM@", (void *) 0 }, |
| 8894 |
_LT_EOF |
| 8895 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 8896 |
cat <<\_LT_EOF >> conftest.$ac_ext |
| 8897 |
{0, (void *) 0} |
| 8898 |
}; |
| 8899 |
|
| 8900 |
/* This works around a problem in FreeBSD linker */ |
| 8901 |
#ifdef FREEBSD_WORKAROUND |
| 8902 |
static const void *lt_preloaded_setup() { |
| 8903 |
return lt__PROGRAM__LTX_preloaded_symbols; |
| 8904 |
} |
| 8905 |
#endif |
| 8906 |
|
| 8907 |
#ifdef __cplusplus |
| 8908 |
} |
| 8909 |
#endif |
| 8910 |
_LT_EOF |
| 8911 |
# Now try linking the two files. |
| 8912 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 8913 |
lt_globsym_save_LIBS=$LIBS |
| 8914 |
lt_globsym_save_CFLAGS=$CFLAGS |
| 8915 |
LIBS="conftstm.$ac_objext" |
| 8916 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 8917 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 8918 |
(eval $ac_link) 2>&5 |
| 8919 |
ac_status=$? |
| 8920 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8921 |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 8922 |
pipe_works=yes |
| 8923 |
fi |
| 8924 |
LIBS=$lt_globsym_save_LIBS |
| 8925 |
CFLAGS=$lt_globsym_save_CFLAGS |
| 8926 |
else |
| 8927 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 8928 |
fi |
| 8929 |
else |
| 8930 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 8931 |
fi |
| 8932 |
else |
| 8933 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8934 |
fi |
| 8935 |
else |
| 8936 |
echo "$progname: failed program was:" >&5 |
| 8937 |
cat conftest.$ac_ext >&5 |
| 8938 |
fi |
| 8939 |
rm -rf conftest* conftst* |
| 8940 |
|
| 8941 |
# Do not use the global_symbol_pipe unless it works. |
| 8942 |
if test "$pipe_works" = yes; then |
| 8943 |
break |
| 8944 |
else |
| 8945 |
lt_cv_sys_global_symbol_pipe= |
| 8946 |
fi |
| 8947 |
done |
| 8948 |
|
| 8949 |
fi |
| 8950 |
|
| 8951 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8952 |
lt_cv_sys_global_symbol_to_cdecl= |
| 8953 |
fi |
| 8954 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8955 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 8956 |
$as_echo "failed" >&6; } |
| 8957 |
else |
| 8958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 8959 |
$as_echo "ok" >&6; } |
| 8960 |
fi |
| 8961 |
|
| 8962 |
# Response file support. |
| 8963 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 8964 |
nm_file_list_spec='@' |
| 8965 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 8966 |
nm_file_list_spec='@' |
| 8967 |
fi |
| 8968 |
|
| 8969 |
|
| 8970 |
|
| 8971 |
|
| 8972 |
|
| 8973 |
|
| 8974 |
|
| 8975 |
|
| 8976 |
|
| 8977 |
|
| 8978 |
|
| 8979 |
|
| 8980 |
|
| 8981 |
|
| 8982 |
|
| 8983 |
|
| 8984 |
|
| 8985 |
|
| 8986 |
|
| 8987 |
|
| 8988 |
|
| 8989 |
|
| 8990 |
|
| 8991 |
|
| 8992 |
|
| 8993 |
|
| 8994 |
|
| 8995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 8996 |
$as_echo_n "checking for sysroot... " >&6; } |
| 8997 |
|
| 8998 |
# Check whether --with-sysroot was given. |
| 8999 |
if test "${with_sysroot+set}" = set; then : |
| 9000 |
withval=$with_sysroot; |
| 9001 |
else |
| 9002 |
with_sysroot=no |
| 9003 |
fi |
| 9004 |
|
| 9005 |
|
| 9006 |
lt_sysroot= |
| 9007 |
case ${with_sysroot} in #( |
| 9008 |
yes) |
| 9009 |
if test "$GCC" = yes; then |
| 9010 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 9011 |
fi |
| 9012 |
;; #( |
| 9013 |
/*) |
| 9014 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 9015 |
;; #( |
| 9016 |
no|'') |
| 9017 |
;; #( |
| 9018 |
*) |
| 9019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 9020 |
$as_echo "${with_sysroot}" >&6; } |
| 9021 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 9022 |
;; |
| 9023 |
esac |
| 9024 |
|
| 9025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 9026 |
$as_echo "${lt_sysroot:-no}" >&6; } |
| 9027 |
|
| 9028 |
|
| 9029 |
|
| 9030 |
|
| 9031 |
|
| 9032 |
# Check whether --enable-libtool-lock was given. |
| 9033 |
if test "${enable_libtool_lock+set}" = set; then : |
| 9034 |
enableval=$enable_libtool_lock; |
| 9035 |
fi |
| 9036 |
|
| 9037 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 9038 |
|
| 9039 |
# Some flags need to be propagated to the compiler or linker for good |
| 9040 |
# libtool support. |
| 9041 |
case $host in |
| 9042 |
ia64-*-hpux*) |
| 9043 |
# Find out which ABI we are using. |
| 9044 |
echo 'int i;' > conftest.$ac_ext |
| 9045 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 9046 |
(eval $ac_compile) 2>&5 |
| 9047 |
ac_status=$? |
| 9048 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9049 |
test $ac_status = 0; }; then |
| 9050 |
case `/usr/bin/file conftest.$ac_objext` in |
| 9051 |
*ELF-32*) |
| 9052 |
HPUX_IA64_MODE="32" |
| 9053 |
;; |
| 9054 |
*ELF-64*) |
| 9055 |
HPUX_IA64_MODE="64" |
| 9056 |
;; |
| 9057 |
esac |
| 9058 |
fi |
| 9059 |
rm -rf conftest* |
| 9060 |
;; |
| 9061 |
*-*-irix6*) |
| 9062 |
# Find out which ABI we are using. |
| 9063 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 9064 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 9065 |
(eval $ac_compile) 2>&5 |
| 9066 |
ac_status=$? |
| 9067 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9068 |
test $ac_status = 0; }; then |
| 9069 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9070 |
case `/usr/bin/file conftest.$ac_objext` in |
| 9071 |
*32-bit*) |
| 9072 |
LD="${LD-ld} -melf32bsmip" |
| 9073 |
;; |
| 9074 |
*N32*) |
| 9075 |
LD="${LD-ld} -melf32bmipn32" |
| 9076 |
;; |
| 9077 |
*64-bit*) |
| 9078 |
LD="${LD-ld} -melf64bmip" |
| 9079 |
;; |
| 9080 |
esac |
| 9081 |
else |
| 9082 |
case `/usr/bin/file conftest.$ac_objext` in |
| 9083 |
*32-bit*) |
| 9084 |
LD="${LD-ld} -32" |
| 9085 |
;; |
| 9086 |
*N32*) |
| 9087 |
LD="${LD-ld} -n32" |
| 9088 |
;; |
| 9089 |
*64-bit*) |
| 9090 |
LD="${LD-ld} -64" |
| 9091 |
;; |
| 9092 |
esac |
| 9093 |
fi |
| 9094 |
fi |
| 9095 |
rm -rf conftest* |
| 9096 |
;; |
| 9097 |
|
| 9098 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 9099 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 9100 |
# Find out which ABI we are using. |
| 9101 |
echo 'int i;' > conftest.$ac_ext |
| 9102 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 9103 |
(eval $ac_compile) 2>&5 |
| 9104 |
ac_status=$? |
| 9105 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9106 |
test $ac_status = 0; }; then |
| 9107 |
case `/usr/bin/file conftest.o` in |
| 9108 |
*32-bit*) |
| 9109 |
case $host in |
| 9110 |
x86_64-*kfreebsd*-gnu) |
| 9111 |
LD="${LD-ld} -m elf_i386_fbsd" |
| 9112 |
;; |
| 9113 |
x86_64-*linux*) |
| 9114 |
case `/usr/bin/file conftest.o` in |
| 9115 |
*x86-64*) |
| 9116 |
LD="${LD-ld} -m elf32_x86_64" |
| 9117 |
;; |
| 9118 |
*) |
| 9119 |
LD="${LD-ld} -m elf_i386" |
| 9120 |
;; |
| 9121 |
esac |
| 9122 |
;; |
| 9123 |
ppc64-*linux*|powerpc64-*linux*) |
| 9124 |
LD="${LD-ld} -m elf32ppclinux" |
| 9125 |
;; |
| 9126 |
s390x-*linux*) |
| 9127 |
LD="${LD-ld} -m elf_s390" |
| 9128 |
;; |
| 9129 |
sparc64-*linux*) |
| 9130 |
LD="${LD-ld} -m elf32_sparc" |
| 9131 |
;; |
| 9132 |
esac |
| 9133 |
;; |
| 9134 |
*64-bit*) |
| 9135 |
case $host in |
| 9136 |
x86_64-*kfreebsd*-gnu) |
| 9137 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
| 9138 |
;; |
| 9139 |
x86_64-*linux*) |
| 9140 |
LD="${LD-ld} -m elf_x86_64" |
| 9141 |
;; |
| 9142 |
ppc*-*linux*|powerpc*-*linux*) |
| 9143 |
LD="${LD-ld} -m elf64ppc" |
| 9144 |
;; |
| 9145 |
s390*-*linux*|s390*-*tpf*) |
| 9146 |
LD="${LD-ld} -m elf64_s390" |
| 9147 |
;; |
| 9148 |
sparc*-*linux*) |
| 9149 |
LD="${LD-ld} -m elf64_sparc" |
| 9150 |
;; |
| 9151 |
esac |
| 9152 |
;; |
| 9153 |
esac |
| 9154 |
fi |
| 9155 |
rm -rf conftest* |
| 9156 |
;; |
| 9157 |
|
| 9158 |
*-*-sco3.2v5*) |
| 9159 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 9160 |
SAVE_CFLAGS="$CFLAGS" |
| 9161 |
CFLAGS="$CFLAGS -belf" |
| 9162 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 9163 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 9164 |
if ${lt_cv_cc_needs_belf+:} false; then : |
| 9165 |
$as_echo_n "(cached) " >&6 |
| 9166 |
else |
| 9167 |
ac_ext=c |
| 9168 |
ac_cpp='$CPP $CPPFLAGS' |
| 9169 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9170 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9171 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9172 |
|
| 9173 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9174 |
/* end confdefs.h. */ |
| 9175 |
|
| 9176 |
int |
| 9177 |
main () |
| 9178 |
{ |
| 9179 |
|
| 9180 |
; |
| 9181 |
return 0; |
| 9182 |
} |
| 9183 |
_ACEOF |
| 9184 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9185 |
lt_cv_cc_needs_belf=yes |
| 9186 |
else |
| 9187 |
lt_cv_cc_needs_belf=no |
| 9188 |
fi |
| 9189 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9190 |
conftest$ac_exeext conftest.$ac_ext |
| 9191 |
ac_ext=c |
| 9192 |
ac_cpp='$CPP $CPPFLAGS' |
| 9193 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9194 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9195 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9196 |
|
| 9197 |
fi |
| 9198 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 9199 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 9200 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 9201 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 9202 |
CFLAGS="$SAVE_CFLAGS" |
| 9203 |
fi |
| 9204 |
;; |
| 9205 |
*-*solaris*) |
| 9206 |
# Find out which ABI we are using. |
| 9207 |
echo 'int i;' > conftest.$ac_ext |
| 9208 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 9209 |
(eval $ac_compile) 2>&5 |
| 9210 |
ac_status=$? |
| 9211 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9212 |
test $ac_status = 0; }; then |
| 9213 |
case `/usr/bin/file conftest.o` in |
| 9214 |
*64-bit*) |
| 9215 |
case $lt_cv_prog_gnu_ld in |
| 9216 |
yes*) |
| 9217 |
case $host in |
| 9218 |
i?86-*-solaris*) |
| 9219 |
LD="${LD-ld} -m elf_x86_64" |
| 9220 |
;; |
| 9221 |
sparc*-*-solaris*) |
| 9222 |
LD="${LD-ld} -m elf64_sparc" |
| 9223 |
;; |
| 9224 |
esac |
| 9225 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 9226 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 9227 |
LD="${LD-ld}_sol2" |
| 9228 |
fi |
| 9229 |
;; |
| 9230 |
*) |
| 9231 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 9232 |
LD="${LD-ld} -64" |
| 9233 |
fi |
| 9234 |
;; |
| 9235 |
esac |
| 9236 |
;; |
| 9237 |
esac |
| 9238 |
fi |
| 9239 |
rm -rf conftest* |
| 9240 |
;; |
| 9241 |
esac |
| 9242 |
|
| 9243 |
need_locks="$enable_libtool_lock" |
| 9244 |
|
| 9245 |
if test -n "$ac_tool_prefix"; then |
| 9246 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 9247 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 9248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9249 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9250 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 9251 |
$as_echo_n "(cached) " >&6 |
| 9252 |
else |
| 9253 |
if test -n "$MANIFEST_TOOL"; then |
| 9254 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 9255 |
else |
| 9256 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9257 |
for as_dir in $PATH |
| 9258 |
do |
| 9259 |
IFS=$as_save_IFS |
| 9260 |
test -z "$as_dir" && as_dir=. |
| 9261 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9262 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9263 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 9264 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9265 |
break 2 |
| 9266 |
fi |
| 9267 |
done |
| 9268 |
done |
| 9269 |
IFS=$as_save_IFS |
| 9270 |
|
| 9271 |
fi |
| 9272 |
fi |
| 9273 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 9274 |
if test -n "$MANIFEST_TOOL"; then |
| 9275 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 9276 |
$as_echo "$MANIFEST_TOOL" >&6; } |
| 9277 |
else |
| 9278 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9279 |
$as_echo "no" >&6; } |
| 9280 |
fi |
| 9281 |
|
| 9282 |
|
| 9283 |
fi |
| 9284 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 9285 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 9286 |
# Extract the first word of "mt", so it can be a program name with args. |
| 9287 |
set dummy mt; ac_word=$2 |
| 9288 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9289 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9290 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 9291 |
$as_echo_n "(cached) " >&6 |
| 9292 |
else |
| 9293 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 9294 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 9295 |
else |
| 9296 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9297 |
for as_dir in $PATH |
| 9298 |
do |
| 9299 |
IFS=$as_save_IFS |
| 9300 |
test -z "$as_dir" && as_dir=. |
| 9301 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9302 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9303 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 9304 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9305 |
break 2 |
| 9306 |
fi |
| 9307 |
done |
| 9308 |
done |
| 9309 |
IFS=$as_save_IFS |
| 9310 |
|
| 9311 |
fi |
| 9312 |
fi |
| 9313 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 9314 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 9315 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 9316 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 9317 |
else |
| 9318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9319 |
$as_echo "no" >&6; } |
| 9320 |
fi |
| 9321 |
|
| 9322 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 9323 |
MANIFEST_TOOL=":" |
| 9324 |
else |
| 9325 |
case $cross_compiling:$ac_tool_warned in |
| 9326 |
yes:) |
| 9327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9328 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9329 |
ac_tool_warned=yes ;; |
| 9330 |
esac |
| 9331 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 9332 |
fi |
| 9333 |
else |
| 9334 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 9335 |
fi |
| 9336 |
|
| 9337 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 9338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 9339 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 9340 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
| 9341 |
$as_echo_n "(cached) " >&6 |
| 9342 |
else |
| 9343 |
lt_cv_path_mainfest_tool=no |
| 9344 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 9345 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 9346 |
cat conftest.err >&5 |
| 9347 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 9348 |
lt_cv_path_mainfest_tool=yes |
| 9349 |
fi |
| 9350 |
rm -f conftest* |
| 9351 |
fi |
| 9352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 9353 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 9354 |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 9355 |
MANIFEST_TOOL=: |
| 9356 |
fi |
| 9357 |
|
| 9358 |
|
| 9359 |
|
| 9360 |
|
| 9361 |
|
| 9362 |
|
| 9363 |
case $host_os in |
| 9364 |
rhapsody* | darwin*) |
| 9365 |
if test -n "$ac_tool_prefix"; then |
| 9366 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 9367 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 9368 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9369 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9370 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 9371 |
$as_echo_n "(cached) " >&6 |
| 9372 |
else |
| 9373 |
if test -n "$DSYMUTIL"; then |
| 9374 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 9375 |
else |
| 9376 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9377 |
for as_dir in $PATH |
| 9378 |
do |
| 9379 |
IFS=$as_save_IFS |
| 9380 |
test -z "$as_dir" && as_dir=. |
| 9381 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9382 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9383 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 9384 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9385 |
break 2 |
| 9386 |
fi |
| 9387 |
done |
| 9388 |
done |
| 9389 |
IFS=$as_save_IFS |
| 9390 |
|
| 9391 |
fi |
| 9392 |
fi |
| 9393 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 9394 |
if test -n "$DSYMUTIL"; then |
| 9395 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 9396 |
$as_echo "$DSYMUTIL" >&6; } |
| 9397 |
else |
| 9398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9399 |
$as_echo "no" >&6; } |
| 9400 |
fi |
| 9401 |
|
| 9402 |
|
| 9403 |
fi |
| 9404 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 9405 |
ac_ct_DSYMUTIL=$DSYMUTIL |
| 9406 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
| 9407 |
set dummy dsymutil; ac_word=$2 |
| 9408 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9409 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9410 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 9411 |
$as_echo_n "(cached) " >&6 |
| 9412 |
else |
| 9413 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 9414 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 9415 |
else |
| 9416 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9417 |
for as_dir in $PATH |
| 9418 |
do |
| 9419 |
IFS=$as_save_IFS |
| 9420 |
test -z "$as_dir" && as_dir=. |
| 9421 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9422 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9423 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 9424 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9425 |
break 2 |
| 9426 |
fi |
| 9427 |
done |
| 9428 |
done |
| 9429 |
IFS=$as_save_IFS |
| 9430 |
|
| 9431 |
fi |
| 9432 |
fi |
| 9433 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 9434 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 9435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 9436 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 9437 |
else |
| 9438 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9439 |
$as_echo "no" >&6; } |
| 9440 |
fi |
| 9441 |
|
| 9442 |
if test "x$ac_ct_DSYMUTIL" = x; then |
| 9443 |
DSYMUTIL=":" |
| 9444 |
else |
| 9445 |
case $cross_compiling:$ac_tool_warned in |
| 9446 |
yes:) |
| 9447 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9448 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9449 |
ac_tool_warned=yes ;; |
| 9450 |
esac |
| 9451 |
DSYMUTIL=$ac_ct_DSYMUTIL |
| 9452 |
fi |
| 9453 |
else |
| 9454 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 9455 |
fi |
| 9456 |
|
| 9457 |
if test -n "$ac_tool_prefix"; then |
| 9458 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 9459 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 9460 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9461 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9462 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
| 9463 |
$as_echo_n "(cached) " >&6 |
| 9464 |
else |
| 9465 |
if test -n "$NMEDIT"; then |
| 9466 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 9467 |
else |
| 9468 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9469 |
for as_dir in $PATH |
| 9470 |
do |
| 9471 |
IFS=$as_save_IFS |
| 9472 |
test -z "$as_dir" && as_dir=. |
| 9473 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9474 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9475 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 9476 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9477 |
break 2 |
| 9478 |
fi |
| 9479 |
done |
| 9480 |
done |
| 9481 |
IFS=$as_save_IFS |
| 9482 |
|
| 9483 |
fi |
| 9484 |
fi |
| 9485 |
NMEDIT=$ac_cv_prog_NMEDIT |
| 9486 |
if test -n "$NMEDIT"; then |
| 9487 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 9488 |
$as_echo "$NMEDIT" >&6; } |
| 9489 |
else |
| 9490 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9491 |
$as_echo "no" >&6; } |
| 9492 |
fi |
| 9493 |
|
| 9494 |
|
| 9495 |
fi |
| 9496 |
if test -z "$ac_cv_prog_NMEDIT"; then |
| 9497 |
ac_ct_NMEDIT=$NMEDIT |
| 9498 |
# Extract the first word of "nmedit", so it can be a program name with args. |
| 9499 |
set dummy nmedit; ac_word=$2 |
| 9500 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9501 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9502 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 9503 |
$as_echo_n "(cached) " >&6 |
| 9504 |
else |
| 9505 |
if test -n "$ac_ct_NMEDIT"; then |
| 9506 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9507 |
else |
| 9508 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9509 |
for as_dir in $PATH |
| 9510 |
do |
| 9511 |
IFS=$as_save_IFS |
| 9512 |
test -z "$as_dir" && as_dir=. |
| 9513 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9514 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9515 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 9516 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9517 |
break 2 |
| 9518 |
fi |
| 9519 |
done |
| 9520 |
done |
| 9521 |
IFS=$as_save_IFS |
| 9522 |
|
| 9523 |
fi |
| 9524 |
fi |
| 9525 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9526 |
if test -n "$ac_ct_NMEDIT"; then |
| 9527 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 9528 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
| 9529 |
else |
| 9530 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9531 |
$as_echo "no" >&6; } |
| 9532 |
fi |
| 9533 |
|
| 9534 |
if test "x$ac_ct_NMEDIT" = x; then |
| 9535 |
NMEDIT=":" |
| 9536 |
else |
| 9537 |
case $cross_compiling:$ac_tool_warned in |
| 9538 |
yes:) |
| 9539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9540 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9541 |
ac_tool_warned=yes ;; |
| 9542 |
esac |
| 9543 |
NMEDIT=$ac_ct_NMEDIT |
| 9544 |
fi |
| 9545 |
else |
| 9546 |
NMEDIT="$ac_cv_prog_NMEDIT" |
| 9547 |
fi |
| 9548 |
|
| 9549 |
if test -n "$ac_tool_prefix"; then |
| 9550 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9551 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 9552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9553 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9554 |
if ${ac_cv_prog_LIPO+:} false; then : |
| 9555 |
$as_echo_n "(cached) " >&6 |
| 9556 |
else |
| 9557 |
if test -n "$LIPO"; then |
| 9558 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9559 |
else |
| 9560 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9561 |
for as_dir in $PATH |
| 9562 |
do |
| 9563 |
IFS=$as_save_IFS |
| 9564 |
test -z "$as_dir" && as_dir=. |
| 9565 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9566 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9567 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 9568 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9569 |
break 2 |
| 9570 |
fi |
| 9571 |
done |
| 9572 |
done |
| 9573 |
IFS=$as_save_IFS |
| 9574 |
|
| 9575 |
fi |
| 9576 |
fi |
| 9577 |
LIPO=$ac_cv_prog_LIPO |
| 9578 |
if test -n "$LIPO"; then |
| 9579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 9580 |
$as_echo "$LIPO" >&6; } |
| 9581 |
else |
| 9582 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9583 |
$as_echo "no" >&6; } |
| 9584 |
fi |
| 9585 |
|
| 9586 |
|
| 9587 |
fi |
| 9588 |
if test -z "$ac_cv_prog_LIPO"; then |
| 9589 |
ac_ct_LIPO=$LIPO |
| 9590 |
# Extract the first word of "lipo", so it can be a program name with args. |
| 9591 |
set dummy lipo; ac_word=$2 |
| 9592 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9593 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9594 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 9595 |
$as_echo_n "(cached) " >&6 |
| 9596 |
else |
| 9597 |
if test -n "$ac_ct_LIPO"; then |
| 9598 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9599 |
else |
| 9600 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9601 |
for as_dir in $PATH |
| 9602 |
do |
| 9603 |
IFS=$as_save_IFS |
| 9604 |
test -z "$as_dir" && as_dir=. |
| 9605 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9606 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9607 |
ac_cv_prog_ac_ct_LIPO="lipo" |
| 9608 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9609 |
break 2 |
| 9610 |
fi |
| 9611 |
done |
| 9612 |
done |
| 9613 |
IFS=$as_save_IFS |
| 9614 |
|
| 9615 |
fi |
| 9616 |
fi |
| 9617 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9618 |
if test -n "$ac_ct_LIPO"; then |
| 9619 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 9620 |
$as_echo "$ac_ct_LIPO" >&6; } |
| 9621 |
else |
| 9622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9623 |
$as_echo "no" >&6; } |
| 9624 |
fi |
| 9625 |
|
| 9626 |
if test "x$ac_ct_LIPO" = x; then |
| 9627 |
LIPO=":" |
| 9628 |
else |
| 9629 |
case $cross_compiling:$ac_tool_warned in |
| 9630 |
yes:) |
| 9631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9632 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9633 |
ac_tool_warned=yes ;; |
| 9634 |
esac |
| 9635 |
LIPO=$ac_ct_LIPO |
| 9636 |
fi |
| 9637 |
else |
| 9638 |
LIPO="$ac_cv_prog_LIPO" |
| 9639 |
fi |
| 9640 |
|
| 9641 |
if test -n "$ac_tool_prefix"; then |
| 9642 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9643 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 9644 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9645 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9646 |
if ${ac_cv_prog_OTOOL+:} false; then : |
| 9647 |
$as_echo_n "(cached) " >&6 |
| 9648 |
else |
| 9649 |
if test -n "$OTOOL"; then |
| 9650 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9651 |
else |
| 9652 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9653 |
for as_dir in $PATH |
| 9654 |
do |
| 9655 |
IFS=$as_save_IFS |
| 9656 |
test -z "$as_dir" && as_dir=. |
| 9657 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9658 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9659 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 9660 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9661 |
break 2 |
| 9662 |
fi |
| 9663 |
done |
| 9664 |
done |
| 9665 |
IFS=$as_save_IFS |
| 9666 |
|
| 9667 |
fi |
| 9668 |
fi |
| 9669 |
OTOOL=$ac_cv_prog_OTOOL |
| 9670 |
if test -n "$OTOOL"; then |
| 9671 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 9672 |
$as_echo "$OTOOL" >&6; } |
| 9673 |
else |
| 9674 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9675 |
$as_echo "no" >&6; } |
| 9676 |
fi |
| 9677 |
|
| 9678 |
|
| 9679 |
fi |
| 9680 |
if test -z "$ac_cv_prog_OTOOL"; then |
| 9681 |
ac_ct_OTOOL=$OTOOL |
| 9682 |
# Extract the first word of "otool", so it can be a program name with args. |
| 9683 |
set dummy otool; ac_word=$2 |
| 9684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9685 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9686 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 9687 |
$as_echo_n "(cached) " >&6 |
| 9688 |
else |
| 9689 |
if test -n "$ac_ct_OTOOL"; then |
| 9690 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9691 |
else |
| 9692 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9693 |
for as_dir in $PATH |
| 9694 |
do |
| 9695 |
IFS=$as_save_IFS |
| 9696 |
test -z "$as_dir" && as_dir=. |
| 9697 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9698 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9699 |
ac_cv_prog_ac_ct_OTOOL="otool" |
| 9700 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9701 |
break 2 |
| 9702 |
fi |
| 9703 |
done |
| 9704 |
done |
| 9705 |
IFS=$as_save_IFS |
| 9706 |
|
| 9707 |
fi |
| 9708 |
fi |
| 9709 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9710 |
if test -n "$ac_ct_OTOOL"; then |
| 9711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 9712 |
$as_echo "$ac_ct_OTOOL" >&6; } |
| 9713 |
else |
| 9714 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9715 |
$as_echo "no" >&6; } |
| 9716 |
fi |
| 9717 |
|
| 9718 |
if test "x$ac_ct_OTOOL" = x; then |
| 9719 |
OTOOL=":" |
| 9720 |
else |
| 9721 |
case $cross_compiling:$ac_tool_warned in |
| 9722 |
yes:) |
| 9723 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9724 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9725 |
ac_tool_warned=yes ;; |
| 9726 |
esac |
| 9727 |
OTOOL=$ac_ct_OTOOL |
| 9728 |
fi |
| 9729 |
else |
| 9730 |
OTOOL="$ac_cv_prog_OTOOL" |
| 9731 |
fi |
| 9732 |
|
| 9733 |
if test -n "$ac_tool_prefix"; then |
| 9734 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9735 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 9736 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9737 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9738 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
| 9739 |
$as_echo_n "(cached) " >&6 |
| 9740 |
else |
| 9741 |
if test -n "$OTOOL64"; then |
| 9742 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9743 |
else |
| 9744 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9745 |
for as_dir in $PATH |
| 9746 |
do |
| 9747 |
IFS=$as_save_IFS |
| 9748 |
test -z "$as_dir" && as_dir=. |
| 9749 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9750 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9751 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 9752 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9753 |
break 2 |
| 9754 |
fi |
| 9755 |
done |
| 9756 |
done |
| 9757 |
IFS=$as_save_IFS |
| 9758 |
|
| 9759 |
fi |
| 9760 |
fi |
| 9761 |
OTOOL64=$ac_cv_prog_OTOOL64 |
| 9762 |
if test -n "$OTOOL64"; then |
| 9763 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 9764 |
$as_echo "$OTOOL64" >&6; } |
| 9765 |
else |
| 9766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9767 |
$as_echo "no" >&6; } |
| 9768 |
fi |
| 9769 |
|
| 9770 |
|
| 9771 |
fi |
| 9772 |
if test -z "$ac_cv_prog_OTOOL64"; then |
| 9773 |
ac_ct_OTOOL64=$OTOOL64 |
| 9774 |
# Extract the first word of "otool64", so it can be a program name with args. |
| 9775 |
set dummy otool64; ac_word=$2 |
| 9776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9777 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9778 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 9779 |
$as_echo_n "(cached) " >&6 |
| 9780 |
else |
| 9781 |
if test -n "$ac_ct_OTOOL64"; then |
| 9782 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9783 |
else |
| 9784 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9785 |
for as_dir in $PATH |
| 9786 |
do |
| 9787 |
IFS=$as_save_IFS |
| 9788 |
test -z "$as_dir" && as_dir=. |
| 9789 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9790 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9791 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 9792 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9793 |
break 2 |
| 9794 |
fi |
| 9795 |
done |
| 9796 |
done |
| 9797 |
IFS=$as_save_IFS |
| 9798 |
|
| 9799 |
fi |
| 9800 |
fi |
| 9801 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9802 |
if test -n "$ac_ct_OTOOL64"; then |
| 9803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 9804 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
| 9805 |
else |
| 9806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9807 |
$as_echo "no" >&6; } |
| 9808 |
fi |
| 9809 |
|
| 9810 |
if test "x$ac_ct_OTOOL64" = x; then |
| 9811 |
OTOOL64=":" |
| 9812 |
else |
| 9813 |
case $cross_compiling:$ac_tool_warned in |
| 9814 |
yes:) |
| 9815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9816 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9817 |
ac_tool_warned=yes ;; |
| 9818 |
esac |
| 9819 |
OTOOL64=$ac_ct_OTOOL64 |
| 9820 |
fi |
| 9821 |
else |
| 9822 |
OTOOL64="$ac_cv_prog_OTOOL64" |
| 9823 |
fi |
| 9824 |
|
| 9825 |
|
| 9826 |
|
| 9827 |
|
| 9828 |
|
| 9829 |
|
| 9830 |
|
| 9831 |
|
| 9832 |
|
| 9833 |
|
| 9834 |
|
| 9835 |
|
| 9836 |
|
| 9837 |
|
| 9838 |
|
| 9839 |
|
| 9840 |
|
| 9841 |
|
| 9842 |
|
| 9843 |
|
| 9844 |
|
| 9845 |
|
| 9846 |
|
| 9847 |
|
| 9848 |
|
| 9849 |
|
| 9850 |
|
| 9851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 9852 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
| 9853 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 9854 |
$as_echo_n "(cached) " >&6 |
| 9855 |
else |
| 9856 |
lt_cv_apple_cc_single_mod=no |
| 9857 |
if test -z "${LT_MULTI_MODULE}"; then |
| 9858 |
# By default we will add the -single_module flag. You can override |
| 9859 |
# by either setting the environment variable LT_MULTI_MODULE |
| 9860 |
# non-empty at configure time, or by adding -multi_module to the |
| 9861 |
# link flags. |
| 9862 |
rm -rf libconftest.dylib* |
| 9863 |
echo "int foo(void){return 1;}" > conftest.c |
| 9864 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9865 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
| 9866 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 9867 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 9868 |
_lt_result=$? |
| 9869 |
# If there is a non-empty error log, and "single_module" |
| 9870 |
# appears in it, assume the flag caused a linker warning |
| 9871 |
if test -s conftest.err && $GREP single_module conftest.err; then |
| 9872 |
cat conftest.err >&5 |
| 9873 |
# Otherwise, if the output was created with a 0 exit code from |
| 9874 |
# the compiler, it worked. |
| 9875 |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 9876 |
lt_cv_apple_cc_single_mod=yes |
| 9877 |
else |
| 9878 |
cat conftest.err >&5 |
| 9879 |
fi |
| 9880 |
rm -rf libconftest.dylib* |
| 9881 |
rm -f conftest.* |
| 9882 |
fi |
| 9883 |
fi |
| 9884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 9885 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 9886 |
|
| 9887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 9888 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 9889 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 9890 |
$as_echo_n "(cached) " >&6 |
| 9891 |
else |
| 9892 |
lt_cv_ld_exported_symbols_list=no |
| 9893 |
save_LDFLAGS=$LDFLAGS |
| 9894 |
echo "_main" > conftest.sym |
| 9895 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 9896 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9897 |
/* end confdefs.h. */ |
| 9898 |
|
| 9899 |
int |
| 9900 |
main () |
| 9901 |
{ |
| 9902 |
|
| 9903 |
; |
| 9904 |
return 0; |
| 9905 |
} |
| 9906 |
_ACEOF |
| 9907 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9908 |
lt_cv_ld_exported_symbols_list=yes |
| 9909 |
else |
| 9910 |
lt_cv_ld_exported_symbols_list=no |
| 9911 |
fi |
| 9912 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9913 |
conftest$ac_exeext conftest.$ac_ext |
| 9914 |
LDFLAGS="$save_LDFLAGS" |
| 9915 |
|
| 9916 |
fi |
| 9917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 9918 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 9919 |
|
| 9920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 9921 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
| 9922 |
if ${lt_cv_ld_force_load+:} false; then : |
| 9923 |
$as_echo_n "(cached) " >&6 |
| 9924 |
else |
| 9925 |
lt_cv_ld_force_load=no |
| 9926 |
cat > conftest.c << _LT_EOF |
| 9927 |
int forced_loaded() { return 2;} |
| 9928 |
_LT_EOF |
| 9929 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 9930 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 9931 |
echo "$AR cru libconftest.a conftest.o" >&5 |
| 9932 |
$AR cru libconftest.a conftest.o 2>&5 |
| 9933 |
echo "$RANLIB libconftest.a" >&5 |
| 9934 |
$RANLIB libconftest.a 2>&5 |
| 9935 |
cat > conftest.c << _LT_EOF |
| 9936 |
int main() { return 0;} |
| 9937 |
_LT_EOF |
| 9938 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 9939 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 9940 |
_lt_result=$? |
| 9941 |
if test -s conftest.err && $GREP force_load conftest.err; then |
| 9942 |
cat conftest.err >&5 |
| 9943 |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 9944 |
lt_cv_ld_force_load=yes |
| 9945 |
else |
| 9946 |
cat conftest.err >&5 |
| 9947 |
fi |
| 9948 |
rm -f conftest.err libconftest.a conftest conftest.c |
| 9949 |
rm -rf conftest.dSYM |
| 9950 |
|
| 9951 |
fi |
| 9952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 9953 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
| 9954 |
case $host_os in |
| 9955 |
rhapsody* | darwin1.[012]) |
| 9956 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 9957 |
darwin1.*) |
| 9958 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 9959 |
darwin*) # darwin 5.x on |
| 9960 |
# if running on 10.5 or later, the deployment target defaults |
| 9961 |
# to the OS version, if on x86, and 10.4, the deployment |
| 9962 |
# target defaults to 10.4. Don't you love it? |
| 9963 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 9964 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 9965 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 9966 |
10.[012]*) |
| 9967 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 9968 |
10.*) |
| 9969 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 9970 |
esac |
| 9971 |
;; |
| 9972 |
esac |
| 9973 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 9974 |
_lt_dar_single_mod='$single_module' |
| 9975 |
fi |
| 9976 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 9977 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 9978 |
else |
| 9979 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9980 |
fi |
| 9981 |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 9982 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
| 9983 |
else |
| 9984 |
_lt_dsymutil= |
| 9985 |
fi |
| 9986 |
;; |
| 9987 |
esac |
| 9988 |
|
| 9989 |
for ac_header in dlfcn.h |
| 9990 |
do : |
| 9991 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9992 |
" |
| 9993 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 9994 |
cat >>confdefs.h <<_ACEOF |
| 9995 |
#define HAVE_DLFCN_H 1 |
| 9996 |
_ACEOF |
| 9997 |
|
| 9998 |
fi |
| 9999 |
|
| 10000 |
done |
| 10001 |
|
| 10002 |
|
| 10003 |
|
| 10004 |
|
| 10005 |
|
| 10006 |
# Set options |
| 10007 |
|
| 10008 |
|
| 10009 |
|
| 10010 |
enable_dlopen=no |
| 10011 |
|
| 10012 |
|
| 10013 |
enable_win32_dll=no |
| 10014 |
|
| 10015 |
|
| 10016 |
# Check whether --enable-shared was given. |
| 10017 |
if test "${enable_shared+set}" = set; then : |
| 10018 |
enableval=$enable_shared; p=${PACKAGE-default} |
| 10019 |
case $enableval in |
| 10020 |
yes) enable_shared=yes ;; |
| 10021 |
no) enable_shared=no ;; |
| 10022 |
*) |
| 10023 |
enable_shared=no |
| 10024 |
# Look at the argument we got. We use all the common list separators. |
| 10025 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10026 |
for pkg in $enableval; do |
| 10027 |
IFS="$lt_save_ifs" |
| 10028 |
if test "X$pkg" = "X$p"; then |
| 10029 |
enable_shared=yes |
| 10030 |
fi |
| 10031 |
done |
| 10032 |
IFS="$lt_save_ifs" |
| 10033 |
;; |
| 10034 |
esac |
| 10035 |
else |
| 10036 |
enable_shared=yes |
| 10037 |
fi |
| 10038 |
|
| 10039 |
|
| 10040 |
|
| 10041 |
|
| 10042 |
|
| 10043 |
|
| 10044 |
|
| 10045 |
|
| 10046 |
|
| 10047 |
# Check whether --enable-static was given. |
| 10048 |
if test "${enable_static+set}" = set; then : |
| 10049 |
enableval=$enable_static; p=${PACKAGE-default} |
| 10050 |
case $enableval in |
| 10051 |
yes) enable_static=yes ;; |
| 10052 |
no) enable_static=no ;; |
| 10053 |
*) |
| 10054 |
enable_static=no |
| 10055 |
# Look at the argument we got. We use all the common list separators. |
| 10056 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10057 |
for pkg in $enableval; do |
| 10058 |
IFS="$lt_save_ifs" |
| 10059 |
if test "X$pkg" = "X$p"; then |
| 10060 |
enable_static=yes |
| 10061 |
fi |
| 10062 |
done |
| 10063 |
IFS="$lt_save_ifs" |
| 10064 |
;; |
| 10065 |
esac |
| 10066 |
else |
| 10067 |
enable_static=yes |
| 10068 |
fi |
| 10069 |
|
| 10070 |
|
| 10071 |
|
| 10072 |
|
| 10073 |
|
| 10074 |
|
| 10075 |
|
| 10076 |
|
| 10077 |
|
| 10078 |
|
| 10079 |
# Check whether --with-pic was given. |
| 10080 |
if test "${with_pic+set}" = set; then : |
| 10081 |
withval=$with_pic; lt_p=${PACKAGE-default} |
| 10082 |
case $withval in |
| 10083 |
yes|no) pic_mode=$withval ;; |
| 10084 |
*) |
| 10085 |
pic_mode=default |
| 10086 |
# Look at the argument we got. We use all the common list separators. |
| 10087 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10088 |
for lt_pkg in $withval; do |
| 10089 |
IFS="$lt_save_ifs" |
| 10090 |
if test "X$lt_pkg" = "X$lt_p"; then |
| 10091 |
pic_mode=yes |
| 10092 |
fi |
| 10093 |
done |
| 10094 |
IFS="$lt_save_ifs" |
| 10095 |
;; |
| 10096 |
esac |
| 10097 |
else |
| 10098 |
pic_mode=default |
| 10099 |
fi |
| 10100 |
|
| 10101 |
|
| 10102 |
test -z "$pic_mode" && pic_mode=default |
| 10103 |
|
| 10104 |
|
| 10105 |
|
| 10106 |
|
| 10107 |
|
| 10108 |
|
| 10109 |
|
| 10110 |
# Check whether --enable-fast-install was given. |
| 10111 |
if test "${enable_fast_install+set}" = set; then : |
| 10112 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
| 10113 |
case $enableval in |
| 10114 |
yes) enable_fast_install=yes ;; |
| 10115 |
no) enable_fast_install=no ;; |
| 10116 |
*) |
| 10117 |
enable_fast_install=no |
| 10118 |
# Look at the argument we got. We use all the common list separators. |
| 10119 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10120 |
for pkg in $enableval; do |
| 10121 |
IFS="$lt_save_ifs" |
| 10122 |
if test "X$pkg" = "X$p"; then |
| 10123 |
enable_fast_install=yes |
| 10124 |
fi |
| 10125 |
done |
| 10126 |
IFS="$lt_save_ifs" |
| 10127 |
;; |
| 10128 |
esac |
| 10129 |
else |
| 10130 |
enable_fast_install=yes |
| 10131 |
fi |
| 10132 |
|
| 10133 |
|
| 10134 |
|
| 10135 |
|
| 10136 |
|
| 10137 |
|
| 10138 |
|
| 10139 |
|
| 10140 |
|
| 10141 |
|
| 10142 |
|
| 10143 |
# This can be used to rebuild libtool when needed |
| 10144 |
LIBTOOL_DEPS="$ltmain" |
| 10145 |
|
| 10146 |
# Always use our own libtool. |
| 10147 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 10148 |
|
| 10149 |
|
| 10150 |
|
| 10151 |
|
| 10152 |
|
| 10153 |
|
| 10154 |
|
| 10155 |
|
| 10156 |
|
| 10157 |
|
| 10158 |
|
| 10159 |
|
| 10160 |
|
| 10161 |
|
| 10162 |
|
| 10163 |
|
| 10164 |
|
| 10165 |
|
| 10166 |
|
| 10167 |
|
| 10168 |
|
| 10169 |
|
| 10170 |
|
| 10171 |
|
| 10172 |
|
| 10173 |
|
| 10174 |
|
| 10175 |
|
| 10176 |
|
| 10177 |
|
| 10178 |
test -z "$LN_S" && LN_S="ln -s" |
| 10179 |
|
| 10180 |
|
| 10181 |
|
| 10182 |
|
| 10183 |
|
| 10184 |
|
| 10185 |
|
| 10186 |
|
| 10187 |
|
| 10188 |
|
| 10189 |
|
| 10190 |
|
| 10191 |
|
| 10192 |
|
| 10193 |
if test -n "${ZSH_VERSION+set}" ; then |
| 10194 |
setopt NO_GLOB_SUBST |
| 10195 |
fi |
| 10196 |
|
| 10197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 10198 |
$as_echo_n "checking for objdir... " >&6; } |
| 10199 |
if ${lt_cv_objdir+:} false; then : |
| 10200 |
$as_echo_n "(cached) " >&6 |
| 10201 |
else |
| 10202 |
rm -f .libs 2>/dev/null |
| 10203 |
mkdir .libs 2>/dev/null |
| 10204 |
if test -d .libs; then |
| 10205 |
lt_cv_objdir=.libs |
| 10206 |
else |
| 10207 |
# MS-DOS does not allow filenames that begin with a dot. |
| 10208 |
lt_cv_objdir=_libs |
| 10209 |
fi |
| 10210 |
rmdir .libs 2>/dev/null |
| 10211 |
fi |
| 10212 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 10213 |
$as_echo "$lt_cv_objdir" >&6; } |
| 10214 |
objdir=$lt_cv_objdir |
| 10215 |
|
| 10216 |
|
| 10217 |
|
| 10218 |
|
| 10219 |
|
| 10220 |
cat >>confdefs.h <<_ACEOF |
| 10221 |
#define LT_OBJDIR "$lt_cv_objdir/" |
| 10222 |
_ACEOF |
| 10223 |
|
| 10224 |
|
| 10225 |
|
| 10226 |
|
| 10227 |
case $host_os in |
| 10228 |
aix3*) |
| 10229 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 10230 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10231 |
# vanish in a puff of smoke. |
| 10232 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10233 |
COLLECT_NAMES= |
| 10234 |
export COLLECT_NAMES |
| 10235 |
fi |
| 10236 |
;; |
| 10237 |
esac |
| 10238 |
|
| 10239 |
# Global variables: |
| 10240 |
ofile=libtool |
| 10241 |
can_build_shared=yes |
| 10242 |
|
| 10243 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 10244 |
# which needs '.lib'). |
| 10245 |
libext=a |
| 10246 |
|
| 10247 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 10248 |
|
| 10249 |
old_CC="$CC" |
| 10250 |
old_CFLAGS="$CFLAGS" |
| 10251 |
|
| 10252 |
# Set sane defaults for various variables |
| 10253 |
test -z "$CC" && CC=cc |
| 10254 |
test -z "$LTCC" && LTCC=$CC |
| 10255 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 10256 |
test -z "$LD" && LD=ld |
| 10257 |
test -z "$ac_objext" && ac_objext=o |
| 10258 |
|
| 10259 |
for cc_temp in $compiler""; do |
| 10260 |
case $cc_temp in |
| 10261 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 10262 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 10263 |
\-*) ;; |
| 10264 |
*) break;; |
| 10265 |
esac |
| 10266 |
done |
| 10267 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 10268 |
|
| 10269 |
|
| 10270 |
# Only perform the check for file, if the check method requires it |
| 10271 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 10272 |
case $deplibs_check_method in |
| 10273 |
file_magic*) |
| 10274 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 10275 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 10276 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 10277 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 10278 |
$as_echo_n "(cached) " >&6 |
| 10279 |
else |
| 10280 |
case $MAGIC_CMD in |
| 10281 |
[\\/*] | ?:[\\/]*) |
| 10282 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 10283 |
;; |
| 10284 |
*) |
| 10285 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 10286 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10287 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10288 |
for ac_dir in $ac_dummy; do |
| 10289 |
IFS="$lt_save_ifs" |
| 10290 |
test -z "$ac_dir" && ac_dir=. |
| 10291 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 10292 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 10293 |
if test -n "$file_magic_test_file"; then |
| 10294 |
case $deplibs_check_method in |
| 10295 |
"file_magic "*) |
| 10296 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10297 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 10298 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10299 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 10300 |
: |
| 10301 |
else |
| 10302 |
cat <<_LT_EOF 1>&2 |
| 10303 |
|
| 10304 |
*** Warning: the command libtool uses to detect shared libraries, |
| 10305 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10306 |
*** The result is that libtool may fail to recognize shared libraries |
| 10307 |
*** as such. This will affect the creation of libtool libraries that |
| 10308 |
*** depend on shared libraries, but programs linked with such libtool |
| 10309 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 10310 |
*** may want to report the problem to your system manager and/or to |
| 10311 |
*** [email protected] |
| 10312 |
|
| 10313 |
_LT_EOF |
| 10314 |
fi ;; |
| 10315 |
esac |
| 10316 |
fi |
| 10317 |
break |
| 10318 |
fi |
| 10319 |
done |
| 10320 |
IFS="$lt_save_ifs" |
| 10321 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 10322 |
;; |
| 10323 |
esac |
| 10324 |
fi |
| 10325 |
|
| 10326 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 10327 |
if test -n "$MAGIC_CMD"; then |
| 10328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10329 |
$as_echo "$MAGIC_CMD" >&6; } |
| 10330 |
else |
| 10331 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10332 |
$as_echo "no" >&6; } |
| 10333 |
fi |
| 10334 |
|
| 10335 |
|
| 10336 |
|
| 10337 |
|
| 10338 |
|
| 10339 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 10340 |
if test -n "$ac_tool_prefix"; then |
| 10341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 10342 |
$as_echo_n "checking for file... " >&6; } |
| 10343 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 10344 |
$as_echo_n "(cached) " >&6 |
| 10345 |
else |
| 10346 |
case $MAGIC_CMD in |
| 10347 |
[\\/*] | ?:[\\/]*) |
| 10348 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 10349 |
;; |
| 10350 |
*) |
| 10351 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 10352 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10353 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 10354 |
for ac_dir in $ac_dummy; do |
| 10355 |
IFS="$lt_save_ifs" |
| 10356 |
test -z "$ac_dir" && ac_dir=. |
| 10357 |
if test -f $ac_dir/file; then |
| 10358 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 10359 |
if test -n "$file_magic_test_file"; then |
| 10360 |
case $deplibs_check_method in |
| 10361 |
"file_magic "*) |
| 10362 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 10363 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 10364 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 10365 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 10366 |
: |
| 10367 |
else |
| 10368 |
cat <<_LT_EOF 1>&2 |
| 10369 |
|
| 10370 |
*** Warning: the command libtool uses to detect shared libraries, |
| 10371 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 10372 |
*** The result is that libtool may fail to recognize shared libraries |
| 10373 |
*** as such. This will affect the creation of libtool libraries that |
| 10374 |
*** depend on shared libraries, but programs linked with such libtool |
| 10375 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 10376 |
*** may want to report the problem to your system manager and/or to |
| 10377 |
*** [email protected] |
| 10378 |
|
| 10379 |
_LT_EOF |
| 10380 |
fi ;; |
| 10381 |
esac |
| 10382 |
fi |
| 10383 |
break |
| 10384 |
fi |
| 10385 |
done |
| 10386 |
IFS="$lt_save_ifs" |
| 10387 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 10388 |
;; |
| 10389 |
esac |
| 10390 |
fi |
| 10391 |
|
| 10392 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 10393 |
if test -n "$MAGIC_CMD"; then |
| 10394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 10395 |
$as_echo "$MAGIC_CMD" >&6; } |
| 10396 |
else |
| 10397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10398 |
$as_echo "no" >&6; } |
| 10399 |
fi |
| 10400 |
|
| 10401 |
|
| 10402 |
else |
| 10403 |
MAGIC_CMD=: |
| 10404 |
fi |
| 10405 |
fi |
| 10406 |
|
| 10407 |
fi |
| 10408 |
;; |
| 10409 |
esac |
| 10410 |
|
| 10411 |
# Use C for the default configuration in the libtool script |
| 10412 |
|
| 10413 |
lt_save_CC="$CC" |
| 10414 |
ac_ext=c |
| 10415 |
ac_cpp='$CPP $CPPFLAGS' |
| 10416 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10417 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10418 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10419 |
|
| 10420 |
|
| 10421 |
# Source file extension for C test sources. |
| 10422 |
ac_ext=c |
| 10423 |
|
| 10424 |
# Object file extension for compiled C test sources. |
| 10425 |
objext=o |
| 10426 |
objext=$objext |
| 10427 |
|
| 10428 |
# Code to be used in simple compile tests |
| 10429 |
lt_simple_compile_test_code="int some_variable = 0;" |
| 10430 |
|
| 10431 |
# Code to be used in simple link tests |
| 10432 |
lt_simple_link_test_code='int main(){return(0);}' |
| 10433 |
|
| 10434 |
|
| 10435 |
|
| 10436 |
|
| 10437 |
|
| 10438 |
|
| 10439 |
|
| 10440 |
# If no C compiler was specified, use CC. |
| 10441 |
LTCC=${LTCC-"$CC"} |
| 10442 |
|
| 10443 |
# If no C compiler flags were specified, use CFLAGS. |
| 10444 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10445 |
|
| 10446 |
# Allow CC to be a program name with arguments. |
| 10447 |
compiler=$CC |
| 10448 |
|
| 10449 |
# Save the default compiler, since it gets overwritten when the other |
| 10450 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 10451 |
compiler_DEFAULT=$CC |
| 10452 |
|
| 10453 |
# save warnings/boilerplate of simple test code |
| 10454 |
ac_outfile=conftest.$ac_objext |
| 10455 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10456 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10457 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 10458 |
$RM conftest* |
| 10459 |
|
| 10460 |
ac_outfile=conftest.$ac_objext |
| 10461 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10462 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10463 |
_lt_linker_boilerplate=`cat conftest.err` |
| 10464 |
$RM -r conftest* |
| 10465 |
|
| 10466 |
|
| 10467 |
## CAVEAT EMPTOR: |
| 10468 |
## There is no encapsulation within the following macros, do not change |
| 10469 |
## the running order or otherwise move them around unless you know exactly |
| 10470 |
## what you are doing... |
| 10471 |
if test -n "$compiler"; then |
| 10472 |
|
| 10473 |
lt_prog_compiler_no_builtin_flag= |
| 10474 |
|
| 10475 |
if test "$GCC" = yes; then |
| 10476 |
case $cc_basename in |
| 10477 |
nvcc*) |
| 10478 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 10479 |
*) |
| 10480 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 10481 |
esac |
| 10482 |
|
| 10483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 10484 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 10485 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 10486 |
$as_echo_n "(cached) " >&6 |
| 10487 |
else |
| 10488 |
lt_cv_prog_compiler_rtti_exceptions=no |
| 10489 |
ac_outfile=conftest.$ac_objext |
| 10490 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10491 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 10492 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 10493 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 10494 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 10495 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10496 |
# The option is referenced via a variable to avoid confusing sed. |
| 10497 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 10498 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10499 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10500 |
-e 's:$: $lt_compiler_flag:'` |
| 10501 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10502 |
(eval "$lt_compile" 2>conftest.err) |
| 10503 |
ac_status=$? |
| 10504 |
cat conftest.err >&5 |
| 10505 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10506 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10507 |
# The compiler can only warn and ignore the option if not recognized |
| 10508 |
# So say no if there are warnings other than the usual output. |
| 10509 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10510 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10511 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10512 |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 10513 |
fi |
| 10514 |
fi |
| 10515 |
$RM conftest* |
| 10516 |
|
| 10517 |
fi |
| 10518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 10519 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 10520 |
|
| 10521 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 10522 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 10523 |
else |
| 10524 |
: |
| 10525 |
fi |
| 10526 |
|
| 10527 |
fi |
| 10528 |
|
| 10529 |
|
| 10530 |
|
| 10531 |
|
| 10532 |
|
| 10533 |
|
| 10534 |
lt_prog_compiler_wl= |
| 10535 |
lt_prog_compiler_pic= |
| 10536 |
lt_prog_compiler_static= |
| 10537 |
|
| 10538 |
|
| 10539 |
if test "$GCC" = yes; then |
| 10540 |
lt_prog_compiler_wl='-Wl,' |
| 10541 |
lt_prog_compiler_static='-static' |
| 10542 |
|
| 10543 |
case $host_os in |
| 10544 |
aix*) |
| 10545 |
# All AIX code is PIC. |
| 10546 |
if test "$host_cpu" = ia64; then |
| 10547 |
# AIX 5 now supports IA64 processor |
| 10548 |
lt_prog_compiler_static='-Bstatic' |
| 10549 |
fi |
| 10550 |
;; |
| 10551 |
|
| 10552 |
amigaos*) |
| 10553 |
case $host_cpu in |
| 10554 |
powerpc) |
| 10555 |
# see comment about AmigaOS4 .so support |
| 10556 |
lt_prog_compiler_pic='-fPIC' |
| 10557 |
;; |
| 10558 |
m68k) |
| 10559 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 10560 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 10561 |
# like `-m68040'. |
| 10562 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 10563 |
;; |
| 10564 |
esac |
| 10565 |
;; |
| 10566 |
|
| 10567 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10568 |
# PIC is the default for these OSes. |
| 10569 |
;; |
| 10570 |
|
| 10571 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10572 |
# This hack is so that the source file can tell whether it is being |
| 10573 |
# built for inclusion in a dll (and should export symbols for example). |
| 10574 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10575 |
# (--disable-auto-import) libraries |
| 10576 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10577 |
;; |
| 10578 |
|
| 10579 |
darwin* | rhapsody*) |
| 10580 |
# PIC is the default on this platform |
| 10581 |
# Common symbols not allowed in MH_DYLIB files |
| 10582 |
lt_prog_compiler_pic='-fno-common' |
| 10583 |
;; |
| 10584 |
|
| 10585 |
haiku*) |
| 10586 |
# PIC is the default for Haiku. |
| 10587 |
# The "-static" flag exists, but is broken. |
| 10588 |
lt_prog_compiler_static= |
| 10589 |
;; |
| 10590 |
|
| 10591 |
hpux*) |
| 10592 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 10593 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 10594 |
# sets the default TLS model and affects inlining. |
| 10595 |
case $host_cpu in |
| 10596 |
hppa*64*) |
| 10597 |
# +Z the default |
| 10598 |
;; |
| 10599 |
*) |
| 10600 |
lt_prog_compiler_pic='-fPIC' |
| 10601 |
;; |
| 10602 |
esac |
| 10603 |
;; |
| 10604 |
|
| 10605 |
interix[3-9]*) |
| 10606 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10607 |
# Instead, we relocate shared libraries at runtime. |
| 10608 |
;; |
| 10609 |
|
| 10610 |
msdosdjgpp*) |
| 10611 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10612 |
# on systems that don't support them. |
| 10613 |
lt_prog_compiler_can_build_shared=no |
| 10614 |
enable_shared=no |
| 10615 |
;; |
| 10616 |
|
| 10617 |
*nto* | *qnx*) |
| 10618 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10619 |
# it will coredump. |
| 10620 |
lt_prog_compiler_pic='-fPIC -shared' |
| 10621 |
;; |
| 10622 |
|
| 10623 |
sysv4*MP*) |
| 10624 |
if test -d /usr/nec; then |
| 10625 |
lt_prog_compiler_pic=-Kconform_pic |
| 10626 |
fi |
| 10627 |
;; |
| 10628 |
|
| 10629 |
*) |
| 10630 |
lt_prog_compiler_pic='-fPIC' |
| 10631 |
;; |
| 10632 |
esac |
| 10633 |
|
| 10634 |
case $cc_basename in |
| 10635 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 10636 |
lt_prog_compiler_wl='-Xlinker ' |
| 10637 |
if test -n "$lt_prog_compiler_pic"; then |
| 10638 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 10639 |
fi |
| 10640 |
;; |
| 10641 |
esac |
| 10642 |
else |
| 10643 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 10644 |
case $host_os in |
| 10645 |
aix*) |
| 10646 |
lt_prog_compiler_wl='-Wl,' |
| 10647 |
if test "$host_cpu" = ia64; then |
| 10648 |
# AIX 5 now supports IA64 processor |
| 10649 |
lt_prog_compiler_static='-Bstatic' |
| 10650 |
else |
| 10651 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 10652 |
fi |
| 10653 |
;; |
| 10654 |
|
| 10655 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 10656 |
# This hack is so that the source file can tell whether it is being |
| 10657 |
# built for inclusion in a dll (and should export symbols for example). |
| 10658 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 10659 |
;; |
| 10660 |
|
| 10661 |
hpux9* | hpux10* | hpux11*) |
| 10662 |
lt_prog_compiler_wl='-Wl,' |
| 10663 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10664 |
# not for PA HP-UX. |
| 10665 |
case $host_cpu in |
| 10666 |
hppa*64*|ia64*) |
| 10667 |
# +Z the default |
| 10668 |
;; |
| 10669 |
*) |
| 10670 |
lt_prog_compiler_pic='+Z' |
| 10671 |
;; |
| 10672 |
esac |
| 10673 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10674 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 10675 |
;; |
| 10676 |
|
| 10677 |
irix5* | irix6* | nonstopux*) |
| 10678 |
lt_prog_compiler_wl='-Wl,' |
| 10679 |
# PIC (with -KPIC) is the default. |
| 10680 |
lt_prog_compiler_static='-non_shared' |
| 10681 |
;; |
| 10682 |
|
| 10683 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 10684 |
case $cc_basename in |
| 10685 |
# old Intel for x86_64 which still supported -KPIC. |
| 10686 |
ecc*) |
| 10687 |
lt_prog_compiler_wl='-Wl,' |
| 10688 |
lt_prog_compiler_pic='-KPIC' |
| 10689 |
lt_prog_compiler_static='-static' |
| 10690 |
;; |
| 10691 |
# icc used to be incompatible with GCC. |
| 10692 |
# ICC 10 doesn't accept -KPIC any more. |
| 10693 |
icc* | ifort*) |
| 10694 |
lt_prog_compiler_wl='-Wl,' |
| 10695 |
lt_prog_compiler_pic='-fPIC' |
| 10696 |
lt_prog_compiler_static='-static' |
| 10697 |
;; |
| 10698 |
# Lahey Fortran 8.1. |
| 10699 |
lf95*) |
| 10700 |
lt_prog_compiler_wl='-Wl,' |
| 10701 |
lt_prog_compiler_pic='--shared' |
| 10702 |
lt_prog_compiler_static='--static' |
| 10703 |
;; |
| 10704 |
nagfor*) |
| 10705 |
# NAG Fortran compiler |
| 10706 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 10707 |
lt_prog_compiler_pic='-PIC' |
| 10708 |
lt_prog_compiler_static='-Bstatic' |
| 10709 |
;; |
| 10710 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10711 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 10712 |
# which looks to be a dead project) |
| 10713 |
lt_prog_compiler_wl='-Wl,' |
| 10714 |
lt_prog_compiler_pic='-fpic' |
| 10715 |
lt_prog_compiler_static='-Bstatic' |
| 10716 |
;; |
| 10717 |
ccc*) |
| 10718 |
lt_prog_compiler_wl='-Wl,' |
| 10719 |
# All Alpha code is PIC. |
| 10720 |
lt_prog_compiler_static='-non_shared' |
| 10721 |
;; |
| 10722 |
xl* | bgxl* | bgf* | mpixl*) |
| 10723 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 10724 |
lt_prog_compiler_wl='-Wl,' |
| 10725 |
lt_prog_compiler_pic='-qpic' |
| 10726 |
lt_prog_compiler_static='-qstaticlink' |
| 10727 |
;; |
| 10728 |
*) |
| 10729 |
case `$CC -V 2>&1 | sed 5q` in |
| 10730 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 10731 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10732 |
lt_prog_compiler_pic='-KPIC' |
| 10733 |
lt_prog_compiler_static='-Bstatic' |
| 10734 |
lt_prog_compiler_wl='' |
| 10735 |
;; |
| 10736 |
*Sun\ F* | *Sun*Fortran*) |
| 10737 |
lt_prog_compiler_pic='-KPIC' |
| 10738 |
lt_prog_compiler_static='-Bstatic' |
| 10739 |
lt_prog_compiler_wl='-Qoption ld ' |
| 10740 |
;; |
| 10741 |
*Sun\ C*) |
| 10742 |
# Sun C 5.9 |
| 10743 |
lt_prog_compiler_pic='-KPIC' |
| 10744 |
lt_prog_compiler_static='-Bstatic' |
| 10745 |
lt_prog_compiler_wl='-Wl,' |
| 10746 |
;; |
| 10747 |
*Intel*\ [CF]*Compiler*) |
| 10748 |
lt_prog_compiler_wl='-Wl,' |
| 10749 |
lt_prog_compiler_pic='-fPIC' |
| 10750 |
lt_prog_compiler_static='-static' |
| 10751 |
;; |
| 10752 |
*Portland\ Group*) |
| 10753 |
lt_prog_compiler_wl='-Wl,' |
| 10754 |
lt_prog_compiler_pic='-fpic' |
| 10755 |
lt_prog_compiler_static='-Bstatic' |
| 10756 |
;; |
| 10757 |
esac |
| 10758 |
;; |
| 10759 |
esac |
| 10760 |
;; |
| 10761 |
|
| 10762 |
newsos6) |
| 10763 |
lt_prog_compiler_pic='-KPIC' |
| 10764 |
lt_prog_compiler_static='-Bstatic' |
| 10765 |
;; |
| 10766 |
|
| 10767 |
*nto* | *qnx*) |
| 10768 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 10769 |
# it will coredump. |
| 10770 |
lt_prog_compiler_pic='-fPIC -shared' |
| 10771 |
;; |
| 10772 |
|
| 10773 |
osf3* | osf4* | osf5*) |
| 10774 |
lt_prog_compiler_wl='-Wl,' |
| 10775 |
# All OSF/1 code is PIC. |
| 10776 |
lt_prog_compiler_static='-non_shared' |
| 10777 |
;; |
| 10778 |
|
| 10779 |
rdos*) |
| 10780 |
lt_prog_compiler_static='-non_shared' |
| 10781 |
;; |
| 10782 |
|
| 10783 |
solaris*) |
| 10784 |
lt_prog_compiler_pic='-KPIC' |
| 10785 |
lt_prog_compiler_static='-Bstatic' |
| 10786 |
case $cc_basename in |
| 10787 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 10788 |
lt_prog_compiler_wl='-Qoption ld ';; |
| 10789 |
*) |
| 10790 |
lt_prog_compiler_wl='-Wl,';; |
| 10791 |
esac |
| 10792 |
;; |
| 10793 |
|
| 10794 |
sunos4*) |
| 10795 |
lt_prog_compiler_wl='-Qoption ld ' |
| 10796 |
lt_prog_compiler_pic='-PIC' |
| 10797 |
lt_prog_compiler_static='-Bstatic' |
| 10798 |
;; |
| 10799 |
|
| 10800 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 10801 |
lt_prog_compiler_wl='-Wl,' |
| 10802 |
lt_prog_compiler_pic='-KPIC' |
| 10803 |
lt_prog_compiler_static='-Bstatic' |
| 10804 |
;; |
| 10805 |
|
| 10806 |
sysv4*MP*) |
| 10807 |
if test -d /usr/nec ;then |
| 10808 |
lt_prog_compiler_pic='-Kconform_pic' |
| 10809 |
lt_prog_compiler_static='-Bstatic' |
| 10810 |
fi |
| 10811 |
;; |
| 10812 |
|
| 10813 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10814 |
lt_prog_compiler_wl='-Wl,' |
| 10815 |
lt_prog_compiler_pic='-KPIC' |
| 10816 |
lt_prog_compiler_static='-Bstatic' |
| 10817 |
;; |
| 10818 |
|
| 10819 |
unicos*) |
| 10820 |
lt_prog_compiler_wl='-Wl,' |
| 10821 |
lt_prog_compiler_can_build_shared=no |
| 10822 |
;; |
| 10823 |
|
| 10824 |
uts4*) |
| 10825 |
lt_prog_compiler_pic='-pic' |
| 10826 |
lt_prog_compiler_static='-Bstatic' |
| 10827 |
;; |
| 10828 |
|
| 10829 |
*) |
| 10830 |
lt_prog_compiler_can_build_shared=no |
| 10831 |
;; |
| 10832 |
esac |
| 10833 |
fi |
| 10834 |
|
| 10835 |
case $host_os in |
| 10836 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 10837 |
*djgpp*) |
| 10838 |
lt_prog_compiler_pic= |
| 10839 |
;; |
| 10840 |
*) |
| 10841 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10842 |
;; |
| 10843 |
esac |
| 10844 |
|
| 10845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10846 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 10847 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
| 10848 |
$as_echo_n "(cached) " >&6 |
| 10849 |
else |
| 10850 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10851 |
fi |
| 10852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10853 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 10854 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10855 |
|
| 10856 |
# |
| 10857 |
# Check to make sure the PIC flag actually works. |
| 10858 |
# |
| 10859 |
if test -n "$lt_prog_compiler_pic"; then |
| 10860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10861 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10862 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 10863 |
$as_echo_n "(cached) " >&6 |
| 10864 |
else |
| 10865 |
lt_cv_prog_compiler_pic_works=no |
| 10866 |
ac_outfile=conftest.$ac_objext |
| 10867 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10868 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 10869 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 10870 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 10871 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 10872 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10873 |
# The option is referenced via a variable to avoid confusing sed. |
| 10874 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 10875 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10876 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10877 |
-e 's:$: $lt_compiler_flag:'` |
| 10878 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10879 |
(eval "$lt_compile" 2>conftest.err) |
| 10880 |
ac_status=$? |
| 10881 |
cat conftest.err >&5 |
| 10882 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10883 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10884 |
# The compiler can only warn and ignore the option if not recognized |
| 10885 |
# So say no if there are warnings other than the usual output. |
| 10886 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10887 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10888 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10889 |
lt_cv_prog_compiler_pic_works=yes |
| 10890 |
fi |
| 10891 |
fi |
| 10892 |
$RM conftest* |
| 10893 |
|
| 10894 |
fi |
| 10895 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10896 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10897 |
|
| 10898 |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 10899 |
case $lt_prog_compiler_pic in |
| 10900 |
"" | " "*) ;; |
| 10901 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10902 |
esac |
| 10903 |
else |
| 10904 |
lt_prog_compiler_pic= |
| 10905 |
lt_prog_compiler_can_build_shared=no |
| 10906 |
fi |
| 10907 |
|
| 10908 |
fi |
| 10909 |
|
| 10910 |
|
| 10911 |
|
| 10912 |
|
| 10913 |
|
| 10914 |
|
| 10915 |
|
| 10916 |
|
| 10917 |
|
| 10918 |
|
| 10919 |
|
| 10920 |
# |
| 10921 |
# Check to make sure the static flag actually works. |
| 10922 |
# |
| 10923 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10925 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10926 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 10927 |
$as_echo_n "(cached) " >&6 |
| 10928 |
else |
| 10929 |
lt_cv_prog_compiler_static_works=no |
| 10930 |
save_LDFLAGS="$LDFLAGS" |
| 10931 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10932 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10933 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10934 |
# The linker can only warn and ignore the option if not recognized |
| 10935 |
# So say no if there are warnings |
| 10936 |
if test -s conftest.err; then |
| 10937 |
# Append any errors to the config.log. |
| 10938 |
cat conftest.err 1>&5 |
| 10939 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10940 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10941 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 10942 |
lt_cv_prog_compiler_static_works=yes |
| 10943 |
fi |
| 10944 |
else |
| 10945 |
lt_cv_prog_compiler_static_works=yes |
| 10946 |
fi |
| 10947 |
fi |
| 10948 |
$RM -r conftest* |
| 10949 |
LDFLAGS="$save_LDFLAGS" |
| 10950 |
|
| 10951 |
fi |
| 10952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 10953 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 10954 |
|
| 10955 |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 10956 |
: |
| 10957 |
else |
| 10958 |
lt_prog_compiler_static= |
| 10959 |
fi |
| 10960 |
|
| 10961 |
|
| 10962 |
|
| 10963 |
|
| 10964 |
|
| 10965 |
|
| 10966 |
|
| 10967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10968 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10969 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 10970 |
$as_echo_n "(cached) " >&6 |
| 10971 |
else |
| 10972 |
lt_cv_prog_compiler_c_o=no |
| 10973 |
$RM -r conftest 2>/dev/null |
| 10974 |
mkdir conftest |
| 10975 |
cd conftest |
| 10976 |
mkdir out |
| 10977 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10978 |
|
| 10979 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10980 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 10981 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 10982 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 10983 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10984 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 10985 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10986 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10987 |
-e 's:$: $lt_compiler_flag:'` |
| 10988 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10989 |
(eval "$lt_compile" 2>out/conftest.err) |
| 10990 |
ac_status=$? |
| 10991 |
cat out/conftest.err >&5 |
| 10992 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10993 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10994 |
then |
| 10995 |
# The compiler can only warn and ignore the option if not recognized |
| 10996 |
# So say no if there are warnings |
| 10997 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10998 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10999 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11000 |
lt_cv_prog_compiler_c_o=yes |
| 11001 |
fi |
| 11002 |
fi |
| 11003 |
chmod u+w . 2>&5 |
| 11004 |
$RM conftest* |
| 11005 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 11006 |
# template instantiation |
| 11007 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11008 |
$RM out/* && rmdir out |
| 11009 |
cd .. |
| 11010 |
$RM -r conftest |
| 11011 |
$RM conftest* |
| 11012 |
|
| 11013 |
fi |
| 11014 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11015 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 11016 |
|
| 11017 |
|
| 11018 |
|
| 11019 |
|
| 11020 |
|
| 11021 |
|
| 11022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11023 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 11024 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 11025 |
$as_echo_n "(cached) " >&6 |
| 11026 |
else |
| 11027 |
lt_cv_prog_compiler_c_o=no |
| 11028 |
$RM -r conftest 2>/dev/null |
| 11029 |
mkdir conftest |
| 11030 |
cd conftest |
| 11031 |
mkdir out |
| 11032 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11033 |
|
| 11034 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11035 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 11036 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 11037 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 11038 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11039 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 11040 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11041 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11042 |
-e 's:$: $lt_compiler_flag:'` |
| 11043 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 11044 |
(eval "$lt_compile" 2>out/conftest.err) |
| 11045 |
ac_status=$? |
| 11046 |
cat out/conftest.err >&5 |
| 11047 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11048 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11049 |
then |
| 11050 |
# The compiler can only warn and ignore the option if not recognized |
| 11051 |
# So say no if there are warnings |
| 11052 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 11053 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11054 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11055 |
lt_cv_prog_compiler_c_o=yes |
| 11056 |
fi |
| 11057 |
fi |
| 11058 |
chmod u+w . 2>&5 |
| 11059 |
$RM conftest* |
| 11060 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 11061 |
# template instantiation |
| 11062 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11063 |
$RM out/* && rmdir out |
| 11064 |
cd .. |
| 11065 |
$RM -r conftest |
| 11066 |
$RM conftest* |
| 11067 |
|
| 11068 |
fi |
| 11069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 11070 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 11071 |
|
| 11072 |
|
| 11073 |
|
| 11074 |
|
| 11075 |
hard_links="nottested" |
| 11076 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 11077 |
# do not overwrite the value of need_locks provided by the user |
| 11078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 11079 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
| 11080 |
hard_links=yes |
| 11081 |
$RM conftest* |
| 11082 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11083 |
touch conftest.a |
| 11084 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11085 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11086 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 11087 |
$as_echo "$hard_links" >&6; } |
| 11088 |
if test "$hard_links" = no; then |
| 11089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 11090 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 11091 |
need_locks=warn |
| 11092 |
fi |
| 11093 |
else |
| 11094 |
need_locks=no |
| 11095 |
fi |
| 11096 |
|
| 11097 |
|
| 11098 |
|
| 11099 |
|
| 11100 |
|
| 11101 |
|
| 11102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11103 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11104 |
|
| 11105 |
runpath_var= |
| 11106 |
allow_undefined_flag= |
| 11107 |
always_export_symbols=no |
| 11108 |
archive_cmds= |
| 11109 |
archive_expsym_cmds= |
| 11110 |
compiler_needs_object=no |
| 11111 |
enable_shared_with_static_runtimes=no |
| 11112 |
export_dynamic_flag_spec= |
| 11113 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11114 |
hardcode_automatic=no |
| 11115 |
hardcode_direct=no |
| 11116 |
hardcode_direct_absolute=no |
| 11117 |
hardcode_libdir_flag_spec= |
| 11118 |
hardcode_libdir_separator= |
| 11119 |
hardcode_minus_L=no |
| 11120 |
hardcode_shlibpath_var=unsupported |
| 11121 |
inherit_rpath=no |
| 11122 |
link_all_deplibs=unknown |
| 11123 |
module_cmds= |
| 11124 |
module_expsym_cmds= |
| 11125 |
old_archive_from_new_cmds= |
| 11126 |
old_archive_from_expsyms_cmds= |
| 11127 |
thread_safe_flag_spec= |
| 11128 |
whole_archive_flag_spec= |
| 11129 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 11130 |
# included in the symbol list |
| 11131 |
include_expsyms= |
| 11132 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 11133 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 11134 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 11135 |
# as well as any symbol that contains `d'. |
| 11136 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 11137 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 11138 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 11139 |
# the symbol is explicitly referenced. Since portable code cannot |
| 11140 |
# rely on this symbol name, it's probably fine to never include it in |
| 11141 |
# preloaded symbol tables. |
| 11142 |
# Exclude shared library initialization/finalization symbols. |
| 11143 |
extract_expsyms_cmds= |
| 11144 |
|
| 11145 |
case $host_os in |
| 11146 |
cygwin* | mingw* | pw32* | cegcc*) |
| 11147 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 11148 |
# When not using gcc, we currently assume that we are using |
| 11149 |
# Microsoft Visual C++. |
| 11150 |
if test "$GCC" != yes; then |
| 11151 |
with_gnu_ld=no |
| 11152 |
fi |
| 11153 |
;; |
| 11154 |
interix*) |
| 11155 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 11156 |
with_gnu_ld=yes |
| 11157 |
;; |
| 11158 |
openbsd*) |
| 11159 |
with_gnu_ld=no |
| 11160 |
;; |
| 11161 |
linux* | k*bsd*-gnu | gnu*) |
| 11162 |
link_all_deplibs=no |
| 11163 |
;; |
| 11164 |
esac |
| 11165 |
|
| 11166 |
ld_shlibs=yes |
| 11167 |
|
| 11168 |
# On some targets, GNU ld is compatible enough with the native linker |
| 11169 |
# that we're better off using the native interface for both. |
| 11170 |
lt_use_gnu_ld_interface=no |
| 11171 |
if test "$with_gnu_ld" = yes; then |
| 11172 |
case $host_os in |
| 11173 |
aix*) |
| 11174 |
# The AIX port of GNU ld has always aspired to compatibility |
| 11175 |
# with the native linker. However, as the warning in the GNU ld |
| 11176 |
# block says, versions before 2.19.5* couldn't really create working |
| 11177 |
# shared libraries, regardless of the interface used. |
| 11178 |
case `$LD -v 2>&1` in |
| 11179 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 11180 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 11181 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 11182 |
*) |
| 11183 |
lt_use_gnu_ld_interface=yes |
| 11184 |
;; |
| 11185 |
esac |
| 11186 |
;; |
| 11187 |
*) |
| 11188 |
lt_use_gnu_ld_interface=yes |
| 11189 |
;; |
| 11190 |
esac |
| 11191 |
fi |
| 11192 |
|
| 11193 |
if test "$lt_use_gnu_ld_interface" = yes; then |
| 11194 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 11195 |
wlarc='${wl}' |
| 11196 |
|
| 11197 |
# Set some defaults for GNU ld with shared library support. These |
| 11198 |
# are reset later if shared libraries are not supported. Putting them |
| 11199 |
# here allows them to be overridden if necessary. |
| 11200 |
runpath_var=LD_RUN_PATH |
| 11201 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11202 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 11203 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 11204 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 11205 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11206 |
else |
| 11207 |
whole_archive_flag_spec= |
| 11208 |
fi |
| 11209 |
supports_anon_versioning=no |
| 11210 |
case `$LD -v 2>&1` in |
| 11211 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
| 11212 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11213 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11214 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11215 |
*\ 2.11.*) ;; # other 2.11 versions |
| 11216 |
*) supports_anon_versioning=yes ;; |
| 11217 |
esac |
| 11218 |
|
| 11219 |
# See if GNU ld supports shared libraries. |
| 11220 |
case $host_os in |
| 11221 |
aix[3-9]*) |
| 11222 |
# On AIX/PPC, the GNU linker is very broken |
| 11223 |
if test "$host_cpu" != ia64; then |
| 11224 |
ld_shlibs=no |
| 11225 |
cat <<_LT_EOF 1>&2 |
| 11226 |
|
| 11227 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
| 11228 |
*** to be unable to reliably create shared libraries on AIX. |
| 11229 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 11230 |
*** really care for shared libraries, you may want to install binutils |
| 11231 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 11232 |
*** You will then need to restart the configuration process. |
| 11233 |
|
| 11234 |
_LT_EOF |
| 11235 |
fi |
| 11236 |
;; |
| 11237 |
|
| 11238 |
amigaos*) |
| 11239 |
case $host_cpu in |
| 11240 |
powerpc) |
| 11241 |
# see comment about AmigaOS4 .so support |
| 11242 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11243 |
archive_expsym_cmds='' |
| 11244 |
;; |
| 11245 |
m68k) |
| 11246 |
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)' |
| 11247 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11248 |
hardcode_minus_L=yes |
| 11249 |
;; |
| 11250 |
esac |
| 11251 |
;; |
| 11252 |
|
| 11253 |
beos*) |
| 11254 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11255 |
allow_undefined_flag=unsupported |
| 11256 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 11257 |
# support --undefined. This deserves some investigation. FIXME |
| 11258 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11259 |
else |
| 11260 |
ld_shlibs=no |
| 11261 |
fi |
| 11262 |
;; |
| 11263 |
|
| 11264 |
cygwin* | mingw* | pw32* | cegcc*) |
| 11265 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 11266 |
# as there is no search path for DLLs. |
| 11267 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11268 |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 11269 |
allow_undefined_flag=unsupported |
| 11270 |
always_export_symbols=no |
| 11271 |
enable_shared_with_static_runtimes=yes |
| 11272 |
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' |
| 11273 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 11274 |
|
| 11275 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11276 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11277 |
# If the export-symbols file already is a .def file (1st line |
| 11278 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 11279 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11280 |
cp $export_symbols $output_objdir/$soname.def; |
| 11281 |
else |
| 11282 |
echo EXPORTS > $output_objdir/$soname.def; |
| 11283 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 11284 |
fi~ |
| 11285 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11286 |
else |
| 11287 |
ld_shlibs=no |
| 11288 |
fi |
| 11289 |
;; |
| 11290 |
|
| 11291 |
haiku*) |
| 11292 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11293 |
link_all_deplibs=yes |
| 11294 |
;; |
| 11295 |
|
| 11296 |
interix[3-9]*) |
| 11297 |
hardcode_direct=no |
| 11298 |
hardcode_shlibpath_var=no |
| 11299 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 11300 |
export_dynamic_flag_spec='${wl}-E' |
| 11301 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11302 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11303 |
# default) and relocated if they conflict, which is a slow very memory |
| 11304 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 11305 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11306 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11307 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11308 |
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' |
| 11309 |
;; |
| 11310 |
|
| 11311 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11312 |
tmp_diet=no |
| 11313 |
if test "$host_os" = linux-dietlibc; then |
| 11314 |
case $cc_basename in |
| 11315 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 11316 |
esac |
| 11317 |
fi |
| 11318 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 11319 |
&& test "$tmp_diet" = no |
| 11320 |
then |
| 11321 |
tmp_addflag=' $pic_flag' |
| 11322 |
tmp_sharedflag='-shared' |
| 11323 |
case $cc_basename,$host_cpu in |
| 11324 |
pgcc*) # Portland Group C compiler |
| 11325 |
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' |
| 11326 |
tmp_addflag=' $pic_flag' |
| 11327 |
;; |
| 11328 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
| 11329 |
# Portland Group f77 and f90 compilers |
| 11330 |
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' |
| 11331 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 11332 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 11333 |
tmp_addflag=' -i_dynamic' ;; |
| 11334 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 11335 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 11336 |
ifc* | ifort*) # Intel Fortran compiler |
| 11337 |
tmp_addflag=' -nofor_main' ;; |
| 11338 |
lf95*) # Lahey Fortran 8.1 |
| 11339 |
whole_archive_flag_spec= |
| 11340 |
tmp_sharedflag='--shared' ;; |
| 11341 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 11342 |
tmp_sharedflag='-qmkshrobj' |
| 11343 |
tmp_addflag= ;; |
| 11344 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 11345 |
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' |
| 11346 |
compiler_needs_object=yes |
| 11347 |
;; |
| 11348 |
esac |
| 11349 |
case `$CC -V 2>&1 | sed 5q` in |
| 11350 |
*Sun\ C*) # Sun C 5.9 |
| 11351 |
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' |
| 11352 |
compiler_needs_object=yes |
| 11353 |
tmp_sharedflag='-G' ;; |
| 11354 |
*Sun\ F*) # Sun Fortran 8.3 |
| 11355 |
tmp_sharedflag='-G' ;; |
| 11356 |
esac |
| 11357 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11358 |
|
| 11359 |
if test "x$supports_anon_versioning" = xyes; then |
| 11360 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11361 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11362 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11363 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 11364 |
fi |
| 11365 |
|
| 11366 |
case $cc_basename in |
| 11367 |
xlf* | bgf* | bgxlf* | mpixlf*) |
| 11368 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 11369 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 11370 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11371 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 11372 |
if test "x$supports_anon_versioning" = xyes; then |
| 11373 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 11374 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11375 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11376 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 11377 |
fi |
| 11378 |
;; |
| 11379 |
esac |
| 11380 |
else |
| 11381 |
ld_shlibs=no |
| 11382 |
fi |
| 11383 |
;; |
| 11384 |
|
| 11385 |
netbsd* | netbsdelf*-gnu) |
| 11386 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11387 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 11388 |
wlarc= |
| 11389 |
else |
| 11390 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11391 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11392 |
fi |
| 11393 |
;; |
| 11394 |
|
| 11395 |
solaris*) |
| 11396 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 11397 |
ld_shlibs=no |
| 11398 |
cat <<_LT_EOF 1>&2 |
| 11399 |
|
| 11400 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 11401 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 11402 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 11403 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 11404 |
*** your PATH or compiler configuration so that the native linker is |
| 11405 |
*** used, and then restart. |
| 11406 |
|
| 11407 |
_LT_EOF |
| 11408 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11409 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11410 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11411 |
else |
| 11412 |
ld_shlibs=no |
| 11413 |
fi |
| 11414 |
;; |
| 11415 |
|
| 11416 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 11417 |
case `$LD -v 2>&1` in |
| 11418 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 11419 |
ld_shlibs=no |
| 11420 |
cat <<_LT_EOF 1>&2 |
| 11421 |
|
| 11422 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 11423 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 11424 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 11425 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 11426 |
*** your PATH or compiler configuration so that the native linker is |
| 11427 |
*** used, and then restart. |
| 11428 |
|
| 11429 |
_LT_EOF |
| 11430 |
;; |
| 11431 |
*) |
| 11432 |
# For security reasons, it is highly recommended that you always |
| 11433 |
# use absolute paths for naming shared libraries, and exclude the |
| 11434 |
# DT_RUNPATH tag from executables and libraries. But doing so |
| 11435 |
# requires that you compile everything twice, which is a pain. |
| 11436 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11437 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 11438 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11439 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11440 |
else |
| 11441 |
ld_shlibs=no |
| 11442 |
fi |
| 11443 |
;; |
| 11444 |
esac |
| 11445 |
;; |
| 11446 |
|
| 11447 |
sunos4*) |
| 11448 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11449 |
wlarc= |
| 11450 |
hardcode_direct=yes |
| 11451 |
hardcode_shlibpath_var=no |
| 11452 |
;; |
| 11453 |
|
| 11454 |
*) |
| 11455 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11456 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11457 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11458 |
else |
| 11459 |
ld_shlibs=no |
| 11460 |
fi |
| 11461 |
;; |
| 11462 |
esac |
| 11463 |
|
| 11464 |
if test "$ld_shlibs" = no; then |
| 11465 |
runpath_var= |
| 11466 |
hardcode_libdir_flag_spec= |
| 11467 |
export_dynamic_flag_spec= |
| 11468 |
whole_archive_flag_spec= |
| 11469 |
fi |
| 11470 |
else |
| 11471 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 11472 |
case $host_os in |
| 11473 |
aix3*) |
| 11474 |
allow_undefined_flag=unsupported |
| 11475 |
always_export_symbols=yes |
| 11476 |
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' |
| 11477 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 11478 |
# are no directories specified by -L. |
| 11479 |
hardcode_minus_L=yes |
| 11480 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 11481 |
# Neither direct hardcoding nor static linking is supported with a |
| 11482 |
# broken collect2. |
| 11483 |
hardcode_direct=unsupported |
| 11484 |
fi |
| 11485 |
;; |
| 11486 |
|
| 11487 |
aix[4-9]*) |
| 11488 |
if test "$host_cpu" = ia64; then |
| 11489 |
# On IA64, the linker does run time linking by default, so we don't |
| 11490 |
# have to do anything special. |
| 11491 |
aix_use_runtimelinking=no |
| 11492 |
exp_sym_flag='-Bexport' |
| 11493 |
no_entry_flag="" |
| 11494 |
else |
| 11495 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 11496 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11497 |
# Also, AIX nm treats weak defined symbols like other global |
| 11498 |
# defined symbols, whereas GNU nm marks them as "W". |
| 11499 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 11500 |
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' |
| 11501 |
else |
| 11502 |
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' |
| 11503 |
fi |
| 11504 |
aix_use_runtimelinking=no |
| 11505 |
|
| 11506 |
# Test if we are trying to use run time linking or normal |
| 11507 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11508 |
# need to do runtime linking. |
| 11509 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11510 |
for ld_flag in $LDFLAGS; do |
| 11511 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 11512 |
aix_use_runtimelinking=yes |
| 11513 |
break |
| 11514 |
fi |
| 11515 |
done |
| 11516 |
;; |
| 11517 |
esac |
| 11518 |
|
| 11519 |
exp_sym_flag='-bexport' |
| 11520 |
no_entry_flag='-bnoentry' |
| 11521 |
fi |
| 11522 |
|
| 11523 |
# When large executables or shared objects are built, AIX ld can |
| 11524 |
# have problems creating the table of contents. If linking a library |
| 11525 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 11526 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11527 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11528 |
|
| 11529 |
archive_cmds='' |
| 11530 |
hardcode_direct=yes |
| 11531 |
hardcode_direct_absolute=yes |
| 11532 |
hardcode_libdir_separator=':' |
| 11533 |
link_all_deplibs=yes |
| 11534 |
file_list_spec='${wl}-f,' |
| 11535 |
|
| 11536 |
if test "$GCC" = yes; then |
| 11537 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 11538 |
# We only want to do this on AIX 4.2 and lower, the check |
| 11539 |
# below for broken collect2 doesn't work under 4.3+ |
| 11540 |
collect2name=`${CC} -print-prog-name=collect2` |
| 11541 |
if test -f "$collect2name" && |
| 11542 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11543 |
then |
| 11544 |
# We have reworked collect2 |
| 11545 |
: |
| 11546 |
else |
| 11547 |
# We have old collect2 |
| 11548 |
hardcode_direct=unsupported |
| 11549 |
# It fails to find uninstalled libraries when the uninstalled |
| 11550 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 11551 |
# to unsupported forces relinking |
| 11552 |
hardcode_minus_L=yes |
| 11553 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11554 |
hardcode_libdir_separator= |
| 11555 |
fi |
| 11556 |
;; |
| 11557 |
esac |
| 11558 |
shared_flag='-shared' |
| 11559 |
if test "$aix_use_runtimelinking" = yes; then |
| 11560 |
shared_flag="$shared_flag "'${wl}-G' |
| 11561 |
fi |
| 11562 |
link_all_deplibs=no |
| 11563 |
else |
| 11564 |
# not using gcc |
| 11565 |
if test "$host_cpu" = ia64; then |
| 11566 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11567 |
# chokes on -Wl,-G. The following line is correct: |
| 11568 |
shared_flag='-G' |
| 11569 |
else |
| 11570 |
if test "$aix_use_runtimelinking" = yes; then |
| 11571 |
shared_flag='${wl}-G' |
| 11572 |
else |
| 11573 |
shared_flag='${wl}-bM:SRE' |
| 11574 |
fi |
| 11575 |
fi |
| 11576 |
fi |
| 11577 |
|
| 11578 |
export_dynamic_flag_spec='${wl}-bexpall' |
| 11579 |
# It seems that -bexpall does not export symbols beginning with |
| 11580 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 11581 |
always_export_symbols=yes |
| 11582 |
if test "$aix_use_runtimelinking" = yes; then |
| 11583 |
# Warning - without using the other runtime loading flags (-brtl), |
| 11584 |
# -berok will link without error, but may produce a broken library. |
| 11585 |
allow_undefined_flag='-berok' |
| 11586 |
# Determine the default libpath from the value encoded in an |
| 11587 |
# empty executable. |
| 11588 |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 11589 |
aix_libpath=$lt_cv_aix_libpath |
| 11590 |
else |
| 11591 |
if ${lt_cv_aix_libpath_+:} false; then : |
| 11592 |
$as_echo_n "(cached) " >&6 |
| 11593 |
else |
| 11594 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11595 |
/* end confdefs.h. */ |
| 11596 |
|
| 11597 |
int |
| 11598 |
main () |
| 11599 |
{ |
| 11600 |
|
| 11601 |
; |
| 11602 |
return 0; |
| 11603 |
} |
| 11604 |
_ACEOF |
| 11605 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11606 |
|
| 11607 |
lt_aix_libpath_sed=' |
| 11608 |
/Import File Strings/,/^$/ { |
| 11609 |
/^0/ { |
| 11610 |
s/^0 *\([^ ]*\) *$/\1/ |
| 11611 |
p |
| 11612 |
} |
| 11613 |
}' |
| 11614 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11615 |
# Check for a 64-bit object if we didn't find anything. |
| 11616 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11617 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11618 |
fi |
| 11619 |
fi |
| 11620 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11621 |
conftest$ac_exeext conftest.$ac_ext |
| 11622 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11623 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 11624 |
fi |
| 11625 |
|
| 11626 |
fi |
| 11627 |
|
| 11628 |
aix_libpath=$lt_cv_aix_libpath_ |
| 11629 |
fi |
| 11630 |
|
| 11631 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11632 |
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" |
| 11633 |
else |
| 11634 |
if test "$host_cpu" = ia64; then |
| 11635 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 11636 |
allow_undefined_flag="-z nodefs" |
| 11637 |
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" |
| 11638 |
else |
| 11639 |
# Determine the default libpath from the value encoded in an |
| 11640 |
# empty executable. |
| 11641 |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 11642 |
aix_libpath=$lt_cv_aix_libpath |
| 11643 |
else |
| 11644 |
if ${lt_cv_aix_libpath_+:} false; then : |
| 11645 |
$as_echo_n "(cached) " >&6 |
| 11646 |
else |
| 11647 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11648 |
/* end confdefs.h. */ |
| 11649 |
|
| 11650 |
int |
| 11651 |
main () |
| 11652 |
{ |
| 11653 |
|
| 11654 |
; |
| 11655 |
return 0; |
| 11656 |
} |
| 11657 |
_ACEOF |
| 11658 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11659 |
|
| 11660 |
lt_aix_libpath_sed=' |
| 11661 |
/Import File Strings/,/^$/ { |
| 11662 |
/^0/ { |
| 11663 |
s/^0 *\([^ ]*\) *$/\1/ |
| 11664 |
p |
| 11665 |
} |
| 11666 |
}' |
| 11667 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11668 |
# Check for a 64-bit object if we didn't find anything. |
| 11669 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11670 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11671 |
fi |
| 11672 |
fi |
| 11673 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11674 |
conftest$ac_exeext conftest.$ac_ext |
| 11675 |
if test -z "$lt_cv_aix_libpath_"; then |
| 11676 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 11677 |
fi |
| 11678 |
|
| 11679 |
fi |
| 11680 |
|
| 11681 |
aix_libpath=$lt_cv_aix_libpath_ |
| 11682 |
fi |
| 11683 |
|
| 11684 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11685 |
# Warning - without using the other run time loading flags, |
| 11686 |
# -berok will link without error, but may produce a broken library. |
| 11687 |
no_undefined_flag=' ${wl}-bernotok' |
| 11688 |
allow_undefined_flag=' ${wl}-berok' |
| 11689 |
if test "$with_gnu_ld" = yes; then |
| 11690 |
# We only use this code for GNU lds that support --whole-archive. |
| 11691 |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11692 |
else |
| 11693 |
# Exported symbols can be pulled into shared objects from archives |
| 11694 |
whole_archive_flag_spec='$convenience' |
| 11695 |
fi |
| 11696 |
archive_cmds_need_lc=yes |
| 11697 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 11698 |
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' |
| 11699 |
fi |
| 11700 |
fi |
| 11701 |
;; |
| 11702 |
|
| 11703 |
amigaos*) |
| 11704 |
case $host_cpu in |
| 11705 |
powerpc) |
| 11706 |
# see comment about AmigaOS4 .so support |
| 11707 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11708 |
archive_expsym_cmds='' |
| 11709 |
;; |
| 11710 |
m68k) |
| 11711 |
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)' |
| 11712 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11713 |
hardcode_minus_L=yes |
| 11714 |
;; |
| 11715 |
esac |
| 11716 |
;; |
| 11717 |
|
| 11718 |
bsdi[45]*) |
| 11719 |
export_dynamic_flag_spec=-rdynamic |
| 11720 |
;; |
| 11721 |
|
| 11722 |
cygwin* | mingw* | pw32* | cegcc*) |
| 11723 |
# When not using gcc, we currently assume that we are using |
| 11724 |
# Microsoft Visual C++. |
| 11725 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11726 |
# no search path for DLLs. |
| 11727 |
case $cc_basename in |
| 11728 |
cl*) |
| 11729 |
# Native MSVC |
| 11730 |
hardcode_libdir_flag_spec=' ' |
| 11731 |
allow_undefined_flag=unsupported |
| 11732 |
always_export_symbols=yes |
| 11733 |
file_list_spec='@' |
| 11734 |
# Tell ltmain to make .lib files, not .a files. |
| 11735 |
libext=lib |
| 11736 |
# Tell ltmain to make .dll files, not .so files. |
| 11737 |
shrext_cmds=".dll" |
| 11738 |
# FIXME: Setting linknames here is a bad hack. |
| 11739 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 11740 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11741 |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 11742 |
else |
| 11743 |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 11744 |
fi~ |
| 11745 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 11746 |
linknames=' |
| 11747 |
# The linker will not automatically build a static lib if we build a DLL. |
| 11748 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11749 |
enable_shared_with_static_runtimes=yes |
| 11750 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 11751 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11752 |
# Don't use ranlib |
| 11753 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 11754 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11755 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11756 |
case $lt_outputfile in |
| 11757 |
*.exe|*.EXE) ;; |
| 11758 |
*) |
| 11759 |
lt_outputfile="$lt_outputfile.exe" |
| 11760 |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 11761 |
;; |
| 11762 |
esac~ |
| 11763 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 11764 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11765 |
$RM "$lt_outputfile.manifest"; |
| 11766 |
fi' |
| 11767 |
;; |
| 11768 |
*) |
| 11769 |
# Assume MSVC wrapper |
| 11770 |
hardcode_libdir_flag_spec=' ' |
| 11771 |
allow_undefined_flag=unsupported |
| 11772 |
# Tell ltmain to make .lib files, not .a files. |
| 11773 |
libext=lib |
| 11774 |
# Tell ltmain to make .dll files, not .so files. |
| 11775 |
shrext_cmds=".dll" |
| 11776 |
# FIXME: Setting linknames here is a bad hack. |
| 11777 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11778 |
# The linker will automatically build a .lib file if we build a DLL. |
| 11779 |
old_archive_from_new_cmds='true' |
| 11780 |
# FIXME: Should let the user specify the lib program. |
| 11781 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11782 |
enable_shared_with_static_runtimes=yes |
| 11783 |
;; |
| 11784 |
esac |
| 11785 |
;; |
| 11786 |
|
| 11787 |
darwin* | rhapsody*) |
| 11788 |
|
| 11789 |
|
| 11790 |
archive_cmds_need_lc=no |
| 11791 |
hardcode_direct=no |
| 11792 |
hardcode_automatic=yes |
| 11793 |
hardcode_shlibpath_var=unsupported |
| 11794 |
if test "$lt_cv_ld_force_load" = "yes"; then |
| 11795 |
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\"`' |
| 11796 |
|
| 11797 |
else |
| 11798 |
whole_archive_flag_spec='' |
| 11799 |
fi |
| 11800 |
link_all_deplibs=yes |
| 11801 |
allow_undefined_flag="$_lt_dar_allow_undefined" |
| 11802 |
case $cc_basename in |
| 11803 |
ifort*) _lt_dar_can_shared=yes ;; |
| 11804 |
*) _lt_dar_can_shared=$GCC ;; |
| 11805 |
esac |
| 11806 |
if test "$_lt_dar_can_shared" = "yes"; then |
| 11807 |
output_verbose_link_cmd=func_echo_all |
| 11808 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 11809 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 11810 |
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}" |
| 11811 |
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}" |
| 11812 |
|
| 11813 |
else |
| 11814 |
ld_shlibs=no |
| 11815 |
fi |
| 11816 |
|
| 11817 |
;; |
| 11818 |
|
| 11819 |
dgux*) |
| 11820 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11821 |
hardcode_libdir_flag_spec='-L$libdir' |
| 11822 |
hardcode_shlibpath_var=no |
| 11823 |
;; |
| 11824 |
|
| 11825 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11826 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 11827 |
# does not break anything, and helps significantly (at the cost of a little |
| 11828 |
# extra space). |
| 11829 |
freebsd2.2*) |
| 11830 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11831 |
hardcode_libdir_flag_spec='-R$libdir' |
| 11832 |
hardcode_direct=yes |
| 11833 |
hardcode_shlibpath_var=no |
| 11834 |
;; |
| 11835 |
|
| 11836 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11837 |
freebsd2.*) |
| 11838 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11839 |
hardcode_direct=yes |
| 11840 |
hardcode_minus_L=yes |
| 11841 |
hardcode_shlibpath_var=no |
| 11842 |
;; |
| 11843 |
|
| 11844 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11845 |
freebsd* | dragonfly*) |
| 11846 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11847 |
hardcode_libdir_flag_spec='-R$libdir' |
| 11848 |
hardcode_direct=yes |
| 11849 |
hardcode_shlibpath_var=no |
| 11850 |
;; |
| 11851 |
|
| 11852 |
hpux9*) |
| 11853 |
if test "$GCC" = yes; then |
| 11854 |
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' |
| 11855 |
else |
| 11856 |
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' |
| 11857 |
fi |
| 11858 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 11859 |
hardcode_libdir_separator=: |
| 11860 |
hardcode_direct=yes |
| 11861 |
|
| 11862 |
# hardcode_minus_L: Not really in the search PATH, |
| 11863 |
# but as the default location of the library. |
| 11864 |
hardcode_minus_L=yes |
| 11865 |
export_dynamic_flag_spec='${wl}-E' |
| 11866 |
;; |
| 11867 |
|
| 11868 |
hpux10*) |
| 11869 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 11870 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11871 |
else |
| 11872 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11873 |
fi |
| 11874 |
if test "$with_gnu_ld" = no; then |
| 11875 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 11876 |
hardcode_libdir_separator=: |
| 11877 |
hardcode_direct=yes |
| 11878 |
hardcode_direct_absolute=yes |
| 11879 |
export_dynamic_flag_spec='${wl}-E' |
| 11880 |
# hardcode_minus_L: Not really in the search PATH, |
| 11881 |
# but as the default location of the library. |
| 11882 |
hardcode_minus_L=yes |
| 11883 |
fi |
| 11884 |
;; |
| 11885 |
|
| 11886 |
hpux11*) |
| 11887 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 11888 |
case $host_cpu in |
| 11889 |
hppa*64*) |
| 11890 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11891 |
;; |
| 11892 |
ia64*) |
| 11893 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11894 |
;; |
| 11895 |
*) |
| 11896 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11897 |
;; |
| 11898 |
esac |
| 11899 |
else |
| 11900 |
case $host_cpu in |
| 11901 |
hppa*64*) |
| 11902 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11903 |
;; |
| 11904 |
ia64*) |
| 11905 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 11906 |
;; |
| 11907 |
*) |
| 11908 |
|
| 11909 |
# Older versions of the 11.00 compiler do not understand -b yet |
| 11910 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 11911 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 11912 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
| 11913 |
if ${lt_cv_prog_compiler__b+:} false; then : |
| 11914 |
$as_echo_n "(cached) " >&6 |
| 11915 |
else |
| 11916 |
lt_cv_prog_compiler__b=no |
| 11917 |
save_LDFLAGS="$LDFLAGS" |
| 11918 |
LDFLAGS="$LDFLAGS -b" |
| 11919 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11920 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11921 |
# The linker can only warn and ignore the option if not recognized |
| 11922 |
# So say no if there are warnings |
| 11923 |
if test -s conftest.err; then |
| 11924 |
# Append any errors to the config.log. |
| 11925 |
cat conftest.err 1>&5 |
| 11926 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 11927 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11928 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 11929 |
lt_cv_prog_compiler__b=yes |
| 11930 |
fi |
| 11931 |
else |
| 11932 |
lt_cv_prog_compiler__b=yes |
| 11933 |
fi |
| 11934 |
fi |
| 11935 |
$RM -r conftest* |
| 11936 |
LDFLAGS="$save_LDFLAGS" |
| 11937 |
|
| 11938 |
fi |
| 11939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 11940 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 11941 |
|
| 11942 |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 11943 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11944 |
else |
| 11945 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11946 |
fi |
| 11947 |
|
| 11948 |
;; |
| 11949 |
esac |
| 11950 |
fi |
| 11951 |
if test "$with_gnu_ld" = no; then |
| 11952 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 11953 |
hardcode_libdir_separator=: |
| 11954 |
|
| 11955 |
case $host_cpu in |
| 11956 |
hppa*64*|ia64*) |
| 11957 |
hardcode_direct=no |
| 11958 |
hardcode_shlibpath_var=no |
| 11959 |
;; |
| 11960 |
*) |
| 11961 |
hardcode_direct=yes |
| 11962 |
hardcode_direct_absolute=yes |
| 11963 |
export_dynamic_flag_spec='${wl}-E' |
| 11964 |
|
| 11965 |
# hardcode_minus_L: Not really in the search PATH, |
| 11966 |
# but as the default location of the library. |
| 11967 |
hardcode_minus_L=yes |
| 11968 |
;; |
| 11969 |
esac |
| 11970 |
fi |
| 11971 |
;; |
| 11972 |
|
| 11973 |
irix5* | irix6* | nonstopux*) |
| 11974 |
if test "$GCC" = yes; then |
| 11975 |
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' |
| 11976 |
# Try to use the -exported_symbol ld option, if it does not |
| 11977 |
# work, assume that -exports_file does not work either and |
| 11978 |
# implicitly export all symbols. |
| 11979 |
# This should be the same for all languages, so no per-tag cache variable. |
| 11980 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 11981 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 11982 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
| 11983 |
$as_echo_n "(cached) " >&6 |
| 11984 |
else |
| 11985 |
save_LDFLAGS="$LDFLAGS" |
| 11986 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 11987 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11988 |
/* end confdefs.h. */ |
| 11989 |
int foo (void) { return 0; } |
| 11990 |
_ACEOF |
| 11991 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11992 |
lt_cv_irix_exported_symbol=yes |
| 11993 |
else |
| 11994 |
lt_cv_irix_exported_symbol=no |
| 11995 |
fi |
| 11996 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11997 |
conftest$ac_exeext conftest.$ac_ext |
| 11998 |
LDFLAGS="$save_LDFLAGS" |
| 11999 |
fi |
| 12000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 12001 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 12002 |
if test "$lt_cv_irix_exported_symbol" = yes; then |
| 12003 |
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' |
| 12004 |
fi |
| 12005 |
else |
| 12006 |
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' |
| 12007 |
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' |
| 12008 |
fi |
| 12009 |
archive_cmds_need_lc='no' |
| 12010 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12011 |
hardcode_libdir_separator=: |
| 12012 |
inherit_rpath=yes |
| 12013 |
link_all_deplibs=yes |
| 12014 |
;; |
| 12015 |
|
| 12016 |
netbsd* | netbsdelf*-gnu) |
| 12017 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12018 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12019 |
else |
| 12020 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12021 |
fi |
| 12022 |
hardcode_libdir_flag_spec='-R$libdir' |
| 12023 |
hardcode_direct=yes |
| 12024 |
hardcode_shlibpath_var=no |
| 12025 |
;; |
| 12026 |
|
| 12027 |
newsos6) |
| 12028 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12029 |
hardcode_direct=yes |
| 12030 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12031 |
hardcode_libdir_separator=: |
| 12032 |
hardcode_shlibpath_var=no |
| 12033 |
;; |
| 12034 |
|
| 12035 |
*nto* | *qnx*) |
| 12036 |
;; |
| 12037 |
|
| 12038 |
openbsd*) |
| 12039 |
if test -f /usr/libexec/ld.so; then |
| 12040 |
hardcode_direct=yes |
| 12041 |
hardcode_shlibpath_var=no |
| 12042 |
hardcode_direct_absolute=yes |
| 12043 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12044 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12045 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 12046 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12047 |
export_dynamic_flag_spec='${wl}-E' |
| 12048 |
else |
| 12049 |
case $host_os in |
| 12050 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 12051 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12052 |
hardcode_libdir_flag_spec='-R$libdir' |
| 12053 |
;; |
| 12054 |
*) |
| 12055 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12056 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12057 |
;; |
| 12058 |
esac |
| 12059 |
fi |
| 12060 |
else |
| 12061 |
ld_shlibs=no |
| 12062 |
fi |
| 12063 |
;; |
| 12064 |
|
| 12065 |
os2*) |
| 12066 |
hardcode_libdir_flag_spec='-L$libdir' |
| 12067 |
hardcode_minus_L=yes |
| 12068 |
allow_undefined_flag=unsupported |
| 12069 |
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' |
| 12070 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 12071 |
;; |
| 12072 |
|
| 12073 |
osf3*) |
| 12074 |
if test "$GCC" = yes; then |
| 12075 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12076 |
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' |
| 12077 |
else |
| 12078 |
allow_undefined_flag=' -expect_unresolved \*' |
| 12079 |
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' |
| 12080 |
fi |
| 12081 |
archive_cmds_need_lc='no' |
| 12082 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12083 |
hardcode_libdir_separator=: |
| 12084 |
;; |
| 12085 |
|
| 12086 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12087 |
if test "$GCC" = yes; then |
| 12088 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12089 |
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' |
| 12090 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12091 |
else |
| 12092 |
allow_undefined_flag=' -expect_unresolved \*' |
| 12093 |
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' |
| 12094 |
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~ |
| 12095 |
$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' |
| 12096 |
|
| 12097 |
# Both c and cxx compiler support -rpath directly |
| 12098 |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 12099 |
fi |
| 12100 |
archive_cmds_need_lc='no' |
| 12101 |
hardcode_libdir_separator=: |
| 12102 |
;; |
| 12103 |
|
| 12104 |
solaris*) |
| 12105 |
no_undefined_flag=' -z defs' |
| 12106 |
if test "$GCC" = yes; then |
| 12107 |
wlarc='${wl}' |
| 12108 |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12109 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12110 |
$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' |
| 12111 |
else |
| 12112 |
case `$CC -V 2>&1` in |
| 12113 |
*"Compilers 5.0"*) |
| 12114 |
wlarc='' |
| 12115 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12116 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12117 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12118 |
;; |
| 12119 |
*) |
| 12120 |
wlarc='${wl}' |
| 12121 |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12122 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12123 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12124 |
;; |
| 12125 |
esac |
| 12126 |
fi |
| 12127 |
hardcode_libdir_flag_spec='-R$libdir' |
| 12128 |
hardcode_shlibpath_var=no |
| 12129 |
case $host_os in |
| 12130 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12131 |
*) |
| 12132 |
# The compiler driver will combine and reorder linker options, |
| 12133 |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
| 12134 |
# but is careful enough not to reorder. |
| 12135 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12136 |
if test "$GCC" = yes; then |
| 12137 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12138 |
else |
| 12139 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12140 |
fi |
| 12141 |
;; |
| 12142 |
esac |
| 12143 |
link_all_deplibs=yes |
| 12144 |
;; |
| 12145 |
|
| 12146 |
sunos4*) |
| 12147 |
if test "x$host_vendor" = xsequent; then |
| 12148 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 12149 |
# files that make .init and .fini sections work. |
| 12150 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12151 |
else |
| 12152 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12153 |
fi |
| 12154 |
hardcode_libdir_flag_spec='-L$libdir' |
| 12155 |
hardcode_direct=yes |
| 12156 |
hardcode_minus_L=yes |
| 12157 |
hardcode_shlibpath_var=no |
| 12158 |
;; |
| 12159 |
|
| 12160 |
sysv4) |
| 12161 |
case $host_vendor in |
| 12162 |
sni) |
| 12163 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12164 |
hardcode_direct=yes # is this really true??? |
| 12165 |
;; |
| 12166 |
siemens) |
| 12167 |
## LD is ld it makes a PLAMLIB |
| 12168 |
## CC just makes a GrossModule. |
| 12169 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12170 |
reload_cmds='$CC -r -o $output$reload_objs' |
| 12171 |
hardcode_direct=no |
| 12172 |
;; |
| 12173 |
motorola) |
| 12174 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12175 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12176 |
;; |
| 12177 |
esac |
| 12178 |
runpath_var='LD_RUN_PATH' |
| 12179 |
hardcode_shlibpath_var=no |
| 12180 |
;; |
| 12181 |
|
| 12182 |
sysv4.3*) |
| 12183 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12184 |
hardcode_shlibpath_var=no |
| 12185 |
export_dynamic_flag_spec='-Bexport' |
| 12186 |
;; |
| 12187 |
|
| 12188 |
sysv4*MP*) |
| 12189 |
if test -d /usr/nec; then |
| 12190 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12191 |
hardcode_shlibpath_var=no |
| 12192 |
runpath_var=LD_RUN_PATH |
| 12193 |
hardcode_runpath_var=yes |
| 12194 |
ld_shlibs=yes |
| 12195 |
fi |
| 12196 |
;; |
| 12197 |
|
| 12198 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12199 |
no_undefined_flag='${wl}-z,text' |
| 12200 |
archive_cmds_need_lc=no |
| 12201 |
hardcode_shlibpath_var=no |
| 12202 |
runpath_var='LD_RUN_PATH' |
| 12203 |
|
| 12204 |
if test "$GCC" = yes; then |
| 12205 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12206 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12207 |
else |
| 12208 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12209 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12210 |
fi |
| 12211 |
;; |
| 12212 |
|
| 12213 |
sysv5* | sco3.2v5* | sco5v6*) |
| 12214 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 12215 |
# link with -lc, and that would cause any symbols used from libc to |
| 12216 |
# always be unresolved, which means just about no library would |
| 12217 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 12218 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 12219 |
# as -z defs. |
| 12220 |
no_undefined_flag='${wl}-z,text' |
| 12221 |
allow_undefined_flag='${wl}-z,nodefs' |
| 12222 |
archive_cmds_need_lc=no |
| 12223 |
hardcode_shlibpath_var=no |
| 12224 |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 12225 |
hardcode_libdir_separator=':' |
| 12226 |
link_all_deplibs=yes |
| 12227 |
export_dynamic_flag_spec='${wl}-Bexport' |
| 12228 |
runpath_var='LD_RUN_PATH' |
| 12229 |
|
| 12230 |
if test "$GCC" = yes; then |
| 12231 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12232 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12233 |
else |
| 12234 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12235 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12236 |
fi |
| 12237 |
;; |
| 12238 |
|
| 12239 |
uts4*) |
| 12240 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12241 |
hardcode_libdir_flag_spec='-L$libdir' |
| 12242 |
hardcode_shlibpath_var=no |
| 12243 |
;; |
| 12244 |
|
| 12245 |
*) |
| 12246 |
ld_shlibs=no |
| 12247 |
;; |
| 12248 |
esac |
| 12249 |
|
| 12250 |
if test x$host_vendor = xsni; then |
| 12251 |
case $host in |
| 12252 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12253 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 12254 |
;; |
| 12255 |
esac |
| 12256 |
fi |
| 12257 |
fi |
| 12258 |
|
| 12259 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 12260 |
$as_echo "$ld_shlibs" >&6; } |
| 12261 |
test "$ld_shlibs" = no && can_build_shared=no |
| 12262 |
|
| 12263 |
with_gnu_ld=$with_gnu_ld |
| 12264 |
|
| 12265 |
|
| 12266 |
|
| 12267 |
|
| 12268 |
|
| 12269 |
|
| 12270 |
|
| 12271 |
|
| 12272 |
|
| 12273 |
|
| 12274 |
|
| 12275 |
|
| 12276 |
|
| 12277 |
|
| 12278 |
|
| 12279 |
# |
| 12280 |
# Do we need to explicitly link libc? |
| 12281 |
# |
| 12282 |
case "x$archive_cmds_need_lc" in |
| 12283 |
x|xyes) |
| 12284 |
# Assume -lc should be added |
| 12285 |
archive_cmds_need_lc=yes |
| 12286 |
|
| 12287 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12288 |
case $archive_cmds in |
| 12289 |
*'~'*) |
| 12290 |
# FIXME: we may have to deal with multi-command sequences. |
| 12291 |
;; |
| 12292 |
'$CC '*) |
| 12293 |
# Test whether the compiler implicitly links with -lc since on some |
| 12294 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12295 |
# to ld, don't add -lc before -lgcc. |
| 12296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 12297 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 12298 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 12299 |
$as_echo_n "(cached) " >&6 |
| 12300 |
else |
| 12301 |
$RM conftest* |
| 12302 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12303 |
|
| 12304 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12305 |
(eval $ac_compile) 2>&5 |
| 12306 |
ac_status=$? |
| 12307 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12308 |
test $ac_status = 0; } 2>conftest.err; then |
| 12309 |
soname=conftest |
| 12310 |
lib=conftest |
| 12311 |
libobjs=conftest.$ac_objext |
| 12312 |
deplibs= |
| 12313 |
wl=$lt_prog_compiler_wl |
| 12314 |
pic_flag=$lt_prog_compiler_pic |
| 12315 |
compiler_flags=-v |
| 12316 |
linker_flags=-v |
| 12317 |
verstring= |
| 12318 |
output_objdir=. |
| 12319 |
libname=conftest |
| 12320 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
| 12321 |
allow_undefined_flag= |
| 12322 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 12323 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12324 |
ac_status=$? |
| 12325 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12326 |
test $ac_status = 0; } |
| 12327 |
then |
| 12328 |
lt_cv_archive_cmds_need_lc=no |
| 12329 |
else |
| 12330 |
lt_cv_archive_cmds_need_lc=yes |
| 12331 |
fi |
| 12332 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
| 12333 |
else |
| 12334 |
cat conftest.err 1>&5 |
| 12335 |
fi |
| 12336 |
$RM conftest* |
| 12337 |
|
| 12338 |
fi |
| 12339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 12340 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 12341 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 12342 |
;; |
| 12343 |
esac |
| 12344 |
fi |
| 12345 |
;; |
| 12346 |
esac |
| 12347 |
|
| 12348 |
|
| 12349 |
|
| 12350 |
|
| 12351 |
|
| 12352 |
|
| 12353 |
|
| 12354 |
|
| 12355 |
|
| 12356 |
|
| 12357 |
|
| 12358 |
|
| 12359 |
|
| 12360 |
|
| 12361 |
|
| 12362 |
|
| 12363 |
|
| 12364 |
|
| 12365 |
|
| 12366 |
|
| 12367 |
|
| 12368 |
|
| 12369 |
|
| 12370 |
|
| 12371 |
|
| 12372 |
|
| 12373 |
|
| 12374 |
|
| 12375 |
|
| 12376 |
|
| 12377 |
|
| 12378 |
|
| 12379 |
|
| 12380 |
|
| 12381 |
|
| 12382 |
|
| 12383 |
|
| 12384 |
|
| 12385 |
|
| 12386 |
|
| 12387 |
|
| 12388 |
|
| 12389 |
|
| 12390 |
|
| 12391 |
|
| 12392 |
|
| 12393 |
|
| 12394 |
|
| 12395 |
|
| 12396 |
|
| 12397 |
|
| 12398 |
|
| 12399 |
|
| 12400 |
|
| 12401 |
|
| 12402 |
|
| 12403 |
|
| 12404 |
|
| 12405 |
|
| 12406 |
|
| 12407 |
|
| 12408 |
|
| 12409 |
|
| 12410 |
|
| 12411 |
|
| 12412 |
|
| 12413 |
|
| 12414 |
|
| 12415 |
|
| 12416 |
|
| 12417 |
|
| 12418 |
|
| 12419 |
|
| 12420 |
|
| 12421 |
|
| 12422 |
|
| 12423 |
|
| 12424 |
|
| 12425 |
|
| 12426 |
|
| 12427 |
|
| 12428 |
|
| 12429 |
|
| 12430 |
|
| 12431 |
|
| 12432 |
|
| 12433 |
|
| 12434 |
|
| 12435 |
|
| 12436 |
|
| 12437 |
|
| 12438 |
|
| 12439 |
|
| 12440 |
|
| 12441 |
|
| 12442 |
|
| 12443 |
|
| 12444 |
|
| 12445 |
|
| 12446 |
|
| 12447 |
|
| 12448 |
|
| 12449 |
|
| 12450 |
|
| 12451 |
|
| 12452 |
|
| 12453 |
|
| 12454 |
|
| 12455 |
|
| 12456 |
|
| 12457 |
|
| 12458 |
|
| 12459 |
|
| 12460 |
|
| 12461 |
|
| 12462 |
|
| 12463 |
|
| 12464 |
|
| 12465 |
|
| 12466 |
|
| 12467 |
|
| 12468 |
|
| 12469 |
|
| 12470 |
|
| 12471 |
|
| 12472 |
|
| 12473 |
|
| 12474 |
|
| 12475 |
|
| 12476 |
|
| 12477 |
|
| 12478 |
|
| 12479 |
|
| 12480 |
|
| 12481 |
|
| 12482 |
|
| 12483 |
|
| 12484 |
|
| 12485 |
|
| 12486 |
|
| 12487 |
|
| 12488 |
|
| 12489 |
|
| 12490 |
|
| 12491 |
|
| 12492 |
|
| 12493 |
|
| 12494 |
|
| 12495 |
|
| 12496 |
|
| 12497 |
|
| 12498 |
|
| 12499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 12500 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 12501 |
|
| 12502 |
if test "$GCC" = yes; then |
| 12503 |
case $host_os in |
| 12504 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 12505 |
*) lt_awk_arg="/^libraries:/" ;; |
| 12506 |
esac |
| 12507 |
case $host_os in |
| 12508 |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 12509 |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
| 12510 |
esac |
| 12511 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 12512 |
case $lt_search_path_spec in |
| 12513 |
*\;*) |
| 12514 |
# if the path contains ";" then we assume it to be the separator |
| 12515 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 12516 |
# assumed that no part of a normal pathname contains ";" but that should |
| 12517 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 12518 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 12519 |
;; |
| 12520 |
*) |
| 12521 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 12522 |
;; |
| 12523 |
esac |
| 12524 |
# Ok, now we have the path, separated by spaces, we can step through it |
| 12525 |
# and add multilib dir if necessary. |
| 12526 |
lt_tmp_lt_search_path_spec= |
| 12527 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 12528 |
for lt_sys_path in $lt_search_path_spec; do |
| 12529 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 12530 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 12531 |
else |
| 12532 |
test -d "$lt_sys_path" && \ |
| 12533 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 12534 |
fi |
| 12535 |
done |
| 12536 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 12537 |
BEGIN {RS=" "; FS="/|\n";} { |
| 12538 |
lt_foo=""; |
| 12539 |
lt_count=0; |
| 12540 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 12541 |
if ($lt_i != "" && $lt_i != ".") { |
| 12542 |
if ($lt_i == "..") { |
| 12543 |
lt_count++; |
| 12544 |
} else { |
| 12545 |
if (lt_count == 0) { |
| 12546 |
lt_foo="/" $lt_i lt_foo; |
| 12547 |
} else { |
| 12548 |
lt_count--; |
| 12549 |
} |
| 12550 |
} |
| 12551 |
} |
| 12552 |
} |
| 12553 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 12554 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 12555 |
}'` |
| 12556 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
| 12557 |
# for these hosts. |
| 12558 |
case $host_os in |
| 12559 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 12560 |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 12561 |
esac |
| 12562 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 12563 |
else |
| 12564 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12565 |
fi |
| 12566 |
library_names_spec= |
| 12567 |
libname_spec='lib$name' |
| 12568 |
soname_spec= |
| 12569 |
shrext_cmds=".so" |
| 12570 |
postinstall_cmds= |
| 12571 |
postuninstall_cmds= |
| 12572 |
finish_cmds= |
| 12573 |
finish_eval= |
| 12574 |
shlibpath_var= |
| 12575 |
shlibpath_overrides_runpath=unknown |
| 12576 |
version_type=none |
| 12577 |
dynamic_linker="$host_os ld.so" |
| 12578 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12579 |
need_lib_prefix=unknown |
| 12580 |
hardcode_into_libs=no |
| 12581 |
|
| 12582 |
# when you set need_version to no, make sure it does not cause -set_version |
| 12583 |
# flags to be left without arguments |
| 12584 |
need_version=unknown |
| 12585 |
|
| 12586 |
case $host_os in |
| 12587 |
aix3*) |
| 12588 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12589 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12590 |
shlibpath_var=LIBPATH |
| 12591 |
|
| 12592 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 12593 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12594 |
;; |
| 12595 |
|
| 12596 |
aix[4-9]*) |
| 12597 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12598 |
need_lib_prefix=no |
| 12599 |
need_version=no |
| 12600 |
hardcode_into_libs=yes |
| 12601 |
if test "$host_cpu" = ia64; then |
| 12602 |
# AIX 5 supports IA64 |
| 12603 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12604 |
shlibpath_var=LD_LIBRARY_PATH |
| 12605 |
else |
| 12606 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 12607 |
# for dependence libraries. The import file would start with |
| 12608 |
# the line `#! .'. This would cause the generated library to |
| 12609 |
# depend on `.', always an invalid library. This was fixed in |
| 12610 |
# development snapshots of GCC prior to 3.0. |
| 12611 |
case $host_os in |
| 12612 |
aix4 | aix4.[01] | aix4.[01].*) |
| 12613 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12614 |
echo ' yes ' |
| 12615 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 12616 |
: |
| 12617 |
else |
| 12618 |
can_build_shared=no |
| 12619 |
fi |
| 12620 |
;; |
| 12621 |
esac |
| 12622 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12623 |
# soname into executable. Probably we can add versioning support to |
| 12624 |
# collect2, so additional links can be useful in future. |
| 12625 |
if test "$aix_use_runtimelinking" = yes; then |
| 12626 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12627 |
# instead of lib<name>.a to let people know that these are not |
| 12628 |
# typical AIX shared libraries. |
| 12629 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12630 |
else |
| 12631 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 12632 |
# and later when we are not doing run time linking. |
| 12633 |
library_names_spec='${libname}${release}.a $libname.a' |
| 12634 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12635 |
fi |
| 12636 |
shlibpath_var=LIBPATH |
| 12637 |
fi |
| 12638 |
;; |
| 12639 |
|
| 12640 |
amigaos*) |
| 12641 |
case $host_cpu in |
| 12642 |
powerpc) |
| 12643 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 12644 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 12645 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12646 |
;; |
| 12647 |
m68k) |
| 12648 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 12649 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12650 |
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' |
| 12651 |
;; |
| 12652 |
esac |
| 12653 |
;; |
| 12654 |
|
| 12655 |
beos*) |
| 12656 |
library_names_spec='${libname}${shared_ext}' |
| 12657 |
dynamic_linker="$host_os ld.so" |
| 12658 |
shlibpath_var=LIBRARY_PATH |
| 12659 |
;; |
| 12660 |
|
| 12661 |
bsdi[45]*) |
| 12662 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12663 |
need_version=no |
| 12664 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12665 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12666 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12667 |
shlibpath_var=LD_LIBRARY_PATH |
| 12668 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12669 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12670 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 12671 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12672 |
# libtool to hard-code these into programs |
| 12673 |
;; |
| 12674 |
|
| 12675 |
cygwin* | mingw* | pw32* | cegcc*) |
| 12676 |
version_type=windows |
| 12677 |
shrext_cmds=".dll" |
| 12678 |
need_version=no |
| 12679 |
need_lib_prefix=no |
| 12680 |
|
| 12681 |
case $GCC,$cc_basename in |
| 12682 |
yes,*) |
| 12683 |
# gcc |
| 12684 |
library_names_spec='$libname.dll.a' |
| 12685 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12686 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 12687 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 12688 |
dldir=$destdir/`dirname \$dlpath`~ |
| 12689 |
test -d \$dldir || mkdir -p \$dldir~ |
| 12690 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 12691 |
chmod a+x \$dldir/$dlname~ |
| 12692 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 12693 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 12694 |
fi' |
| 12695 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12696 |
dlpath=$dir/\$dldll~ |
| 12697 |
$RM \$dlpath' |
| 12698 |
shlibpath_overrides_runpath=yes |
| 12699 |
|
| 12700 |
case $host_os in |
| 12701 |
cygwin*) |
| 12702 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12703 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12704 |
|
| 12705 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 12706 |
;; |
| 12707 |
mingw* | cegcc*) |
| 12708 |
# MinGW DLLs use traditional 'lib' prefix |
| 12709 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12710 |
;; |
| 12711 |
pw32*) |
| 12712 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12713 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12714 |
;; |
| 12715 |
esac |
| 12716 |
dynamic_linker='Win32 ld.exe' |
| 12717 |
;; |
| 12718 |
|
| 12719 |
*,cl*) |
| 12720 |
# Native MSVC |
| 12721 |
libname_spec='$name' |
| 12722 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12723 |
library_names_spec='${libname}.dll.lib' |
| 12724 |
|
| 12725 |
case $build_os in |
| 12726 |
mingw*) |
| 12727 |
sys_lib_search_path_spec= |
| 12728 |
lt_save_ifs=$IFS |
| 12729 |
IFS=';' |
| 12730 |
for lt_path in $LIB |
| 12731 |
do |
| 12732 |
IFS=$lt_save_ifs |
| 12733 |
# Let DOS variable expansion print the short 8.3 style file name. |
| 12734 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 12735 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 12736 |
done |
| 12737 |
IFS=$lt_save_ifs |
| 12738 |
# Convert to MSYS style. |
| 12739 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 12740 |
;; |
| 12741 |
cygwin*) |
| 12742 |
# Convert to unix form, then to dos form, then back to unix form |
| 12743 |
# but this time dos style (no spaces!) so that the unix form looks |
| 12744 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
| 12745 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 12746 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 12747 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12748 |
;; |
| 12749 |
*) |
| 12750 |
sys_lib_search_path_spec="$LIB" |
| 12751 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 12752 |
# It is most probably a Windows format PATH. |
| 12753 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12754 |
else |
| 12755 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12756 |
fi |
| 12757 |
# FIXME: find the short name or the path components, as spaces are |
| 12758 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
| 12759 |
;; |
| 12760 |
esac |
| 12761 |
|
| 12762 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12763 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 12764 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 12765 |
dldir=$destdir/`dirname \$dlpath`~ |
| 12766 |
test -d \$dldir || mkdir -p \$dldir~ |
| 12767 |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 12768 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12769 |
dlpath=$dir/\$dldll~ |
| 12770 |
$RM \$dlpath' |
| 12771 |
shlibpath_overrides_runpath=yes |
| 12772 |
dynamic_linker='Win32 link.exe' |
| 12773 |
;; |
| 12774 |
|
| 12775 |
*) |
| 12776 |
# Assume MSVC wrapper |
| 12777 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 12778 |
dynamic_linker='Win32 ld.exe' |
| 12779 |
;; |
| 12780 |
esac |
| 12781 |
# FIXME: first we should search . and the directory the executable is in |
| 12782 |
shlibpath_var=PATH |
| 12783 |
;; |
| 12784 |
|
| 12785 |
darwin* | rhapsody*) |
| 12786 |
dynamic_linker="$host_os dyld" |
| 12787 |
version_type=darwin |
| 12788 |
need_lib_prefix=no |
| 12789 |
need_version=no |
| 12790 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 12791 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 12792 |
shlibpath_overrides_runpath=yes |
| 12793 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 12794 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 12795 |
|
| 12796 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 12797 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12798 |
;; |
| 12799 |
|
| 12800 |
dgux*) |
| 12801 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12802 |
need_lib_prefix=no |
| 12803 |
need_version=no |
| 12804 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12805 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12806 |
shlibpath_var=LD_LIBRARY_PATH |
| 12807 |
;; |
| 12808 |
|
| 12809 |
freebsd* | dragonfly*) |
| 12810 |
# DragonFly does not have aout. When/if they implement a new |
| 12811 |
# versioning mechanism, adjust this. |
| 12812 |
if test -x /usr/bin/objformat; then |
| 12813 |
objformat=`/usr/bin/objformat` |
| 12814 |
else |
| 12815 |
case $host_os in |
| 12816 |
freebsd[23].*) objformat=aout ;; |
| 12817 |
*) objformat=elf ;; |
| 12818 |
esac |
| 12819 |
fi |
| 12820 |
version_type=freebsd-$objformat |
| 12821 |
case $version_type in |
| 12822 |
freebsd-elf*) |
| 12823 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12824 |
need_version=no |
| 12825 |
need_lib_prefix=no |
| 12826 |
;; |
| 12827 |
freebsd-*) |
| 12828 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12829 |
need_version=yes |
| 12830 |
;; |
| 12831 |
esac |
| 12832 |
shlibpath_var=LD_LIBRARY_PATH |
| 12833 |
case $host_os in |
| 12834 |
freebsd2.*) |
| 12835 |
shlibpath_overrides_runpath=yes |
| 12836 |
;; |
| 12837 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 12838 |
shlibpath_overrides_runpath=yes |
| 12839 |
hardcode_into_libs=yes |
| 12840 |
;; |
| 12841 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12842 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 12843 |
shlibpath_overrides_runpath=no |
| 12844 |
hardcode_into_libs=yes |
| 12845 |
;; |
| 12846 |
*) # from 4.6 on, and DragonFly |
| 12847 |
shlibpath_overrides_runpath=yes |
| 12848 |
hardcode_into_libs=yes |
| 12849 |
;; |
| 12850 |
esac |
| 12851 |
;; |
| 12852 |
|
| 12853 |
haiku*) |
| 12854 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12855 |
need_lib_prefix=no |
| 12856 |
need_version=no |
| 12857 |
dynamic_linker="$host_os runtime_loader" |
| 12858 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12859 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12860 |
shlibpath_var=LIBRARY_PATH |
| 12861 |
shlibpath_overrides_runpath=yes |
| 12862 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 12863 |
hardcode_into_libs=yes |
| 12864 |
;; |
| 12865 |
|
| 12866 |
hpux9* | hpux10* | hpux11*) |
| 12867 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 12868 |
# link against other versions. |
| 12869 |
version_type=sunos |
| 12870 |
need_lib_prefix=no |
| 12871 |
need_version=no |
| 12872 |
case $host_cpu in |
| 12873 |
ia64*) |
| 12874 |
shrext_cmds='.so' |
| 12875 |
hardcode_into_libs=yes |
| 12876 |
dynamic_linker="$host_os dld.so" |
| 12877 |
shlibpath_var=LD_LIBRARY_PATH |
| 12878 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12879 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12880 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12881 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 12882 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12883 |
else |
| 12884 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12885 |
fi |
| 12886 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12887 |
;; |
| 12888 |
hppa*64*) |
| 12889 |
shrext_cmds='.sl' |
| 12890 |
hardcode_into_libs=yes |
| 12891 |
dynamic_linker="$host_os dld.sl" |
| 12892 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12893 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12894 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12895 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12896 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12897 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12898 |
;; |
| 12899 |
*) |
| 12900 |
shrext_cmds='.sl' |
| 12901 |
dynamic_linker="$host_os dld.sl" |
| 12902 |
shlibpath_var=SHLIB_PATH |
| 12903 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12904 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12905 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12906 |
;; |
| 12907 |
esac |
| 12908 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 12909 |
postinstall_cmds='chmod 555 $lib' |
| 12910 |
# or fails outright, so override atomically: |
| 12911 |
install_override_mode=555 |
| 12912 |
;; |
| 12913 |
|
| 12914 |
interix[3-9]*) |
| 12915 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12916 |
need_lib_prefix=no |
| 12917 |
need_version=no |
| 12918 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12919 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12920 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 12921 |
shlibpath_var=LD_LIBRARY_PATH |
| 12922 |
shlibpath_overrides_runpath=no |
| 12923 |
hardcode_into_libs=yes |
| 12924 |
;; |
| 12925 |
|
| 12926 |
irix5* | irix6* | nonstopux*) |
| 12927 |
case $host_os in |
| 12928 |
nonstopux*) version_type=nonstopux ;; |
| 12929 |
*) |
| 12930 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12931 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12932 |
else |
| 12933 |
version_type=irix |
| 12934 |
fi ;; |
| 12935 |
esac |
| 12936 |
need_lib_prefix=no |
| 12937 |
need_version=no |
| 12938 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12939 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12940 |
case $host_os in |
| 12941 |
irix5* | nonstopux*) |
| 12942 |
libsuff= shlibsuff= |
| 12943 |
;; |
| 12944 |
*) |
| 12945 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 12946 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12947 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 12948 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12949 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12950 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12951 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12952 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 12953 |
esac |
| 12954 |
;; |
| 12955 |
esac |
| 12956 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12957 |
shlibpath_overrides_runpath=no |
| 12958 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 12959 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 12960 |
hardcode_into_libs=yes |
| 12961 |
;; |
| 12962 |
|
| 12963 |
# No shared lib support for Linux oldld, aout, or coff. |
| 12964 |
linux*oldld* | linux*aout* | linux*coff*) |
| 12965 |
dynamic_linker=no |
| 12966 |
;; |
| 12967 |
|
| 12968 |
# This must be glibc/ELF. |
| 12969 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 12970 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 12971 |
need_lib_prefix=no |
| 12972 |
need_version=no |
| 12973 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12974 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 12975 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12976 |
shlibpath_var=LD_LIBRARY_PATH |
| 12977 |
shlibpath_overrides_runpath=no |
| 12978 |
|
| 12979 |
# Some binutils ld are patched to set DT_RUNPATH |
| 12980 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 12981 |
$as_echo_n "(cached) " >&6 |
| 12982 |
else |
| 12983 |
lt_cv_shlibpath_overrides_runpath=no |
| 12984 |
save_LDFLAGS=$LDFLAGS |
| 12985 |
save_libdir=$libdir |
| 12986 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 12987 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 12988 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12989 |
/* end confdefs.h. */ |
| 12990 |
|
| 12991 |
int |
| 12992 |
main () |
| 12993 |
{ |
| 12994 |
|
| 12995 |
; |
| 12996 |
return 0; |
| 12997 |
} |
| 12998 |
_ACEOF |
| 12999 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13000 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 13001 |
lt_cv_shlibpath_overrides_runpath=yes |
| 13002 |
fi |
| 13003 |
fi |
| 13004 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13005 |
conftest$ac_exeext conftest.$ac_ext |
| 13006 |
LDFLAGS=$save_LDFLAGS |
| 13007 |
libdir=$save_libdir |
| 13008 |
|
| 13009 |
fi |
| 13010 |
|
| 13011 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 13012 |
|
| 13013 |
# This implies no fast_install, which is unacceptable. |
| 13014 |
# Some rework will be needed to allow for fast_install |
| 13015 |
# before this can be enabled. |
| 13016 |
hardcode_into_libs=yes |
| 13017 |
|
| 13018 |
# Append ld.so.conf contents to the search path |
| 13019 |
if test -f /etc/ld.so.conf; then |
| 13020 |
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' ' '` |
| 13021 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13022 |
fi |
| 13023 |
|
| 13024 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13025 |
# powerpc, because MkLinux only supported shared libraries with the |
| 13026 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 13027 |
# most powerpc-linux boxes support dynamic linking these days and |
| 13028 |
# people can always --disable-shared, the test was removed, and we |
| 13029 |
# assume the GNU/Linux dynamic linker is in use. |
| 13030 |
dynamic_linker='GNU/Linux ld.so' |
| 13031 |
;; |
| 13032 |
|
| 13033 |
netbsdelf*-gnu) |
| 13034 |
version_type=linux |
| 13035 |
need_lib_prefix=no |
| 13036 |
need_version=no |
| 13037 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13038 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13039 |
shlibpath_var=LD_LIBRARY_PATH |
| 13040 |
shlibpath_overrides_runpath=no |
| 13041 |
hardcode_into_libs=yes |
| 13042 |
dynamic_linker='NetBSD ld.elf_so' |
| 13043 |
;; |
| 13044 |
|
| 13045 |
netbsd*) |
| 13046 |
version_type=sunos |
| 13047 |
need_lib_prefix=no |
| 13048 |
need_version=no |
| 13049 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13050 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13051 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13052 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 13053 |
else |
| 13054 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13055 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13056 |
dynamic_linker='NetBSD ld.elf_so' |
| 13057 |
fi |
| 13058 |
shlibpath_var=LD_LIBRARY_PATH |
| 13059 |
shlibpath_overrides_runpath=yes |
| 13060 |
hardcode_into_libs=yes |
| 13061 |
;; |
| 13062 |
|
| 13063 |
newsos6) |
| 13064 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13065 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13066 |
shlibpath_var=LD_LIBRARY_PATH |
| 13067 |
shlibpath_overrides_runpath=yes |
| 13068 |
;; |
| 13069 |
|
| 13070 |
*nto* | *qnx*) |
| 13071 |
version_type=qnx |
| 13072 |
need_lib_prefix=no |
| 13073 |
need_version=no |
| 13074 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13075 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13076 |
shlibpath_var=LD_LIBRARY_PATH |
| 13077 |
shlibpath_overrides_runpath=no |
| 13078 |
hardcode_into_libs=yes |
| 13079 |
dynamic_linker='ldqnx.so' |
| 13080 |
;; |
| 13081 |
|
| 13082 |
openbsd*) |
| 13083 |
version_type=sunos |
| 13084 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 13085 |
need_lib_prefix=no |
| 13086 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13087 |
case $host_os in |
| 13088 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13089 |
*) need_version=no ;; |
| 13090 |
esac |
| 13091 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13092 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13093 |
shlibpath_var=LD_LIBRARY_PATH |
| 13094 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13095 |
case $host_os in |
| 13096 |
openbsd2.[89] | openbsd2.[89].*) |
| 13097 |
shlibpath_overrides_runpath=no |
| 13098 |
;; |
| 13099 |
*) |
| 13100 |
shlibpath_overrides_runpath=yes |
| 13101 |
;; |
| 13102 |
esac |
| 13103 |
else |
| 13104 |
shlibpath_overrides_runpath=yes |
| 13105 |
fi |
| 13106 |
;; |
| 13107 |
|
| 13108 |
os2*) |
| 13109 |
libname_spec='$name' |
| 13110 |
shrext_cmds=".dll" |
| 13111 |
need_lib_prefix=no |
| 13112 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 13113 |
dynamic_linker='OS/2 ld.exe' |
| 13114 |
shlibpath_var=LIBPATH |
| 13115 |
;; |
| 13116 |
|
| 13117 |
osf3* | osf4* | osf5*) |
| 13118 |
version_type=osf |
| 13119 |
need_lib_prefix=no |
| 13120 |
need_version=no |
| 13121 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13122 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13123 |
shlibpath_var=LD_LIBRARY_PATH |
| 13124 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13125 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13126 |
;; |
| 13127 |
|
| 13128 |
rdos*) |
| 13129 |
dynamic_linker=no |
| 13130 |
;; |
| 13131 |
|
| 13132 |
solaris*) |
| 13133 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13134 |
need_lib_prefix=no |
| 13135 |
need_version=no |
| 13136 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13137 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13138 |
shlibpath_var=LD_LIBRARY_PATH |
| 13139 |
shlibpath_overrides_runpath=yes |
| 13140 |
hardcode_into_libs=yes |
| 13141 |
# ldd complains unless libraries are executable |
| 13142 |
postinstall_cmds='chmod +x $lib' |
| 13143 |
;; |
| 13144 |
|
| 13145 |
sunos4*) |
| 13146 |
version_type=sunos |
| 13147 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13148 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13149 |
shlibpath_var=LD_LIBRARY_PATH |
| 13150 |
shlibpath_overrides_runpath=yes |
| 13151 |
if test "$with_gnu_ld" = yes; then |
| 13152 |
need_lib_prefix=no |
| 13153 |
fi |
| 13154 |
need_version=yes |
| 13155 |
;; |
| 13156 |
|
| 13157 |
sysv4 | sysv4.3*) |
| 13158 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13159 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13160 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13161 |
shlibpath_var=LD_LIBRARY_PATH |
| 13162 |
case $host_vendor in |
| 13163 |
sni) |
| 13164 |
shlibpath_overrides_runpath=no |
| 13165 |
need_lib_prefix=no |
| 13166 |
runpath_var=LD_RUN_PATH |
| 13167 |
;; |
| 13168 |
siemens) |
| 13169 |
need_lib_prefix=no |
| 13170 |
;; |
| 13171 |
motorola) |
| 13172 |
need_lib_prefix=no |
| 13173 |
need_version=no |
| 13174 |
shlibpath_overrides_runpath=no |
| 13175 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13176 |
;; |
| 13177 |
esac |
| 13178 |
;; |
| 13179 |
|
| 13180 |
sysv4*MP*) |
| 13181 |
if test -d /usr/nec ;then |
| 13182 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13183 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13184 |
soname_spec='$libname${shared_ext}.$major' |
| 13185 |
shlibpath_var=LD_LIBRARY_PATH |
| 13186 |
fi |
| 13187 |
;; |
| 13188 |
|
| 13189 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13190 |
version_type=freebsd-elf |
| 13191 |
need_lib_prefix=no |
| 13192 |
need_version=no |
| 13193 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13194 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13195 |
shlibpath_var=LD_LIBRARY_PATH |
| 13196 |
shlibpath_overrides_runpath=yes |
| 13197 |
hardcode_into_libs=yes |
| 13198 |
if test "$with_gnu_ld" = yes; then |
| 13199 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13200 |
else |
| 13201 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13202 |
case $host_os in |
| 13203 |
sco3.2v5*) |
| 13204 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13205 |
;; |
| 13206 |
esac |
| 13207 |
fi |
| 13208 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 13209 |
;; |
| 13210 |
|
| 13211 |
tpf*) |
| 13212 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13213 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13214 |
need_lib_prefix=no |
| 13215 |
need_version=no |
| 13216 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13217 |
shlibpath_var=LD_LIBRARY_PATH |
| 13218 |
shlibpath_overrides_runpath=no |
| 13219 |
hardcode_into_libs=yes |
| 13220 |
;; |
| 13221 |
|
| 13222 |
uts4*) |
| 13223 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 13224 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13225 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 13226 |
shlibpath_var=LD_LIBRARY_PATH |
| 13227 |
;; |
| 13228 |
|
| 13229 |
*) |
| 13230 |
dynamic_linker=no |
| 13231 |
;; |
| 13232 |
esac |
| 13233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 13234 |
$as_echo "$dynamic_linker" >&6; } |
| 13235 |
test "$dynamic_linker" = no && can_build_shared=no |
| 13236 |
|
| 13237 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13238 |
if test "$GCC" = yes; then |
| 13239 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13240 |
fi |
| 13241 |
|
| 13242 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 13243 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 13244 |
fi |
| 13245 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 13246 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 13247 |
fi |
| 13248 |
|
| 13249 |
|
| 13250 |
|
| 13251 |
|
| 13252 |
|
| 13253 |
|
| 13254 |
|
| 13255 |
|
| 13256 |
|
| 13257 |
|
| 13258 |
|
| 13259 |
|
| 13260 |
|
| 13261 |
|
| 13262 |
|
| 13263 |
|
| 13264 |
|
| 13265 |
|
| 13266 |
|
| 13267 |
|
| 13268 |
|
| 13269 |
|
| 13270 |
|
| 13271 |
|
| 13272 |
|
| 13273 |
|
| 13274 |
|
| 13275 |
|
| 13276 |
|
| 13277 |
|
| 13278 |
|
| 13279 |
|
| 13280 |
|
| 13281 |
|
| 13282 |
|
| 13283 |
|
| 13284 |
|
| 13285 |
|
| 13286 |
|
| 13287 |
|
| 13288 |
|
| 13289 |
|
| 13290 |
|
| 13291 |
|
| 13292 |
|
| 13293 |
|
| 13294 |
|
| 13295 |
|
| 13296 |
|
| 13297 |
|
| 13298 |
|
| 13299 |
|
| 13300 |
|
| 13301 |
|
| 13302 |
|
| 13303 |
|
| 13304 |
|
| 13305 |
|
| 13306 |
|
| 13307 |
|
| 13308 |
|
| 13309 |
|
| 13310 |
|
| 13311 |
|
| 13312 |
|
| 13313 |
|
| 13314 |
|
| 13315 |
|
| 13316 |
|
| 13317 |
|
| 13318 |
|
| 13319 |
|
| 13320 |
|
| 13321 |
|
| 13322 |
|
| 13323 |
|
| 13324 |
|
| 13325 |
|
| 13326 |
|
| 13327 |
|
| 13328 |
|
| 13329 |
|
| 13330 |
|
| 13331 |
|
| 13332 |
|
| 13333 |
|
| 13334 |
|
| 13335 |
|
| 13336 |
|
| 13337 |
|
| 13338 |
|
| 13339 |
|
| 13340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 13341 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 13342 |
hardcode_action= |
| 13343 |
if test -n "$hardcode_libdir_flag_spec" || |
| 13344 |
test -n "$runpath_var" || |
| 13345 |
test "X$hardcode_automatic" = "Xyes" ; then |
| 13346 |
|
| 13347 |
# We can hardcode non-existent directories. |
| 13348 |
if test "$hardcode_direct" != no && |
| 13349 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13350 |
# have to relink, otherwise we might link with an installed library |
| 13351 |
# when we should be linking with a yet-to-be-installed one |
| 13352 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 13353 |
test "$hardcode_minus_L" != no; then |
| 13354 |
# Linking always hardcodes the temporary library directory. |
| 13355 |
hardcode_action=relink |
| 13356 |
else |
| 13357 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13358 |
hardcode_action=immediate |
| 13359 |
fi |
| 13360 |
else |
| 13361 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 13362 |
# directories. |
| 13363 |
hardcode_action=unsupported |
| 13364 |
fi |
| 13365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 13366 |
$as_echo "$hardcode_action" >&6; } |
| 13367 |
|
| 13368 |
if test "$hardcode_action" = relink || |
| 13369 |
test "$inherit_rpath" = yes; then |
| 13370 |
# Fast installation is not supported |
| 13371 |
enable_fast_install=no |
| 13372 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 13373 |
test "$enable_shared" = no; then |
| 13374 |
# Fast installation is not necessary |
| 13375 |
enable_fast_install=needless |
| 13376 |
fi |
| 13377 |
|
| 13378 |
|
| 13379 |
|
| 13380 |
|
| 13381 |
|
| 13382 |
|
| 13383 |
if test "x$enable_dlopen" != xyes; then |
| 13384 |
enable_dlopen=unknown |
| 13385 |
enable_dlopen_self=unknown |
| 13386 |
enable_dlopen_self_static=unknown |
| 13387 |
else |
| 13388 |
lt_cv_dlopen=no |
| 13389 |
lt_cv_dlopen_libs= |
| 13390 |
|
| 13391 |
case $host_os in |
| 13392 |
beos*) |
| 13393 |
lt_cv_dlopen="load_add_on" |
| 13394 |
lt_cv_dlopen_libs= |
| 13395 |
lt_cv_dlopen_self=yes |
| 13396 |
;; |
| 13397 |
|
| 13398 |
mingw* | pw32* | cegcc*) |
| 13399 |
lt_cv_dlopen="LoadLibrary" |
| 13400 |
lt_cv_dlopen_libs= |
| 13401 |
;; |
| 13402 |
|
| 13403 |
cygwin*) |
| 13404 |
lt_cv_dlopen="dlopen" |
| 13405 |
lt_cv_dlopen_libs= |
| 13406 |
;; |
| 13407 |
|
| 13408 |
darwin*) |
| 13409 |
# if libdl is installed we need to link against it |
| 13410 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13411 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 13412 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 13413 |
$as_echo_n "(cached) " >&6 |
| 13414 |
else |
| 13415 |
ac_check_lib_save_LIBS=$LIBS |
| 13416 |
LIBS="-ldl $LIBS" |
| 13417 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13418 |
/* end confdefs.h. */ |
| 13419 |
|
| 13420 |
/* Override any GCC internal prototype to avoid an error. |
| 13421 |
Use char because int might match the return type of a GCC |
| 13422 |
builtin and then its argument prototype would still apply. */ |
| 13423 |
#ifdef __cplusplus |
| 13424 |
extern "C" |
| 13425 |
#endif |
| 13426 |
char dlopen (); |
| 13427 |
int |
| 13428 |
main () |
| 13429 |
{ |
| 13430 |
return dlopen (); |
| 13431 |
; |
| 13432 |
return 0; |
| 13433 |
} |
| 13434 |
_ACEOF |
| 13435 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13436 |
ac_cv_lib_dl_dlopen=yes |
| 13437 |
else |
| 13438 |
ac_cv_lib_dl_dlopen=no |
| 13439 |
fi |
| 13440 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13441 |
conftest$ac_exeext conftest.$ac_ext |
| 13442 |
LIBS=$ac_check_lib_save_LIBS |
| 13443 |
fi |
| 13444 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13445 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13446 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 13447 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13448 |
else |
| 13449 |
|
| 13450 |
lt_cv_dlopen="dyld" |
| 13451 |
lt_cv_dlopen_libs= |
| 13452 |
lt_cv_dlopen_self=yes |
| 13453 |
|
| 13454 |
fi |
| 13455 |
|
| 13456 |
;; |
| 13457 |
|
| 13458 |
*) |
| 13459 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 13460 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
| 13461 |
lt_cv_dlopen="shl_load" |
| 13462 |
else |
| 13463 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 13464 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 13465 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 13466 |
$as_echo_n "(cached) " >&6 |
| 13467 |
else |
| 13468 |
ac_check_lib_save_LIBS=$LIBS |
| 13469 |
LIBS="-ldld $LIBS" |
| 13470 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13471 |
/* end confdefs.h. */ |
| 13472 |
|
| 13473 |
/* Override any GCC internal prototype to avoid an error. |
| 13474 |
Use char because int might match the return type of a GCC |
| 13475 |
builtin and then its argument prototype would still apply. */ |
| 13476 |
#ifdef __cplusplus |
| 13477 |
extern "C" |
| 13478 |
#endif |
| 13479 |
char shl_load (); |
| 13480 |
int |
| 13481 |
main () |
| 13482 |
{ |
| 13483 |
return shl_load (); |
| 13484 |
; |
| 13485 |
return 0; |
| 13486 |
} |
| 13487 |
_ACEOF |
| 13488 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13489 |
ac_cv_lib_dld_shl_load=yes |
| 13490 |
else |
| 13491 |
ac_cv_lib_dld_shl_load=no |
| 13492 |
fi |
| 13493 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13494 |
conftest$ac_exeext conftest.$ac_ext |
| 13495 |
LIBS=$ac_check_lib_save_LIBS |
| 13496 |
fi |
| 13497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13498 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 13499 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 13500 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 13501 |
else |
| 13502 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 13503 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
| 13504 |
lt_cv_dlopen="dlopen" |
| 13505 |
else |
| 13506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13507 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 13508 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 13509 |
$as_echo_n "(cached) " >&6 |
| 13510 |
else |
| 13511 |
ac_check_lib_save_LIBS=$LIBS |
| 13512 |
LIBS="-ldl $LIBS" |
| 13513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13514 |
/* end confdefs.h. */ |
| 13515 |
|
| 13516 |
/* Override any GCC internal prototype to avoid an error. |
| 13517 |
Use char because int might match the return type of a GCC |
| 13518 |
builtin and then its argument prototype would still apply. */ |
| 13519 |
#ifdef __cplusplus |
| 13520 |
extern "C" |
| 13521 |
#endif |
| 13522 |
char dlopen (); |
| 13523 |
int |
| 13524 |
main () |
| 13525 |
{ |
| 13526 |
return dlopen (); |
| 13527 |
; |
| 13528 |
return 0; |
| 13529 |
} |
| 13530 |
_ACEOF |
| 13531 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13532 |
ac_cv_lib_dl_dlopen=yes |
| 13533 |
else |
| 13534 |
ac_cv_lib_dl_dlopen=no |
| 13535 |
fi |
| 13536 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13537 |
conftest$ac_exeext conftest.$ac_ext |
| 13538 |
LIBS=$ac_check_lib_save_LIBS |
| 13539 |
fi |
| 13540 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13541 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13542 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 13543 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13544 |
else |
| 13545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 13546 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 13547 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 13548 |
$as_echo_n "(cached) " >&6 |
| 13549 |
else |
| 13550 |
ac_check_lib_save_LIBS=$LIBS |
| 13551 |
LIBS="-lsvld $LIBS" |
| 13552 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13553 |
/* end confdefs.h. */ |
| 13554 |
|
| 13555 |
/* Override any GCC internal prototype to avoid an error. |
| 13556 |
Use char because int might match the return type of a GCC |
| 13557 |
builtin and then its argument prototype would still apply. */ |
| 13558 |
#ifdef __cplusplus |
| 13559 |
extern "C" |
| 13560 |
#endif |
| 13561 |
char dlopen (); |
| 13562 |
int |
| 13563 |
main () |
| 13564 |
{ |
| 13565 |
return dlopen (); |
| 13566 |
; |
| 13567 |
return 0; |
| 13568 |
} |
| 13569 |
_ACEOF |
| 13570 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13571 |
ac_cv_lib_svld_dlopen=yes |
| 13572 |
else |
| 13573 |
ac_cv_lib_svld_dlopen=no |
| 13574 |
fi |
| 13575 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13576 |
conftest$ac_exeext conftest.$ac_ext |
| 13577 |
LIBS=$ac_check_lib_save_LIBS |
| 13578 |
fi |
| 13579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13580 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 13581 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 13582 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 13583 |
else |
| 13584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 13585 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 13586 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 13587 |
$as_echo_n "(cached) " >&6 |
| 13588 |
else |
| 13589 |
ac_check_lib_save_LIBS=$LIBS |
| 13590 |
LIBS="-ldld $LIBS" |
| 13591 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13592 |
/* end confdefs.h. */ |
| 13593 |
|
| 13594 |
/* Override any GCC internal prototype to avoid an error. |
| 13595 |
Use char because int might match the return type of a GCC |
| 13596 |
builtin and then its argument prototype would still apply. */ |
| 13597 |
#ifdef __cplusplus |
| 13598 |
extern "C" |
| 13599 |
#endif |
| 13600 |
char dld_link (); |
| 13601 |
int |
| 13602 |
main () |
| 13603 |
{ |
| 13604 |
return dld_link (); |
| 13605 |
; |
| 13606 |
return 0; |
| 13607 |
} |
| 13608 |
_ACEOF |
| 13609 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13610 |
ac_cv_lib_dld_dld_link=yes |
| 13611 |
else |
| 13612 |
ac_cv_lib_dld_dld_link=no |
| 13613 |
fi |
| 13614 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13615 |
conftest$ac_exeext conftest.$ac_ext |
| 13616 |
LIBS=$ac_check_lib_save_LIBS |
| 13617 |
fi |
| 13618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13619 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 13620 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 13621 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 13622 |
fi |
| 13623 |
|
| 13624 |
|
| 13625 |
fi |
| 13626 |
|
| 13627 |
|
| 13628 |
fi |
| 13629 |
|
| 13630 |
|
| 13631 |
fi |
| 13632 |
|
| 13633 |
|
| 13634 |
fi |
| 13635 |
|
| 13636 |
|
| 13637 |
fi |
| 13638 |
|
| 13639 |
;; |
| 13640 |
esac |
| 13641 |
|
| 13642 |
if test "x$lt_cv_dlopen" != xno; then |
| 13643 |
enable_dlopen=yes |
| 13644 |
else |
| 13645 |
enable_dlopen=no |
| 13646 |
fi |
| 13647 |
|
| 13648 |
case $lt_cv_dlopen in |
| 13649 |
dlopen) |
| 13650 |
save_CPPFLAGS="$CPPFLAGS" |
| 13651 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13652 |
|
| 13653 |
save_LDFLAGS="$LDFLAGS" |
| 13654 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13655 |
|
| 13656 |
save_LIBS="$LIBS" |
| 13657 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13658 |
|
| 13659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 13660 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 13661 |
if ${lt_cv_dlopen_self+:} false; then : |
| 13662 |
$as_echo_n "(cached) " >&6 |
| 13663 |
else |
| 13664 |
if test "$cross_compiling" = yes; then : |
| 13665 |
lt_cv_dlopen_self=cross |
| 13666 |
else |
| 13667 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13668 |
lt_status=$lt_dlunknown |
| 13669 |
cat > conftest.$ac_ext <<_LT_EOF |
| 13670 |
#line $LINENO "configure" |
| 13671 |
#include "confdefs.h" |
| 13672 |
|
| 13673 |
#if HAVE_DLFCN_H |
| 13674 |
#include <dlfcn.h> |
| 13675 |
#endif |
| 13676 |
|
| 13677 |
#include <stdio.h> |
| 13678 |
|
| 13679 |
#ifdef RTLD_GLOBAL |
| 13680 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 13681 |
#else |
| 13682 |
# ifdef DL_GLOBAL |
| 13683 |
# define LT_DLGLOBAL DL_GLOBAL |
| 13684 |
# else |
| 13685 |
# define LT_DLGLOBAL 0 |
| 13686 |
# endif |
| 13687 |
#endif |
| 13688 |
|
| 13689 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13690 |
find out it does not work in some platform. */ |
| 13691 |
#ifndef LT_DLLAZY_OR_NOW |
| 13692 |
# ifdef RTLD_LAZY |
| 13693 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13694 |
# else |
| 13695 |
# ifdef DL_LAZY |
| 13696 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 13697 |
# else |
| 13698 |
# ifdef RTLD_NOW |
| 13699 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13700 |
# else |
| 13701 |
# ifdef DL_NOW |
| 13702 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 13703 |
# else |
| 13704 |
# define LT_DLLAZY_OR_NOW 0 |
| 13705 |
# endif |
| 13706 |
# endif |
| 13707 |
# endif |
| 13708 |
# endif |
| 13709 |
#endif |
| 13710 |
|
| 13711 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 13712 |
correspondingly for the symbols needed. */ |
| 13713 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13714 |
int fnord () __attribute__((visibility("default"))); |
| 13715 |
#endif |
| 13716 |
|
| 13717 |
int fnord () { return 42; } |
| 13718 |
int main () |
| 13719 |
{ |
| 13720 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13721 |
int status = $lt_dlunknown; |
| 13722 |
|
| 13723 |
if (self) |
| 13724 |
{ |
| 13725 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13726 |
else |
| 13727 |
{ |
| 13728 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13729 |
else puts (dlerror ()); |
| 13730 |
} |
| 13731 |
/* dlclose (self); */ |
| 13732 |
} |
| 13733 |
else |
| 13734 |
puts (dlerror ()); |
| 13735 |
|
| 13736 |
return status; |
| 13737 |
} |
| 13738 |
_LT_EOF |
| 13739 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13740 |
(eval $ac_link) 2>&5 |
| 13741 |
ac_status=$? |
| 13742 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13743 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13744 |
(./conftest; exit; ) >&5 2>/dev/null |
| 13745 |
lt_status=$? |
| 13746 |
case x$lt_status in |
| 13747 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 13748 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 13749 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 13750 |
esac |
| 13751 |
else : |
| 13752 |
# compilation failed |
| 13753 |
lt_cv_dlopen_self=no |
| 13754 |
fi |
| 13755 |
fi |
| 13756 |
rm -fr conftest* |
| 13757 |
|
| 13758 |
|
| 13759 |
fi |
| 13760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 13761 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
| 13762 |
|
| 13763 |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 13764 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 13765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 13766 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 13767 |
if ${lt_cv_dlopen_self_static+:} false; then : |
| 13768 |
$as_echo_n "(cached) " >&6 |
| 13769 |
else |
| 13770 |
if test "$cross_compiling" = yes; then : |
| 13771 |
lt_cv_dlopen_self_static=cross |
| 13772 |
else |
| 13773 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13774 |
lt_status=$lt_dlunknown |
| 13775 |
cat > conftest.$ac_ext <<_LT_EOF |
| 13776 |
#line $LINENO "configure" |
| 13777 |
#include "confdefs.h" |
| 13778 |
|
| 13779 |
#if HAVE_DLFCN_H |
| 13780 |
#include <dlfcn.h> |
| 13781 |
#endif |
| 13782 |
|
| 13783 |
#include <stdio.h> |
| 13784 |
|
| 13785 |
#ifdef RTLD_GLOBAL |
| 13786 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 13787 |
#else |
| 13788 |
# ifdef DL_GLOBAL |
| 13789 |
# define LT_DLGLOBAL DL_GLOBAL |
| 13790 |
# else |
| 13791 |
# define LT_DLGLOBAL 0 |
| 13792 |
# endif |
| 13793 |
#endif |
| 13794 |
|
| 13795 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13796 |
find out it does not work in some platform. */ |
| 13797 |
#ifndef LT_DLLAZY_OR_NOW |
| 13798 |
# ifdef RTLD_LAZY |
| 13799 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13800 |
# else |
| 13801 |
# ifdef DL_LAZY |
| 13802 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 13803 |
# else |
| 13804 |
# ifdef RTLD_NOW |
| 13805 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13806 |
# else |
| 13807 |
# ifdef DL_NOW |
| 13808 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 13809 |
# else |
| 13810 |
# define LT_DLLAZY_OR_NOW 0 |
| 13811 |
# endif |
| 13812 |
# endif |
| 13813 |
# endif |
| 13814 |
# endif |
| 13815 |
#endif |
| 13816 |
|
| 13817 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 13818 |
correspondingly for the symbols needed. */ |
| 13819 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 13820 |
int fnord () __attribute__((visibility("default"))); |
| 13821 |
#endif |
| 13822 |
|
| 13823 |
int fnord () { return 42; } |
| 13824 |
int main () |
| 13825 |
{ |
| 13826 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13827 |
int status = $lt_dlunknown; |
| 13828 |
|
| 13829 |
if (self) |
| 13830 |
{ |
| 13831 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13832 |
else |
| 13833 |
{ |
| 13834 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13835 |
else puts (dlerror ()); |
| 13836 |
} |
| 13837 |
/* dlclose (self); */ |
| 13838 |
} |
| 13839 |
else |
| 13840 |
puts (dlerror ()); |
| 13841 |
|
| 13842 |
return status; |
| 13843 |
} |
| 13844 |
_LT_EOF |
| 13845 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 13846 |
(eval $ac_link) 2>&5 |
| 13847 |
ac_status=$? |
| 13848 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13849 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13850 |
(./conftest; exit; ) >&5 2>/dev/null |
| 13851 |
lt_status=$? |
| 13852 |
case x$lt_status in |
| 13853 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13854 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13855 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 13856 |
esac |
| 13857 |
else : |
| 13858 |
# compilation failed |
| 13859 |
lt_cv_dlopen_self_static=no |
| 13860 |
fi |
| 13861 |
fi |
| 13862 |
rm -fr conftest* |
| 13863 |
|
| 13864 |
|
| 13865 |
fi |
| 13866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 13867 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 13868 |
fi |
| 13869 |
|
| 13870 |
CPPFLAGS="$save_CPPFLAGS" |
| 13871 |
LDFLAGS="$save_LDFLAGS" |
| 13872 |
LIBS="$save_LIBS" |
| 13873 |
;; |
| 13874 |
esac |
| 13875 |
|
| 13876 |
case $lt_cv_dlopen_self in |
| 13877 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 13878 |
*) enable_dlopen_self=unknown ;; |
| 13879 |
esac |
| 13880 |
|
| 13881 |
case $lt_cv_dlopen_self_static in |
| 13882 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 13883 |
*) enable_dlopen_self_static=unknown ;; |
| 13884 |
esac |
| 13885 |
fi |
| 13886 |
|
| 13887 |
|
| 13888 |
|
| 13889 |
|
| 13890 |
|
| 13891 |
|
| 13892 |
|
| 13893 |
|
| 13894 |
|
| 13895 |
|
| 13896 |
|
| 13897 |
|
| 13898 |
|
| 13899 |
|
| 13900 |
|
| 13901 |
|
| 13902 |
|
| 13903 |
striplib= |
| 13904 |
old_striplib= |
| 13905 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 13906 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 13907 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 13908 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13909 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13911 |
$as_echo "yes" >&6; } |
| 13912 |
else |
| 13913 |
# FIXME - insert some real tests, host_os isn't really good enough |
| 13914 |
case $host_os in |
| 13915 |
darwin*) |
| 13916 |
if test -n "$STRIP" ; then |
| 13917 |
striplib="$STRIP -x" |
| 13918 |
old_striplib="$STRIP -S" |
| 13919 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13920 |
$as_echo "yes" >&6; } |
| 13921 |
else |
| 13922 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13923 |
$as_echo "no" >&6; } |
| 13924 |
fi |
| 13925 |
;; |
| 13926 |
*) |
| 13927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13928 |
$as_echo "no" >&6; } |
| 13929 |
;; |
| 13930 |
esac |
| 13931 |
fi |
| 13932 |
|
| 13933 |
|
| 13934 |
|
| 13935 |
|
| 13936 |
|
| 13937 |
|
| 13938 |
|
| 13939 |
|
| 13940 |
|
| 13941 |
|
| 13942 |
|
| 13943 |
|
| 13944 |
# Report which library types will actually be built |
| 13945 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 13946 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 13947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 13948 |
$as_echo "$can_build_shared" >&6; } |
| 13949 |
|
| 13950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 13951 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
| 13952 |
test "$can_build_shared" = "no" && enable_shared=no |
| 13953 |
|
| 13954 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 13955 |
# are all built from PIC. |
| 13956 |
case $host_os in |
| 13957 |
aix3*) |
| 13958 |
test "$enable_shared" = yes && enable_static=no |
| 13959 |
if test -n "$RANLIB"; then |
| 13960 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13961 |
postinstall_cmds='$RANLIB $lib' |
| 13962 |
fi |
| 13963 |
;; |
| 13964 |
|
| 13965 |
aix[4-9]*) |
| 13966 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 13967 |
test "$enable_shared" = yes && enable_static=no |
| 13968 |
fi |
| 13969 |
;; |
| 13970 |
esac |
| 13971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 13972 |
$as_echo "$enable_shared" >&6; } |
| 13973 |
|
| 13974 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 13975 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
| 13976 |
# Make sure either enable_shared or enable_static is yes. |
| 13977 |
test "$enable_shared" = yes || enable_static=yes |
| 13978 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 13979 |
$as_echo "$enable_static" >&6; } |
| 13980 |
|
| 13981 |
|
| 13982 |
|
| 13983 |
|
| 13984 |
fi |
| 13985 |
ac_ext=c |
| 13986 |
ac_cpp='$CPP $CPPFLAGS' |
| 13987 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13988 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13989 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13990 |
|
| 13991 |
CC="$lt_save_CC" |
| 13992 |
|
| 13993 |
|
| 13994 |
|
| 13995 |
|
| 13996 |
|
| 13997 |
|
| 13998 |
|
| 13999 |
|
| 14000 |
|
| 14001 |
|
| 14002 |
|
| 14003 |
|
| 14004 |
|
| 14005 |
|
| 14006 |
|
| 14007 |
ac_config_commands="$ac_config_commands libtool" |
| 14008 |
|
| 14009 |
|
| 14010 |
|
| 14011 |
|
| 14012 |
# Only expand once: |
| 14013 |
|
| 14014 |
|
| 14015 |
|
| 14016 |
|
| 14017 |
|
| 14018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 14019 |
$as_echo_n "checking whether NLS is requested... " >&6; } |
| 14020 |
# Check whether --enable-nls was given. |
| 14021 |
if test "${enable_nls+set}" = set; then : |
| 14022 |
enableval=$enable_nls; USE_NLS=$enableval |
| 14023 |
else |
| 14024 |
USE_NLS=yes |
| 14025 |
fi |
| 14026 |
|
| 14027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 14028 |
$as_echo "$USE_NLS" >&6; } |
| 14029 |
|
| 14030 |
|
| 14031 |
|
| 14032 |
|
| 14033 |
GETTEXT_MACRO_VERSION=0.18 |
| 14034 |
|
| 14035 |
|
| 14036 |
|
| 14037 |
|
| 14038 |
# Prepare PATH_SEPARATOR. |
| 14039 |
# The user is always right. |
| 14040 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 14041 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14042 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14043 |
# so we have to set that as well for the test. |
| 14044 |
PATH_SEPARATOR=: |
| 14045 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14046 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14047 |
|| PATH_SEPARATOR=';' |
| 14048 |
} |
| 14049 |
fi |
| 14050 |
|
| 14051 |
# Find out how to test for executable files. Don't use a zero-byte file, |
| 14052 |
# as systems may use methods other than mode bits to determine executability. |
| 14053 |
cat >conf$$.file <<_ASEOF |
| 14054 |
#! /bin/sh |
| 14055 |
exit 0 |
| 14056 |
_ASEOF |
| 14057 |
chmod +x conf$$.file |
| 14058 |
if test -x conf$$.file >/dev/null 2>&1; then |
| 14059 |
ac_executable_p="test -x" |
| 14060 |
else |
| 14061 |
ac_executable_p="test -f" |
| 14062 |
fi |
| 14063 |
rm -f conf$$.file |
| 14064 |
|
| 14065 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
| 14066 |
set dummy msgfmt; ac_word=$2 |
| 14067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14068 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 14069 |
if ${ac_cv_path_MSGFMT+:} false; then : |
| 14070 |
$as_echo_n "(cached) " >&6 |
| 14071 |
else |
| 14072 |
case "$MSGFMT" in |
| 14073 |
[\\/]* | ?:[\\/]*) |
| 14074 |
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 14075 |
;; |
| 14076 |
*) |
| 14077 |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14078 |
for ac_dir in $PATH; do |
| 14079 |
IFS="$ac_save_IFS" |
| 14080 |
test -z "$ac_dir" && ac_dir=. |
| 14081 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 14082 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14083 |
echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14084 |
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 14085 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 14086 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 14087 |
break 2 |
| 14088 |
fi |
| 14089 |
fi |
| 14090 |
done |
| 14091 |
done |
| 14092 |
IFS="$ac_save_IFS" |
| 14093 |
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 14094 |
;; |
| 14095 |
esac |
| 14096 |
fi |
| 14097 |
MSGFMT="$ac_cv_path_MSGFMT" |
| 14098 |
if test "$MSGFMT" != ":"; then |
| 14099 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 14100 |
$as_echo "$MSGFMT" >&6; } |
| 14101 |
else |
| 14102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14103 |
$as_echo "no" >&6; } |
| 14104 |
fi |
| 14105 |
|
| 14106 |
# Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 14107 |
set dummy gmsgfmt; ac_word=$2 |
| 14108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14109 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 14110 |
if ${ac_cv_path_GMSGFMT+:} false; then : |
| 14111 |
$as_echo_n "(cached) " >&6 |
| 14112 |
else |
| 14113 |
case $GMSGFMT in |
| 14114 |
[\\/]* | ?:[\\/]*) |
| 14115 |
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 14116 |
;; |
| 14117 |
*) |
| 14118 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14119 |
for as_dir in $PATH |
| 14120 |
do |
| 14121 |
IFS=$as_save_IFS |
| 14122 |
test -z "$as_dir" && as_dir=. |
| 14123 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 14124 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14125 |
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 14126 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14127 |
break 2 |
| 14128 |
fi |
| 14129 |
done |
| 14130 |
done |
| 14131 |
IFS=$as_save_IFS |
| 14132 |
|
| 14133 |
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 14134 |
;; |
| 14135 |
esac |
| 14136 |
fi |
| 14137 |
GMSGFMT=$ac_cv_path_GMSGFMT |
| 14138 |
if test -n "$GMSGFMT"; then |
| 14139 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
| 14140 |
$as_echo "$GMSGFMT" >&6; } |
| 14141 |
else |
| 14142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14143 |
$as_echo "no" >&6; } |
| 14144 |
fi |
| 14145 |
|
| 14146 |
|
| 14147 |
|
| 14148 |
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14149 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 14150 |
*) MSGFMT_015=$MSGFMT ;; |
| 14151 |
esac |
| 14152 |
|
| 14153 |
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14154 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 14155 |
*) GMSGFMT_015=$GMSGFMT ;; |
| 14156 |
esac |
| 14157 |
|
| 14158 |
|
| 14159 |
|
| 14160 |
# Prepare PATH_SEPARATOR. |
| 14161 |
# The user is always right. |
| 14162 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 14163 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14164 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14165 |
# so we have to set that as well for the test. |
| 14166 |
PATH_SEPARATOR=: |
| 14167 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14168 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14169 |
|| PATH_SEPARATOR=';' |
| 14170 |
} |
| 14171 |
fi |
| 14172 |
|
| 14173 |
# Find out how to test for executable files. Don't use a zero-byte file, |
| 14174 |
# as systems may use methods other than mode bits to determine executability. |
| 14175 |
cat >conf$$.file <<_ASEOF |
| 14176 |
#! /bin/sh |
| 14177 |
exit 0 |
| 14178 |
_ASEOF |
| 14179 |
chmod +x conf$$.file |
| 14180 |
if test -x conf$$.file >/dev/null 2>&1; then |
| 14181 |
ac_executable_p="test -x" |
| 14182 |
else |
| 14183 |
ac_executable_p="test -f" |
| 14184 |
fi |
| 14185 |
rm -f conf$$.file |
| 14186 |
|
| 14187 |
# Extract the first word of "xgettext", so it can be a program name with args. |
| 14188 |
set dummy xgettext; ac_word=$2 |
| 14189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14190 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 14191 |
if ${ac_cv_path_XGETTEXT+:} false; then : |
| 14192 |
$as_echo_n "(cached) " >&6 |
| 14193 |
else |
| 14194 |
case "$XGETTEXT" in |
| 14195 |
[\\/]* | ?:[\\/]*) |
| 14196 |
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 14197 |
;; |
| 14198 |
*) |
| 14199 |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14200 |
for ac_dir in $PATH; do |
| 14201 |
IFS="$ac_save_IFS" |
| 14202 |
test -z "$ac_dir" && ac_dir=. |
| 14203 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 14204 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14205 |
echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14206 |
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 14207 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 14208 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 14209 |
break 2 |
| 14210 |
fi |
| 14211 |
fi |
| 14212 |
done |
| 14213 |
done |
| 14214 |
IFS="$ac_save_IFS" |
| 14215 |
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 14216 |
;; |
| 14217 |
esac |
| 14218 |
fi |
| 14219 |
XGETTEXT="$ac_cv_path_XGETTEXT" |
| 14220 |
if test "$XGETTEXT" != ":"; then |
| 14221 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
| 14222 |
$as_echo "$XGETTEXT" >&6; } |
| 14223 |
else |
| 14224 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14225 |
$as_echo "no" >&6; } |
| 14226 |
fi |
| 14227 |
|
| 14228 |
rm -f messages.po |
| 14229 |
|
| 14230 |
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 14231 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 14232 |
*) XGETTEXT_015=$XGETTEXT ;; |
| 14233 |
esac |
| 14234 |
|
| 14235 |
|
| 14236 |
|
| 14237 |
# Prepare PATH_SEPARATOR. |
| 14238 |
# The user is always right. |
| 14239 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 14240 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14241 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14242 |
# so we have to set that as well for the test. |
| 14243 |
PATH_SEPARATOR=: |
| 14244 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14245 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14246 |
|| PATH_SEPARATOR=';' |
| 14247 |
} |
| 14248 |
fi |
| 14249 |
|
| 14250 |
# Find out how to test for executable files. Don't use a zero-byte file, |
| 14251 |
# as systems may use methods other than mode bits to determine executability. |
| 14252 |
cat >conf$$.file <<_ASEOF |
| 14253 |
#! /bin/sh |
| 14254 |
exit 0 |
| 14255 |
_ASEOF |
| 14256 |
chmod +x conf$$.file |
| 14257 |
if test -x conf$$.file >/dev/null 2>&1; then |
| 14258 |
ac_executable_p="test -x" |
| 14259 |
else |
| 14260 |
ac_executable_p="test -f" |
| 14261 |
fi |
| 14262 |
rm -f conf$$.file |
| 14263 |
|
| 14264 |
# Extract the first word of "msgmerge", so it can be a program name with args. |
| 14265 |
set dummy msgmerge; ac_word=$2 |
| 14266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14267 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 14268 |
if ${ac_cv_path_MSGMERGE+:} false; then : |
| 14269 |
$as_echo_n "(cached) " >&6 |
| 14270 |
else |
| 14271 |
case "$MSGMERGE" in |
| 14272 |
[\\/]* | ?:[\\/]*) |
| 14273 |
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 14274 |
;; |
| 14275 |
*) |
| 14276 |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 14277 |
for ac_dir in $PATH; do |
| 14278 |
IFS="$ac_save_IFS" |
| 14279 |
test -z "$ac_dir" && ac_dir=. |
| 14280 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 14281 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 14282 |
echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 14283 |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 14284 |
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 14285 |
break 2 |
| 14286 |
fi |
| 14287 |
fi |
| 14288 |
done |
| 14289 |
done |
| 14290 |
IFS="$ac_save_IFS" |
| 14291 |
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 14292 |
;; |
| 14293 |
esac |
| 14294 |
fi |
| 14295 |
MSGMERGE="$ac_cv_path_MSGMERGE" |
| 14296 |
if test "$MSGMERGE" != ":"; then |
| 14297 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
| 14298 |
$as_echo "$MSGMERGE" >&6; } |
| 14299 |
else |
| 14300 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14301 |
$as_echo "no" >&6; } |
| 14302 |
fi |
| 14303 |
|
| 14304 |
|
| 14305 |
test -n "$localedir" || localedir='${datadir}/locale' |
| 14306 |
|
| 14307 |
|
| 14308 |
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 14309 |
|
| 14310 |
|
| 14311 |
ac_config_commands="$ac_config_commands po-directories" |
| 14312 |
|
| 14313 |
|
| 14314 |
|
| 14315 |
if test "X$prefix" = "XNONE"; then |
| 14316 |
acl_final_prefix="$ac_default_prefix" |
| 14317 |
else |
| 14318 |
acl_final_prefix="$prefix" |
| 14319 |
fi |
| 14320 |
if test "X$exec_prefix" = "XNONE"; then |
| 14321 |
acl_final_exec_prefix='${prefix}' |
| 14322 |
else |
| 14323 |
acl_final_exec_prefix="$exec_prefix" |
| 14324 |
fi |
| 14325 |
acl_save_prefix="$prefix" |
| 14326 |
prefix="$acl_final_prefix" |
| 14327 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 14328 |
prefix="$acl_save_prefix" |
| 14329 |
|
| 14330 |
|
| 14331 |
|
| 14332 |
# Check whether --with-gnu-ld was given. |
| 14333 |
if test "${with_gnu_ld+set}" = set; then : |
| 14334 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 14335 |
else |
| 14336 |
with_gnu_ld=no |
| 14337 |
fi |
| 14338 |
|
| 14339 |
# Prepare PATH_SEPARATOR. |
| 14340 |
# The user is always right. |
| 14341 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 14342 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 14343 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 14344 |
# so we have to set that as well for the test. |
| 14345 |
PATH_SEPARATOR=: |
| 14346 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14347 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 14348 |
|| PATH_SEPARATOR=';' |
| 14349 |
} |
| 14350 |
fi |
| 14351 |
|
| 14352 |
ac_prog=ld |
| 14353 |
if test "$GCC" = yes; then |
| 14354 |
# Check if gcc -print-prog-name=ld gives a path. |
| 14355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 14356 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 14357 |
case $host in |
| 14358 |
*-*-mingw*) |
| 14359 |
# gcc leaves a trailing carriage return which upsets mingw |
| 14360 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14361 |
*) |
| 14362 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14363 |
esac |
| 14364 |
case $ac_prog in |
| 14365 |
# Accept absolute paths. |
| 14366 |
[\\/]* | ?:[\\/]*) |
| 14367 |
re_direlt='/[^/][^/]*/\.\./' |
| 14368 |
# Canonicalize the pathname of ld |
| 14369 |
ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 14370 |
while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 14371 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 14372 |
done |
| 14373 |
test -z "$LD" && LD="$ac_prog" |
| 14374 |
;; |
| 14375 |
"") |
| 14376 |
# If it fails, then pretend we aren't using GCC. |
| 14377 |
ac_prog=ld |
| 14378 |
;; |
| 14379 |
*) |
| 14380 |
# If it is relative, then search for the first ld in PATH. |
| 14381 |
with_gnu_ld=unknown |
| 14382 |
;; |
| 14383 |
esac |
| 14384 |
elif test "$with_gnu_ld" = yes; then |
| 14385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 14386 |
$as_echo_n "checking for GNU ld... " >&6; } |
| 14387 |
else |
| 14388 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 14389 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
| 14390 |
fi |
| 14391 |
if ${acl_cv_path_LD+:} false; then : |
| 14392 |
$as_echo_n "(cached) " >&6 |
| 14393 |
else |
| 14394 |
if test -z "$LD"; then |
| 14395 |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14396 |
for ac_dir in $PATH; do |
| 14397 |
IFS="$acl_save_ifs" |
| 14398 |
test -z "$ac_dir" && ac_dir=. |
| 14399 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14400 |
acl_cv_path_LD="$ac_dir/$ac_prog" |
| 14401 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 14402 |
# but apparently some variants of GNU ld only accept -v. |
| 14403 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 14404 |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
| 14405 |
*GNU* | *'with BFD'*) |
| 14406 |
test "$with_gnu_ld" != no && break |
| 14407 |
;; |
| 14408 |
*) |
| 14409 |
test "$with_gnu_ld" != yes && break |
| 14410 |
;; |
| 14411 |
esac |
| 14412 |
fi |
| 14413 |
done |
| 14414 |
IFS="$acl_save_ifs" |
| 14415 |
else |
| 14416 |
acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 14417 |
fi |
| 14418 |
fi |
| 14419 |
|
| 14420 |
LD="$acl_cv_path_LD" |
| 14421 |
if test -n "$LD"; then |
| 14422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 14423 |
$as_echo "$LD" >&6; } |
| 14424 |
else |
| 14425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14426 |
$as_echo "no" >&6; } |
| 14427 |
fi |
| 14428 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 14429 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 14430 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 14431 |
if ${acl_cv_prog_gnu_ld+:} false; then : |
| 14432 |
$as_echo_n "(cached) " >&6 |
| 14433 |
else |
| 14434 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 14435 |
case `$LD -v 2>&1 </dev/null` in |
| 14436 |
*GNU* | *'with BFD'*) |
| 14437 |
acl_cv_prog_gnu_ld=yes |
| 14438 |
;; |
| 14439 |
*) |
| 14440 |
acl_cv_prog_gnu_ld=no |
| 14441 |
;; |
| 14442 |
esac |
| 14443 |
fi |
| 14444 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
| 14445 |
$as_echo "$acl_cv_prog_gnu_ld" >&6; } |
| 14446 |
with_gnu_ld=$acl_cv_prog_gnu_ld |
| 14447 |
|
| 14448 |
|
| 14449 |
|
| 14450 |
|
| 14451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
| 14452 |
$as_echo_n "checking for shared library run path origin... " >&6; } |
| 14453 |
if ${acl_cv_rpath+:} false; then : |
| 14454 |
$as_echo_n "(cached) " >&6 |
| 14455 |
else |
| 14456 |
|
| 14457 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 14458 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 14459 |
. ./conftest.sh |
| 14460 |
rm -f ./conftest.sh |
| 14461 |
acl_cv_rpath=done |
| 14462 |
|
| 14463 |
fi |
| 14464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
| 14465 |
$as_echo "$acl_cv_rpath" >&6; } |
| 14466 |
wl="$acl_cv_wl" |
| 14467 |
acl_libext="$acl_cv_libext" |
| 14468 |
acl_shlibext="$acl_cv_shlibext" |
| 14469 |
acl_libname_spec="$acl_cv_libname_spec" |
| 14470 |
acl_library_names_spec="$acl_cv_library_names_spec" |
| 14471 |
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 14472 |
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 14473 |
acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 14474 |
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 14475 |
# Check whether --enable-rpath was given. |
| 14476 |
if test "${enable_rpath+set}" = set; then : |
| 14477 |
enableval=$enable_rpath; : |
| 14478 |
else |
| 14479 |
enable_rpath=yes |
| 14480 |
fi |
| 14481 |
|
| 14482 |
|
| 14483 |
|
| 14484 |
|
| 14485 |
acl_libdirstem=lib |
| 14486 |
acl_libdirstem2= |
| 14487 |
case "$host_os" in |
| 14488 |
solaris*) |
| 14489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 14490 |
$as_echo_n "checking for 64-bit host... " >&6; } |
| 14491 |
if ${gl_cv_solaris_64bit+:} false; then : |
| 14492 |
$as_echo_n "(cached) " >&6 |
| 14493 |
else |
| 14494 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14495 |
/* end confdefs.h. */ |
| 14496 |
|
| 14497 |
#ifdef _LP64 |
| 14498 |
sixtyfour bits |
| 14499 |
#endif |
| 14500 |
|
| 14501 |
_ACEOF |
| 14502 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14503 |
$EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 14504 |
gl_cv_solaris_64bit=yes |
| 14505 |
else |
| 14506 |
gl_cv_solaris_64bit=no |
| 14507 |
fi |
| 14508 |
rm -f conftest* |
| 14509 |
|
| 14510 |
|
| 14511 |
fi |
| 14512 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 14513 |
$as_echo "$gl_cv_solaris_64bit" >&6; } |
| 14514 |
if test $gl_cv_solaris_64bit = yes; then |
| 14515 |
acl_libdirstem=lib/64 |
| 14516 |
case "$host_cpu" in |
| 14517 |
sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 14518 |
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 14519 |
esac |
| 14520 |
fi |
| 14521 |
;; |
| 14522 |
*) |
| 14523 |
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 14524 |
if test -n "$searchpath"; then |
| 14525 |
acl_save_IFS="${IFS= }"; IFS=":" |
| 14526 |
for searchdir in $searchpath; do |
| 14527 |
if test -d "$searchdir"; then |
| 14528 |
case "$searchdir" in |
| 14529 |
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 14530 |
*/../ | */.. ) |
| 14531 |
# Better ignore directories of this form. They are misleading. |
| 14532 |
;; |
| 14533 |
*) searchdir=`cd "$searchdir" && pwd` |
| 14534 |
case "$searchdir" in |
| 14535 |
*/lib64 ) acl_libdirstem=lib64 ;; |
| 14536 |
esac ;; |
| 14537 |
esac |
| 14538 |
fi |
| 14539 |
done |
| 14540 |
IFS="$acl_save_IFS" |
| 14541 |
fi |
| 14542 |
;; |
| 14543 |
esac |
| 14544 |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 14545 |
|
| 14546 |
|
| 14547 |
|
| 14548 |
|
| 14549 |
|
| 14550 |
|
| 14551 |
|
| 14552 |
|
| 14553 |
|
| 14554 |
|
| 14555 |
|
| 14556 |
|
| 14557 |
use_additional=yes |
| 14558 |
|
| 14559 |
acl_save_prefix="$prefix" |
| 14560 |
prefix="$acl_final_prefix" |
| 14561 |
acl_save_exec_prefix="$exec_prefix" |
| 14562 |
exec_prefix="$acl_final_exec_prefix" |
| 14563 |
|
| 14564 |
eval additional_includedir=\"$includedir\" |
| 14565 |
eval additional_libdir=\"$libdir\" |
| 14566 |
|
| 14567 |
exec_prefix="$acl_save_exec_prefix" |
| 14568 |
prefix="$acl_save_prefix" |
| 14569 |
|
| 14570 |
|
| 14571 |
# Check whether --with-libiconv-prefix was given. |
| 14572 |
if test "${with_libiconv_prefix+set}" = set; then : |
| 14573 |
withval=$with_libiconv_prefix; |
| 14574 |
if test "X$withval" = "Xno"; then |
| 14575 |
use_additional=no |
| 14576 |
else |
| 14577 |
if test "X$withval" = "X"; then |
| 14578 |
|
| 14579 |
acl_save_prefix="$prefix" |
| 14580 |
prefix="$acl_final_prefix" |
| 14581 |
acl_save_exec_prefix="$exec_prefix" |
| 14582 |
exec_prefix="$acl_final_exec_prefix" |
| 14583 |
|
| 14584 |
eval additional_includedir=\"$includedir\" |
| 14585 |
eval additional_libdir=\"$libdir\" |
| 14586 |
|
| 14587 |
exec_prefix="$acl_save_exec_prefix" |
| 14588 |
prefix="$acl_save_prefix" |
| 14589 |
|
| 14590 |
else |
| 14591 |
additional_includedir="$withval/include" |
| 14592 |
additional_libdir="$withval/$acl_libdirstem" |
| 14593 |
if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 14594 |
&& ! test -d "$withval/$acl_libdirstem"; then |
| 14595 |
additional_libdir="$withval/$acl_libdirstem2" |
| 14596 |
fi |
| 14597 |
fi |
| 14598 |
fi |
| 14599 |
|
| 14600 |
fi |
| 14601 |
|
| 14602 |
LIBICONV= |
| 14603 |
LTLIBICONV= |
| 14604 |
INCICONV= |
| 14605 |
LIBICONV_PREFIX= |
| 14606 |
HAVE_LIBICONV= |
| 14607 |
rpathdirs= |
| 14608 |
ltrpathdirs= |
| 14609 |
names_already_handled= |
| 14610 |
names_next_round='iconv ' |
| 14611 |
while test -n "$names_next_round"; do |
| 14612 |
names_this_round="$names_next_round" |
| 14613 |
names_next_round= |
| 14614 |
for name in $names_this_round; do |
| 14615 |
already_handled= |
| 14616 |
for n in $names_already_handled; do |
| 14617 |
if test "$n" = "$name"; then |
| 14618 |
already_handled=yes |
| 14619 |
break |
| 14620 |
fi |
| 14621 |
done |
| 14622 |
if test -z "$already_handled"; then |
| 14623 |
names_already_handled="$names_already_handled $name" |
| 14624 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 14625 |
eval value=\"\$HAVE_LIB$uppername\" |
| 14626 |
if test -n "$value"; then |
| 14627 |
if test "$value" = yes; then |
| 14628 |
eval value=\"\$LIB$uppername\" |
| 14629 |
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 14630 |
eval value=\"\$LTLIB$uppername\" |
| 14631 |
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 14632 |
else |
| 14633 |
: |
| 14634 |
fi |
| 14635 |
else |
| 14636 |
found_dir= |
| 14637 |
found_la= |
| 14638 |
found_so= |
| 14639 |
found_a= |
| 14640 |
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 14641 |
if test -n "$acl_shlibext"; then |
| 14642 |
shrext=".$acl_shlibext" # typically: shrext=.so |
| 14643 |
else |
| 14644 |
shrext= |
| 14645 |
fi |
| 14646 |
if test $use_additional = yes; then |
| 14647 |
dir="$additional_libdir" |
| 14648 |
if test -n "$acl_shlibext"; then |
| 14649 |
if test -f "$dir/$libname$shrext"; then |
| 14650 |
found_dir="$dir" |
| 14651 |
found_so="$dir/$libname$shrext" |
| 14652 |
else |
| 14653 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 14654 |
ver=`(cd "$dir" && \ |
| 14655 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 14656 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 14657 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 14658 |
| sed 1q ) 2>/dev/null` |
| 14659 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 14660 |
found_dir="$dir" |
| 14661 |
found_so="$dir/$libname$shrext.$ver" |
| 14662 |
fi |
| 14663 |
else |
| 14664 |
eval library_names=\"$acl_library_names_spec\" |
| 14665 |
for f in $library_names; do |
| 14666 |
if test -f "$dir/$f"; then |
| 14667 |
found_dir="$dir" |
| 14668 |
found_so="$dir/$f" |
| 14669 |
break |
| 14670 |
fi |
| 14671 |
done |
| 14672 |
fi |
| 14673 |
fi |
| 14674 |
fi |
| 14675 |
if test "X$found_dir" = "X"; then |
| 14676 |
if test -f "$dir/$libname.$acl_libext"; then |
| 14677 |
found_dir="$dir" |
| 14678 |
found_a="$dir/$libname.$acl_libext" |
| 14679 |
fi |
| 14680 |
fi |
| 14681 |
if test "X$found_dir" != "X"; then |
| 14682 |
if test -f "$dir/$libname.la"; then |
| 14683 |
found_la="$dir/$libname.la" |
| 14684 |
fi |
| 14685 |
fi |
| 14686 |
fi |
| 14687 |
if test "X$found_dir" = "X"; then |
| 14688 |
for x in $LDFLAGS $LTLIBICONV; do |
| 14689 |
|
| 14690 |
acl_save_prefix="$prefix" |
| 14691 |
prefix="$acl_final_prefix" |
| 14692 |
acl_save_exec_prefix="$exec_prefix" |
| 14693 |
exec_prefix="$acl_final_exec_prefix" |
| 14694 |
eval x=\"$x\" |
| 14695 |
exec_prefix="$acl_save_exec_prefix" |
| 14696 |
prefix="$acl_save_prefix" |
| 14697 |
|
| 14698 |
case "$x" in |
| 14699 |
-L*) |
| 14700 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 14701 |
if test -n "$acl_shlibext"; then |
| 14702 |
if test -f "$dir/$libname$shrext"; then |
| 14703 |
found_dir="$dir" |
| 14704 |
found_so="$dir/$libname$shrext" |
| 14705 |
else |
| 14706 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 14707 |
ver=`(cd "$dir" && \ |
| 14708 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 14709 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 14710 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 14711 |
| sed 1q ) 2>/dev/null` |
| 14712 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 14713 |
found_dir="$dir" |
| 14714 |
found_so="$dir/$libname$shrext.$ver" |
| 14715 |
fi |
| 14716 |
else |
| 14717 |
eval library_names=\"$acl_library_names_spec\" |
| 14718 |
for f in $library_names; do |
| 14719 |
if test -f "$dir/$f"; then |
| 14720 |
found_dir="$dir" |
| 14721 |
found_so="$dir/$f" |
| 14722 |
break |
| 14723 |
fi |
| 14724 |
done |
| 14725 |
fi |
| 14726 |
fi |
| 14727 |
fi |
| 14728 |
if test "X$found_dir" = "X"; then |
| 14729 |
if test -f "$dir/$libname.$acl_libext"; then |
| 14730 |
found_dir="$dir" |
| 14731 |
found_a="$dir/$libname.$acl_libext" |
| 14732 |
fi |
| 14733 |
fi |
| 14734 |
if test "X$found_dir" != "X"; then |
| 14735 |
if test -f "$dir/$libname.la"; then |
| 14736 |
found_la="$dir/$libname.la" |
| 14737 |
fi |
| 14738 |
fi |
| 14739 |
;; |
| 14740 |
esac |
| 14741 |
if test "X$found_dir" != "X"; then |
| 14742 |
break |
| 14743 |
fi |
| 14744 |
done |
| 14745 |
fi |
| 14746 |
if test "X$found_dir" != "X"; then |
| 14747 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 14748 |
if test "X$found_so" != "X"; then |
| 14749 |
if test "$enable_rpath" = no \ |
| 14750 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 14751 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 14752 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 14753 |
else |
| 14754 |
haveit= |
| 14755 |
for x in $ltrpathdirs; do |
| 14756 |
if test "X$x" = "X$found_dir"; then |
| 14757 |
haveit=yes |
| 14758 |
break |
| 14759 |
fi |
| 14760 |
done |
| 14761 |
if test -z "$haveit"; then |
| 14762 |
ltrpathdirs="$ltrpathdirs $found_dir" |
| 14763 |
fi |
| 14764 |
if test "$acl_hardcode_direct" = yes; then |
| 14765 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 14766 |
else |
| 14767 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 14768 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 14769 |
haveit= |
| 14770 |
for x in $rpathdirs; do |
| 14771 |
if test "X$x" = "X$found_dir"; then |
| 14772 |
haveit=yes |
| 14773 |
break |
| 14774 |
fi |
| 14775 |
done |
| 14776 |
if test -z "$haveit"; then |
| 14777 |
rpathdirs="$rpathdirs $found_dir" |
| 14778 |
fi |
| 14779 |
else |
| 14780 |
haveit= |
| 14781 |
for x in $LDFLAGS $LIBICONV; do |
| 14782 |
|
| 14783 |
acl_save_prefix="$prefix" |
| 14784 |
prefix="$acl_final_prefix" |
| 14785 |
acl_save_exec_prefix="$exec_prefix" |
| 14786 |
exec_prefix="$acl_final_exec_prefix" |
| 14787 |
eval x=\"$x\" |
| 14788 |
exec_prefix="$acl_save_exec_prefix" |
| 14789 |
prefix="$acl_save_prefix" |
| 14790 |
|
| 14791 |
if test "X$x" = "X-L$found_dir"; then |
| 14792 |
haveit=yes |
| 14793 |
break |
| 14794 |
fi |
| 14795 |
done |
| 14796 |
if test -z "$haveit"; then |
| 14797 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 14798 |
fi |
| 14799 |
if test "$acl_hardcode_minus_L" != no; then |
| 14800 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 14801 |
else |
| 14802 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 14803 |
fi |
| 14804 |
fi |
| 14805 |
fi |
| 14806 |
fi |
| 14807 |
else |
| 14808 |
if test "X$found_a" != "X"; then |
| 14809 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 14810 |
else |
| 14811 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 14812 |
fi |
| 14813 |
fi |
| 14814 |
additional_includedir= |
| 14815 |
case "$found_dir" in |
| 14816 |
*/$acl_libdirstem | */$acl_libdirstem/) |
| 14817 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 14818 |
if test "$name" = 'iconv'; then |
| 14819 |
LIBICONV_PREFIX="$basedir" |
| 14820 |
fi |
| 14821 |
additional_includedir="$basedir/include" |
| 14822 |
;; |
| 14823 |
*/$acl_libdirstem2 | */$acl_libdirstem2/) |
| 14824 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 14825 |
if test "$name" = 'iconv'; then |
| 14826 |
LIBICONV_PREFIX="$basedir" |
| 14827 |
fi |
| 14828 |
additional_includedir="$basedir/include" |
| 14829 |
;; |
| 14830 |
esac |
| 14831 |
if test "X$additional_includedir" != "X"; then |
| 14832 |
if test "X$additional_includedir" != "X/usr/include"; then |
| 14833 |
haveit= |
| 14834 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
| 14835 |
if test -n "$GCC"; then |
| 14836 |
case $host_os in |
| 14837 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 14838 |
esac |
| 14839 |
fi |
| 14840 |
fi |
| 14841 |
if test -z "$haveit"; then |
| 14842 |
for x in $CPPFLAGS $INCICONV; do |
| 14843 |
|
| 14844 |
acl_save_prefix="$prefix" |
| 14845 |
prefix="$acl_final_prefix" |
| 14846 |
acl_save_exec_prefix="$exec_prefix" |
| 14847 |
exec_prefix="$acl_final_exec_prefix" |
| 14848 |
eval x=\"$x\" |
| 14849 |
exec_prefix="$acl_save_exec_prefix" |
| 14850 |
prefix="$acl_save_prefix" |
| 14851 |
|
| 14852 |
if test "X$x" = "X-I$additional_includedir"; then |
| 14853 |
haveit=yes |
| 14854 |
break |
| 14855 |
fi |
| 14856 |
done |
| 14857 |
if test -z "$haveit"; then |
| 14858 |
if test -d "$additional_includedir"; then |
| 14859 |
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 14860 |
fi |
| 14861 |
fi |
| 14862 |
fi |
| 14863 |
fi |
| 14864 |
fi |
| 14865 |
if test -n "$found_la"; then |
| 14866 |
save_libdir="$libdir" |
| 14867 |
case "$found_la" in |
| 14868 |
*/* | *\\*) . "$found_la" ;; |
| 14869 |
*) . "./$found_la" ;; |
| 14870 |
esac |
| 14871 |
libdir="$save_libdir" |
| 14872 |
for dep in $dependency_libs; do |
| 14873 |
case "$dep" in |
| 14874 |
-L*) |
| 14875 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 14876 |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 14877 |
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 14878 |
haveit= |
| 14879 |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 14880 |
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 14881 |
if test -n "$GCC"; then |
| 14882 |
case $host_os in |
| 14883 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 14884 |
esac |
| 14885 |
fi |
| 14886 |
fi |
| 14887 |
if test -z "$haveit"; then |
| 14888 |
haveit= |
| 14889 |
for x in $LDFLAGS $LIBICONV; do |
| 14890 |
|
| 14891 |
acl_save_prefix="$prefix" |
| 14892 |
prefix="$acl_final_prefix" |
| 14893 |
acl_save_exec_prefix="$exec_prefix" |
| 14894 |
exec_prefix="$acl_final_exec_prefix" |
| 14895 |
eval x=\"$x\" |
| 14896 |
exec_prefix="$acl_save_exec_prefix" |
| 14897 |
prefix="$acl_save_prefix" |
| 14898 |
|
| 14899 |
if test "X$x" = "X-L$additional_libdir"; then |
| 14900 |
haveit=yes |
| 14901 |
break |
| 14902 |
fi |
| 14903 |
done |
| 14904 |
if test -z "$haveit"; then |
| 14905 |
if test -d "$additional_libdir"; then |
| 14906 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 14907 |
fi |
| 14908 |
fi |
| 14909 |
haveit= |
| 14910 |
for x in $LDFLAGS $LTLIBICONV; do |
| 14911 |
|
| 14912 |
acl_save_prefix="$prefix" |
| 14913 |
prefix="$acl_final_prefix" |
| 14914 |
acl_save_exec_prefix="$exec_prefix" |
| 14915 |
exec_prefix="$acl_final_exec_prefix" |
| 14916 |
eval x=\"$x\" |
| 14917 |
exec_prefix="$acl_save_exec_prefix" |
| 14918 |
prefix="$acl_save_prefix" |
| 14919 |
|
| 14920 |
if test "X$x" = "X-L$additional_libdir"; then |
| 14921 |
haveit=yes |
| 14922 |
break |
| 14923 |
fi |
| 14924 |
done |
| 14925 |
if test -z "$haveit"; then |
| 14926 |
if test -d "$additional_libdir"; then |
| 14927 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 14928 |
fi |
| 14929 |
fi |
| 14930 |
fi |
| 14931 |
fi |
| 14932 |
;; |
| 14933 |
-R*) |
| 14934 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 14935 |
if test "$enable_rpath" != no; then |
| 14936 |
haveit= |
| 14937 |
for x in $rpathdirs; do |
| 14938 |
if test "X$x" = "X$dir"; then |
| 14939 |
haveit=yes |
| 14940 |
break |
| 14941 |
fi |
| 14942 |
done |
| 14943 |
if test -z "$haveit"; then |
| 14944 |
rpathdirs="$rpathdirs $dir" |
| 14945 |
fi |
| 14946 |
haveit= |
| 14947 |
for x in $ltrpathdirs; do |
| 14948 |
if test "X$x" = "X$dir"; then |
| 14949 |
haveit=yes |
| 14950 |
break |
| 14951 |
fi |
| 14952 |
done |
| 14953 |
if test -z "$haveit"; then |
| 14954 |
ltrpathdirs="$ltrpathdirs $dir" |
| 14955 |
fi |
| 14956 |
fi |
| 14957 |
;; |
| 14958 |
-l*) |
| 14959 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 14960 |
;; |
| 14961 |
*.la) |
| 14962 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 14963 |
;; |
| 14964 |
*) |
| 14965 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 14966 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 14967 |
;; |
| 14968 |
esac |
| 14969 |
done |
| 14970 |
fi |
| 14971 |
else |
| 14972 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 14973 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 14974 |
fi |
| 14975 |
fi |
| 14976 |
fi |
| 14977 |
done |
| 14978 |
done |
| 14979 |
if test "X$rpathdirs" != "X"; then |
| 14980 |
if test -n "$acl_hardcode_libdir_separator"; then |
| 14981 |
alldirs= |
| 14982 |
for found_dir in $rpathdirs; do |
| 14983 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 14984 |
done |
| 14985 |
acl_save_libdir="$libdir" |
| 14986 |
libdir="$alldirs" |
| 14987 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 14988 |
libdir="$acl_save_libdir" |
| 14989 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 14990 |
else |
| 14991 |
for found_dir in $rpathdirs; do |
| 14992 |
acl_save_libdir="$libdir" |
| 14993 |
libdir="$found_dir" |
| 14994 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 14995 |
libdir="$acl_save_libdir" |
| 14996 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 14997 |
done |
| 14998 |
fi |
| 14999 |
fi |
| 15000 |
if test "X$ltrpathdirs" != "X"; then |
| 15001 |
for found_dir in $ltrpathdirs; do |
| 15002 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 15003 |
done |
| 15004 |
fi |
| 15005 |
|
| 15006 |
|
| 15007 |
|
| 15008 |
|
| 15009 |
|
| 15010 |
|
| 15011 |
|
| 15012 |
|
| 15013 |
|
| 15014 |
|
| 15015 |
|
| 15016 |
|
| 15017 |
|
| 15018 |
|
| 15019 |
|
| 15020 |
|
| 15021 |
|
| 15022 |
|
| 15023 |
|
| 15024 |
|
| 15025 |
|
| 15026 |
|
| 15027 |
|
| 15028 |
|
| 15029 |
|
| 15030 |
|
| 15031 |
|
| 15032 |
|
| 15033 |
|
| 15034 |
|
| 15035 |
|
| 15036 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 15037 |
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 15038 |
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 15039 |
$as_echo_n "(cached) " >&6 |
| 15040 |
else |
| 15041 |
gt_save_LIBS="$LIBS" |
| 15042 |
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 15043 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15044 |
/* end confdefs.h. */ |
| 15045 |
#include <CoreFoundation/CFPreferences.h> |
| 15046 |
int |
| 15047 |
main () |
| 15048 |
{ |
| 15049 |
CFPreferencesCopyAppValue(NULL, NULL) |
| 15050 |
; |
| 15051 |
return 0; |
| 15052 |
} |
| 15053 |
_ACEOF |
| 15054 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15055 |
gt_cv_func_CFPreferencesCopyAppValue=yes |
| 15056 |
else |
| 15057 |
gt_cv_func_CFPreferencesCopyAppValue=no |
| 15058 |
fi |
| 15059 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15060 |
conftest$ac_exeext conftest.$ac_ext |
| 15061 |
LIBS="$gt_save_LIBS" |
| 15062 |
fi |
| 15063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 15064 |
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 15065 |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 15066 |
|
| 15067 |
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 15068 |
|
| 15069 |
fi |
| 15070 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 15071 |
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 15072 |
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 15073 |
$as_echo_n "(cached) " >&6 |
| 15074 |
else |
| 15075 |
gt_save_LIBS="$LIBS" |
| 15076 |
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 15077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15078 |
/* end confdefs.h. */ |
| 15079 |
#include <CoreFoundation/CFLocale.h> |
| 15080 |
int |
| 15081 |
main () |
| 15082 |
{ |
| 15083 |
CFLocaleCopyCurrent(); |
| 15084 |
; |
| 15085 |
return 0; |
| 15086 |
} |
| 15087 |
_ACEOF |
| 15088 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15089 |
gt_cv_func_CFLocaleCopyCurrent=yes |
| 15090 |
else |
| 15091 |
gt_cv_func_CFLocaleCopyCurrent=no |
| 15092 |
fi |
| 15093 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15094 |
conftest$ac_exeext conftest.$ac_ext |
| 15095 |
LIBS="$gt_save_LIBS" |
| 15096 |
fi |
| 15097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 15098 |
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 15099 |
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 15100 |
|
| 15101 |
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 15102 |
|
| 15103 |
fi |
| 15104 |
INTL_MACOSX_LIBS= |
| 15105 |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 15106 |
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 15107 |
fi |
| 15108 |
|
| 15109 |
|
| 15110 |
|
| 15111 |
|
| 15112 |
|
| 15113 |
|
| 15114 |
LIBINTL= |
| 15115 |
LTLIBINTL= |
| 15116 |
POSUB= |
| 15117 |
|
| 15118 |
case " $gt_needs " in |
| 15119 |
*" need-formatstring-macros "*) gt_api_version=3 ;; |
| 15120 |
*" need-ngettext "*) gt_api_version=2 ;; |
| 15121 |
*) gt_api_version=1 ;; |
| 15122 |
esac |
| 15123 |
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 15124 |
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 15125 |
|
| 15126 |
if test "$USE_NLS" = "yes"; then |
| 15127 |
gt_use_preinstalled_gnugettext=no |
| 15128 |
|
| 15129 |
|
| 15130 |
if test $gt_api_version -ge 3; then |
| 15131 |
gt_revision_test_code=' |
| 15132 |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 15133 |
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 15134 |
#endif |
| 15135 |
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 15136 |
' |
| 15137 |
else |
| 15138 |
gt_revision_test_code= |
| 15139 |
fi |
| 15140 |
if test $gt_api_version -ge 2; then |
| 15141 |
gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 15142 |
else |
| 15143 |
gt_expression_test_code= |
| 15144 |
fi |
| 15145 |
|
| 15146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
| 15147 |
$as_echo_n "checking for GNU gettext in libc... " >&6; } |
| 15148 |
if eval \${$gt_func_gnugettext_libc+:} false; then : |
| 15149 |
$as_echo_n "(cached) " >&6 |
| 15150 |
else |
| 15151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15152 |
/* end confdefs.h. */ |
| 15153 |
|
| 15154 |
#include <libintl.h> |
| 15155 |
$gt_revision_test_code |
| 15156 |
extern int _nl_msg_cat_cntr; |
| 15157 |
extern int *_nl_domain_bindings; |
| 15158 |
|
| 15159 |
int |
| 15160 |
main () |
| 15161 |
{ |
| 15162 |
|
| 15163 |
bindtextdomain ("", ""); |
| 15164 |
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 15165 |
|
| 15166 |
; |
| 15167 |
return 0; |
| 15168 |
} |
| 15169 |
_ACEOF |
| 15170 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15171 |
eval "$gt_func_gnugettext_libc=yes" |
| 15172 |
else |
| 15173 |
eval "$gt_func_gnugettext_libc=no" |
| 15174 |
fi |
| 15175 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15176 |
conftest$ac_exeext conftest.$ac_ext |
| 15177 |
fi |
| 15178 |
eval ac_res=\$$gt_func_gnugettext_libc |
| 15179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15180 |
$as_echo "$ac_res" >&6; } |
| 15181 |
|
| 15182 |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 15183 |
|
| 15184 |
|
| 15185 |
|
| 15186 |
|
| 15187 |
|
| 15188 |
am_save_CPPFLAGS="$CPPFLAGS" |
| 15189 |
|
| 15190 |
for element in $INCICONV; do |
| 15191 |
haveit= |
| 15192 |
for x in $CPPFLAGS; do |
| 15193 |
|
| 15194 |
acl_save_prefix="$prefix" |
| 15195 |
prefix="$acl_final_prefix" |
| 15196 |
acl_save_exec_prefix="$exec_prefix" |
| 15197 |
exec_prefix="$acl_final_exec_prefix" |
| 15198 |
eval x=\"$x\" |
| 15199 |
exec_prefix="$acl_save_exec_prefix" |
| 15200 |
prefix="$acl_save_prefix" |
| 15201 |
|
| 15202 |
if test "X$x" = "X$element"; then |
| 15203 |
haveit=yes |
| 15204 |
break |
| 15205 |
fi |
| 15206 |
done |
| 15207 |
if test -z "$haveit"; then |
| 15208 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 15209 |
fi |
| 15210 |
done |
| 15211 |
|
| 15212 |
|
| 15213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
| 15214 |
$as_echo_n "checking for iconv... " >&6; } |
| 15215 |
if ${am_cv_func_iconv+:} false; then : |
| 15216 |
$as_echo_n "(cached) " >&6 |
| 15217 |
else |
| 15218 |
|
| 15219 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
| 15220 |
am_cv_lib_iconv=no |
| 15221 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15222 |
/* end confdefs.h. */ |
| 15223 |
|
| 15224 |
#include <stdlib.h> |
| 15225 |
#include <iconv.h> |
| 15226 |
|
| 15227 |
int |
| 15228 |
main () |
| 15229 |
{ |
| 15230 |
iconv_t cd = iconv_open("",""); |
| 15231 |
iconv(cd,NULL,NULL,NULL,NULL); |
| 15232 |
iconv_close(cd); |
| 15233 |
; |
| 15234 |
return 0; |
| 15235 |
} |
| 15236 |
_ACEOF |
| 15237 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15238 |
am_cv_func_iconv=yes |
| 15239 |
fi |
| 15240 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15241 |
conftest$ac_exeext conftest.$ac_ext |
| 15242 |
if test "$am_cv_func_iconv" != yes; then |
| 15243 |
am_save_LIBS="$LIBS" |
| 15244 |
LIBS="$LIBS $LIBICONV" |
| 15245 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15246 |
/* end confdefs.h. */ |
| 15247 |
|
| 15248 |
#include <stdlib.h> |
| 15249 |
#include <iconv.h> |
| 15250 |
|
| 15251 |
int |
| 15252 |
main () |
| 15253 |
{ |
| 15254 |
iconv_t cd = iconv_open("",""); |
| 15255 |
iconv(cd,NULL,NULL,NULL,NULL); |
| 15256 |
iconv_close(cd); |
| 15257 |
; |
| 15258 |
return 0; |
| 15259 |
} |
| 15260 |
_ACEOF |
| 15261 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15262 |
am_cv_lib_iconv=yes |
| 15263 |
am_cv_func_iconv=yes |
| 15264 |
fi |
| 15265 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15266 |
conftest$ac_exeext conftest.$ac_ext |
| 15267 |
LIBS="$am_save_LIBS" |
| 15268 |
fi |
| 15269 |
|
| 15270 |
fi |
| 15271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
| 15272 |
$as_echo "$am_cv_func_iconv" >&6; } |
| 15273 |
if test "$am_cv_func_iconv" = yes; then |
| 15274 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 15275 |
$as_echo_n "checking for working iconv... " >&6; } |
| 15276 |
if ${am_cv_func_iconv_works+:} false; then : |
| 15277 |
$as_echo_n "(cached) " >&6 |
| 15278 |
else |
| 15279 |
|
| 15280 |
am_save_LIBS="$LIBS" |
| 15281 |
if test $am_cv_lib_iconv = yes; then |
| 15282 |
LIBS="$LIBS $LIBICONV" |
| 15283 |
fi |
| 15284 |
if test "$cross_compiling" = yes; then : |
| 15285 |
|
| 15286 |
case "$host_os" in |
| 15287 |
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 15288 |
*) am_cv_func_iconv_works="guessing yes" ;; |
| 15289 |
esac |
| 15290 |
|
| 15291 |
else |
| 15292 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15293 |
/* end confdefs.h. */ |
| 15294 |
|
| 15295 |
#include <iconv.h> |
| 15296 |
#include <string.h> |
| 15297 |
int main () |
| 15298 |
{ |
| 15299 |
int result = 0; |
| 15300 |
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 15301 |
returns. */ |
| 15302 |
{ |
| 15303 |
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 15304 |
if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 15305 |
{ |
| 15306 |
static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 15307 |
char buf[10]; |
| 15308 |
const char *inptr = input; |
| 15309 |
size_t inbytesleft = strlen (input); |
| 15310 |
char *outptr = buf; |
| 15311 |
size_t outbytesleft = sizeof (buf); |
| 15312 |
size_t res = iconv (cd_utf8_to_88591, |
| 15313 |
(char **) &inptr, &inbytesleft, |
| 15314 |
&outptr, &outbytesleft); |
| 15315 |
if (res == 0) |
| 15316 |
result |= 1; |
| 15317 |
iconv_close (cd_utf8_to_88591); |
| 15318 |
} |
| 15319 |
} |
| 15320 |
/* Test against Solaris 10 bug: Failures are not distinguishable from |
| 15321 |
successful returns. */ |
| 15322 |
{ |
| 15323 |
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 15324 |
if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 15325 |
{ |
| 15326 |
static const char input[] = "\263"; |
| 15327 |
char buf[10]; |
| 15328 |
const char *inptr = input; |
| 15329 |
size_t inbytesleft = strlen (input); |
| 15330 |
char *outptr = buf; |
| 15331 |
size_t outbytesleft = sizeof (buf); |
| 15332 |
size_t res = iconv (cd_ascii_to_88591, |
| 15333 |
(char **) &inptr, &inbytesleft, |
| 15334 |
&outptr, &outbytesleft); |
| 15335 |
if (res == 0) |
| 15336 |
result |= 2; |
| 15337 |
iconv_close (cd_ascii_to_88591); |
| 15338 |
} |
| 15339 |
} |
| 15340 |
/* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 15341 |
{ |
| 15342 |
iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 15343 |
if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 15344 |
{ |
| 15345 |
static const char input[] = "\304"; |
| 15346 |
static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 15347 |
const char *inptr = input; |
| 15348 |
size_t inbytesleft = 1; |
| 15349 |
char *outptr = buf; |
| 15350 |
size_t outbytesleft = 1; |
| 15351 |
size_t res = iconv (cd_88591_to_utf8, |
| 15352 |
(char **) &inptr, &inbytesleft, |
| 15353 |
&outptr, &outbytesleft); |
| 15354 |
if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 15355 |
result |= 4; |
| 15356 |
iconv_close (cd_88591_to_utf8); |
| 15357 |
} |
| 15358 |
} |
| 15359 |
#if 0 /* This bug could be worked around by the caller. */ |
| 15360 |
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 15361 |
{ |
| 15362 |
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 15363 |
if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 15364 |
{ |
| 15365 |
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 15366 |
char buf[50]; |
| 15367 |
const char *inptr = input; |
| 15368 |
size_t inbytesleft = strlen (input); |
| 15369 |
char *outptr = buf; |
| 15370 |
size_t outbytesleft = sizeof (buf); |
| 15371 |
size_t res = iconv (cd_88591_to_utf8, |
| 15372 |
(char **) &inptr, &inbytesleft, |
| 15373 |
&outptr, &outbytesleft); |
| 15374 |
if ((int)res > 0) |
| 15375 |
result |= 8; |
| 15376 |
iconv_close (cd_88591_to_utf8); |
| 15377 |
} |
| 15378 |
} |
| 15379 |
#endif |
| 15380 |
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 15381 |
provided. */ |
| 15382 |
if (/* Try standardized names. */ |
| 15383 |
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 15384 |
/* Try IRIX, OSF/1 names. */ |
| 15385 |
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 15386 |
/* Try AIX names. */ |
| 15387 |
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 15388 |
/* Try HP-UX names. */ |
| 15389 |
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 15390 |
result |= 16; |
| 15391 |
return result; |
| 15392 |
} |
| 15393 |
_ACEOF |
| 15394 |
if ac_fn_c_try_run "$LINENO"; then : |
| 15395 |
am_cv_func_iconv_works=yes |
| 15396 |
else |
| 15397 |
am_cv_func_iconv_works=no |
| 15398 |
fi |
| 15399 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15400 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15401 |
fi |
| 15402 |
|
| 15403 |
LIBS="$am_save_LIBS" |
| 15404 |
|
| 15405 |
fi |
| 15406 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 15407 |
$as_echo "$am_cv_func_iconv_works" >&6; } |
| 15408 |
case "$am_cv_func_iconv_works" in |
| 15409 |
*no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 15410 |
*) am_func_iconv=yes ;; |
| 15411 |
esac |
| 15412 |
else |
| 15413 |
am_func_iconv=no am_cv_lib_iconv=no |
| 15414 |
fi |
| 15415 |
if test "$am_func_iconv" = yes; then |
| 15416 |
|
| 15417 |
$as_echo "#define HAVE_ICONV 1" >>confdefs.h |
| 15418 |
|
| 15419 |
fi |
| 15420 |
if test "$am_cv_lib_iconv" = yes; then |
| 15421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
| 15422 |
$as_echo_n "checking how to link with libiconv... " >&6; } |
| 15423 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
| 15424 |
$as_echo "$LIBICONV" >&6; } |
| 15425 |
else |
| 15426 |
CPPFLAGS="$am_save_CPPFLAGS" |
| 15427 |
LIBICONV= |
| 15428 |
LTLIBICONV= |
| 15429 |
fi |
| 15430 |
|
| 15431 |
|
| 15432 |
|
| 15433 |
|
| 15434 |
|
| 15435 |
|
| 15436 |
|
| 15437 |
|
| 15438 |
|
| 15439 |
|
| 15440 |
|
| 15441 |
use_additional=yes |
| 15442 |
|
| 15443 |
acl_save_prefix="$prefix" |
| 15444 |
prefix="$acl_final_prefix" |
| 15445 |
acl_save_exec_prefix="$exec_prefix" |
| 15446 |
exec_prefix="$acl_final_exec_prefix" |
| 15447 |
|
| 15448 |
eval additional_includedir=\"$includedir\" |
| 15449 |
eval additional_libdir=\"$libdir\" |
| 15450 |
|
| 15451 |
exec_prefix="$acl_save_exec_prefix" |
| 15452 |
prefix="$acl_save_prefix" |
| 15453 |
|
| 15454 |
|
| 15455 |
# Check whether --with-libintl-prefix was given. |
| 15456 |
if test "${with_libintl_prefix+set}" = set; then : |
| 15457 |
withval=$with_libintl_prefix; |
| 15458 |
if test "X$withval" = "Xno"; then |
| 15459 |
use_additional=no |
| 15460 |
else |
| 15461 |
if test "X$withval" = "X"; then |
| 15462 |
|
| 15463 |
acl_save_prefix="$prefix" |
| 15464 |
prefix="$acl_final_prefix" |
| 15465 |
acl_save_exec_prefix="$exec_prefix" |
| 15466 |
exec_prefix="$acl_final_exec_prefix" |
| 15467 |
|
| 15468 |
eval additional_includedir=\"$includedir\" |
| 15469 |
eval additional_libdir=\"$libdir\" |
| 15470 |
|
| 15471 |
exec_prefix="$acl_save_exec_prefix" |
| 15472 |
prefix="$acl_save_prefix" |
| 15473 |
|
| 15474 |
else |
| 15475 |
additional_includedir="$withval/include" |
| 15476 |
additional_libdir="$withval/$acl_libdirstem" |
| 15477 |
if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 15478 |
&& ! test -d "$withval/$acl_libdirstem"; then |
| 15479 |
additional_libdir="$withval/$acl_libdirstem2" |
| 15480 |
fi |
| 15481 |
fi |
| 15482 |
fi |
| 15483 |
|
| 15484 |
fi |
| 15485 |
|
| 15486 |
LIBINTL= |
| 15487 |
LTLIBINTL= |
| 15488 |
INCINTL= |
| 15489 |
LIBINTL_PREFIX= |
| 15490 |
HAVE_LIBINTL= |
| 15491 |
rpathdirs= |
| 15492 |
ltrpathdirs= |
| 15493 |
names_already_handled= |
| 15494 |
names_next_round='intl ' |
| 15495 |
while test -n "$names_next_round"; do |
| 15496 |
names_this_round="$names_next_round" |
| 15497 |
names_next_round= |
| 15498 |
for name in $names_this_round; do |
| 15499 |
already_handled= |
| 15500 |
for n in $names_already_handled; do |
| 15501 |
if test "$n" = "$name"; then |
| 15502 |
already_handled=yes |
| 15503 |
break |
| 15504 |
fi |
| 15505 |
done |
| 15506 |
if test -z "$already_handled"; then |
| 15507 |
names_already_handled="$names_already_handled $name" |
| 15508 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 15509 |
eval value=\"\$HAVE_LIB$uppername\" |
| 15510 |
if test -n "$value"; then |
| 15511 |
if test "$value" = yes; then |
| 15512 |
eval value=\"\$LIB$uppername\" |
| 15513 |
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 15514 |
eval value=\"\$LTLIB$uppername\" |
| 15515 |
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 15516 |
else |
| 15517 |
: |
| 15518 |
fi |
| 15519 |
else |
| 15520 |
found_dir= |
| 15521 |
found_la= |
| 15522 |
found_so= |
| 15523 |
found_a= |
| 15524 |
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 15525 |
if test -n "$acl_shlibext"; then |
| 15526 |
shrext=".$acl_shlibext" # typically: shrext=.so |
| 15527 |
else |
| 15528 |
shrext= |
| 15529 |
fi |
| 15530 |
if test $use_additional = yes; then |
| 15531 |
dir="$additional_libdir" |
| 15532 |
if test -n "$acl_shlibext"; then |
| 15533 |
if test -f "$dir/$libname$shrext"; then |
| 15534 |
found_dir="$dir" |
| 15535 |
found_so="$dir/$libname$shrext" |
| 15536 |
else |
| 15537 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 15538 |
ver=`(cd "$dir" && \ |
| 15539 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 15540 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 15541 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 15542 |
| sed 1q ) 2>/dev/null` |
| 15543 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 15544 |
found_dir="$dir" |
| 15545 |
found_so="$dir/$libname$shrext.$ver" |
| 15546 |
fi |
| 15547 |
else |
| 15548 |
eval library_names=\"$acl_library_names_spec\" |
| 15549 |
for f in $library_names; do |
| 15550 |
if test -f "$dir/$f"; then |
| 15551 |
found_dir="$dir" |
| 15552 |
found_so="$dir/$f" |
| 15553 |
break |
| 15554 |
fi |
| 15555 |
done |
| 15556 |
fi |
| 15557 |
fi |
| 15558 |
fi |
| 15559 |
if test "X$found_dir" = "X"; then |
| 15560 |
if test -f "$dir/$libname.$acl_libext"; then |
| 15561 |
found_dir="$dir" |
| 15562 |
found_a="$dir/$libname.$acl_libext" |
| 15563 |
fi |
| 15564 |
fi |
| 15565 |
if test "X$found_dir" != "X"; then |
| 15566 |
if test -f "$dir/$libname.la"; then |
| 15567 |
found_la="$dir/$libname.la" |
| 15568 |
fi |
| 15569 |
fi |
| 15570 |
fi |
| 15571 |
if test "X$found_dir" = "X"; then |
| 15572 |
for x in $LDFLAGS $LTLIBINTL; do |
| 15573 |
|
| 15574 |
acl_save_prefix="$prefix" |
| 15575 |
prefix="$acl_final_prefix" |
| 15576 |
acl_save_exec_prefix="$exec_prefix" |
| 15577 |
exec_prefix="$acl_final_exec_prefix" |
| 15578 |
eval x=\"$x\" |
| 15579 |
exec_prefix="$acl_save_exec_prefix" |
| 15580 |
prefix="$acl_save_prefix" |
| 15581 |
|
| 15582 |
case "$x" in |
| 15583 |
-L*) |
| 15584 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 15585 |
if test -n "$acl_shlibext"; then |
| 15586 |
if test -f "$dir/$libname$shrext"; then |
| 15587 |
found_dir="$dir" |
| 15588 |
found_so="$dir/$libname$shrext" |
| 15589 |
else |
| 15590 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 15591 |
ver=`(cd "$dir" && \ |
| 15592 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 15593 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 15594 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 15595 |
| sed 1q ) 2>/dev/null` |
| 15596 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 15597 |
found_dir="$dir" |
| 15598 |
found_so="$dir/$libname$shrext.$ver" |
| 15599 |
fi |
| 15600 |
else |
| 15601 |
eval library_names=\"$acl_library_names_spec\" |
| 15602 |
for f in $library_names; do |
| 15603 |
if test -f "$dir/$f"; then |
| 15604 |
found_dir="$dir" |
| 15605 |
found_so="$dir/$f" |
| 15606 |
break |
| 15607 |
fi |
| 15608 |
done |
| 15609 |
fi |
| 15610 |
fi |
| 15611 |
fi |
| 15612 |
if test "X$found_dir" = "X"; then |
| 15613 |
if test -f "$dir/$libname.$acl_libext"; then |
| 15614 |
found_dir="$dir" |
| 15615 |
found_a="$dir/$libname.$acl_libext" |
| 15616 |
fi |
| 15617 |
fi |
| 15618 |
if test "X$found_dir" != "X"; then |
| 15619 |
if test -f "$dir/$libname.la"; then |
| 15620 |
found_la="$dir/$libname.la" |
| 15621 |
fi |
| 15622 |
fi |
| 15623 |
;; |
| 15624 |
esac |
| 15625 |
if test "X$found_dir" != "X"; then |
| 15626 |
break |
| 15627 |
fi |
| 15628 |
done |
| 15629 |
fi |
| 15630 |
if test "X$found_dir" != "X"; then |
| 15631 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 15632 |
if test "X$found_so" != "X"; then |
| 15633 |
if test "$enable_rpath" = no \ |
| 15634 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 15635 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 15636 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 15637 |
else |
| 15638 |
haveit= |
| 15639 |
for x in $ltrpathdirs; do |
| 15640 |
if test "X$x" = "X$found_dir"; then |
| 15641 |
haveit=yes |
| 15642 |
break |
| 15643 |
fi |
| 15644 |
done |
| 15645 |
if test -z "$haveit"; then |
| 15646 |
ltrpathdirs="$ltrpathdirs $found_dir" |
| 15647 |
fi |
| 15648 |
if test "$acl_hardcode_direct" = yes; then |
| 15649 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 15650 |
else |
| 15651 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 15652 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 15653 |
haveit= |
| 15654 |
for x in $rpathdirs; do |
| 15655 |
if test "X$x" = "X$found_dir"; then |
| 15656 |
haveit=yes |
| 15657 |
break |
| 15658 |
fi |
| 15659 |
done |
| 15660 |
if test -z "$haveit"; then |
| 15661 |
rpathdirs="$rpathdirs $found_dir" |
| 15662 |
fi |
| 15663 |
else |
| 15664 |
haveit= |
| 15665 |
for x in $LDFLAGS $LIBINTL; do |
| 15666 |
|
| 15667 |
acl_save_prefix="$prefix" |
| 15668 |
prefix="$acl_final_prefix" |
| 15669 |
acl_save_exec_prefix="$exec_prefix" |
| 15670 |
exec_prefix="$acl_final_exec_prefix" |
| 15671 |
eval x=\"$x\" |
| 15672 |
exec_prefix="$acl_save_exec_prefix" |
| 15673 |
prefix="$acl_save_prefix" |
| 15674 |
|
| 15675 |
if test "X$x" = "X-L$found_dir"; then |
| 15676 |
haveit=yes |
| 15677 |
break |
| 15678 |
fi |
| 15679 |
done |
| 15680 |
if test -z "$haveit"; then |
| 15681 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 15682 |
fi |
| 15683 |
if test "$acl_hardcode_minus_L" != no; then |
| 15684 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 15685 |
else |
| 15686 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 15687 |
fi |
| 15688 |
fi |
| 15689 |
fi |
| 15690 |
fi |
| 15691 |
else |
| 15692 |
if test "X$found_a" != "X"; then |
| 15693 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 15694 |
else |
| 15695 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 15696 |
fi |
| 15697 |
fi |
| 15698 |
additional_includedir= |
| 15699 |
case "$found_dir" in |
| 15700 |
*/$acl_libdirstem | */$acl_libdirstem/) |
| 15701 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 15702 |
if test "$name" = 'intl'; then |
| 15703 |
LIBINTL_PREFIX="$basedir" |
| 15704 |
fi |
| 15705 |
additional_includedir="$basedir/include" |
| 15706 |
;; |
| 15707 |
*/$acl_libdirstem2 | */$acl_libdirstem2/) |
| 15708 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 15709 |
if test "$name" = 'intl'; then |
| 15710 |
LIBINTL_PREFIX="$basedir" |
| 15711 |
fi |
| 15712 |
additional_includedir="$basedir/include" |
| 15713 |
;; |
| 15714 |
esac |
| 15715 |
if test "X$additional_includedir" != "X"; then |
| 15716 |
if test "X$additional_includedir" != "X/usr/include"; then |
| 15717 |
haveit= |
| 15718 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
| 15719 |
if test -n "$GCC"; then |
| 15720 |
case $host_os in |
| 15721 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 15722 |
esac |
| 15723 |
fi |
| 15724 |
fi |
| 15725 |
if test -z "$haveit"; then |
| 15726 |
for x in $CPPFLAGS $INCINTL; do |
| 15727 |
|
| 15728 |
acl_save_prefix="$prefix" |
| 15729 |
prefix="$acl_final_prefix" |
| 15730 |
acl_save_exec_prefix="$exec_prefix" |
| 15731 |
exec_prefix="$acl_final_exec_prefix" |
| 15732 |
eval x=\"$x\" |
| 15733 |
exec_prefix="$acl_save_exec_prefix" |
| 15734 |
prefix="$acl_save_prefix" |
| 15735 |
|
| 15736 |
if test "X$x" = "X-I$additional_includedir"; then |
| 15737 |
haveit=yes |
| 15738 |
break |
| 15739 |
fi |
| 15740 |
done |
| 15741 |
if test -z "$haveit"; then |
| 15742 |
if test -d "$additional_includedir"; then |
| 15743 |
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 15744 |
fi |
| 15745 |
fi |
| 15746 |
fi |
| 15747 |
fi |
| 15748 |
fi |
| 15749 |
if test -n "$found_la"; then |
| 15750 |
save_libdir="$libdir" |
| 15751 |
case "$found_la" in |
| 15752 |
*/* | *\\*) . "$found_la" ;; |
| 15753 |
*) . "./$found_la" ;; |
| 15754 |
esac |
| 15755 |
libdir="$save_libdir" |
| 15756 |
for dep in $dependency_libs; do |
| 15757 |
case "$dep" in |
| 15758 |
-L*) |
| 15759 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 15760 |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 15761 |
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 15762 |
haveit= |
| 15763 |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 15764 |
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 15765 |
if test -n "$GCC"; then |
| 15766 |
case $host_os in |
| 15767 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 15768 |
esac |
| 15769 |
fi |
| 15770 |
fi |
| 15771 |
if test -z "$haveit"; then |
| 15772 |
haveit= |
| 15773 |
for x in $LDFLAGS $LIBINTL; do |
| 15774 |
|
| 15775 |
acl_save_prefix="$prefix" |
| 15776 |
prefix="$acl_final_prefix" |
| 15777 |
acl_save_exec_prefix="$exec_prefix" |
| 15778 |
exec_prefix="$acl_final_exec_prefix" |
| 15779 |
eval x=\"$x\" |
| 15780 |
exec_prefix="$acl_save_exec_prefix" |
| 15781 |
prefix="$acl_save_prefix" |
| 15782 |
|
| 15783 |
if test "X$x" = "X-L$additional_libdir"; then |
| 15784 |
haveit=yes |
| 15785 |
break |
| 15786 |
fi |
| 15787 |
done |
| 15788 |
if test -z "$haveit"; then |
| 15789 |
if test -d "$additional_libdir"; then |
| 15790 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 15791 |
fi |
| 15792 |
fi |
| 15793 |
haveit= |
| 15794 |
for x in $LDFLAGS $LTLIBINTL; do |
| 15795 |
|
| 15796 |
acl_save_prefix="$prefix" |
| 15797 |
prefix="$acl_final_prefix" |
| 15798 |
acl_save_exec_prefix="$exec_prefix" |
| 15799 |
exec_prefix="$acl_final_exec_prefix" |
| 15800 |
eval x=\"$x\" |
| 15801 |
exec_prefix="$acl_save_exec_prefix" |
| 15802 |
prefix="$acl_save_prefix" |
| 15803 |
|
| 15804 |
if test "X$x" = "X-L$additional_libdir"; then |
| 15805 |
haveit=yes |
| 15806 |
break |
| 15807 |
fi |
| 15808 |
done |
| 15809 |
if test -z "$haveit"; then |
| 15810 |
if test -d "$additional_libdir"; then |
| 15811 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 15812 |
fi |
| 15813 |
fi |
| 15814 |
fi |
| 15815 |
fi |
| 15816 |
;; |
| 15817 |
-R*) |
| 15818 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 15819 |
if test "$enable_rpath" != no; then |
| 15820 |
haveit= |
| 15821 |
for x in $rpathdirs; do |
| 15822 |
if test "X$x" = "X$dir"; then |
| 15823 |
haveit=yes |
| 15824 |
break |
| 15825 |
fi |
| 15826 |
done |
| 15827 |
if test -z "$haveit"; then |
| 15828 |
rpathdirs="$rpathdirs $dir" |
| 15829 |
fi |
| 15830 |
haveit= |
| 15831 |
for x in $ltrpathdirs; do |
| 15832 |
if test "X$x" = "X$dir"; then |
| 15833 |
haveit=yes |
| 15834 |
break |
| 15835 |
fi |
| 15836 |
done |
| 15837 |
if test -z "$haveit"; then |
| 15838 |
ltrpathdirs="$ltrpathdirs $dir" |
| 15839 |
fi |
| 15840 |
fi |
| 15841 |
;; |
| 15842 |
-l*) |
| 15843 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 15844 |
;; |
| 15845 |
*.la) |
| 15846 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 15847 |
;; |
| 15848 |
*) |
| 15849 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 15850 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 15851 |
;; |
| 15852 |
esac |
| 15853 |
done |
| 15854 |
fi |
| 15855 |
else |
| 15856 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 15857 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 15858 |
fi |
| 15859 |
fi |
| 15860 |
fi |
| 15861 |
done |
| 15862 |
done |
| 15863 |
if test "X$rpathdirs" != "X"; then |
| 15864 |
if test -n "$acl_hardcode_libdir_separator"; then |
| 15865 |
alldirs= |
| 15866 |
for found_dir in $rpathdirs; do |
| 15867 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 15868 |
done |
| 15869 |
acl_save_libdir="$libdir" |
| 15870 |
libdir="$alldirs" |
| 15871 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 15872 |
libdir="$acl_save_libdir" |
| 15873 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 15874 |
else |
| 15875 |
for found_dir in $rpathdirs; do |
| 15876 |
acl_save_libdir="$libdir" |
| 15877 |
libdir="$found_dir" |
| 15878 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 15879 |
libdir="$acl_save_libdir" |
| 15880 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 15881 |
done |
| 15882 |
fi |
| 15883 |
fi |
| 15884 |
if test "X$ltrpathdirs" != "X"; then |
| 15885 |
for found_dir in $ltrpathdirs; do |
| 15886 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 15887 |
done |
| 15888 |
fi |
| 15889 |
|
| 15890 |
|
| 15891 |
|
| 15892 |
|
| 15893 |
|
| 15894 |
|
| 15895 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
| 15896 |
$as_echo_n "checking for GNU gettext in libintl... " >&6; } |
| 15897 |
if eval \${$gt_func_gnugettext_libintl+:} false; then : |
| 15898 |
$as_echo_n "(cached) " >&6 |
| 15899 |
else |
| 15900 |
gt_save_CPPFLAGS="$CPPFLAGS" |
| 15901 |
CPPFLAGS="$CPPFLAGS $INCINTL" |
| 15902 |
gt_save_LIBS="$LIBS" |
| 15903 |
LIBS="$LIBS $LIBINTL" |
| 15904 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15905 |
/* end confdefs.h. */ |
| 15906 |
|
| 15907 |
#include <libintl.h> |
| 15908 |
$gt_revision_test_code |
| 15909 |
extern int _nl_msg_cat_cntr; |
| 15910 |
extern |
| 15911 |
#ifdef __cplusplus |
| 15912 |
"C" |
| 15913 |
#endif |
| 15914 |
const char *_nl_expand_alias (const char *); |
| 15915 |
|
| 15916 |
int |
| 15917 |
main () |
| 15918 |
{ |
| 15919 |
|
| 15920 |
bindtextdomain ("", ""); |
| 15921 |
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 15922 |
|
| 15923 |
; |
| 15924 |
return 0; |
| 15925 |
} |
| 15926 |
_ACEOF |
| 15927 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15928 |
eval "$gt_func_gnugettext_libintl=yes" |
| 15929 |
else |
| 15930 |
eval "$gt_func_gnugettext_libintl=no" |
| 15931 |
fi |
| 15932 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15933 |
conftest$ac_exeext conftest.$ac_ext |
| 15934 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
| 15935 |
LIBS="$LIBS $LIBICONV" |
| 15936 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15937 |
/* end confdefs.h. */ |
| 15938 |
|
| 15939 |
#include <libintl.h> |
| 15940 |
$gt_revision_test_code |
| 15941 |
extern int _nl_msg_cat_cntr; |
| 15942 |
extern |
| 15943 |
#ifdef __cplusplus |
| 15944 |
"C" |
| 15945 |
#endif |
| 15946 |
const char *_nl_expand_alias (const char *); |
| 15947 |
|
| 15948 |
int |
| 15949 |
main () |
| 15950 |
{ |
| 15951 |
|
| 15952 |
bindtextdomain ("", ""); |
| 15953 |
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 15954 |
|
| 15955 |
; |
| 15956 |
return 0; |
| 15957 |
} |
| 15958 |
_ACEOF |
| 15959 |
if ac_fn_c_try_link "$LINENO"; then : |
| 15960 |
LIBINTL="$LIBINTL $LIBICONV" |
| 15961 |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 15962 |
eval "$gt_func_gnugettext_libintl=yes" |
| 15963 |
|
| 15964 |
fi |
| 15965 |
rm -f core conftest.err conftest.$ac_objext \ |
| 15966 |
conftest$ac_exeext conftest.$ac_ext |
| 15967 |
fi |
| 15968 |
CPPFLAGS="$gt_save_CPPFLAGS" |
| 15969 |
LIBS="$gt_save_LIBS" |
| 15970 |
fi |
| 15971 |
eval ac_res=\$$gt_func_gnugettext_libintl |
| 15972 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 15973 |
$as_echo "$ac_res" >&6; } |
| 15974 |
fi |
| 15975 |
|
| 15976 |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 15977 |
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
| 15978 |
&& test "$PACKAGE" != gettext-runtime \ |
| 15979 |
&& test "$PACKAGE" != gettext-tools; }; then |
| 15980 |
gt_use_preinstalled_gnugettext=yes |
| 15981 |
else |
| 15982 |
LIBINTL= |
| 15983 |
LTLIBINTL= |
| 15984 |
INCINTL= |
| 15985 |
fi |
| 15986 |
|
| 15987 |
|
| 15988 |
|
| 15989 |
if test -n "$INTL_MACOSX_LIBS"; then |
| 15990 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 15991 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 15992 |
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 15993 |
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 15994 |
fi |
| 15995 |
fi |
| 15996 |
|
| 15997 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 15998 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 15999 |
|
| 16000 |
$as_echo "#define ENABLE_NLS 1" >>confdefs.h |
| 16001 |
|
| 16002 |
else |
| 16003 |
USE_NLS=no |
| 16004 |
fi |
| 16005 |
fi |
| 16006 |
|
| 16007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
| 16008 |
$as_echo_n "checking whether to use NLS... " >&6; } |
| 16009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 16010 |
$as_echo "$USE_NLS" >&6; } |
| 16011 |
if test "$USE_NLS" = "yes"; then |
| 16012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
| 16013 |
$as_echo_n "checking where the gettext function comes from... " >&6; } |
| 16014 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 16015 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 16016 |
gt_source="external libintl" |
| 16017 |
else |
| 16018 |
gt_source="libc" |
| 16019 |
fi |
| 16020 |
else |
| 16021 |
gt_source="included intl directory" |
| 16022 |
fi |
| 16023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
| 16024 |
$as_echo "$gt_source" >&6; } |
| 16025 |
fi |
| 16026 |
|
| 16027 |
if test "$USE_NLS" = "yes"; then |
| 16028 |
|
| 16029 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 16030 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 16031 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
| 16032 |
$as_echo_n "checking how to link with libintl... " >&6; } |
| 16033 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
| 16034 |
$as_echo "$LIBINTL" >&6; } |
| 16035 |
|
| 16036 |
for element in $INCINTL; do |
| 16037 |
haveit= |
| 16038 |
for x in $CPPFLAGS; do |
| 16039 |
|
| 16040 |
acl_save_prefix="$prefix" |
| 16041 |
prefix="$acl_final_prefix" |
| 16042 |
acl_save_exec_prefix="$exec_prefix" |
| 16043 |
exec_prefix="$acl_final_exec_prefix" |
| 16044 |
eval x=\"$x\" |
| 16045 |
exec_prefix="$acl_save_exec_prefix" |
| 16046 |
prefix="$acl_save_prefix" |
| 16047 |
|
| 16048 |
if test "X$x" = "X$element"; then |
| 16049 |
haveit=yes |
| 16050 |
break |
| 16051 |
fi |
| 16052 |
done |
| 16053 |
if test -z "$haveit"; then |
| 16054 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 16055 |
fi |
| 16056 |
done |
| 16057 |
|
| 16058 |
fi |
| 16059 |
|
| 16060 |
|
| 16061 |
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
| 16062 |
|
| 16063 |
|
| 16064 |
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
| 16065 |
|
| 16066 |
fi |
| 16067 |
|
| 16068 |
POSUB=po |
| 16069 |
fi |
| 16070 |
|
| 16071 |
|
| 16072 |
|
| 16073 |
INTLLIBS="$LIBINTL" |
| 16074 |
|
| 16075 |
|
| 16076 |
|
| 16077 |
|
| 16078 |
|
| 16079 |
|
| 16080 |
|
| 16081 |
|
| 16082 |
|
| 16083 |
|
| 16084 |
|
| 16085 |
|
| 16086 |
|
| 16087 |
LIBC_FATAL_STDERR_=1 |
| 16088 |
export LIBC_FATAL_STDERR_ |
| 16089 |
|
| 16090 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 16091 |
if test "x$ac_cv_type_size_t" = xyes; then : |
| 16092 |
|
| 16093 |
else |
| 16094 |
|
| 16095 |
cat >>confdefs.h <<_ACEOF |
| 16096 |
#define size_t unsigned int |
| 16097 |
_ACEOF |
| 16098 |
|
| 16099 |
fi |
| 16100 |
|
| 16101 |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 16102 |
# for constant arguments. Useless! |
| 16103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 16104 |
$as_echo_n "checking for working alloca.h... " >&6; } |
| 16105 |
if ${ac_cv_working_alloca_h+:} false; then : |
| 16106 |
$as_echo_n "(cached) " >&6 |
| 16107 |
else |
| 16108 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16109 |
/* end confdefs.h. */ |
| 16110 |
#include <alloca.h> |
| 16111 |
int |
| 16112 |
main () |
| 16113 |
{ |
| 16114 |
char *p = (char *) alloca (2 * sizeof (int)); |
| 16115 |
if (p) return 0; |
| 16116 |
; |
| 16117 |
return 0; |
| 16118 |
} |
| 16119 |
_ACEOF |
| 16120 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16121 |
ac_cv_working_alloca_h=yes |
| 16122 |
else |
| 16123 |
ac_cv_working_alloca_h=no |
| 16124 |
fi |
| 16125 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16126 |
conftest$ac_exeext conftest.$ac_ext |
| 16127 |
fi |
| 16128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 16129 |
$as_echo "$ac_cv_working_alloca_h" >&6; } |
| 16130 |
if test $ac_cv_working_alloca_h = yes; then |
| 16131 |
|
| 16132 |
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 16133 |
|
| 16134 |
fi |
| 16135 |
|
| 16136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 16137 |
$as_echo_n "checking for alloca... " >&6; } |
| 16138 |
if ${ac_cv_func_alloca_works+:} false; then : |
| 16139 |
$as_echo_n "(cached) " >&6 |
| 16140 |
else |
| 16141 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16142 |
/* end confdefs.h. */ |
| 16143 |
#ifdef __GNUC__ |
| 16144 |
# define alloca __builtin_alloca |
| 16145 |
#else |
| 16146 |
# ifdef _MSC_VER |
| 16147 |
# include <malloc.h> |
| 16148 |
# define alloca _alloca |
| 16149 |
# else |
| 16150 |
# ifdef HAVE_ALLOCA_H |
| 16151 |
# include <alloca.h> |
| 16152 |
# else |
| 16153 |
# ifdef _AIX |
| 16154 |
#pragma alloca |
| 16155 |
# else |
| 16156 |
# ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 16157 |
void *alloca (size_t); |
| 16158 |
# endif |
| 16159 |
# endif |
| 16160 |
# endif |
| 16161 |
# endif |
| 16162 |
#endif |
| 16163 |
|
| 16164 |
int |
| 16165 |
main () |
| 16166 |
{ |
| 16167 |
char *p = (char *) alloca (1); |
| 16168 |
if (p) return 0; |
| 16169 |
; |
| 16170 |
return 0; |
| 16171 |
} |
| 16172 |
_ACEOF |
| 16173 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16174 |
ac_cv_func_alloca_works=yes |
| 16175 |
else |
| 16176 |
ac_cv_func_alloca_works=no |
| 16177 |
fi |
| 16178 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16179 |
conftest$ac_exeext conftest.$ac_ext |
| 16180 |
fi |
| 16181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 16182 |
$as_echo "$ac_cv_func_alloca_works" >&6; } |
| 16183 |
|
| 16184 |
if test $ac_cv_func_alloca_works = yes; then |
| 16185 |
|
| 16186 |
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 16187 |
|
| 16188 |
else |
| 16189 |
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 16190 |
# that cause trouble. Some versions do not even contain alloca or |
| 16191 |
# contain a buggy version. If you still want to use their alloca, |
| 16192 |
# use ar to extract alloca.o from them instead of compiling alloca.c. |
| 16193 |
|
| 16194 |
|
| 16195 |
|
| 16196 |
|
| 16197 |
|
| 16198 |
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 16199 |
|
| 16200 |
$as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 16201 |
|
| 16202 |
|
| 16203 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 16204 |
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
| 16205 |
if ${ac_cv_os_cray+:} false; then : |
| 16206 |
$as_echo_n "(cached) " >&6 |
| 16207 |
else |
| 16208 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16209 |
/* end confdefs.h. */ |
| 16210 |
#if defined CRAY && ! defined CRAY2 |
| 16211 |
webecray |
| 16212 |
#else |
| 16213 |
wenotbecray |
| 16214 |
#endif |
| 16215 |
|
| 16216 |
_ACEOF |
| 16217 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16218 |
$EGREP "webecray" >/dev/null 2>&1; then : |
| 16219 |
ac_cv_os_cray=yes |
| 16220 |
else |
| 16221 |
ac_cv_os_cray=no |
| 16222 |
fi |
| 16223 |
rm -f conftest* |
| 16224 |
|
| 16225 |
fi |
| 16226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 16227 |
$as_echo "$ac_cv_os_cray" >&6; } |
| 16228 |
if test $ac_cv_os_cray = yes; then |
| 16229 |
for ac_func in _getb67 GETB67 getb67; do |
| 16230 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16231 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 16232 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 16233 |
|
| 16234 |
cat >>confdefs.h <<_ACEOF |
| 16235 |
#define CRAY_STACKSEG_END $ac_func |
| 16236 |
_ACEOF |
| 16237 |
|
| 16238 |
break |
| 16239 |
fi |
| 16240 |
|
| 16241 |
done |
| 16242 |
fi |
| 16243 |
|
| 16244 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 16245 |
$as_echo_n "checking stack direction for C alloca... " >&6; } |
| 16246 |
if ${ac_cv_c_stack_direction+:} false; then : |
| 16247 |
$as_echo_n "(cached) " >&6 |
| 16248 |
else |
| 16249 |
if test "$cross_compiling" = yes; then : |
| 16250 |
ac_cv_c_stack_direction=0 |
| 16251 |
else |
| 16252 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16253 |
/* end confdefs.h. */ |
| 16254 |
$ac_includes_default |
| 16255 |
int |
| 16256 |
find_stack_direction (int *addr, int depth) |
| 16257 |
{ |
| 16258 |
int dir, dummy = 0; |
| 16259 |
if (! addr) |
| 16260 |
addr = &dummy; |
| 16261 |
*addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 16262 |
dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 16263 |
return dir + dummy; |
| 16264 |
} |
| 16265 |
|
| 16266 |
int |
| 16267 |
main (int argc, char **argv) |
| 16268 |
{ |
| 16269 |
return find_stack_direction (0, argc + !argv + 20) < 0; |
| 16270 |
} |
| 16271 |
_ACEOF |
| 16272 |
if ac_fn_c_try_run "$LINENO"; then : |
| 16273 |
ac_cv_c_stack_direction=1 |
| 16274 |
else |
| 16275 |
ac_cv_c_stack_direction=-1 |
| 16276 |
fi |
| 16277 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16278 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16279 |
fi |
| 16280 |
|
| 16281 |
fi |
| 16282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 16283 |
$as_echo "$ac_cv_c_stack_direction" >&6; } |
| 16284 |
cat >>confdefs.h <<_ACEOF |
| 16285 |
#define STACK_DIRECTION $ac_cv_c_stack_direction |
| 16286 |
_ACEOF |
| 16287 |
|
| 16288 |
|
| 16289 |
fi |
| 16290 |
|
| 16291 |
|
| 16292 |
GNULIB__EXIT=0; |
| 16293 |
GNULIB_ATOLL=0; |
| 16294 |
GNULIB_CALLOC_POSIX=0; |
| 16295 |
GNULIB_CANONICALIZE_FILE_NAME=0; |
| 16296 |
GNULIB_GETLOADAVG=0; |
| 16297 |
GNULIB_GETSUBOPT=0; |
| 16298 |
GNULIB_GRANTPT=0; |
| 16299 |
GNULIB_MALLOC_POSIX=0; |
| 16300 |
GNULIB_MBTOWC=0; |
| 16301 |
GNULIB_MKDTEMP=0; |
| 16302 |
GNULIB_MKOSTEMP=0; |
| 16303 |
GNULIB_MKOSTEMPS=0; |
| 16304 |
GNULIB_MKSTEMP=0; |
| 16305 |
GNULIB_MKSTEMPS=0; |
| 16306 |
GNULIB_POSIX_OPENPT=0; |
| 16307 |
GNULIB_PTSNAME=0; |
| 16308 |
GNULIB_PTSNAME_R=0; |
| 16309 |
GNULIB_PUTENV=0; |
| 16310 |
GNULIB_RANDOM=0; |
| 16311 |
GNULIB_RANDOM_R=0; |
| 16312 |
GNULIB_REALLOC_POSIX=0; |
| 16313 |
GNULIB_REALPATH=0; |
| 16314 |
GNULIB_RPMATCH=0; |
| 16315 |
GNULIB_SECURE_GETENV=0; |
| 16316 |
GNULIB_SETENV=0; |
| 16317 |
GNULIB_STRTOD=0; |
| 16318 |
GNULIB_STRTOLL=0; |
| 16319 |
GNULIB_STRTOULL=0; |
| 16320 |
GNULIB_SYSTEM_POSIX=0; |
| 16321 |
GNULIB_UNLOCKPT=0; |
| 16322 |
GNULIB_UNSETENV=0; |
| 16323 |
GNULIB_WCTOMB=0; |
| 16324 |
HAVE__EXIT=1; |
| 16325 |
HAVE_ATOLL=1; |
| 16326 |
HAVE_CANONICALIZE_FILE_NAME=1; |
| 16327 |
HAVE_DECL_GETLOADAVG=1; |
| 16328 |
HAVE_GETSUBOPT=1; |
| 16329 |
HAVE_GRANTPT=1; |
| 16330 |
HAVE_MKDTEMP=1; |
| 16331 |
HAVE_MKOSTEMP=1; |
| 16332 |
HAVE_MKOSTEMPS=1; |
| 16333 |
HAVE_MKSTEMP=1; |
| 16334 |
HAVE_MKSTEMPS=1; |
| 16335 |
HAVE_POSIX_OPENPT=1; |
| 16336 |
HAVE_PTSNAME=1; |
| 16337 |
HAVE_PTSNAME_R=1; |
| 16338 |
HAVE_RANDOM=1; |
| 16339 |
HAVE_RANDOM_H=1; |
| 16340 |
HAVE_RANDOM_R=1; |
| 16341 |
HAVE_REALPATH=1; |
| 16342 |
HAVE_RPMATCH=1; |
| 16343 |
HAVE_SECURE_GETENV=1; |
| 16344 |
HAVE_SETENV=1; |
| 16345 |
HAVE_DECL_SETENV=1; |
| 16346 |
HAVE_STRTOD=1; |
| 16347 |
HAVE_STRTOLL=1; |
| 16348 |
HAVE_STRTOULL=1; |
| 16349 |
HAVE_STRUCT_RANDOM_DATA=1; |
| 16350 |
HAVE_SYS_LOADAVG_H=0; |
| 16351 |
HAVE_UNLOCKPT=1; |
| 16352 |
HAVE_DECL_UNSETENV=1; |
| 16353 |
REPLACE_CALLOC=0; |
| 16354 |
REPLACE_CANONICALIZE_FILE_NAME=0; |
| 16355 |
REPLACE_MALLOC=0; |
| 16356 |
REPLACE_MBTOWC=0; |
| 16357 |
REPLACE_MKSTEMP=0; |
| 16358 |
REPLACE_PTSNAME=0; |
| 16359 |
REPLACE_PTSNAME_R=0; |
| 16360 |
REPLACE_PUTENV=0; |
| 16361 |
REPLACE_RANDOM_R=0; |
| 16362 |
REPLACE_REALLOC=0; |
| 16363 |
REPLACE_REALPATH=0; |
| 16364 |
REPLACE_SETENV=0; |
| 16365 |
REPLACE_STRTOD=0; |
| 16366 |
REPLACE_UNSETENV=0; |
| 16367 |
REPLACE_WCTOMB=0; |
| 16368 |
|
| 16369 |
|
| 16370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 |
| 16371 |
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } |
| 16372 |
if ${gl_cv_func_malloc_posix+:} false; then : |
| 16373 |
$as_echo_n "(cached) " >&6 |
| 16374 |
else |
| 16375 |
|
| 16376 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16377 |
/* end confdefs.h. */ |
| 16378 |
|
| 16379 |
int |
| 16380 |
main () |
| 16381 |
{ |
| 16382 |
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 16383 |
choke me |
| 16384 |
#endif |
| 16385 |
|
| 16386 |
; |
| 16387 |
return 0; |
| 16388 |
} |
| 16389 |
_ACEOF |
| 16390 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16391 |
gl_cv_func_malloc_posix=yes |
| 16392 |
else |
| 16393 |
gl_cv_func_malloc_posix=no |
| 16394 |
fi |
| 16395 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16396 |
|
| 16397 |
fi |
| 16398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 |
| 16399 |
$as_echo "$gl_cv_func_malloc_posix" >&6; } |
| 16400 |
|
| 16401 |
|
| 16402 |
GNULIB_CHDIR=0; |
| 16403 |
GNULIB_CHOWN=0; |
| 16404 |
GNULIB_CLOSE=0; |
| 16405 |
GNULIB_DUP=0; |
| 16406 |
GNULIB_DUP2=0; |
| 16407 |
GNULIB_DUP3=0; |
| 16408 |
GNULIB_ENVIRON=0; |
| 16409 |
GNULIB_EUIDACCESS=0; |
| 16410 |
GNULIB_FACCESSAT=0; |
| 16411 |
GNULIB_FCHDIR=0; |
| 16412 |
GNULIB_FCHOWNAT=0; |
| 16413 |
GNULIB_FDATASYNC=0; |
| 16414 |
GNULIB_FSYNC=0; |
| 16415 |
GNULIB_FTRUNCATE=0; |
| 16416 |
GNULIB_GETCWD=0; |
| 16417 |
GNULIB_GETDOMAINNAME=0; |
| 16418 |
GNULIB_GETDTABLESIZE=0; |
| 16419 |
GNULIB_GETGROUPS=0; |
| 16420 |
GNULIB_GETHOSTNAME=0; |
| 16421 |
GNULIB_GETLOGIN=0; |
| 16422 |
GNULIB_GETLOGIN_R=0; |
| 16423 |
GNULIB_GETPAGESIZE=0; |
| 16424 |
GNULIB_GETUSERSHELL=0; |
| 16425 |
GNULIB_GROUP_MEMBER=0; |
| 16426 |
GNULIB_ISATTY=0; |
| 16427 |
GNULIB_LCHOWN=0; |
| 16428 |
GNULIB_LINK=0; |
| 16429 |
GNULIB_LINKAT=0; |
| 16430 |
GNULIB_LSEEK=0; |
| 16431 |
GNULIB_PIPE=0; |
| 16432 |
GNULIB_PIPE2=0; |
| 16433 |
GNULIB_PREAD=0; |
| 16434 |
GNULIB_PWRITE=0; |
| 16435 |
GNULIB_READ=0; |
| 16436 |
GNULIB_READLINK=0; |
| 16437 |
GNULIB_READLINKAT=0; |
| 16438 |
GNULIB_RMDIR=0; |
| 16439 |
GNULIB_SETHOSTNAME=0; |
| 16440 |
GNULIB_SLEEP=0; |
| 16441 |
GNULIB_SYMLINK=0; |
| 16442 |
GNULIB_SYMLINKAT=0; |
| 16443 |
GNULIB_TTYNAME_R=0; |
| 16444 |
GNULIB_UNISTD_H_NONBLOCKING=0; |
| 16445 |
GNULIB_UNISTD_H_SIGPIPE=0; |
| 16446 |
GNULIB_UNLINK=0; |
| 16447 |
GNULIB_UNLINKAT=0; |
| 16448 |
GNULIB_USLEEP=0; |
| 16449 |
GNULIB_WRITE=0; |
| 16450 |
HAVE_CHOWN=1; |
| 16451 |
HAVE_DUP2=1; |
| 16452 |
HAVE_DUP3=1; |
| 16453 |
HAVE_EUIDACCESS=1; |
| 16454 |
HAVE_FACCESSAT=1; |
| 16455 |
HAVE_FCHDIR=1; |
| 16456 |
HAVE_FCHOWNAT=1; |
| 16457 |
HAVE_FDATASYNC=1; |
| 16458 |
HAVE_FSYNC=1; |
| 16459 |
HAVE_FTRUNCATE=1; |
| 16460 |
HAVE_GETDTABLESIZE=1; |
| 16461 |
HAVE_GETGROUPS=1; |
| 16462 |
HAVE_GETHOSTNAME=1; |
| 16463 |
HAVE_GETLOGIN=1; |
| 16464 |
HAVE_GETPAGESIZE=1; |
| 16465 |
HAVE_GROUP_MEMBER=1; |
| 16466 |
HAVE_LCHOWN=1; |
| 16467 |
HAVE_LINK=1; |
| 16468 |
HAVE_LINKAT=1; |
| 16469 |
HAVE_PIPE=1; |
| 16470 |
HAVE_PIPE2=1; |
| 16471 |
HAVE_PREAD=1; |
| 16472 |
HAVE_PWRITE=1; |
| 16473 |
HAVE_READLINK=1; |
| 16474 |
HAVE_READLINKAT=1; |
| 16475 |
HAVE_SETHOSTNAME=1; |
| 16476 |
HAVE_SLEEP=1; |
| 16477 |
HAVE_SYMLINK=1; |
| 16478 |
HAVE_SYMLINKAT=1; |
| 16479 |
HAVE_UNLINKAT=1; |
| 16480 |
HAVE_USLEEP=1; |
| 16481 |
HAVE_DECL_ENVIRON=1; |
| 16482 |
HAVE_DECL_FCHDIR=1; |
| 16483 |
HAVE_DECL_FDATASYNC=1; |
| 16484 |
HAVE_DECL_GETDOMAINNAME=1; |
| 16485 |
HAVE_DECL_GETLOGIN_R=1; |
| 16486 |
HAVE_DECL_GETPAGESIZE=1; |
| 16487 |
HAVE_DECL_GETUSERSHELL=1; |
| 16488 |
HAVE_DECL_SETHOSTNAME=1; |
| 16489 |
HAVE_DECL_TTYNAME_R=1; |
| 16490 |
HAVE_OS_H=0; |
| 16491 |
HAVE_SYS_PARAM_H=0; |
| 16492 |
REPLACE_CHOWN=0; |
| 16493 |
REPLACE_CLOSE=0; |
| 16494 |
REPLACE_DUP=0; |
| 16495 |
REPLACE_DUP2=0; |
| 16496 |
REPLACE_FCHOWNAT=0; |
| 16497 |
REPLACE_FTRUNCATE=0; |
| 16498 |
REPLACE_GETCWD=0; |
| 16499 |
REPLACE_GETDOMAINNAME=0; |
| 16500 |
REPLACE_GETLOGIN_R=0; |
| 16501 |
REPLACE_GETGROUPS=0; |
| 16502 |
REPLACE_GETPAGESIZE=0; |
| 16503 |
REPLACE_ISATTY=0; |
| 16504 |
REPLACE_LCHOWN=0; |
| 16505 |
REPLACE_LINK=0; |
| 16506 |
REPLACE_LINKAT=0; |
| 16507 |
REPLACE_LSEEK=0; |
| 16508 |
REPLACE_PREAD=0; |
| 16509 |
REPLACE_PWRITE=0; |
| 16510 |
REPLACE_READ=0; |
| 16511 |
REPLACE_READLINK=0; |
| 16512 |
REPLACE_RMDIR=0; |
| 16513 |
REPLACE_SLEEP=0; |
| 16514 |
REPLACE_SYMLINK=0; |
| 16515 |
REPLACE_TTYNAME_R=0; |
| 16516 |
REPLACE_UNLINK=0; |
| 16517 |
REPLACE_UNLINKAT=0; |
| 16518 |
REPLACE_USLEEP=0; |
| 16519 |
REPLACE_WRITE=0; |
| 16520 |
UNISTD_H_HAVE_WINSOCK2_H=0; |
| 16521 |
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; |
| 16522 |
|
| 16523 |
|
| 16524 |
|
| 16525 |
|
| 16526 |
|
| 16527 |
for ac_func in $ac_func_list |
| 16528 |
do : |
| 16529 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16530 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 16531 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 16532 |
cat >>confdefs.h <<_ACEOF |
| 16533 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16534 |
_ACEOF |
| 16535 |
|
| 16536 |
fi |
| 16537 |
done |
| 16538 |
|
| 16539 |
|
| 16540 |
|
| 16541 |
|
| 16542 |
|
| 16543 |
if test $ac_cv_func__set_invalid_parameter_handler = yes; then |
| 16544 |
HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 |
| 16545 |
|
| 16546 |
$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h |
| 16547 |
|
| 16548 |
else |
| 16549 |
HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 |
| 16550 |
fi |
| 16551 |
|
| 16552 |
|
| 16553 |
|
| 16554 |
|
| 16555 |
|
| 16556 |
for ac_header in $ac_header_list |
| 16557 |
do : |
| 16558 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16559 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 16560 |
" |
| 16561 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 16562 |
cat >>confdefs.h <<_ACEOF |
| 16563 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16564 |
_ACEOF |
| 16565 |
|
| 16566 |
fi |
| 16567 |
|
| 16568 |
done |
| 16569 |
|
| 16570 |
|
| 16571 |
|
| 16572 |
|
| 16573 |
|
| 16574 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
| 16575 |
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
| 16576 |
if ${gl_cv_have_include_next+:} false; then : |
| 16577 |
$as_echo_n "(cached) " >&6 |
| 16578 |
else |
| 16579 |
rm -rf conftestd1a conftestd1b conftestd2 |
| 16580 |
mkdir conftestd1a conftestd1b conftestd2 |
| 16581 |
cat <<EOF > conftestd1a/conftest.h |
| 16582 |
#define DEFINED_IN_CONFTESTD1 |
| 16583 |
#include_next <conftest.h> |
| 16584 |
#ifdef DEFINED_IN_CONFTESTD2 |
| 16585 |
int foo; |
| 16586 |
#else |
| 16587 |
#error "include_next doesn't work" |
| 16588 |
#endif |
| 16589 |
EOF |
| 16590 |
cat <<EOF > conftestd1b/conftest.h |
| 16591 |
#define DEFINED_IN_CONFTESTD1 |
| 16592 |
#include <stdio.h> |
| 16593 |
#include_next <conftest.h> |
| 16594 |
#ifdef DEFINED_IN_CONFTESTD2 |
| 16595 |
int foo; |
| 16596 |
#else |
| 16597 |
#error "include_next doesn't work" |
| 16598 |
#endif |
| 16599 |
EOF |
| 16600 |
cat <<EOF > conftestd2/conftest.h |
| 16601 |
#ifndef DEFINED_IN_CONFTESTD1 |
| 16602 |
#error "include_next test doesn't work" |
| 16603 |
#endif |
| 16604 |
#define DEFINED_IN_CONFTESTD2 |
| 16605 |
EOF |
| 16606 |
gl_save_CPPFLAGS="$CPPFLAGS" |
| 16607 |
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" |
| 16608 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16609 |
/* end confdefs.h. */ |
| 16610 |
#include <conftest.h> |
| 16611 |
_ACEOF |
| 16612 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16613 |
gl_cv_have_include_next=yes |
| 16614 |
else |
| 16615 |
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" |
| 16616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16617 |
/* end confdefs.h. */ |
| 16618 |
#include <conftest.h> |
| 16619 |
_ACEOF |
| 16620 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16621 |
gl_cv_have_include_next=buggy |
| 16622 |
else |
| 16623 |
gl_cv_have_include_next=no |
| 16624 |
fi |
| 16625 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16626 |
|
| 16627 |
fi |
| 16628 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16629 |
CPPFLAGS="$gl_save_CPPFLAGS" |
| 16630 |
rm -rf conftestd1a conftestd1b conftestd2 |
| 16631 |
|
| 16632 |
fi |
| 16633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 |
| 16634 |
$as_echo "$gl_cv_have_include_next" >&6; } |
| 16635 |
PRAGMA_SYSTEM_HEADER= |
| 16636 |
if test $gl_cv_have_include_next = yes; then |
| 16637 |
INCLUDE_NEXT=include_next |
| 16638 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 16639 |
if test -n "$GCC"; then |
| 16640 |
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' |
| 16641 |
fi |
| 16642 |
else |
| 16643 |
if test $gl_cv_have_include_next = buggy; then |
| 16644 |
INCLUDE_NEXT=include |
| 16645 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 16646 |
else |
| 16647 |
INCLUDE_NEXT=include |
| 16648 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include |
| 16649 |
fi |
| 16650 |
fi |
| 16651 |
|
| 16652 |
|
| 16653 |
|
| 16654 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 |
| 16655 |
$as_echo_n "checking whether system header files limit the line length... " >&6; } |
| 16656 |
if ${gl_cv_pragma_columns+:} false; then : |
| 16657 |
$as_echo_n "(cached) " >&6 |
| 16658 |
else |
| 16659 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16660 |
/* end confdefs.h. */ |
| 16661 |
|
| 16662 |
#ifdef __TANDEM |
| 16663 |
choke me |
| 16664 |
#endif |
| 16665 |
|
| 16666 |
_ACEOF |
| 16667 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16668 |
$EGREP "choke me" >/dev/null 2>&1; then : |
| 16669 |
gl_cv_pragma_columns=yes |
| 16670 |
else |
| 16671 |
gl_cv_pragma_columns=no |
| 16672 |
fi |
| 16673 |
rm -f conftest* |
| 16674 |
|
| 16675 |
|
| 16676 |
fi |
| 16677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 |
| 16678 |
$as_echo "$gl_cv_pragma_columns" >&6; } |
| 16679 |
if test $gl_cv_pragma_columns = yes; then |
| 16680 |
PRAGMA_COLUMNS="#pragma COLUMNS 10000" |
| 16681 |
else |
| 16682 |
PRAGMA_COLUMNS= |
| 16683 |
fi |
| 16684 |
|
| 16685 |
|
| 16686 |
|
| 16687 |
|
| 16688 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 |
| 16689 |
$as_echo_n "checking for complete errno.h... " >&6; } |
| 16690 |
if ${gl_cv_header_errno_h_complete+:} false; then : |
| 16691 |
$as_echo_n "(cached) " >&6 |
| 16692 |
else |
| 16693 |
|
| 16694 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16695 |
/* end confdefs.h. */ |
| 16696 |
|
| 16697 |
#include <errno.h> |
| 16698 |
#if !defined ETXTBSY |
| 16699 |
booboo |
| 16700 |
#endif |
| 16701 |
#if !defined ENOMSG |
| 16702 |
booboo |
| 16703 |
#endif |
| 16704 |
#if !defined EIDRM |
| 16705 |
booboo |
| 16706 |
#endif |
| 16707 |
#if !defined ENOLINK |
| 16708 |
booboo |
| 16709 |
#endif |
| 16710 |
#if !defined EPROTO |
| 16711 |
booboo |
| 16712 |
#endif |
| 16713 |
#if !defined EMULTIHOP |
| 16714 |
booboo |
| 16715 |
#endif |
| 16716 |
#if !defined EBADMSG |
| 16717 |
booboo |
| 16718 |
#endif |
| 16719 |
#if !defined EOVERFLOW |
| 16720 |
booboo |
| 16721 |
#endif |
| 16722 |
#if !defined ENOTSUP |
| 16723 |
booboo |
| 16724 |
#endif |
| 16725 |
#if !defined ENETRESET |
| 16726 |
booboo |
| 16727 |
#endif |
| 16728 |
#if !defined ECONNABORTED |
| 16729 |
booboo |
| 16730 |
#endif |
| 16731 |
#if !defined ESTALE |
| 16732 |
booboo |
| 16733 |
#endif |
| 16734 |
#if !defined EDQUOT |
| 16735 |
booboo |
| 16736 |
#endif |
| 16737 |
#if !defined ECANCELED |
| 16738 |
booboo |
| 16739 |
#endif |
| 16740 |
#if !defined EOWNERDEAD |
| 16741 |
booboo |
| 16742 |
#endif |
| 16743 |
#if !defined ENOTRECOVERABLE |
| 16744 |
booboo |
| 16745 |
#endif |
| 16746 |
#if !defined EILSEQ |
| 16747 |
booboo |
| 16748 |
#endif |
| 16749 |
|
| 16750 |
_ACEOF |
| 16751 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16752 |
$EGREP "booboo" >/dev/null 2>&1; then : |
| 16753 |
gl_cv_header_errno_h_complete=no |
| 16754 |
else |
| 16755 |
gl_cv_header_errno_h_complete=yes |
| 16756 |
fi |
| 16757 |
rm -f conftest* |
| 16758 |
|
| 16759 |
|
| 16760 |
fi |
| 16761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 |
| 16762 |
$as_echo "$gl_cv_header_errno_h_complete" >&6; } |
| 16763 |
if test $gl_cv_header_errno_h_complete = yes; then |
| 16764 |
ERRNO_H='' |
| 16765 |
else |
| 16766 |
|
| 16767 |
|
| 16768 |
|
| 16769 |
|
| 16770 |
|
| 16771 |
|
| 16772 |
|
| 16773 |
|
| 16774 |
if test $gl_cv_have_include_next = yes; then |
| 16775 |
gl_cv_next_errno_h='<'errno.h'>' |
| 16776 |
else |
| 16777 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 |
| 16778 |
$as_echo_n "checking absolute name of <errno.h>... " >&6; } |
| 16779 |
if ${gl_cv_next_errno_h+:} false; then : |
| 16780 |
$as_echo_n "(cached) " >&6 |
| 16781 |
else |
| 16782 |
|
| 16783 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16784 |
/* end confdefs.h. */ |
| 16785 |
#include <errno.h> |
| 16786 |
|
| 16787 |
_ACEOF |
| 16788 |
case "$host_os" in |
| 16789 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 16790 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 16791 |
esac |
| 16792 |
|
| 16793 |
case "$host_os" in |
| 16794 |
mingw*) |
| 16795 |
gl_dirsep_regex='[/\\]' |
| 16796 |
;; |
| 16797 |
*) |
| 16798 |
gl_dirsep_regex='\/' |
| 16799 |
;; |
| 16800 |
esac |
| 16801 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 16802 |
|
| 16803 |
gl_header_literal_regex=`echo 'errno.h' \ |
| 16804 |
| sed -e "$gl_make_literal_regex_sed"` |
| 16805 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 16806 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 16807 |
s|^/[^/]|//&| |
| 16808 |
p |
| 16809 |
q |
| 16810 |
}' |
| 16811 |
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 16812 |
sed -n "$gl_absolute_header_sed"`'"' |
| 16813 |
|
| 16814 |
|
| 16815 |
fi |
| 16816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 |
| 16817 |
$as_echo "$gl_cv_next_errno_h" >&6; } |
| 16818 |
fi |
| 16819 |
NEXT_ERRNO_H=$gl_cv_next_errno_h |
| 16820 |
|
| 16821 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 16822 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 16823 |
gl_next_as_first_directive='<'errno.h'>' |
| 16824 |
else |
| 16825 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 16826 |
gl_next_as_first_directive=$gl_cv_next_errno_h |
| 16827 |
fi |
| 16828 |
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive |
| 16829 |
|
| 16830 |
|
| 16831 |
|
| 16832 |
|
| 16833 |
ERRNO_H='errno.h' |
| 16834 |
fi |
| 16835 |
|
| 16836 |
if test -n "$ERRNO_H"; then |
| 16837 |
GL_GENERATE_ERRNO_H_TRUE= |
| 16838 |
GL_GENERATE_ERRNO_H_FALSE='#' |
| 16839 |
else |
| 16840 |
GL_GENERATE_ERRNO_H_TRUE='#' |
| 16841 |
GL_GENERATE_ERRNO_H_FALSE= |
| 16842 |
fi |
| 16843 |
|
| 16844 |
|
| 16845 |
if test -n "$ERRNO_H"; then |
| 16846 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 |
| 16847 |
$as_echo_n "checking for EMULTIHOP value... " >&6; } |
| 16848 |
if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : |
| 16849 |
$as_echo_n "(cached) " >&6 |
| 16850 |
else |
| 16851 |
|
| 16852 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16853 |
/* end confdefs.h. */ |
| 16854 |
|
| 16855 |
#include <errno.h> |
| 16856 |
#ifdef EMULTIHOP |
| 16857 |
yes |
| 16858 |
#endif |
| 16859 |
|
| 16860 |
_ACEOF |
| 16861 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16862 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 16863 |
gl_cv_header_errno_h_EMULTIHOP=yes |
| 16864 |
else |
| 16865 |
gl_cv_header_errno_h_EMULTIHOP=no |
| 16866 |
fi |
| 16867 |
rm -f conftest* |
| 16868 |
|
| 16869 |
if test $gl_cv_header_errno_h_EMULTIHOP = no; then |
| 16870 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16871 |
/* end confdefs.h. */ |
| 16872 |
|
| 16873 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 16874 |
#include <errno.h> |
| 16875 |
#ifdef EMULTIHOP |
| 16876 |
yes |
| 16877 |
#endif |
| 16878 |
|
| 16879 |
_ACEOF |
| 16880 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16881 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 16882 |
gl_cv_header_errno_h_EMULTIHOP=hidden |
| 16883 |
fi |
| 16884 |
rm -f conftest* |
| 16885 |
|
| 16886 |
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then |
| 16887 |
if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " |
| 16888 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 16889 |
#include <errno.h> |
| 16890 |
/* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 16891 |
#include <stdio.h> |
| 16892 |
#include <stdlib.h> |
| 16893 |
"; then : |
| 16894 |
|
| 16895 |
fi |
| 16896 |
|
| 16897 |
fi |
| 16898 |
fi |
| 16899 |
|
| 16900 |
fi |
| 16901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 |
| 16902 |
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } |
| 16903 |
case $gl_cv_header_errno_h_EMULTIHOP in |
| 16904 |
yes | no) |
| 16905 |
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= |
| 16906 |
;; |
| 16907 |
*) |
| 16908 |
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" |
| 16909 |
;; |
| 16910 |
esac |
| 16911 |
|
| 16912 |
|
| 16913 |
fi |
| 16914 |
|
| 16915 |
|
| 16916 |
if test -n "$ERRNO_H"; then |
| 16917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 |
| 16918 |
$as_echo_n "checking for ENOLINK value... " >&6; } |
| 16919 |
if ${gl_cv_header_errno_h_ENOLINK+:} false; then : |
| 16920 |
$as_echo_n "(cached) " >&6 |
| 16921 |
else |
| 16922 |
|
| 16923 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16924 |
/* end confdefs.h. */ |
| 16925 |
|
| 16926 |
#include <errno.h> |
| 16927 |
#ifdef ENOLINK |
| 16928 |
yes |
| 16929 |
#endif |
| 16930 |
|
| 16931 |
_ACEOF |
| 16932 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16933 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 16934 |
gl_cv_header_errno_h_ENOLINK=yes |
| 16935 |
else |
| 16936 |
gl_cv_header_errno_h_ENOLINK=no |
| 16937 |
fi |
| 16938 |
rm -f conftest* |
| 16939 |
|
| 16940 |
if test $gl_cv_header_errno_h_ENOLINK = no; then |
| 16941 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16942 |
/* end confdefs.h. */ |
| 16943 |
|
| 16944 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 16945 |
#include <errno.h> |
| 16946 |
#ifdef ENOLINK |
| 16947 |
yes |
| 16948 |
#endif |
| 16949 |
|
| 16950 |
_ACEOF |
| 16951 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16952 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 16953 |
gl_cv_header_errno_h_ENOLINK=hidden |
| 16954 |
fi |
| 16955 |
rm -f conftest* |
| 16956 |
|
| 16957 |
if test $gl_cv_header_errno_h_ENOLINK = hidden; then |
| 16958 |
if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " |
| 16959 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 16960 |
#include <errno.h> |
| 16961 |
/* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 16962 |
#include <stdio.h> |
| 16963 |
#include <stdlib.h> |
| 16964 |
"; then : |
| 16965 |
|
| 16966 |
fi |
| 16967 |
|
| 16968 |
fi |
| 16969 |
fi |
| 16970 |
|
| 16971 |
fi |
| 16972 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 |
| 16973 |
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } |
| 16974 |
case $gl_cv_header_errno_h_ENOLINK in |
| 16975 |
yes | no) |
| 16976 |
ENOLINK_HIDDEN=0; ENOLINK_VALUE= |
| 16977 |
;; |
| 16978 |
*) |
| 16979 |
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" |
| 16980 |
;; |
| 16981 |
esac |
| 16982 |
|
| 16983 |
|
| 16984 |
fi |
| 16985 |
|
| 16986 |
|
| 16987 |
if test -n "$ERRNO_H"; then |
| 16988 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 |
| 16989 |
$as_echo_n "checking for EOVERFLOW value... " >&6; } |
| 16990 |
if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : |
| 16991 |
$as_echo_n "(cached) " >&6 |
| 16992 |
else |
| 16993 |
|
| 16994 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16995 |
/* end confdefs.h. */ |
| 16996 |
|
| 16997 |
#include <errno.h> |
| 16998 |
#ifdef EOVERFLOW |
| 16999 |
yes |
| 17000 |
#endif |
| 17001 |
|
| 17002 |
_ACEOF |
| 17003 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 17004 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 17005 |
gl_cv_header_errno_h_EOVERFLOW=yes |
| 17006 |
else |
| 17007 |
gl_cv_header_errno_h_EOVERFLOW=no |
| 17008 |
fi |
| 17009 |
rm -f conftest* |
| 17010 |
|
| 17011 |
if test $gl_cv_header_errno_h_EOVERFLOW = no; then |
| 17012 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17013 |
/* end confdefs.h. */ |
| 17014 |
|
| 17015 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 17016 |
#include <errno.h> |
| 17017 |
#ifdef EOVERFLOW |
| 17018 |
yes |
| 17019 |
#endif |
| 17020 |
|
| 17021 |
_ACEOF |
| 17022 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 17023 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 17024 |
gl_cv_header_errno_h_EOVERFLOW=hidden |
| 17025 |
fi |
| 17026 |
rm -f conftest* |
| 17027 |
|
| 17028 |
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then |
| 17029 |
if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " |
| 17030 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 17031 |
#include <errno.h> |
| 17032 |
/* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 17033 |
#include <stdio.h> |
| 17034 |
#include <stdlib.h> |
| 17035 |
"; then : |
| 17036 |
|
| 17037 |
fi |
| 17038 |
|
| 17039 |
fi |
| 17040 |
fi |
| 17041 |
|
| 17042 |
fi |
| 17043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 |
| 17044 |
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } |
| 17045 |
case $gl_cv_header_errno_h_EOVERFLOW in |
| 17046 |
yes | no) |
| 17047 |
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= |
| 17048 |
;; |
| 17049 |
*) |
| 17050 |
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" |
| 17051 |
;; |
| 17052 |
esac |
| 17053 |
|
| 17054 |
|
| 17055 |
fi |
| 17056 |
|
| 17057 |
|
| 17058 |
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" |
| 17059 |
if test "x$ac_cv_have_decl_strerror_r" = xyes; then : |
| 17060 |
ac_have_decl=1 |
| 17061 |
else |
| 17062 |
ac_have_decl=0 |
| 17063 |
fi |
| 17064 |
|
| 17065 |
cat >>confdefs.h <<_ACEOF |
| 17066 |
#define HAVE_DECL_STRERROR_R $ac_have_decl |
| 17067 |
_ACEOF |
| 17068 |
|
| 17069 |
for ac_func in strerror_r |
| 17070 |
do : |
| 17071 |
ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
| 17072 |
if test "x$ac_cv_func_strerror_r" = xyes; then : |
| 17073 |
cat >>confdefs.h <<_ACEOF |
| 17074 |
#define HAVE_STRERROR_R 1 |
| 17075 |
_ACEOF |
| 17076 |
|
| 17077 |
fi |
| 17078 |
done |
| 17079 |
|
| 17080 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 17081 |
$as_echo_n "checking whether strerror_r returns char *... " >&6; } |
| 17082 |
if ${ac_cv_func_strerror_r_char_p+:} false; then : |
| 17083 |
$as_echo_n "(cached) " >&6 |
| 17084 |
else |
| 17085 |
|
| 17086 |
ac_cv_func_strerror_r_char_p=no |
| 17087 |
if test $ac_cv_have_decl_strerror_r = yes; then |
| 17088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17089 |
/* end confdefs.h. */ |
| 17090 |
$ac_includes_default |
| 17091 |
int |
| 17092 |
main () |
| 17093 |
{ |
| 17094 |
|
| 17095 |
char buf[100]; |
| 17096 |
char x = *strerror_r (0, buf, sizeof buf); |
| 17097 |
char *p = strerror_r (0, buf, sizeof buf); |
| 17098 |
return !p || x; |
| 17099 |
|
| 17100 |
; |
| 17101 |
return 0; |
| 17102 |
} |
| 17103 |
_ACEOF |
| 17104 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 17105 |
ac_cv_func_strerror_r_char_p=yes |
| 17106 |
fi |
| 17107 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17108 |
else |
| 17109 |
# strerror_r is not declared. Choose between |
| 17110 |
# systems that have relatively inaccessible declarations for the |
| 17111 |
# function. BeOS and DEC UNIX 4.0 fall in this category, but the |
| 17112 |
# former has a strerror_r that returns char*, while the latter |
| 17113 |
# has a strerror_r that returns `int'. |
| 17114 |
# This test should segfault on the DEC system. |
| 17115 |
if test "$cross_compiling" = yes; then : |
| 17116 |
: |
| 17117 |
else |
| 17118 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17119 |
/* end confdefs.h. */ |
| 17120 |
$ac_includes_default |
| 17121 |
extern char *strerror_r (); |
| 17122 |
int |
| 17123 |
main () |
| 17124 |
{ |
| 17125 |
char buf[100]; |
| 17126 |
char x = *strerror_r (0, buf, sizeof buf); |
| 17127 |
return ! isalpha (x); |
| 17128 |
; |
| 17129 |
return 0; |
| 17130 |
} |
| 17131 |
_ACEOF |
| 17132 |
if ac_fn_c_try_run "$LINENO"; then : |
| 17133 |
ac_cv_func_strerror_r_char_p=yes |
| 17134 |
fi |
| 17135 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17136 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17137 |
fi |
| 17138 |
|
| 17139 |
fi |
| 17140 |
|
| 17141 |
fi |
| 17142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 17143 |
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } |
| 17144 |
if test $ac_cv_func_strerror_r_char_p = yes; then |
| 17145 |
|
| 17146 |
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 17147 |
|
| 17148 |
fi |
| 17149 |
|
| 17150 |
|
| 17151 |
XGETTEXT_EXTRA_OPTIONS= |
| 17152 |
|
| 17153 |
|
| 17154 |
|
| 17155 |
|
| 17156 |
|
| 17157 |
GNULIB_FCNTL=0; |
| 17158 |
GNULIB_NONBLOCKING=0; |
| 17159 |
GNULIB_OPEN=0; |
| 17160 |
GNULIB_OPENAT=0; |
| 17161 |
HAVE_FCNTL=1; |
| 17162 |
HAVE_OPENAT=1; |
| 17163 |
REPLACE_FCNTL=0; |
| 17164 |
REPLACE_OPEN=0; |
| 17165 |
REPLACE_OPENAT=0; |
| 17166 |
|
| 17167 |
|
| 17168 |
|
| 17169 |
|
| 17170 |
|
| 17171 |
|
| 17172 |
|
| 17173 |
|
| 17174 |
|
| 17175 |
|
| 17176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 17177 |
$as_echo_n "checking for working fcntl.h... " >&6; } |
| 17178 |
if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 17179 |
$as_echo_n "(cached) " >&6 |
| 17180 |
else |
| 17181 |
if test "$cross_compiling" = yes; then : |
| 17182 |
gl_cv_header_working_fcntl_h=cross-compiling |
| 17183 |
else |
| 17184 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17185 |
/* end confdefs.h. */ |
| 17186 |
#include <sys/types.h> |
| 17187 |
#include <sys/stat.h> |
| 17188 |
#if HAVE_UNISTD_H |
| 17189 |
# include <unistd.h> |
| 17190 |
#else /* on Windows with MSVC */ |
| 17191 |
# include <io.h> |
| 17192 |
# include <stdlib.h> |
| 17193 |
# defined sleep(n) _sleep ((n) * 1000) |
| 17194 |
#endif |
| 17195 |
#include <fcntl.h> |
| 17196 |
#ifndef O_NOATIME |
| 17197 |
#define O_NOATIME 0 |
| 17198 |
#endif |
| 17199 |
#ifndef O_NOFOLLOW |
| 17200 |
#define O_NOFOLLOW 0 |
| 17201 |
#endif |
| 17202 |
static int const constants[] = |
| 17203 |
{ |
| 17204 |
O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 17205 |
O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 17206 |
}; |
| 17207 |
|
| 17208 |
int |
| 17209 |
main () |
| 17210 |
{ |
| 17211 |
|
| 17212 |
int result = !constants; |
| 17213 |
#if HAVE_SYMLINK |
| 17214 |
{ |
| 17215 |
static char const sym[] = "conftest.sym"; |
| 17216 |
if (symlink ("/dev/null", sym) != 0) |
| 17217 |
result |= 2; |
| 17218 |
else |
| 17219 |
{ |
| 17220 |
int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 17221 |
if (fd >= 0) |
| 17222 |
{ |
| 17223 |
close (fd); |
| 17224 |
result |= 4; |
| 17225 |
} |
| 17226 |
} |
| 17227 |
if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 17228 |
result |= 2; |
| 17229 |
else |
| 17230 |
{ |
| 17231 |
int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 17232 |
if (fd >= 0) |
| 17233 |
{ |
| 17234 |
close (fd); |
| 17235 |
result |= 4; |
| 17236 |
} |
| 17237 |
} |
| 17238 |
unlink (sym); |
| 17239 |
} |
| 17240 |
#endif |
| 17241 |
{ |
| 17242 |
static char const file[] = "confdefs.h"; |
| 17243 |
int fd = open (file, O_RDONLY | O_NOATIME); |
| 17244 |
if (fd < 0) |
| 17245 |
result |= 8; |
| 17246 |
else |
| 17247 |
{ |
| 17248 |
struct stat st0; |
| 17249 |
if (fstat (fd, &st0) != 0) |
| 17250 |
result |= 16; |
| 17251 |
else |
| 17252 |
{ |
| 17253 |
char c; |
| 17254 |
sleep (1); |
| 17255 |
if (read (fd, &c, 1) != 1) |
| 17256 |
result |= 24; |
| 17257 |
else |
| 17258 |
{ |
| 17259 |
if (close (fd) != 0) |
| 17260 |
result |= 32; |
| 17261 |
else |
| 17262 |
{ |
| 17263 |
struct stat st1; |
| 17264 |
if (stat (file, &st1) != 0) |
| 17265 |
result |= 40; |
| 17266 |
else |
| 17267 |
if (st0.st_atime != st1.st_atime) |
| 17268 |
result |= 64; |
| 17269 |
} |
| 17270 |
} |
| 17271 |
} |
| 17272 |
} |
| 17273 |
} |
| 17274 |
return result; |
| 17275 |
; |
| 17276 |
return 0; |
| 17277 |
} |
| 17278 |
_ACEOF |
| 17279 |
if ac_fn_c_try_run "$LINENO"; then : |
| 17280 |
gl_cv_header_working_fcntl_h=yes |
| 17281 |
else |
| 17282 |
case $? in #( |
| 17283 |
4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 17284 |
64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 17285 |
68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 17286 |
*) gl_cv_header_working_fcntl_h='no';; |
| 17287 |
esac |
| 17288 |
fi |
| 17289 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17290 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17291 |
fi |
| 17292 |
|
| 17293 |
fi |
| 17294 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 17295 |
$as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 17296 |
|
| 17297 |
case $gl_cv_header_working_fcntl_h in #( |
| 17298 |
*O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 17299 |
*) ac_val=1;; |
| 17300 |
esac |
| 17301 |
|
| 17302 |
cat >>confdefs.h <<_ACEOF |
| 17303 |
#define HAVE_WORKING_O_NOATIME $ac_val |
| 17304 |
_ACEOF |
| 17305 |
|
| 17306 |
|
| 17307 |
case $gl_cv_header_working_fcntl_h in #( |
| 17308 |
*O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 17309 |
*) ac_val=1;; |
| 17310 |
esac |
| 17311 |
|
| 17312 |
cat >>confdefs.h <<_ACEOF |
| 17313 |
#define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 17314 |
_ACEOF |
| 17315 |
|
| 17316 |
|
| 17317 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 17318 |
if test "x$ac_cv_type_pid_t" = xyes; then : |
| 17319 |
|
| 17320 |
else |
| 17321 |
|
| 17322 |
cat >>confdefs.h <<_ACEOF |
| 17323 |
#define pid_t int |
| 17324 |
_ACEOF |
| 17325 |
|
| 17326 |
fi |
| 17327 |
|
| 17328 |
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 17329 |
if test "x$ac_cv_type_mode_t" = xyes; then : |
| 17330 |
|
| 17331 |
else |
| 17332 |
|
| 17333 |
cat >>confdefs.h <<_ACEOF |
| 17334 |
#define mode_t int |
| 17335 |
_ACEOF |
| 17336 |
|
| 17337 |
fi |
| 17338 |
|
| 17339 |
|
| 17340 |
GNULIB_DPRINTF=0; |
| 17341 |
GNULIB_FCLOSE=0; |
| 17342 |
GNULIB_FDOPEN=0; |
| 17343 |
GNULIB_FFLUSH=0; |
| 17344 |
GNULIB_FGETC=0; |
| 17345 |
GNULIB_FGETS=0; |
| 17346 |
GNULIB_FOPEN=0; |
| 17347 |
GNULIB_FPRINTF=0; |
| 17348 |
GNULIB_FPRINTF_POSIX=0; |
| 17349 |
GNULIB_FPURGE=0; |
| 17350 |
GNULIB_FPUTC=0; |
| 17351 |
GNULIB_FPUTS=0; |
| 17352 |
GNULIB_FREAD=0; |
| 17353 |
GNULIB_FREOPEN=0; |
| 17354 |
GNULIB_FSCANF=0; |
| 17355 |
GNULIB_FSEEK=0; |
| 17356 |
GNULIB_FSEEKO=0; |
| 17357 |
GNULIB_FTELL=0; |
| 17358 |
GNULIB_FTELLO=0; |
| 17359 |
GNULIB_FWRITE=0; |
| 17360 |
GNULIB_GETC=0; |
| 17361 |
GNULIB_GETCHAR=0; |
| 17362 |
GNULIB_GETDELIM=0; |
| 17363 |
GNULIB_GETLINE=0; |
| 17364 |
GNULIB_OBSTACK_PRINTF=0; |
| 17365 |
GNULIB_OBSTACK_PRINTF_POSIX=0; |
| 17366 |
GNULIB_PCLOSE=0; |
| 17367 |
GNULIB_PERROR=0; |
| 17368 |
GNULIB_POPEN=0; |
| 17369 |
GNULIB_PRINTF=0; |
| 17370 |
GNULIB_PRINTF_POSIX=0; |
| 17371 |
GNULIB_PUTC=0; |
| 17372 |
GNULIB_PUTCHAR=0; |
| 17373 |
GNULIB_PUTS=0; |
| 17374 |
GNULIB_REMOVE=0; |
| 17375 |
GNULIB_RENAME=0; |
| 17376 |
GNULIB_RENAMEAT=0; |
| 17377 |
GNULIB_SCANF=0; |
| 17378 |
GNULIB_SNPRINTF=0; |
| 17379 |
GNULIB_SPRINTF_POSIX=0; |
| 17380 |
GNULIB_STDIO_H_NONBLOCKING=0; |
| 17381 |
GNULIB_STDIO_H_SIGPIPE=0; |
| 17382 |
GNULIB_TMPFILE=0; |
| 17383 |
GNULIB_VASPRINTF=0; |
| 17384 |
GNULIB_VFSCANF=0; |
| 17385 |
GNULIB_VSCANF=0; |
| 17386 |
GNULIB_VDPRINTF=0; |
| 17387 |
GNULIB_VFPRINTF=0; |
| 17388 |
GNULIB_VFPRINTF_POSIX=0; |
| 17389 |
GNULIB_VPRINTF=0; |
| 17390 |
GNULIB_VPRINTF_POSIX=0; |
| 17391 |
GNULIB_VSNPRINTF=0; |
| 17392 |
GNULIB_VSPRINTF_POSIX=0; |
| 17393 |
HAVE_DECL_FPURGE=1; |
| 17394 |
HAVE_DECL_FSEEKO=1; |
| 17395 |
HAVE_DECL_FTELLO=1; |
| 17396 |
HAVE_DECL_GETDELIM=1; |
| 17397 |
HAVE_DECL_GETLINE=1; |
| 17398 |
HAVE_DECL_OBSTACK_PRINTF=1; |
| 17399 |
HAVE_DECL_SNPRINTF=1; |
| 17400 |
HAVE_DECL_VSNPRINTF=1; |
| 17401 |
HAVE_DPRINTF=1; |
| 17402 |
HAVE_FSEEKO=1; |
| 17403 |
HAVE_FTELLO=1; |
| 17404 |
HAVE_PCLOSE=1; |
| 17405 |
HAVE_POPEN=1; |
| 17406 |
HAVE_RENAMEAT=1; |
| 17407 |
HAVE_VASPRINTF=1; |
| 17408 |
HAVE_VDPRINTF=1; |
| 17409 |
REPLACE_DPRINTF=0; |
| 17410 |
REPLACE_FCLOSE=0; |
| 17411 |
REPLACE_FDOPEN=0; |
| 17412 |
REPLACE_FFLUSH=0; |
| 17413 |
REPLACE_FOPEN=0; |
| 17414 |
REPLACE_FPRINTF=0; |
| 17415 |
REPLACE_FPURGE=0; |
| 17416 |
REPLACE_FREOPEN=0; |
| 17417 |
REPLACE_FSEEK=0; |
| 17418 |
REPLACE_FSEEKO=0; |
| 17419 |
REPLACE_FTELL=0; |
| 17420 |
REPLACE_FTELLO=0; |
| 17421 |
REPLACE_GETDELIM=0; |
| 17422 |
REPLACE_GETLINE=0; |
| 17423 |
REPLACE_OBSTACK_PRINTF=0; |
| 17424 |
REPLACE_PERROR=0; |
| 17425 |
REPLACE_POPEN=0; |
| 17426 |
REPLACE_PRINTF=0; |
| 17427 |
REPLACE_REMOVE=0; |
| 17428 |
REPLACE_RENAME=0; |
| 17429 |
REPLACE_RENAMEAT=0; |
| 17430 |
REPLACE_SNPRINTF=0; |
| 17431 |
REPLACE_SPRINTF=0; |
| 17432 |
REPLACE_STDIO_READ_FUNCS=0; |
| 17433 |
REPLACE_STDIO_WRITE_FUNCS=0; |
| 17434 |
REPLACE_TMPFILE=0; |
| 17435 |
REPLACE_VASPRINTF=0; |
| 17436 |
REPLACE_VDPRINTF=0; |
| 17437 |
REPLACE_VFPRINTF=0; |
| 17438 |
REPLACE_VPRINTF=0; |
| 17439 |
REPLACE_VSNPRINTF=0; |
| 17440 |
REPLACE_VSPRINTF=0; |
| 17441 |
|
| 17442 |
|
| 17443 |
GNULIB_FCHMODAT=0; |
| 17444 |
GNULIB_FSTAT=0; |
| 17445 |
GNULIB_FSTATAT=0; |
| 17446 |
GNULIB_FUTIMENS=0; |
| 17447 |
GNULIB_LCHMOD=0; |
| 17448 |
GNULIB_LSTAT=0; |
| 17449 |
GNULIB_MKDIRAT=0; |
| 17450 |
GNULIB_MKFIFO=0; |
| 17451 |
GNULIB_MKFIFOAT=0; |
| 17452 |
GNULIB_MKNOD=0; |
| 17453 |
GNULIB_MKNODAT=0; |
| 17454 |
GNULIB_STAT=0; |
| 17455 |
GNULIB_UTIMENSAT=0; |
| 17456 |
HAVE_FCHMODAT=1; |
| 17457 |
HAVE_FSTATAT=1; |
| 17458 |
HAVE_FUTIMENS=1; |
| 17459 |
HAVE_LCHMOD=1; |
| 17460 |
HAVE_LSTAT=1; |
| 17461 |
HAVE_MKDIRAT=1; |
| 17462 |
HAVE_MKFIFO=1; |
| 17463 |
HAVE_MKFIFOAT=1; |
| 17464 |
HAVE_MKNOD=1; |
| 17465 |
HAVE_MKNODAT=1; |
| 17466 |
HAVE_UTIMENSAT=1; |
| 17467 |
REPLACE_FSTAT=0; |
| 17468 |
REPLACE_FSTATAT=0; |
| 17469 |
REPLACE_FUTIMENS=0; |
| 17470 |
REPLACE_LSTAT=0; |
| 17471 |
REPLACE_MKDIR=0; |
| 17472 |
REPLACE_MKFIFO=0; |
| 17473 |
REPLACE_MKNOD=0; |
| 17474 |
REPLACE_STAT=0; |
| 17475 |
REPLACE_UTIMENSAT=0; |
| 17476 |
|
| 17477 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| 17478 |
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| 17479 |
if ${ac_cv_header_stat_broken+:} false; then : |
| 17480 |
$as_echo_n "(cached) " >&6 |
| 17481 |
else |
| 17482 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17483 |
/* end confdefs.h. */ |
| 17484 |
#include <sys/types.h> |
| 17485 |
#include <sys/stat.h> |
| 17486 |
|
| 17487 |
#if defined S_ISBLK && defined S_IFDIR |
| 17488 |
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 17489 |
#endif |
| 17490 |
|
| 17491 |
#if defined S_ISBLK && defined S_IFCHR |
| 17492 |
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 17493 |
#endif |
| 17494 |
|
| 17495 |
#if defined S_ISLNK && defined S_IFREG |
| 17496 |
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 17497 |
#endif |
| 17498 |
|
| 17499 |
#if defined S_ISSOCK && defined S_IFREG |
| 17500 |
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 17501 |
#endif |
| 17502 |
|
| 17503 |
_ACEOF |
| 17504 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 17505 |
ac_cv_header_stat_broken=no |
| 17506 |
else |
| 17507 |
ac_cv_header_stat_broken=yes |
| 17508 |
fi |
| 17509 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17510 |
fi |
| 17511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| 17512 |
$as_echo "$ac_cv_header_stat_broken" >&6; } |
| 17513 |
if test $ac_cv_header_stat_broken = yes; then |
| 17514 |
|
| 17515 |
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| 17516 |
|
| 17517 |
fi |
| 17518 |
|
| 17519 |
|
| 17520 |
|
| 17521 |
|
| 17522 |
|
| 17523 |
case "$host_os" in |
| 17524 |
mingw*) |
| 17525 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 |
| 17526 |
$as_echo_n "checking for 64-bit off_t... " >&6; } |
| 17527 |
if ${gl_cv_type_off_t_64+:} false; then : |
| 17528 |
$as_echo_n "(cached) " >&6 |
| 17529 |
else |
| 17530 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17531 |
/* end confdefs.h. */ |
| 17532 |
#include <sys/types.h> |
| 17533 |
int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; |
| 17534 |
|
| 17535 |
int |
| 17536 |
main () |
| 17537 |
{ |
| 17538 |
|
| 17539 |
; |
| 17540 |
return 0; |
| 17541 |
} |
| 17542 |
_ACEOF |
| 17543 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 17544 |
gl_cv_type_off_t_64=yes |
| 17545 |
else |
| 17546 |
gl_cv_type_off_t_64=no |
| 17547 |
fi |
| 17548 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17549 |
|
| 17550 |
fi |
| 17551 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 |
| 17552 |
$as_echo "$gl_cv_type_off_t_64" >&6; } |
| 17553 |
if test $gl_cv_type_off_t_64 = no; then |
| 17554 |
WINDOWS_64_BIT_OFF_T=1 |
| 17555 |
else |
| 17556 |
WINDOWS_64_BIT_OFF_T=0 |
| 17557 |
fi |
| 17558 |
WINDOWS_64_BIT_ST_SIZE=1 |
| 17559 |
;; |
| 17560 |
*) |
| 17561 |
WINDOWS_64_BIT_OFF_T=0 |
| 17562 |
WINDOWS_64_BIT_ST_SIZE=0 |
| 17563 |
;; |
| 17564 |
esac |
| 17565 |
|
| 17566 |
|
| 17567 |
|
| 17568 |
|
| 17569 |
|
| 17570 |
|
| 17571 |
|
| 17572 |
|
| 17573 |
|
| 17574 |
|
| 17575 |
|
| 17576 |
|
| 17577 |
|
| 17578 |
|
| 17579 |
|
| 17580 |
if test $gl_cv_have_include_next = yes; then |
| 17581 |
gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 17582 |
else |
| 17583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 |
| 17584 |
$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } |
| 17585 |
if ${gl_cv_next_sys_stat_h+:} false; then : |
| 17586 |
$as_echo_n "(cached) " >&6 |
| 17587 |
else |
| 17588 |
|
| 17589 |
if test $ac_cv_header_sys_stat_h = yes; then |
| 17590 |
|
| 17591 |
|
| 17592 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17593 |
/* end confdefs.h. */ |
| 17594 |
#include <sys/stat.h> |
| 17595 |
|
| 17596 |
_ACEOF |
| 17597 |
case "$host_os" in |
| 17598 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17599 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 17600 |
esac |
| 17601 |
|
| 17602 |
case "$host_os" in |
| 17603 |
mingw*) |
| 17604 |
gl_dirsep_regex='[/\\]' |
| 17605 |
;; |
| 17606 |
*) |
| 17607 |
gl_dirsep_regex='\/' |
| 17608 |
;; |
| 17609 |
esac |
| 17610 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17611 |
|
| 17612 |
gl_header_literal_regex=`echo 'sys/stat.h' \ |
| 17613 |
| sed -e "$gl_make_literal_regex_sed"` |
| 17614 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17615 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17616 |
s|^/[^/]|//&| |
| 17617 |
p |
| 17618 |
q |
| 17619 |
}' |
| 17620 |
gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17621 |
sed -n "$gl_absolute_header_sed"`'"' |
| 17622 |
else |
| 17623 |
gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 17624 |
fi |
| 17625 |
|
| 17626 |
|
| 17627 |
fi |
| 17628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 |
| 17629 |
$as_echo "$gl_cv_next_sys_stat_h" >&6; } |
| 17630 |
fi |
| 17631 |
NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h |
| 17632 |
|
| 17633 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 17634 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17635 |
gl_next_as_first_directive='<'sys/stat.h'>' |
| 17636 |
else |
| 17637 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17638 |
gl_next_as_first_directive=$gl_cv_next_sys_stat_h |
| 17639 |
fi |
| 17640 |
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive |
| 17641 |
|
| 17642 |
|
| 17643 |
|
| 17644 |
|
| 17645 |
|
| 17646 |
|
| 17647 |
|
| 17648 |
|
| 17649 |
|
| 17650 |
|
| 17651 |
|
| 17652 |
if test $WINDOWS_64_BIT_ST_SIZE = 1; then |
| 17653 |
|
| 17654 |
$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h |
| 17655 |
|
| 17656 |
fi |
| 17657 |
|
| 17658 |
ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> |
| 17659 |
#include <sys/stat.h> |
| 17660 |
" |
| 17661 |
if test "x$ac_cv_type_nlink_t" = xyes; then : |
| 17662 |
|
| 17663 |
else |
| 17664 |
|
| 17665 |
$as_echo "#define nlink_t int" >>confdefs.h |
| 17666 |
|
| 17667 |
fi |
| 17668 |
|
| 17669 |
|
| 17670 |
|
| 17671 |
for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do |
| 17672 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 17673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 17674 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 17675 |
if eval \${$as_gl_Symbol+:} false; then : |
| 17676 |
$as_echo_n "(cached) " >&6 |
| 17677 |
else |
| 17678 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17679 |
/* end confdefs.h. */ |
| 17680 |
#include <sys/stat.h> |
| 17681 |
|
| 17682 |
int |
| 17683 |
main () |
| 17684 |
{ |
| 17685 |
#undef $gl_func |
| 17686 |
(void) $gl_func; |
| 17687 |
; |
| 17688 |
return 0; |
| 17689 |
} |
| 17690 |
_ACEOF |
| 17691 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 17692 |
eval "$as_gl_Symbol=yes" |
| 17693 |
else |
| 17694 |
eval "$as_gl_Symbol=no" |
| 17695 |
fi |
| 17696 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17697 |
fi |
| 17698 |
eval ac_res=\$$as_gl_Symbol |
| 17699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17700 |
$as_echo "$ac_res" >&6; } |
| 17701 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 17702 |
cat >>confdefs.h <<_ACEOF |
| 17703 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 17704 |
_ACEOF |
| 17705 |
|
| 17706 |
eval ac_cv_have_decl_$gl_func=yes |
| 17707 |
fi |
| 17708 |
done |
| 17709 |
|
| 17710 |
|
| 17711 |
|
| 17712 |
|
| 17713 |
|
| 17714 |
|
| 17715 |
|
| 17716 |
|
| 17717 |
|
| 17718 |
|
| 17719 |
|
| 17720 |
|
| 17721 |
|
| 17722 |
|
| 17723 |
|
| 17724 |
|
| 17725 |
|
| 17726 |
if test $gl_cv_have_include_next = yes; then |
| 17727 |
gl_cv_next_getopt_h='<'getopt.h'>' |
| 17728 |
else |
| 17729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 |
| 17730 |
$as_echo_n "checking absolute name of <getopt.h>... " >&6; } |
| 17731 |
if ${gl_cv_next_getopt_h+:} false; then : |
| 17732 |
$as_echo_n "(cached) " >&6 |
| 17733 |
else |
| 17734 |
|
| 17735 |
if test $ac_cv_header_getopt_h = yes; then |
| 17736 |
|
| 17737 |
|
| 17738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17739 |
/* end confdefs.h. */ |
| 17740 |
#include <getopt.h> |
| 17741 |
|
| 17742 |
_ACEOF |
| 17743 |
case "$host_os" in |
| 17744 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17745 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 17746 |
esac |
| 17747 |
|
| 17748 |
case "$host_os" in |
| 17749 |
mingw*) |
| 17750 |
gl_dirsep_regex='[/\\]' |
| 17751 |
;; |
| 17752 |
*) |
| 17753 |
gl_dirsep_regex='\/' |
| 17754 |
;; |
| 17755 |
esac |
| 17756 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17757 |
|
| 17758 |
gl_header_literal_regex=`echo 'getopt.h' \ |
| 17759 |
| sed -e "$gl_make_literal_regex_sed"` |
| 17760 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17761 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17762 |
s|^/[^/]|//&| |
| 17763 |
p |
| 17764 |
q |
| 17765 |
}' |
| 17766 |
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17767 |
sed -n "$gl_absolute_header_sed"`'"' |
| 17768 |
else |
| 17769 |
gl_cv_next_getopt_h='<'getopt.h'>' |
| 17770 |
fi |
| 17771 |
|
| 17772 |
|
| 17773 |
fi |
| 17774 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 |
| 17775 |
$as_echo "$gl_cv_next_getopt_h" >&6; } |
| 17776 |
fi |
| 17777 |
NEXT_GETOPT_H=$gl_cv_next_getopt_h |
| 17778 |
|
| 17779 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 17780 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17781 |
gl_next_as_first_directive='<'getopt.h'>' |
| 17782 |
else |
| 17783 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17784 |
gl_next_as_first_directive=$gl_cv_next_getopt_h |
| 17785 |
fi |
| 17786 |
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive |
| 17787 |
|
| 17788 |
|
| 17789 |
|
| 17790 |
|
| 17791 |
if test $ac_cv_header_getopt_h = yes; then |
| 17792 |
HAVE_GETOPT_H=1 |
| 17793 |
else |
| 17794 |
HAVE_GETOPT_H=0 |
| 17795 |
fi |
| 17796 |
|
| 17797 |
|
| 17798 |
gl_replace_getopt= |
| 17799 |
|
| 17800 |
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 17801 |
for ac_header in getopt.h |
| 17802 |
do : |
| 17803 |
ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 17804 |
if test "x$ac_cv_header_getopt_h" = xyes; then : |
| 17805 |
cat >>confdefs.h <<_ACEOF |
| 17806 |
#define HAVE_GETOPT_H 1 |
| 17807 |
_ACEOF |
| 17808 |
|
| 17809 |
else |
| 17810 |
gl_replace_getopt=yes |
| 17811 |
fi |
| 17812 |
|
| 17813 |
done |
| 17814 |
|
| 17815 |
fi |
| 17816 |
|
| 17817 |
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 17818 |
for ac_func in getopt_long_only |
| 17819 |
do : |
| 17820 |
ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" |
| 17821 |
if test "x$ac_cv_func_getopt_long_only" = xyes; then : |
| 17822 |
cat >>confdefs.h <<_ACEOF |
| 17823 |
#define HAVE_GETOPT_LONG_ONLY 1 |
| 17824 |
_ACEOF |
| 17825 |
|
| 17826 |
else |
| 17827 |
gl_replace_getopt=yes |
| 17828 |
fi |
| 17829 |
done |
| 17830 |
|
| 17831 |
fi |
| 17832 |
|
| 17833 |
if test -z "$gl_replace_getopt"; then |
| 17834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 |
| 17835 |
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } |
| 17836 |
if ${gl_cv_func_getopt_posix+:} false; then : |
| 17837 |
$as_echo_n "(cached) " >&6 |
| 17838 |
else |
| 17839 |
|
| 17840 |
if test $cross_compiling = no; then |
| 17841 |
if test "$cross_compiling" = yes; then : |
| 17842 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17843 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17844 |
as_fn_error $? "cannot run test program while cross compiling |
| 17845 |
See \`config.log' for more details" "$LINENO" 5; } |
| 17846 |
else |
| 17847 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17848 |
/* end confdefs.h. */ |
| 17849 |
|
| 17850 |
#include <unistd.h> |
| 17851 |
#include <stdlib.h> |
| 17852 |
#include <string.h> |
| 17853 |
|
| 17854 |
int |
| 17855 |
main () |
| 17856 |
{ |
| 17857 |
static char program[] = "program"; |
| 17858 |
static char a[] = "-a"; |
| 17859 |
static char foo[] = "foo"; |
| 17860 |
static char bar[] = "bar"; |
| 17861 |
char *argv[] = { program, a, foo, bar, NULL }; |
| 17862 |
int c; |
| 17863 |
|
| 17864 |
c = getopt (4, argv, "ab"); |
| 17865 |
if (!(c == 'a')) |
| 17866 |
return 1; |
| 17867 |
c = getopt (4, argv, "ab"); |
| 17868 |
if (!(c == -1)) |
| 17869 |
return 2; |
| 17870 |
if (!(optind == 2)) |
| 17871 |
return 3; |
| 17872 |
return 0; |
| 17873 |
} |
| 17874 |
|
| 17875 |
_ACEOF |
| 17876 |
if ac_fn_c_try_run "$LINENO"; then : |
| 17877 |
gl_cv_func_getopt_posix=maybe |
| 17878 |
else |
| 17879 |
gl_cv_func_getopt_posix=no |
| 17880 |
fi |
| 17881 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17882 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17883 |
fi |
| 17884 |
|
| 17885 |
if test $gl_cv_func_getopt_posix = maybe; then |
| 17886 |
if test "$cross_compiling" = yes; then : |
| 17887 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17888 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17889 |
as_fn_error $? "cannot run test program while cross compiling |
| 17890 |
See \`config.log' for more details" "$LINENO" 5; } |
| 17891 |
else |
| 17892 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17893 |
/* end confdefs.h. */ |
| 17894 |
|
| 17895 |
#include <unistd.h> |
| 17896 |
#include <stdlib.h> |
| 17897 |
#include <string.h> |
| 17898 |
|
| 17899 |
int |
| 17900 |
main () |
| 17901 |
{ |
| 17902 |
static char program[] = "program"; |
| 17903 |
static char donald[] = "donald"; |
| 17904 |
static char p[] = "-p"; |
| 17905 |
static char billy[] = "billy"; |
| 17906 |
static char duck[] = "duck"; |
| 17907 |
static char a[] = "-a"; |
| 17908 |
static char bar[] = "bar"; |
| 17909 |
char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; |
| 17910 |
int c; |
| 17911 |
|
| 17912 |
c = getopt (7, argv, "+abp:q:"); |
| 17913 |
if (!(c == -1)) |
| 17914 |
return 4; |
| 17915 |
if (!(strcmp (argv[0], "program") == 0)) |
| 17916 |
return 5; |
| 17917 |
if (!(strcmp (argv[1], "donald") == 0)) |
| 17918 |
return 6; |
| 17919 |
if (!(strcmp (argv[2], "-p") == 0)) |
| 17920 |
return 7; |
| 17921 |
if (!(strcmp (argv[3], "billy") == 0)) |
| 17922 |
return 8; |
| 17923 |
if (!(strcmp (argv[4], "duck") == 0)) |
| 17924 |
return 9; |
| 17925 |
if (!(strcmp (argv[5], "-a") == 0)) |
| 17926 |
return 10; |
| 17927 |
if (!(strcmp (argv[6], "bar") == 0)) |
| 17928 |
return 11; |
| 17929 |
if (!(optind == 1)) |
| 17930 |
return 12; |
| 17931 |
return 0; |
| 17932 |
} |
| 17933 |
|
| 17934 |
_ACEOF |
| 17935 |
if ac_fn_c_try_run "$LINENO"; then : |
| 17936 |
gl_cv_func_getopt_posix=maybe |
| 17937 |
else |
| 17938 |
gl_cv_func_getopt_posix=no |
| 17939 |
fi |
| 17940 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17941 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17942 |
fi |
| 17943 |
|
| 17944 |
fi |
| 17945 |
if test $gl_cv_func_getopt_posix = maybe; then |
| 17946 |
if test "$cross_compiling" = yes; then : |
| 17947 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17948 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17949 |
as_fn_error $? "cannot run test program while cross compiling |
| 17950 |
See \`config.log' for more details" "$LINENO" 5; } |
| 17951 |
else |
| 17952 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17953 |
/* end confdefs.h. */ |
| 17954 |
|
| 17955 |
#include <unistd.h> |
| 17956 |
#include <stdlib.h> |
| 17957 |
#include <string.h> |
| 17958 |
|
| 17959 |
int |
| 17960 |
main () |
| 17961 |
{ |
| 17962 |
static char program[] = "program"; |
| 17963 |
static char ab[] = "-ab"; |
| 17964 |
char *argv[3] = { program, ab, NULL }; |
| 17965 |
if (getopt (2, argv, "ab:") != 'a') |
| 17966 |
return 13; |
| 17967 |
if (getopt (2, argv, "ab:") != '?') |
| 17968 |
return 14; |
| 17969 |
if (optopt != 'b') |
| 17970 |
return 15; |
| 17971 |
if (optind != 2) |
| 17972 |
return 16; |
| 17973 |
return 0; |
| 17974 |
} |
| 17975 |
|
| 17976 |
_ACEOF |
| 17977 |
if ac_fn_c_try_run "$LINENO"; then : |
| 17978 |
gl_cv_func_getopt_posix=yes |
| 17979 |
else |
| 17980 |
gl_cv_func_getopt_posix=no |
| 17981 |
fi |
| 17982 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17983 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17984 |
fi |
| 17985 |
|
| 17986 |
fi |
| 17987 |
else |
| 17988 |
case "$host_os" in |
| 17989 |
darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; |
| 17990 |
*) gl_cv_func_getopt_posix="guessing yes";; |
| 17991 |
esac |
| 17992 |
fi |
| 17993 |
|
| 17994 |
fi |
| 17995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 |
| 17996 |
$as_echo "$gl_cv_func_getopt_posix" >&6; } |
| 17997 |
case "$gl_cv_func_getopt_posix" in |
| 17998 |
*no) gl_replace_getopt=yes ;; |
| 17999 |
esac |
| 18000 |
fi |
| 18001 |
|
| 18002 |
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 18003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 |
| 18004 |
$as_echo_n "checking for working GNU getopt function... " >&6; } |
| 18005 |
if ${gl_cv_func_getopt_gnu+:} false; then : |
| 18006 |
$as_echo_n "(cached) " >&6 |
| 18007 |
else |
| 18008 |
# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the |
| 18009 |
# optstring is necessary for programs like m4 that have POSIX-mandated |
| 18010 |
# semantics for supporting options interspersed with files. |
| 18011 |
# Also, since getopt_long is a GNU extension, we require optind=0. |
| 18012 |
# Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; |
| 18013 |
# so take care to revert to the correct (non-)export state. |
| 18014 |
gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' |
| 18015 |
case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in |
| 18016 |
xx) gl_had_POSIXLY_CORRECT=exported ;; |
| 18017 |
x) gl_had_POSIXLY_CORRECT=yes ;; |
| 18018 |
*) gl_had_POSIXLY_CORRECT= ;; |
| 18019 |
esac |
| 18020 |
POSIXLY_CORRECT=1 |
| 18021 |
export POSIXLY_CORRECT |
| 18022 |
if test "$cross_compiling" = yes; then : |
| 18023 |
gl_cv_func_getopt_gnu="guessing no" |
| 18024 |
|
| 18025 |
else |
| 18026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18027 |
/* end confdefs.h. */ |
| 18028 |
#include <getopt.h> |
| 18029 |
#include <stddef.h> |
| 18030 |
#include <string.h> |
| 18031 |
|
| 18032 |
#include <stdlib.h> |
| 18033 |
#if defined __MACH__ && defined __APPLE__ |
| 18034 |
/* Avoid a crash on Mac OS X. */ |
| 18035 |
#include <mach/mach.h> |
| 18036 |
#include <mach/mach_error.h> |
| 18037 |
#include <mach/thread_status.h> |
| 18038 |
#include <mach/exception.h> |
| 18039 |
#include <mach/task.h> |
| 18040 |
#include <pthread.h> |
| 18041 |
/* The exception port on which our thread listens. */ |
| 18042 |
static mach_port_t our_exception_port; |
| 18043 |
/* The main function of the thread listening for exceptions of type |
| 18044 |
EXC_BAD_ACCESS. */ |
| 18045 |
static void * |
| 18046 |
mach_exception_thread (void *arg) |
| 18047 |
{ |
| 18048 |
/* Buffer for a message to be received. */ |
| 18049 |
struct { |
| 18050 |
mach_msg_header_t head; |
| 18051 |
mach_msg_body_t msgh_body; |
| 18052 |
char data[1024]; |
| 18053 |
} msg; |
| 18054 |
mach_msg_return_t retval; |
| 18055 |
/* Wait for a message on the exception port. */ |
| 18056 |
retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), |
| 18057 |
our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |
| 18058 |
if (retval != MACH_MSG_SUCCESS) |
| 18059 |
abort (); |
| 18060 |
exit (1); |
| 18061 |
} |
| 18062 |
static void |
| 18063 |
nocrash_init (void) |
| 18064 |
{ |
| 18065 |
mach_port_t self = mach_task_self (); |
| 18066 |
/* Allocate a port on which the thread shall listen for exceptions. */ |
| 18067 |
if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) |
| 18068 |
== KERN_SUCCESS) { |
| 18069 |
/* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ |
| 18070 |
if (mach_port_insert_right (self, our_exception_port, our_exception_port, |
| 18071 |
MACH_MSG_TYPE_MAKE_SEND) |
| 18072 |
== KERN_SUCCESS) { |
| 18073 |
/* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting |
| 18074 |
for us. */ |
| 18075 |
exception_mask_t mask = EXC_MASK_BAD_ACCESS; |
| 18076 |
/* Create the thread listening on the exception port. */ |
| 18077 |
pthread_attr_t attr; |
| 18078 |
pthread_t thread; |
| 18079 |
if (pthread_attr_init (&attr) == 0 |
| 18080 |
&& pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 |
| 18081 |
&& pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { |
| 18082 |
pthread_attr_destroy (&attr); |
| 18083 |
/* Replace the exception port info for these exceptions with our own. |
| 18084 |
Note that we replace the exception port for the entire task, not only |
| 18085 |
for a particular thread. This has the effect that when our exception |
| 18086 |
port gets the message, the thread specific exception port has already |
| 18087 |
been asked, and we don't need to bother about it. |
| 18088 |
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ |
| 18089 |
task_set_exception_ports (self, mask, our_exception_port, |
| 18090 |
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); |
| 18091 |
} |
| 18092 |
} |
| 18093 |
} |
| 18094 |
} |
| 18095 |
#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 18096 |
/* Avoid a crash on native Windows. */ |
| 18097 |
#define WIN32_LEAN_AND_MEAN |
| 18098 |
#include <windows.h> |
| 18099 |
#include <winerror.h> |
| 18100 |
static LONG WINAPI |
| 18101 |
exception_filter (EXCEPTION_POINTERS *ExceptionInfo) |
| 18102 |
{ |
| 18103 |
switch (ExceptionInfo->ExceptionRecord->ExceptionCode) |
| 18104 |
{ |
| 18105 |
case EXCEPTION_ACCESS_VIOLATION: |
| 18106 |
case EXCEPTION_IN_PAGE_ERROR: |
| 18107 |
case EXCEPTION_STACK_OVERFLOW: |
| 18108 |
case EXCEPTION_GUARD_PAGE: |
| 18109 |
case EXCEPTION_PRIV_INSTRUCTION: |
| 18110 |
case EXCEPTION_ILLEGAL_INSTRUCTION: |
| 18111 |
case EXCEPTION_DATATYPE_MISALIGNMENT: |
| 18112 |
case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: |
| 18113 |
case EXCEPTION_NONCONTINUABLE_EXCEPTION: |
| 18114 |
exit (1); |
| 18115 |
} |
| 18116 |
return EXCEPTION_CONTINUE_SEARCH; |
| 18117 |
} |
| 18118 |
static void |
| 18119 |
nocrash_init (void) |
| 18120 |
{ |
| 18121 |
SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); |
| 18122 |
} |
| 18123 |
#else |
| 18124 |
/* Avoid a crash on POSIX systems. */ |
| 18125 |
#include <signal.h> |
| 18126 |
/* A POSIX signal handler. */ |
| 18127 |
static void |
| 18128 |
exception_handler (int sig) |
| 18129 |
{ |
| 18130 |
exit (1); |
| 18131 |
} |
| 18132 |
static void |
| 18133 |
nocrash_init (void) |
| 18134 |
{ |
| 18135 |
#ifdef SIGSEGV |
| 18136 |
signal (SIGSEGV, exception_handler); |
| 18137 |
#endif |
| 18138 |
#ifdef SIGBUS |
| 18139 |
signal (SIGBUS, exception_handler); |
| 18140 |
#endif |
| 18141 |
} |
| 18142 |
#endif |
| 18143 |
|
| 18144 |
|
| 18145 |
int |
| 18146 |
main () |
| 18147 |
{ |
| 18148 |
|
| 18149 |
int result = 0; |
| 18150 |
|
| 18151 |
nocrash_init(); |
| 18152 |
|
| 18153 |
/* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, |
| 18154 |
and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, |
| 18155 |
OSF/1 5.1, Solaris 10. */ |
| 18156 |
{ |
| 18157 |
static char conftest[] = "conftest"; |
| 18158 |
static char plus[] = "-+"; |
| 18159 |
char *argv[3] = { conftest, plus, NULL }; |
| 18160 |
opterr = 0; |
| 18161 |
if (getopt (2, argv, "+a") != '?') |
| 18162 |
result |= 1; |
| 18163 |
} |
| 18164 |
/* This code succeeds on glibc 2.8, mingw, |
| 18165 |
and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, |
| 18166 |
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ |
| 18167 |
{ |
| 18168 |
static char program[] = "program"; |
| 18169 |
static char p[] = "-p"; |
| 18170 |
static char foo[] = "foo"; |
| 18171 |
static char bar[] = "bar"; |
| 18172 |
char *argv[] = { program, p, foo, bar, NULL }; |
| 18173 |
|
| 18174 |
optind = 1; |
| 18175 |
if (getopt (4, argv, "p::") != 'p') |
| 18176 |
result |= 2; |
| 18177 |
else if (optarg != NULL) |
| 18178 |
result |= 4; |
| 18179 |
else if (getopt (4, argv, "p::") != -1) |
| 18180 |
result |= 6; |
| 18181 |
else if (optind != 2) |
| 18182 |
result |= 8; |
| 18183 |
} |
| 18184 |
/* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ |
| 18185 |
{ |
| 18186 |
static char program[] = "program"; |
| 18187 |
static char foo[] = "foo"; |
| 18188 |
static char p[] = "-p"; |
| 18189 |
char *argv[] = { program, foo, p, NULL }; |
| 18190 |
optind = 0; |
| 18191 |
if (getopt (3, argv, "-p") != 1) |
| 18192 |
result |= 16; |
| 18193 |
else if (getopt (3, argv, "-p") != 'p') |
| 18194 |
result |= 16; |
| 18195 |
} |
| 18196 |
/* This code fails on glibc 2.11. */ |
| 18197 |
{ |
| 18198 |
static char program[] = "program"; |
| 18199 |
static char b[] = "-b"; |
| 18200 |
static char a[] = "-a"; |
| 18201 |
char *argv[] = { program, b, a, NULL }; |
| 18202 |
optind = opterr = 0; |
| 18203 |
if (getopt (3, argv, "+:a:b") != 'b') |
| 18204 |
result |= 32; |
| 18205 |
else if (getopt (3, argv, "+:a:b") != ':') |
| 18206 |
result |= 32; |
| 18207 |
} |
| 18208 |
/* This code dumps core on glibc 2.14. */ |
| 18209 |
{ |
| 18210 |
static char program[] = "program"; |
| 18211 |
static char w[] = "-W"; |
| 18212 |
static char dummy[] = "dummy"; |
| 18213 |
char *argv[] = { program, w, dummy, NULL }; |
| 18214 |
optind = opterr = 1; |
| 18215 |
if (getopt (3, argv, "W;") != 'W') |
| 18216 |
result |= 64; |
| 18217 |
} |
| 18218 |
return result; |
| 18219 |
|
| 18220 |
; |
| 18221 |
return 0; |
| 18222 |
} |
| 18223 |
_ACEOF |
| 18224 |
if ac_fn_c_try_run "$LINENO"; then : |
| 18225 |
gl_cv_func_getopt_gnu=yes |
| 18226 |
else |
| 18227 |
gl_cv_func_getopt_gnu=no |
| 18228 |
fi |
| 18229 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18230 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18231 |
fi |
| 18232 |
|
| 18233 |
case $gl_had_POSIXLY_CORRECT in |
| 18234 |
exported) ;; |
| 18235 |
yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; |
| 18236 |
*) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; |
| 18237 |
esac |
| 18238 |
|
| 18239 |
fi |
| 18240 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 |
| 18241 |
$as_echo "$gl_cv_func_getopt_gnu" >&6; } |
| 18242 |
if test "$gl_cv_func_getopt_gnu" != yes; then |
| 18243 |
gl_replace_getopt=yes |
| 18244 |
else |
| 18245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 |
| 18246 |
$as_echo_n "checking for working GNU getopt_long function... " >&6; } |
| 18247 |
if ${gl_cv_func_getopt_long_gnu+:} false; then : |
| 18248 |
$as_echo_n "(cached) " >&6 |
| 18249 |
else |
| 18250 |
if test "$cross_compiling" = yes; then : |
| 18251 |
case "$host_os" in |
| 18252 |
openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; |
| 18253 |
*) gl_cv_func_getopt_long_gnu="guessing yes";; |
| 18254 |
esac |
| 18255 |
|
| 18256 |
else |
| 18257 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18258 |
/* end confdefs.h. */ |
| 18259 |
#include <getopt.h> |
| 18260 |
#include <stddef.h> |
| 18261 |
#include <string.h> |
| 18262 |
|
| 18263 |
int |
| 18264 |
main () |
| 18265 |
{ |
| 18266 |
static const struct option long_options[] = |
| 18267 |
{ |
| 18268 |
{ "xtremely-",no_argument, NULL, 1003 }, |
| 18269 |
{ "xtra", no_argument, NULL, 1001 }, |
| 18270 |
{ "xtreme", no_argument, NULL, 1002 }, |
| 18271 |
{ "xtremely", no_argument, NULL, 1003 }, |
| 18272 |
{ NULL, 0, NULL, 0 } |
| 18273 |
}; |
| 18274 |
/* This code fails on OpenBSD 5.0. */ |
| 18275 |
{ |
| 18276 |
static char program[] = "program"; |
| 18277 |
static char xtremel[] = "--xtremel"; |
| 18278 |
char *argv[] = { program, xtremel, NULL }; |
| 18279 |
int option_index; |
| 18280 |
optind = 1; opterr = 0; |
| 18281 |
if (getopt_long (2, argv, "", long_options, &option_index) != 1003) |
| 18282 |
return 1; |
| 18283 |
} |
| 18284 |
return 0; |
| 18285 |
|
| 18286 |
; |
| 18287 |
return 0; |
| 18288 |
} |
| 18289 |
_ACEOF |
| 18290 |
if ac_fn_c_try_run "$LINENO"; then : |
| 18291 |
gl_cv_func_getopt_long_gnu=yes |
| 18292 |
else |
| 18293 |
gl_cv_func_getopt_long_gnu=no |
| 18294 |
fi |
| 18295 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18296 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18297 |
fi |
| 18298 |
|
| 18299 |
|
| 18300 |
fi |
| 18301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 |
| 18302 |
$as_echo "$gl_cv_func_getopt_long_gnu" >&6; } |
| 18303 |
case "$gl_cv_func_getopt_long_gnu" in |
| 18304 |
*yes) ;; |
| 18305 |
*) gl_replace_getopt=yes ;; |
| 18306 |
esac |
| 18307 |
fi |
| 18308 |
fi |
| 18309 |
|
| 18310 |
|
| 18311 |
|
| 18312 |
|
| 18313 |
|
| 18314 |
|
| 18315 |
REPLACE_GETOPT=0 |
| 18316 |
if test -n "$gl_replace_getopt"; then |
| 18317 |
REPLACE_GETOPT=1 |
| 18318 |
fi |
| 18319 |
|
| 18320 |
if test $REPLACE_GETOPT = 1; then |
| 18321 |
|
| 18322 |
GETOPT_H=getopt.h |
| 18323 |
|
| 18324 |
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 18325 |
|
| 18326 |
|
| 18327 |
|
| 18328 |
fi |
| 18329 |
|
| 18330 |
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" |
| 18331 |
if test "x$ac_cv_have_decl_getenv" = xyes; then : |
| 18332 |
ac_have_decl=1 |
| 18333 |
else |
| 18334 |
ac_have_decl=0 |
| 18335 |
fi |
| 18336 |
|
| 18337 |
cat >>confdefs.h <<_ACEOF |
| 18338 |
#define HAVE_DECL_GETENV $ac_have_decl |
| 18339 |
_ACEOF |
| 18340 |
|
| 18341 |
|
| 18342 |
GNULIB_ACOSF=0; |
| 18343 |
GNULIB_ACOSL=0; |
| 18344 |
GNULIB_ASINF=0; |
| 18345 |
GNULIB_ASINL=0; |
| 18346 |
GNULIB_ATANF=0; |
| 18347 |
GNULIB_ATANL=0; |
| 18348 |
GNULIB_ATAN2F=0; |
| 18349 |
GNULIB_CBRT=0; |
| 18350 |
GNULIB_CBRTF=0; |
| 18351 |
GNULIB_CBRTL=0; |
| 18352 |
GNULIB_CEIL=0; |
| 18353 |
GNULIB_CEILF=0; |
| 18354 |
GNULIB_CEILL=0; |
| 18355 |
GNULIB_COPYSIGN=0; |
| 18356 |
GNULIB_COPYSIGNF=0; |
| 18357 |
GNULIB_COPYSIGNL=0; |
| 18358 |
GNULIB_COSF=0; |
| 18359 |
GNULIB_COSL=0; |
| 18360 |
GNULIB_COSHF=0; |
| 18361 |
GNULIB_EXPF=0; |
| 18362 |
GNULIB_EXPL=0; |
| 18363 |
GNULIB_EXP2=0; |
| 18364 |
GNULIB_EXP2F=0; |
| 18365 |
GNULIB_EXP2L=0; |
| 18366 |
GNULIB_EXPM1=0; |
| 18367 |
GNULIB_EXPM1F=0; |
| 18368 |
GNULIB_EXPM1L=0; |
| 18369 |
GNULIB_FABSF=0; |
| 18370 |
GNULIB_FABSL=0; |
| 18371 |
GNULIB_FLOOR=0; |
| 18372 |
GNULIB_FLOORF=0; |
| 18373 |
GNULIB_FLOORL=0; |
| 18374 |
GNULIB_FMA=0; |
| 18375 |
GNULIB_FMAF=0; |
| 18376 |
GNULIB_FMAL=0; |
| 18377 |
GNULIB_FMOD=0; |
| 18378 |
GNULIB_FMODF=0; |
| 18379 |
GNULIB_FMODL=0; |
| 18380 |
GNULIB_FREXPF=0; |
| 18381 |
GNULIB_FREXP=0; |
| 18382 |
GNULIB_FREXPL=0; |
| 18383 |
GNULIB_HYPOT=0; |
| 18384 |
GNULIB_HYPOTF=0; |
| 18385 |
GNULIB_HYPOTL=0; |
| 18386 |
GNULIB_ILOGB=0; |
| 18387 |
GNULIB_ILOGBF=0; |
| 18388 |
GNULIB_ILOGBL=0; |
| 18389 |
GNULIB_ISFINITE=0; |
| 18390 |
GNULIB_ISINF=0; |
| 18391 |
GNULIB_ISNAN=0; |
| 18392 |
GNULIB_ISNANF=0; |
| 18393 |
GNULIB_ISNAND=0; |
| 18394 |
GNULIB_ISNANL=0; |
| 18395 |
GNULIB_LDEXPF=0; |
| 18396 |
GNULIB_LDEXPL=0; |
| 18397 |
GNULIB_LOG=0; |
| 18398 |
GNULIB_LOGF=0; |
| 18399 |
GNULIB_LOGL=0; |
| 18400 |
GNULIB_LOG10=0; |
| 18401 |
GNULIB_LOG10F=0; |
| 18402 |
GNULIB_LOG10L=0; |
| 18403 |
GNULIB_LOG1P=0; |
| 18404 |
GNULIB_LOG1PF=0; |
| 18405 |
GNULIB_LOG1PL=0; |
| 18406 |
GNULIB_LOG2=0; |
| 18407 |
GNULIB_LOG2F=0; |
| 18408 |
GNULIB_LOG2L=0; |
| 18409 |
GNULIB_LOGB=0; |
| 18410 |
GNULIB_LOGBF=0; |
| 18411 |
GNULIB_LOGBL=0; |
| 18412 |
GNULIB_MODF=0; |
| 18413 |
GNULIB_MODFF=0; |
| 18414 |
GNULIB_MODFL=0; |
| 18415 |
GNULIB_POWF=0; |
| 18416 |
GNULIB_REMAINDER=0; |
| 18417 |
GNULIB_REMAINDERF=0; |
| 18418 |
GNULIB_REMAINDERL=0; |
| 18419 |
GNULIB_RINT=0; |
| 18420 |
GNULIB_RINTF=0; |
| 18421 |
GNULIB_RINTL=0; |
| 18422 |
GNULIB_ROUND=0; |
| 18423 |
GNULIB_ROUNDF=0; |
| 18424 |
GNULIB_ROUNDL=0; |
| 18425 |
GNULIB_SIGNBIT=0; |
| 18426 |
GNULIB_SINF=0; |
| 18427 |
GNULIB_SINL=0; |
| 18428 |
GNULIB_SINHF=0; |
| 18429 |
GNULIB_SQRTF=0; |
| 18430 |
GNULIB_SQRTL=0; |
| 18431 |
GNULIB_TANF=0; |
| 18432 |
GNULIB_TANL=0; |
| 18433 |
GNULIB_TANHF=0; |
| 18434 |
GNULIB_TRUNC=0; |
| 18435 |
GNULIB_TRUNCF=0; |
| 18436 |
GNULIB_TRUNCL=0; |
| 18437 |
HAVE_ACOSF=1; |
| 18438 |
HAVE_ACOSL=1; |
| 18439 |
HAVE_ASINF=1; |
| 18440 |
HAVE_ASINL=1; |
| 18441 |
HAVE_ATANF=1; |
| 18442 |
HAVE_ATANL=1; |
| 18443 |
HAVE_ATAN2F=1; |
| 18444 |
HAVE_CBRT=1; |
| 18445 |
HAVE_CBRTF=1; |
| 18446 |
HAVE_CBRTL=1; |
| 18447 |
HAVE_COPYSIGN=1; |
| 18448 |
HAVE_COPYSIGNL=1; |
| 18449 |
HAVE_COSF=1; |
| 18450 |
HAVE_COSL=1; |
| 18451 |
HAVE_COSHF=1; |
| 18452 |
HAVE_EXPF=1; |
| 18453 |
HAVE_EXPL=1; |
| 18454 |
HAVE_EXPM1=1; |
| 18455 |
HAVE_EXPM1F=1; |
| 18456 |
HAVE_FABSF=1; |
| 18457 |
HAVE_FABSL=1; |
| 18458 |
HAVE_FMA=1; |
| 18459 |
HAVE_FMAF=1; |
| 18460 |
HAVE_FMAL=1; |
| 18461 |
HAVE_FMODF=1; |
| 18462 |
HAVE_FMODL=1; |
| 18463 |
HAVE_FREXPF=1; |
| 18464 |
HAVE_HYPOTF=1; |
| 18465 |
HAVE_HYPOTL=1; |
| 18466 |
HAVE_ILOGB=1; |
| 18467 |
HAVE_ILOGBF=1; |
| 18468 |
HAVE_ILOGBL=1; |
| 18469 |
HAVE_ISNANF=1; |
| 18470 |
HAVE_ISNAND=1; |
| 18471 |
HAVE_ISNANL=1; |
| 18472 |
HAVE_LDEXPF=1; |
| 18473 |
HAVE_LOGF=1; |
| 18474 |
HAVE_LOGL=1; |
| 18475 |
HAVE_LOG10F=1; |
| 18476 |
HAVE_LOG10L=1; |
| 18477 |
HAVE_LOG1P=1; |
| 18478 |
HAVE_LOG1PF=1; |
| 18479 |
HAVE_LOG1PL=1; |
| 18480 |
HAVE_LOGBF=1; |
| 18481 |
HAVE_LOGBL=1; |
| 18482 |
HAVE_MODFF=1; |
| 18483 |
HAVE_MODFL=1; |
| 18484 |
HAVE_POWF=1; |
| 18485 |
HAVE_REMAINDER=1; |
| 18486 |
HAVE_REMAINDERF=1; |
| 18487 |
HAVE_RINT=1; |
| 18488 |
HAVE_RINTL=1; |
| 18489 |
HAVE_SINF=1; |
| 18490 |
HAVE_SINL=1; |
| 18491 |
HAVE_SINHF=1; |
| 18492 |
HAVE_SQRTF=1; |
| 18493 |
HAVE_SQRTL=1; |
| 18494 |
HAVE_TANF=1; |
| 18495 |
HAVE_TANL=1; |
| 18496 |
HAVE_TANHF=1; |
| 18497 |
HAVE_DECL_ACOSL=1; |
| 18498 |
HAVE_DECL_ASINL=1; |
| 18499 |
HAVE_DECL_ATANL=1; |
| 18500 |
HAVE_DECL_CBRTF=1; |
| 18501 |
HAVE_DECL_CBRTL=1; |
| 18502 |
HAVE_DECL_CEILF=1; |
| 18503 |
HAVE_DECL_CEILL=1; |
| 18504 |
HAVE_DECL_COPYSIGNF=1; |
| 18505 |
HAVE_DECL_COSL=1; |
| 18506 |
HAVE_DECL_EXPL=1; |
| 18507 |
HAVE_DECL_EXP2=1; |
| 18508 |
HAVE_DECL_EXP2F=1; |
| 18509 |
HAVE_DECL_EXP2L=1; |
| 18510 |
HAVE_DECL_EXPM1L=1; |
| 18511 |
HAVE_DECL_FLOORF=1; |
| 18512 |
HAVE_DECL_FLOORL=1; |
| 18513 |
HAVE_DECL_FREXPL=1; |
| 18514 |
HAVE_DECL_LDEXPL=1; |
| 18515 |
HAVE_DECL_LOGL=1; |
| 18516 |
HAVE_DECL_LOG10L=1; |
| 18517 |
HAVE_DECL_LOG2=1; |
| 18518 |
HAVE_DECL_LOG2F=1; |
| 18519 |
HAVE_DECL_LOG2L=1; |
| 18520 |
HAVE_DECL_LOGB=1; |
| 18521 |
HAVE_DECL_REMAINDER=1; |
| 18522 |
HAVE_DECL_REMAINDERL=1; |
| 18523 |
HAVE_DECL_RINTF=1; |
| 18524 |
HAVE_DECL_ROUND=1; |
| 18525 |
HAVE_DECL_ROUNDF=1; |
| 18526 |
HAVE_DECL_ROUNDL=1; |
| 18527 |
HAVE_DECL_SINL=1; |
| 18528 |
HAVE_DECL_SQRTL=1; |
| 18529 |
HAVE_DECL_TANL=1; |
| 18530 |
HAVE_DECL_TRUNC=1; |
| 18531 |
HAVE_DECL_TRUNCF=1; |
| 18532 |
HAVE_DECL_TRUNCL=1; |
| 18533 |
REPLACE_CBRTF=0; |
| 18534 |
REPLACE_CBRTL=0; |
| 18535 |
REPLACE_CEIL=0; |
| 18536 |
REPLACE_CEILF=0; |
| 18537 |
REPLACE_CEILL=0; |
| 18538 |
REPLACE_EXPM1=0; |
| 18539 |
REPLACE_EXPM1F=0; |
| 18540 |
REPLACE_EXP2=0; |
| 18541 |
REPLACE_EXP2L=0; |
| 18542 |
REPLACE_FABSL=0; |
| 18543 |
REPLACE_FLOOR=0; |
| 18544 |
REPLACE_FLOORF=0; |
| 18545 |
REPLACE_FLOORL=0; |
| 18546 |
REPLACE_FMA=0; |
| 18547 |
REPLACE_FMAF=0; |
| 18548 |
REPLACE_FMAL=0; |
| 18549 |
REPLACE_FMOD=0; |
| 18550 |
REPLACE_FMODF=0; |
| 18551 |
REPLACE_FMODL=0; |
| 18552 |
REPLACE_FREXPF=0; |
| 18553 |
REPLACE_FREXP=0; |
| 18554 |
REPLACE_FREXPL=0; |
| 18555 |
REPLACE_HUGE_VAL=0; |
| 18556 |
REPLACE_HYPOT=0; |
| 18557 |
REPLACE_HYPOTF=0; |
| 18558 |
REPLACE_HYPOTL=0; |
| 18559 |
REPLACE_ILOGB=0; |
| 18560 |
REPLACE_ILOGBF=0; |
| 18561 |
REPLACE_ISFINITE=0; |
| 18562 |
REPLACE_ISINF=0; |
| 18563 |
REPLACE_ISNAN=0; |
| 18564 |
REPLACE_LDEXPL=0; |
| 18565 |
REPLACE_LOG=0; |
| 18566 |
REPLACE_LOGF=0; |
| 18567 |
REPLACE_LOGL=0; |
| 18568 |
REPLACE_LOG10=0; |
| 18569 |
REPLACE_LOG10F=0; |
| 18570 |
REPLACE_LOG10L=0; |
| 18571 |
REPLACE_LOG1P=0; |
| 18572 |
REPLACE_LOG1PF=0; |
| 18573 |
REPLACE_LOG1PL=0; |
| 18574 |
REPLACE_LOG2=0; |
| 18575 |
REPLACE_LOG2F=0; |
| 18576 |
REPLACE_LOG2L=0; |
| 18577 |
REPLACE_LOGB=0; |
| 18578 |
REPLACE_LOGBF=0; |
| 18579 |
REPLACE_LOGBL=0; |
| 18580 |
REPLACE_MODF=0; |
| 18581 |
REPLACE_MODFF=0; |
| 18582 |
REPLACE_MODFL=0; |
| 18583 |
REPLACE_NAN=0; |
| 18584 |
REPLACE_REMAINDER=0; |
| 18585 |
REPLACE_REMAINDERF=0; |
| 18586 |
REPLACE_REMAINDERL=0; |
| 18587 |
REPLACE_ROUND=0; |
| 18588 |
REPLACE_ROUNDF=0; |
| 18589 |
REPLACE_ROUNDL=0; |
| 18590 |
REPLACE_SIGNBIT=0; |
| 18591 |
REPLACE_SIGNBIT_USING_GCC=0; |
| 18592 |
REPLACE_SQRTL=0; |
| 18593 |
REPLACE_TRUNC=0; |
| 18594 |
REPLACE_TRUNCF=0; |
| 18595 |
REPLACE_TRUNCL=0; |
| 18596 |
|
| 18597 |
|
| 18598 |
|
| 18599 |
|
| 18600 |
|
| 18601 |
|
| 18602 |
|
| 18603 |
|
| 18604 |
GNULIB_FFSL=0; |
| 18605 |
GNULIB_FFSLL=0; |
| 18606 |
GNULIB_MEMCHR=0; |
| 18607 |
GNULIB_MEMMEM=0; |
| 18608 |
GNULIB_MEMPCPY=0; |
| 18609 |
GNULIB_MEMRCHR=0; |
| 18610 |
GNULIB_RAWMEMCHR=0; |
| 18611 |
GNULIB_STPCPY=0; |
| 18612 |
GNULIB_STPNCPY=0; |
| 18613 |
GNULIB_STRCHRNUL=0; |
| 18614 |
GNULIB_STRDUP=0; |
| 18615 |
GNULIB_STRNCAT=0; |
| 18616 |
GNULIB_STRNDUP=0; |
| 18617 |
GNULIB_STRNLEN=0; |
| 18618 |
GNULIB_STRPBRK=0; |
| 18619 |
GNULIB_STRSEP=0; |
| 18620 |
GNULIB_STRSTR=0; |
| 18621 |
GNULIB_STRCASESTR=0; |
| 18622 |
GNULIB_STRTOK_R=0; |
| 18623 |
GNULIB_MBSLEN=0; |
| 18624 |
GNULIB_MBSNLEN=0; |
| 18625 |
GNULIB_MBSCHR=0; |
| 18626 |
GNULIB_MBSRCHR=0; |
| 18627 |
GNULIB_MBSSTR=0; |
| 18628 |
GNULIB_MBSCASECMP=0; |
| 18629 |
GNULIB_MBSNCASECMP=0; |
| 18630 |
GNULIB_MBSPCASECMP=0; |
| 18631 |
GNULIB_MBSCASESTR=0; |
| 18632 |
GNULIB_MBSCSPN=0; |
| 18633 |
GNULIB_MBSPBRK=0; |
| 18634 |
GNULIB_MBSSPN=0; |
| 18635 |
GNULIB_MBSSEP=0; |
| 18636 |
GNULIB_MBSTOK_R=0; |
| 18637 |
GNULIB_STRERROR=0; |
| 18638 |
GNULIB_STRERROR_R=0; |
| 18639 |
GNULIB_STRSIGNAL=0; |
| 18640 |
GNULIB_STRVERSCMP=0; |
| 18641 |
HAVE_MBSLEN=0; |
| 18642 |
HAVE_FFSL=1; |
| 18643 |
HAVE_FFSLL=1; |
| 18644 |
HAVE_MEMCHR=1; |
| 18645 |
HAVE_DECL_MEMMEM=1; |
| 18646 |
HAVE_MEMPCPY=1; |
| 18647 |
HAVE_DECL_MEMRCHR=1; |
| 18648 |
HAVE_RAWMEMCHR=1; |
| 18649 |
HAVE_STPCPY=1; |
| 18650 |
HAVE_STPNCPY=1; |
| 18651 |
HAVE_STRCHRNUL=1; |
| 18652 |
HAVE_DECL_STRDUP=1; |
| 18653 |
HAVE_DECL_STRNDUP=1; |
| 18654 |
HAVE_DECL_STRNLEN=1; |
| 18655 |
HAVE_STRPBRK=1; |
| 18656 |
HAVE_STRSEP=1; |
| 18657 |
HAVE_STRCASESTR=1; |
| 18658 |
HAVE_DECL_STRTOK_R=1; |
| 18659 |
HAVE_DECL_STRERROR_R=1; |
| 18660 |
HAVE_DECL_STRSIGNAL=1; |
| 18661 |
HAVE_STRVERSCMP=1; |
| 18662 |
REPLACE_MEMCHR=0; |
| 18663 |
REPLACE_MEMMEM=0; |
| 18664 |
REPLACE_STPNCPY=0; |
| 18665 |
REPLACE_STRDUP=0; |
| 18666 |
REPLACE_STRSTR=0; |
| 18667 |
REPLACE_STRCASESTR=0; |
| 18668 |
REPLACE_STRCHRNUL=0; |
| 18669 |
REPLACE_STRERROR=0; |
| 18670 |
REPLACE_STRERROR_R=0; |
| 18671 |
REPLACE_STRNCAT=0; |
| 18672 |
REPLACE_STRNDUP=0; |
| 18673 |
REPLACE_STRNLEN=0; |
| 18674 |
REPLACE_STRSIGNAL=0; |
| 18675 |
REPLACE_STRTOK_R=0; |
| 18676 |
UNDEFINE_STRTOK_R=0; |
| 18677 |
|
| 18678 |
|
| 18679 |
|
| 18680 |
|
| 18681 |
|
| 18682 |
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it |
| 18683 |
# fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is |
| 18684 |
# irrelevant for anonymous mappings. |
| 18685 |
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" |
| 18686 |
if test "x$ac_cv_func_mmap" = xyes; then : |
| 18687 |
gl_have_mmap=yes |
| 18688 |
else |
| 18689 |
gl_have_mmap=no |
| 18690 |
fi |
| 18691 |
|
| 18692 |
|
| 18693 |
# Try to allow MAP_ANONYMOUS. |
| 18694 |
gl_have_mmap_anonymous=no |
| 18695 |
if test $gl_have_mmap = yes; then |
| 18696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 |
| 18697 |
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } |
| 18698 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18699 |
/* end confdefs.h. */ |
| 18700 |
|
| 18701 |
#include <sys/mman.h> |
| 18702 |
#ifdef MAP_ANONYMOUS |
| 18703 |
I cannot identify this map |
| 18704 |
#endif |
| 18705 |
|
| 18706 |
_ACEOF |
| 18707 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18708 |
$EGREP "I cannot identify this map" >/dev/null 2>&1; then : |
| 18709 |
gl_have_mmap_anonymous=yes |
| 18710 |
fi |
| 18711 |
rm -f conftest* |
| 18712 |
|
| 18713 |
if test $gl_have_mmap_anonymous != yes; then |
| 18714 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18715 |
/* end confdefs.h. */ |
| 18716 |
|
| 18717 |
#include <sys/mman.h> |
| 18718 |
#ifdef MAP_ANON |
| 18719 |
I cannot identify this map |
| 18720 |
#endif |
| 18721 |
|
| 18722 |
_ACEOF |
| 18723 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18724 |
$EGREP "I cannot identify this map" >/dev/null 2>&1; then : |
| 18725 |
|
| 18726 |
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h |
| 18727 |
|
| 18728 |
gl_have_mmap_anonymous=yes |
| 18729 |
fi |
| 18730 |
rm -f conftest* |
| 18731 |
|
| 18732 |
fi |
| 18733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 |
| 18734 |
$as_echo "$gl_have_mmap_anonymous" >&6; } |
| 18735 |
if test $gl_have_mmap_anonymous = yes; then |
| 18736 |
|
| 18737 |
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h |
| 18738 |
|
| 18739 |
fi |
| 18740 |
fi |
| 18741 |
|
| 18742 |
|
| 18743 |
|
| 18744 |
|
| 18745 |
|
| 18746 |
|
| 18747 |
if test $HAVE_MEMCHR = 1; then |
| 18748 |
# Detect platform-specific bugs in some versions of glibc: |
| 18749 |
# memchr should not dereference anything with length 0 |
| 18750 |
# http://bugzilla.redhat.com/499689 |
| 18751 |
# memchr should not dereference overestimated length after a match |
| 18752 |
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 |
| 18753 |
# http://sourceware.org/bugzilla/show_bug.cgi?id=10162 |
| 18754 |
# Assume that memchr works on platforms that lack mprotect. |
| 18755 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 |
| 18756 |
$as_echo_n "checking whether memchr works... " >&6; } |
| 18757 |
if ${gl_cv_func_memchr_works+:} false; then : |
| 18758 |
$as_echo_n "(cached) " >&6 |
| 18759 |
else |
| 18760 |
if test "$cross_compiling" = yes; then : |
| 18761 |
gl_cv_func_memchr_works="guessing no" |
| 18762 |
else |
| 18763 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18764 |
/* end confdefs.h. */ |
| 18765 |
|
| 18766 |
#include <string.h> |
| 18767 |
#if HAVE_SYS_MMAN_H |
| 18768 |
# include <fcntl.h> |
| 18769 |
# include <unistd.h> |
| 18770 |
# include <sys/types.h> |
| 18771 |
# include <sys/mman.h> |
| 18772 |
# ifndef MAP_FILE |
| 18773 |
# define MAP_FILE 0 |
| 18774 |
# endif |
| 18775 |
#endif |
| 18776 |
|
| 18777 |
int |
| 18778 |
main () |
| 18779 |
{ |
| 18780 |
|
| 18781 |
int result = 0; |
| 18782 |
char *fence = NULL; |
| 18783 |
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT |
| 18784 |
# if HAVE_MAP_ANONYMOUS |
| 18785 |
const int flags = MAP_ANONYMOUS | MAP_PRIVATE; |
| 18786 |
const int fd = -1; |
| 18787 |
# else /* !HAVE_MAP_ANONYMOUS */ |
| 18788 |
const int flags = MAP_FILE | MAP_PRIVATE; |
| 18789 |
int fd = open ("/dev/zero", O_RDONLY, 0666); |
| 18790 |
if (fd >= 0) |
| 18791 |
# endif |
| 18792 |
{ |
| 18793 |
int pagesize = getpagesize (); |
| 18794 |
char *two_pages = |
| 18795 |
(char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, |
| 18796 |
flags, fd, 0); |
| 18797 |
if (two_pages != (char *)(-1) |
| 18798 |
&& mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) |
| 18799 |
fence = two_pages + pagesize; |
| 18800 |
} |
| 18801 |
#endif |
| 18802 |
if (fence) |
| 18803 |
{ |
| 18804 |
if (memchr (fence, 0, 0)) |
| 18805 |
result |= 1; |
| 18806 |
strcpy (fence - 9, "12345678"); |
| 18807 |
if (memchr (fence - 9, 0, 79) != fence - 1) |
| 18808 |
result |= 2; |
| 18809 |
if (memchr (fence - 1, 0, 3) != fence - 1) |
| 18810 |
result |= 4; |
| 18811 |
} |
| 18812 |
return result; |
| 18813 |
|
| 18814 |
; |
| 18815 |
return 0; |
| 18816 |
} |
| 18817 |
_ACEOF |
| 18818 |
if ac_fn_c_try_run "$LINENO"; then : |
| 18819 |
gl_cv_func_memchr_works=yes |
| 18820 |
else |
| 18821 |
gl_cv_func_memchr_works=no |
| 18822 |
fi |
| 18823 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18824 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18825 |
fi |
| 18826 |
|
| 18827 |
fi |
| 18828 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 |
| 18829 |
$as_echo "$gl_cv_func_memchr_works" >&6; } |
| 18830 |
if test "$gl_cv_func_memchr_works" != yes; then |
| 18831 |
REPLACE_MEMCHR=1 |
| 18832 |
fi |
| 18833 |
fi |
| 18834 |
|
| 18835 |
|
| 18836 |
gl_cv_c_multiarch=no |
| 18837 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18838 |
/* end confdefs.h. */ |
| 18839 |
#ifndef __APPLE_CC__ |
| 18840 |
not a universal capable compiler |
| 18841 |
#endif |
| 18842 |
typedef int dummy; |
| 18843 |
|
| 18844 |
_ACEOF |
| 18845 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18846 |
|
| 18847 |
arch= |
| 18848 |
prev= |
| 18849 |
for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do |
| 18850 |
if test -n "$prev"; then |
| 18851 |
case $word in |
| 18852 |
i?86 | x86_64 | ppc | ppc64) |
| 18853 |
if test -z "$arch" || test "$arch" = "$word"; then |
| 18854 |
arch="$word" |
| 18855 |
else |
| 18856 |
gl_cv_c_multiarch=yes |
| 18857 |
fi |
| 18858 |
;; |
| 18859 |
esac |
| 18860 |
prev= |
| 18861 |
else |
| 18862 |
if test "x$word" = "x-arch"; then |
| 18863 |
prev=arch |
| 18864 |
fi |
| 18865 |
fi |
| 18866 |
done |
| 18867 |
|
| 18868 |
fi |
| 18869 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18870 |
if test $gl_cv_c_multiarch = yes; then |
| 18871 |
APPLE_UNIVERSAL_BUILD=1 |
| 18872 |
else |
| 18873 |
APPLE_UNIVERSAL_BUILD=0 |
| 18874 |
fi |
| 18875 |
|
| 18876 |
|
| 18877 |
|
| 18878 |
|
| 18879 |
|
| 18880 |
|
| 18881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 |
| 18882 |
$as_echo_n "checking for promoted mode_t type... " >&6; } |
| 18883 |
if ${gl_cv_promoted_mode_t+:} false; then : |
| 18884 |
$as_echo_n "(cached) " >&6 |
| 18885 |
else |
| 18886 |
|
| 18887 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18888 |
/* end confdefs.h. */ |
| 18889 |
#include <sys/types.h> |
| 18890 |
int |
| 18891 |
main () |
| 18892 |
{ |
| 18893 |
typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; |
| 18894 |
; |
| 18895 |
return 0; |
| 18896 |
} |
| 18897 |
_ACEOF |
| 18898 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18899 |
gl_cv_promoted_mode_t='int' |
| 18900 |
else |
| 18901 |
gl_cv_promoted_mode_t='mode_t' |
| 18902 |
fi |
| 18903 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18904 |
|
| 18905 |
fi |
| 18906 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 |
| 18907 |
$as_echo "$gl_cv_promoted_mode_t" >&6; } |
| 18908 |
|
| 18909 |
cat >>confdefs.h <<_ACEOF |
| 18910 |
#define PROMOTED_MODE_T $gl_cv_promoted_mode_t |
| 18911 |
_ACEOF |
| 18912 |
|
| 18913 |
|
| 18914 |
|
| 18915 |
|
| 18916 |
|
| 18917 |
GNULIB_PTHREAD_SIGMASK=0; |
| 18918 |
GNULIB_RAISE=0; |
| 18919 |
GNULIB_SIGNAL_H_SIGPIPE=0; |
| 18920 |
GNULIB_SIGPROCMASK=0; |
| 18921 |
GNULIB_SIGACTION=0; |
| 18922 |
HAVE_POSIX_SIGNALBLOCKING=1; |
| 18923 |
HAVE_PTHREAD_SIGMASK=1; |
| 18924 |
HAVE_RAISE=1; |
| 18925 |
HAVE_SIGSET_T=1; |
| 18926 |
HAVE_SIGINFO_T=1; |
| 18927 |
HAVE_SIGACTION=1; |
| 18928 |
HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; |
| 18929 |
|
| 18930 |
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; |
| 18931 |
|
| 18932 |
HAVE_SIGHANDLER_T=1; |
| 18933 |
REPLACE_PTHREAD_SIGMASK=0; |
| 18934 |
REPLACE_RAISE=0; |
| 18935 |
|
| 18936 |
|
| 18937 |
ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " |
| 18938 |
#include <signal.h> |
| 18939 |
/* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ |
| 18940 |
#include <sys/types.h> |
| 18941 |
|
| 18942 |
" |
| 18943 |
if test "x$ac_cv_type_sigset_t" = xyes; then : |
| 18944 |
|
| 18945 |
cat >>confdefs.h <<_ACEOF |
| 18946 |
#define HAVE_SIGSET_T 1 |
| 18947 |
_ACEOF |
| 18948 |
|
| 18949 |
gl_cv_type_sigset_t=yes |
| 18950 |
else |
| 18951 |
gl_cv_type_sigset_t=no |
| 18952 |
fi |
| 18953 |
|
| 18954 |
if test $gl_cv_type_sigset_t != yes; then |
| 18955 |
HAVE_SIGSET_T=0 |
| 18956 |
fi |
| 18957 |
|
| 18958 |
|
| 18959 |
|
| 18960 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5 |
| 18961 |
$as_echo_n "checking for SIGPIPE... " >&6; } |
| 18962 |
if ${gl_cv_header_signal_h_SIGPIPE+:} false; then : |
| 18963 |
$as_echo_n "(cached) " >&6 |
| 18964 |
else |
| 18965 |
|
| 18966 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18967 |
/* end confdefs.h. */ |
| 18968 |
|
| 18969 |
#include <signal.h> |
| 18970 |
#if !defined SIGPIPE |
| 18971 |
booboo |
| 18972 |
#endif |
| 18973 |
|
| 18974 |
_ACEOF |
| 18975 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 18976 |
$EGREP "booboo" >/dev/null 2>&1; then : |
| 18977 |
gl_cv_header_signal_h_SIGPIPE=no |
| 18978 |
else |
| 18979 |
gl_cv_header_signal_h_SIGPIPE=yes |
| 18980 |
fi |
| 18981 |
rm -f conftest* |
| 18982 |
|
| 18983 |
|
| 18984 |
fi |
| 18985 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5 |
| 18986 |
$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; } |
| 18987 |
|
| 18988 |
|
| 18989 |
GNULIB_TSEARCH=0; |
| 18990 |
HAVE_TSEARCH=1; |
| 18991 |
REPLACE_TSEARCH=0; |
| 18992 |
|
| 18993 |
|
| 18994 |
|
| 18995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 18996 |
$as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 18997 |
if ${ac_cv_type_uid_t+:} false; then : |
| 18998 |
$as_echo_n "(cached) " >&6 |
| 18999 |
else |
| 19000 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19001 |
/* end confdefs.h. */ |
| 19002 |
#include <sys/types.h> |
| 19003 |
|
| 19004 |
_ACEOF |
| 19005 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19006 |
$EGREP "uid_t" >/dev/null 2>&1; then : |
| 19007 |
ac_cv_type_uid_t=yes |
| 19008 |
else |
| 19009 |
ac_cv_type_uid_t=no |
| 19010 |
fi |
| 19011 |
rm -f conftest* |
| 19012 |
|
| 19013 |
fi |
| 19014 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 19015 |
$as_echo "$ac_cv_type_uid_t" >&6; } |
| 19016 |
if test $ac_cv_type_uid_t = no; then |
| 19017 |
|
| 19018 |
$as_echo "#define uid_t int" >>confdefs.h |
| 19019 |
|
| 19020 |
|
| 19021 |
$as_echo "#define gid_t int" >>confdefs.h |
| 19022 |
|
| 19023 |
fi |
| 19024 |
|
| 19025 |
|
| 19026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19027 |
/* end confdefs.h. */ |
| 19028 |
|
| 19029 |
#ifdef _MSC_VER |
| 19030 |
MicrosoftCompiler |
| 19031 |
#endif |
| 19032 |
|
| 19033 |
_ACEOF |
| 19034 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19035 |
$EGREP "MicrosoftCompiler" >/dev/null 2>&1; then : |
| 19036 |
gl_asmext='asm' |
| 19037 |
gl_c_asm_opt='-c -Fa' |
| 19038 |
|
| 19039 |
else |
| 19040 |
gl_asmext='s' |
| 19041 |
gl_c_asm_opt='-S' |
| 19042 |
|
| 19043 |
fi |
| 19044 |
rm -f conftest* |
| 19045 |
|
| 19046 |
|
| 19047 |
|
| 19048 |
|
| 19049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5 |
| 19050 |
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; } |
| 19051 |
if ${gl_cv_prog_as_underscore+:} false; then : |
| 19052 |
$as_echo_n "(cached) " >&6 |
| 19053 |
else |
| 19054 |
cat > conftest.c <<EOF |
| 19055 |
#ifdef __cplusplus |
| 19056 |
extern "C" int foo (void); |
| 19057 |
#endif |
| 19058 |
int foo(void) { return 0; } |
| 19059 |
EOF |
| 19060 |
# Look for the assembly language name in the .s file. |
| 19061 |
{ ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c' |
| 19062 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
| 19063 |
(eval $ac_try) 2>&5 |
| 19064 |
ac_status=$? |
| 19065 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19066 |
test $ac_status = 0; }; } >/dev/null 2>&1 |
| 19067 |
if grep _foo conftest.$gl_asmext >/dev/null ; then |
| 19068 |
gl_cv_prog_as_underscore=yes |
| 19069 |
else |
| 19070 |
gl_cv_prog_as_underscore=no |
| 19071 |
fi |
| 19072 |
rm -f conftest* |
| 19073 |
|
| 19074 |
fi |
| 19075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5 |
| 19076 |
$as_echo "$gl_cv_prog_as_underscore" >&6; } |
| 19077 |
if test $gl_cv_prog_as_underscore = yes; then |
| 19078 |
USER_LABEL_PREFIX=_ |
| 19079 |
else |
| 19080 |
USER_LABEL_PREFIX= |
| 19081 |
fi |
| 19082 |
|
| 19083 |
cat >>confdefs.h <<_ACEOF |
| 19084 |
#define USER_LABEL_PREFIX $USER_LABEL_PREFIX |
| 19085 |
_ACEOF |
| 19086 |
|
| 19087 |
ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"' |
| 19088 |
|
| 19089 |
|
| 19090 |
|
| 19091 |
|
| 19092 |
|
| 19093 |
|
| 19094 |
|
| 19095 |
|
| 19096 |
|
| 19097 |
|
| 19098 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 |
| 19099 |
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; } |
| 19100 |
if ${gl_cv_func_snprintf_retval_c99+:} false; then : |
| 19101 |
$as_echo_n "(cached) " >&6 |
| 19102 |
else |
| 19103 |
|
| 19104 |
if test "$cross_compiling" = yes; then : |
| 19105 |
|
| 19106 |
case "$host_os" in |
| 19107 |
# Guess yes on glibc systems. |
| 19108 |
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19109 |
# Guess yes on FreeBSD >= 5. |
| 19110 |
freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 19111 |
freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19112 |
# Guess yes on Mac OS X >= 10.3. |
| 19113 |
darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 19114 |
darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19115 |
# Guess yes on OpenBSD >= 3.9. |
| 19116 |
openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) |
| 19117 |
gl_cv_func_snprintf_retval_c99="guessing no";; |
| 19118 |
openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19119 |
# Guess yes on Solaris >= 2.10. |
| 19120 |
solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 19121 |
solaris*) gl_cv_func_printf_sizes_c99="guessing no";; |
| 19122 |
# Guess yes on AIX >= 4. |
| 19123 |
aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 19124 |
aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19125 |
# Guess yes on NetBSD >= 3. |
| 19126 |
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) |
| 19127 |
gl_cv_func_snprintf_retval_c99="guessing no";; |
| 19128 |
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19129 |
# Guess yes on BeOS. |
| 19130 |
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 19131 |
# If we don't know, assume the worst. |
| 19132 |
*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 19133 |
esac |
| 19134 |
|
| 19135 |
else |
| 19136 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19137 |
/* end confdefs.h. */ |
| 19138 |
|
| 19139 |
#include <stdio.h> |
| 19140 |
#include <string.h> |
| 19141 |
#if HAVE_SNPRINTF |
| 19142 |
# define my_snprintf snprintf |
| 19143 |
#else |
| 19144 |
# include <stdarg.h> |
| 19145 |
static int my_snprintf (char *buf, int size, const char *format, ...) |
| 19146 |
{ |
| 19147 |
va_list args; |
| 19148 |
int ret; |
| 19149 |
va_start (args, format); |
| 19150 |
ret = vsnprintf (buf, size, format, args); |
| 19151 |
va_end (args); |
| 19152 |
return ret; |
| 19153 |
} |
| 19154 |
#endif |
| 19155 |
static char buf[100]; |
| 19156 |
int main () |
| 19157 |
{ |
| 19158 |
strcpy (buf, "ABCDEF"); |
| 19159 |
if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) |
| 19160 |
return 1; |
| 19161 |
if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) |
| 19162 |
return 2; |
| 19163 |
if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) |
| 19164 |
return 3; |
| 19165 |
return 0; |
| 19166 |
} |
| 19167 |
_ACEOF |
| 19168 |
if ac_fn_c_try_run "$LINENO"; then : |
| 19169 |
gl_cv_func_snprintf_retval_c99=yes |
| 19170 |
else |
| 19171 |
gl_cv_func_snprintf_retval_c99=no |
| 19172 |
fi |
| 19173 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19174 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19175 |
fi |
| 19176 |
|
| 19177 |
|
| 19178 |
fi |
| 19179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 |
| 19180 |
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; } |
| 19181 |
|
| 19182 |
ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" |
| 19183 |
if test "x$ac_cv_have_decl_snprintf" = xyes; then : |
| 19184 |
ac_have_decl=1 |
| 19185 |
else |
| 19186 |
ac_have_decl=0 |
| 19187 |
fi |
| 19188 |
|
| 19189 |
cat >>confdefs.h <<_ACEOF |
| 19190 |
#define HAVE_DECL_SNPRINTF $ac_have_decl |
| 19191 |
_ACEOF |
| 19192 |
|
| 19193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 19194 |
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 19195 |
if ${ac_cv_header_stdbool_h+:} false; then : |
| 19196 |
$as_echo_n "(cached) " >&6 |
| 19197 |
else |
| 19198 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19199 |
/* end confdefs.h. */ |
| 19200 |
|
| 19201 |
#include <stdbool.h> |
| 19202 |
#ifndef bool |
| 19203 |
"error: bool is not defined" |
| 19204 |
#endif |
| 19205 |
#ifndef false |
| 19206 |
"error: false is not defined" |
| 19207 |
#endif |
| 19208 |
#if false |
| 19209 |
"error: false is not 0" |
| 19210 |
#endif |
| 19211 |
#ifndef true |
| 19212 |
"error: true is not defined" |
| 19213 |
#endif |
| 19214 |
#if true != 1 |
| 19215 |
"error: true is not 1" |
| 19216 |
#endif |
| 19217 |
#ifndef __bool_true_false_are_defined |
| 19218 |
"error: __bool_true_false_are_defined is not defined" |
| 19219 |
#endif |
| 19220 |
|
| 19221 |
struct s { _Bool s: 1; _Bool t; } s; |
| 19222 |
|
| 19223 |
char a[true == 1 ? 1 : -1]; |
| 19224 |
char b[false == 0 ? 1 : -1]; |
| 19225 |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 19226 |
char d[(bool) 0.5 == true ? 1 : -1]; |
| 19227 |
/* See body of main program for 'e'. */ |
| 19228 |
char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 19229 |
char g[true]; |
| 19230 |
char h[sizeof (_Bool)]; |
| 19231 |
char i[sizeof s.t]; |
| 19232 |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 19233 |
/* The following fails for |
| 19234 |
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 19235 |
_Bool n[m]; |
| 19236 |
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 19237 |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 19238 |
/* Catch a bug in an HP-UX C compiler. See |
| 19239 |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 19240 |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 19241 |
*/ |
| 19242 |
_Bool q = true; |
| 19243 |
_Bool *pq = &q; |
| 19244 |
|
| 19245 |
int |
| 19246 |
main () |
| 19247 |
{ |
| 19248 |
|
| 19249 |
bool e = &s; |
| 19250 |
*pq |= q; |
| 19251 |
*pq |= ! q; |
| 19252 |
/* Refer to every declared value, to avoid compiler optimizations. */ |
| 19253 |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 19254 |
+ !m + !n + !o + !p + !q + !pq); |
| 19255 |
|
| 19256 |
; |
| 19257 |
return 0; |
| 19258 |
} |
| 19259 |
_ACEOF |
| 19260 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19261 |
ac_cv_header_stdbool_h=yes |
| 19262 |
else |
| 19263 |
ac_cv_header_stdbool_h=no |
| 19264 |
fi |
| 19265 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19266 |
fi |
| 19267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 19268 |
$as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 19269 |
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 19270 |
if test "x$ac_cv_type__Bool" = xyes; then : |
| 19271 |
|
| 19272 |
cat >>confdefs.h <<_ACEOF |
| 19273 |
#define HAVE__BOOL 1 |
| 19274 |
_ACEOF |
| 19275 |
|
| 19276 |
|
| 19277 |
fi |
| 19278 |
|
| 19279 |
|
| 19280 |
|
| 19281 |
REPLACE_NULL=0; |
| 19282 |
HAVE_WCHAR_T=1; |
| 19283 |
|
| 19284 |
|
| 19285 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 19286 |
$as_echo_n "checking for wchar_t... " >&6; } |
| 19287 |
if ${gt_cv_c_wchar_t+:} false; then : |
| 19288 |
$as_echo_n "(cached) " >&6 |
| 19289 |
else |
| 19290 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19291 |
/* end confdefs.h. */ |
| 19292 |
#include <stddef.h> |
| 19293 |
wchar_t foo = (wchar_t)'\0'; |
| 19294 |
int |
| 19295 |
main () |
| 19296 |
{ |
| 19297 |
|
| 19298 |
; |
| 19299 |
return 0; |
| 19300 |
} |
| 19301 |
_ACEOF |
| 19302 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19303 |
gt_cv_c_wchar_t=yes |
| 19304 |
else |
| 19305 |
gt_cv_c_wchar_t=no |
| 19306 |
fi |
| 19307 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19308 |
fi |
| 19309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 19310 |
$as_echo "$gt_cv_c_wchar_t" >&6; } |
| 19311 |
if test $gt_cv_c_wchar_t = yes; then |
| 19312 |
|
| 19313 |
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 19314 |
|
| 19315 |
fi |
| 19316 |
|
| 19317 |
|
| 19318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 19319 |
$as_echo_n "checking for unsigned long long int... " >&6; } |
| 19320 |
if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 19321 |
$as_echo_n "(cached) " >&6 |
| 19322 |
else |
| 19323 |
ac_cv_type_unsigned_long_long_int=yes |
| 19324 |
if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 19325 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19326 |
/* end confdefs.h. */ |
| 19327 |
|
| 19328 |
/* For now, do not test the preprocessor; as of 2007 there are too many |
| 19329 |
implementations with broken preprocessors. Perhaps this can |
| 19330 |
be revisited in 2012. In the meantime, code should not expect |
| 19331 |
#if to work with literals wider than 32 bits. */ |
| 19332 |
/* Test literals. */ |
| 19333 |
long long int ll = 9223372036854775807ll; |
| 19334 |
long long int nll = -9223372036854775807LL; |
| 19335 |
unsigned long long int ull = 18446744073709551615ULL; |
| 19336 |
/* Test constant expressions. */ |
| 19337 |
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 19338 |
? 1 : -1)]; |
| 19339 |
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 19340 |
? 1 : -1)]; |
| 19341 |
int i = 63; |
| 19342 |
int |
| 19343 |
main () |
| 19344 |
{ |
| 19345 |
/* Test availability of runtime routines for shift and division. */ |
| 19346 |
long long int llmax = 9223372036854775807ll; |
| 19347 |
unsigned long long int ullmax = 18446744073709551615ull; |
| 19348 |
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 19349 |
| (llmax / ll) | (llmax % ll) |
| 19350 |
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 19351 |
| (ullmax / ull) | (ullmax % ull)); |
| 19352 |
; |
| 19353 |
return 0; |
| 19354 |
} |
| 19355 |
|
| 19356 |
_ACEOF |
| 19357 |
if ac_fn_c_try_link "$LINENO"; then : |
| 19358 |
|
| 19359 |
else |
| 19360 |
ac_cv_type_unsigned_long_long_int=no |
| 19361 |
fi |
| 19362 |
rm -f core conftest.err conftest.$ac_objext \ |
| 19363 |
conftest$ac_exeext conftest.$ac_ext |
| 19364 |
fi |
| 19365 |
fi |
| 19366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 19367 |
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 19368 |
if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 19369 |
|
| 19370 |
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 19371 |
|
| 19372 |
fi |
| 19373 |
|
| 19374 |
|
| 19375 |
|
| 19376 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 19377 |
$as_echo_n "checking for long long int... " >&6; } |
| 19378 |
if ${ac_cv_type_long_long_int+:} false; then : |
| 19379 |
$as_echo_n "(cached) " >&6 |
| 19380 |
else |
| 19381 |
ac_cv_type_long_long_int=yes |
| 19382 |
if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 19383 |
ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 19384 |
if test $ac_cv_type_long_long_int = yes; then |
| 19385 |
if test "$cross_compiling" = yes; then : |
| 19386 |
: |
| 19387 |
else |
| 19388 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19389 |
/* end confdefs.h. */ |
| 19390 |
#include <limits.h> |
| 19391 |
#ifndef LLONG_MAX |
| 19392 |
# define HALF \ |
| 19393 |
(1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 19394 |
# define LLONG_MAX (HALF - 1 + HALF) |
| 19395 |
#endif |
| 19396 |
int |
| 19397 |
main () |
| 19398 |
{ |
| 19399 |
long long int n = 1; |
| 19400 |
int i; |
| 19401 |
for (i = 0; ; i++) |
| 19402 |
{ |
| 19403 |
long long int m = n << i; |
| 19404 |
if (m >> i != n) |
| 19405 |
return 1; |
| 19406 |
if (LLONG_MAX / 2 < m) |
| 19407 |
break; |
| 19408 |
} |
| 19409 |
return 0; |
| 19410 |
; |
| 19411 |
return 0; |
| 19412 |
} |
| 19413 |
_ACEOF |
| 19414 |
if ac_fn_c_try_run "$LINENO"; then : |
| 19415 |
|
| 19416 |
else |
| 19417 |
ac_cv_type_long_long_int=no |
| 19418 |
fi |
| 19419 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19420 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19421 |
fi |
| 19422 |
|
| 19423 |
fi |
| 19424 |
fi |
| 19425 |
fi |
| 19426 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 19427 |
$as_echo "$ac_cv_type_long_long_int" >&6; } |
| 19428 |
if test $ac_cv_type_long_long_int = yes; then |
| 19429 |
|
| 19430 |
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 19431 |
|
| 19432 |
fi |
| 19433 |
|
| 19434 |
|
| 19435 |
|
| 19436 |
|
| 19437 |
|
| 19438 |
|
| 19439 |
|
| 19440 |
|
| 19441 |
if test $ac_cv_type_long_long_int = yes; then |
| 19442 |
HAVE_LONG_LONG_INT=1 |
| 19443 |
else |
| 19444 |
HAVE_LONG_LONG_INT=0 |
| 19445 |
fi |
| 19446 |
|
| 19447 |
|
| 19448 |
if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 19449 |
HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 19450 |
else |
| 19451 |
HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 19452 |
fi |
| 19453 |
|
| 19454 |
|
| 19455 |
|
| 19456 |
if test $ac_cv_header_wchar_h = yes; then |
| 19457 |
HAVE_WCHAR_H=1 |
| 19458 |
else |
| 19459 |
HAVE_WCHAR_H=0 |
| 19460 |
fi |
| 19461 |
|
| 19462 |
|
| 19463 |
if test $ac_cv_header_inttypes_h = yes; then |
| 19464 |
HAVE_INTTYPES_H=1 |
| 19465 |
else |
| 19466 |
HAVE_INTTYPES_H=0 |
| 19467 |
fi |
| 19468 |
|
| 19469 |
|
| 19470 |
if test $ac_cv_header_sys_types_h = yes; then |
| 19471 |
HAVE_SYS_TYPES_H=1 |
| 19472 |
else |
| 19473 |
HAVE_SYS_TYPES_H=0 |
| 19474 |
fi |
| 19475 |
|
| 19476 |
|
| 19477 |
|
| 19478 |
|
| 19479 |
|
| 19480 |
|
| 19481 |
|
| 19482 |
|
| 19483 |
|
| 19484 |
|
| 19485 |
|
| 19486 |
if test $gl_cv_have_include_next = yes; then |
| 19487 |
gl_cv_next_stdint_h='<'stdint.h'>' |
| 19488 |
else |
| 19489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 |
| 19490 |
$as_echo_n "checking absolute name of <stdint.h>... " >&6; } |
| 19491 |
if ${gl_cv_next_stdint_h+:} false; then : |
| 19492 |
$as_echo_n "(cached) " >&6 |
| 19493 |
else |
| 19494 |
|
| 19495 |
if test $ac_cv_header_stdint_h = yes; then |
| 19496 |
|
| 19497 |
|
| 19498 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19499 |
/* end confdefs.h. */ |
| 19500 |
#include <stdint.h> |
| 19501 |
|
| 19502 |
_ACEOF |
| 19503 |
case "$host_os" in |
| 19504 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 19505 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 19506 |
esac |
| 19507 |
|
| 19508 |
case "$host_os" in |
| 19509 |
mingw*) |
| 19510 |
gl_dirsep_regex='[/\\]' |
| 19511 |
;; |
| 19512 |
*) |
| 19513 |
gl_dirsep_regex='\/' |
| 19514 |
;; |
| 19515 |
esac |
| 19516 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 19517 |
|
| 19518 |
gl_header_literal_regex=`echo 'stdint.h' \ |
| 19519 |
| sed -e "$gl_make_literal_regex_sed"` |
| 19520 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 19521 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 19522 |
s|^/[^/]|//&| |
| 19523 |
p |
| 19524 |
q |
| 19525 |
}' |
| 19526 |
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 19527 |
sed -n "$gl_absolute_header_sed"`'"' |
| 19528 |
else |
| 19529 |
gl_cv_next_stdint_h='<'stdint.h'>' |
| 19530 |
fi |
| 19531 |
|
| 19532 |
|
| 19533 |
fi |
| 19534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
| 19535 |
$as_echo "$gl_cv_next_stdint_h" >&6; } |
| 19536 |
fi |
| 19537 |
NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 19538 |
|
| 19539 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 19540 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 19541 |
gl_next_as_first_directive='<'stdint.h'>' |
| 19542 |
else |
| 19543 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 19544 |
gl_next_as_first_directive=$gl_cv_next_stdint_h |
| 19545 |
fi |
| 19546 |
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
| 19547 |
|
| 19548 |
|
| 19549 |
|
| 19550 |
|
| 19551 |
if test $ac_cv_header_stdint_h = yes; then |
| 19552 |
HAVE_STDINT_H=1 |
| 19553 |
else |
| 19554 |
HAVE_STDINT_H=0 |
| 19555 |
fi |
| 19556 |
|
| 19557 |
|
| 19558 |
if test $ac_cv_header_stdint_h = yes; then |
| 19559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 |
| 19560 |
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } |
| 19561 |
if ${gl_cv_header_working_stdint_h+:} false; then : |
| 19562 |
$as_echo_n "(cached) " >&6 |
| 19563 |
else |
| 19564 |
gl_cv_header_working_stdint_h=no |
| 19565 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19566 |
/* end confdefs.h. */ |
| 19567 |
|
| 19568 |
|
| 19569 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 19570 |
#include <stdint.h> |
| 19571 |
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 19572 |
#if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 19573 |
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 19574 |
#endif |
| 19575 |
|
| 19576 |
|
| 19577 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 19578 |
included before <wchar.h>. */ |
| 19579 |
#include <stddef.h> |
| 19580 |
#include <signal.h> |
| 19581 |
#if HAVE_WCHAR_H |
| 19582 |
# include <stdio.h> |
| 19583 |
# include <time.h> |
| 19584 |
# include <wchar.h> |
| 19585 |
#endif |
| 19586 |
|
| 19587 |
|
| 19588 |
#ifdef INT8_MAX |
| 19589 |
int8_t a1 = INT8_MAX; |
| 19590 |
int8_t a1min = INT8_MIN; |
| 19591 |
#endif |
| 19592 |
#ifdef INT16_MAX |
| 19593 |
int16_t a2 = INT16_MAX; |
| 19594 |
int16_t a2min = INT16_MIN; |
| 19595 |
#endif |
| 19596 |
#ifdef INT32_MAX |
| 19597 |
int32_t a3 = INT32_MAX; |
| 19598 |
int32_t a3min = INT32_MIN; |
| 19599 |
#endif |
| 19600 |
#ifdef INT64_MAX |
| 19601 |
int64_t a4 = INT64_MAX; |
| 19602 |
int64_t a4min = INT64_MIN; |
| 19603 |
#endif |
| 19604 |
#ifdef UINT8_MAX |
| 19605 |
uint8_t b1 = UINT8_MAX; |
| 19606 |
#else |
| 19607 |
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 19608 |
#endif |
| 19609 |
#ifdef UINT16_MAX |
| 19610 |
uint16_t b2 = UINT16_MAX; |
| 19611 |
#endif |
| 19612 |
#ifdef UINT32_MAX |
| 19613 |
uint32_t b3 = UINT32_MAX; |
| 19614 |
#endif |
| 19615 |
#ifdef UINT64_MAX |
| 19616 |
uint64_t b4 = UINT64_MAX; |
| 19617 |
#endif |
| 19618 |
int_least8_t c1 = INT8_C (0x7f); |
| 19619 |
int_least8_t c1max = INT_LEAST8_MAX; |
| 19620 |
int_least8_t c1min = INT_LEAST8_MIN; |
| 19621 |
int_least16_t c2 = INT16_C (0x7fff); |
| 19622 |
int_least16_t c2max = INT_LEAST16_MAX; |
| 19623 |
int_least16_t c2min = INT_LEAST16_MIN; |
| 19624 |
int_least32_t c3 = INT32_C (0x7fffffff); |
| 19625 |
int_least32_t c3max = INT_LEAST32_MAX; |
| 19626 |
int_least32_t c3min = INT_LEAST32_MIN; |
| 19627 |
int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 19628 |
int_least64_t c4max = INT_LEAST64_MAX; |
| 19629 |
int_least64_t c4min = INT_LEAST64_MIN; |
| 19630 |
uint_least8_t d1 = UINT8_C (0xff); |
| 19631 |
uint_least8_t d1max = UINT_LEAST8_MAX; |
| 19632 |
uint_least16_t d2 = UINT16_C (0xffff); |
| 19633 |
uint_least16_t d2max = UINT_LEAST16_MAX; |
| 19634 |
uint_least32_t d3 = UINT32_C (0xffffffff); |
| 19635 |
uint_least32_t d3max = UINT_LEAST32_MAX; |
| 19636 |
uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 19637 |
uint_least64_t d4max = UINT_LEAST64_MAX; |
| 19638 |
int_fast8_t e1 = INT_FAST8_MAX; |
| 19639 |
int_fast8_t e1min = INT_FAST8_MIN; |
| 19640 |
int_fast16_t e2 = INT_FAST16_MAX; |
| 19641 |
int_fast16_t e2min = INT_FAST16_MIN; |
| 19642 |
int_fast32_t e3 = INT_FAST32_MAX; |
| 19643 |
int_fast32_t e3min = INT_FAST32_MIN; |
| 19644 |
int_fast64_t e4 = INT_FAST64_MAX; |
| 19645 |
int_fast64_t e4min = INT_FAST64_MIN; |
| 19646 |
uint_fast8_t f1 = UINT_FAST8_MAX; |
| 19647 |
uint_fast16_t f2 = UINT_FAST16_MAX; |
| 19648 |
uint_fast32_t f3 = UINT_FAST32_MAX; |
| 19649 |
uint_fast64_t f4 = UINT_FAST64_MAX; |
| 19650 |
#ifdef INTPTR_MAX |
| 19651 |
intptr_t g = INTPTR_MAX; |
| 19652 |
intptr_t gmin = INTPTR_MIN; |
| 19653 |
#endif |
| 19654 |
#ifdef UINTPTR_MAX |
| 19655 |
uintptr_t h = UINTPTR_MAX; |
| 19656 |
#endif |
| 19657 |
intmax_t i = INTMAX_MAX; |
| 19658 |
uintmax_t j = UINTMAX_MAX; |
| 19659 |
|
| 19660 |
#include <limits.h> /* for CHAR_BIT */ |
| 19661 |
#define TYPE_MINIMUM(t) \ |
| 19662 |
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
| 19663 |
#define TYPE_MAXIMUM(t) \ |
| 19664 |
((t) ((t) 0 < (t) -1 \ |
| 19665 |
? (t) -1 \ |
| 19666 |
: ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
| 19667 |
struct s { |
| 19668 |
int check_PTRDIFF: |
| 19669 |
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 19670 |
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 19671 |
? 1 : -1; |
| 19672 |
/* Detect bug in FreeBSD 6.0 / ia64. */ |
| 19673 |
int check_SIG_ATOMIC: |
| 19674 |
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 19675 |
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 19676 |
? 1 : -1; |
| 19677 |
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 19678 |
int check_WCHAR: |
| 19679 |
WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 19680 |
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 19681 |
? 1 : -1; |
| 19682 |
/* Detect bug in mingw. */ |
| 19683 |
int check_WINT: |
| 19684 |
WINT_MIN == TYPE_MINIMUM (wint_t) |
| 19685 |
&& WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 19686 |
? 1 : -1; |
| 19687 |
|
| 19688 |
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 19689 |
int check_UINT8_C: |
| 19690 |
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 19691 |
int check_UINT16_C: |
| 19692 |
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 19693 |
|
| 19694 |
/* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 19695 |
#ifdef UINT8_MAX |
| 19696 |
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 19697 |
#endif |
| 19698 |
#ifdef UINT16_MAX |
| 19699 |
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 19700 |
#endif |
| 19701 |
#ifdef UINT32_MAX |
| 19702 |
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 19703 |
#endif |
| 19704 |
#ifdef UINT64_MAX |
| 19705 |
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 19706 |
#endif |
| 19707 |
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 19708 |
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 19709 |
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 19710 |
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 19711 |
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 19712 |
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 19713 |
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 19714 |
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 19715 |
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 19716 |
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 19717 |
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 19718 |
}; |
| 19719 |
|
| 19720 |
int |
| 19721 |
main () |
| 19722 |
{ |
| 19723 |
|
| 19724 |
; |
| 19725 |
return 0; |
| 19726 |
} |
| 19727 |
_ACEOF |
| 19728 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19729 |
if test "$cross_compiling" = yes; then : |
| 19730 |
gl_cv_header_working_stdint_h=yes |
| 19731 |
|
| 19732 |
else |
| 19733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19734 |
/* end confdefs.h. */ |
| 19735 |
|
| 19736 |
|
| 19737 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 19738 |
#include <stdint.h> |
| 19739 |
|
| 19740 |
|
| 19741 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 19742 |
included before <wchar.h>. */ |
| 19743 |
#include <stddef.h> |
| 19744 |
#include <signal.h> |
| 19745 |
#if HAVE_WCHAR_H |
| 19746 |
# include <stdio.h> |
| 19747 |
# include <time.h> |
| 19748 |
# include <wchar.h> |
| 19749 |
#endif |
| 19750 |
|
| 19751 |
|
| 19752 |
#include <stdio.h> |
| 19753 |
#include <string.h> |
| 19754 |
#define MVAL(macro) MVAL1(macro) |
| 19755 |
#define MVAL1(expression) #expression |
| 19756 |
static const char *macro_values[] = |
| 19757 |
{ |
| 19758 |
#ifdef INT8_MAX |
| 19759 |
MVAL (INT8_MAX), |
| 19760 |
#endif |
| 19761 |
#ifdef INT16_MAX |
| 19762 |
MVAL (INT16_MAX), |
| 19763 |
#endif |
| 19764 |
#ifdef INT32_MAX |
| 19765 |
MVAL (INT32_MAX), |
| 19766 |
#endif |
| 19767 |
#ifdef INT64_MAX |
| 19768 |
MVAL (INT64_MAX), |
| 19769 |
#endif |
| 19770 |
#ifdef UINT8_MAX |
| 19771 |
MVAL (UINT8_MAX), |
| 19772 |
#endif |
| 19773 |
#ifdef UINT16_MAX |
| 19774 |
MVAL (UINT16_MAX), |
| 19775 |
#endif |
| 19776 |
#ifdef UINT32_MAX |
| 19777 |
MVAL (UINT32_MAX), |
| 19778 |
#endif |
| 19779 |
#ifdef UINT64_MAX |
| 19780 |
MVAL (UINT64_MAX), |
| 19781 |
#endif |
| 19782 |
NULL |
| 19783 |
}; |
| 19784 |
|
| 19785 |
int |
| 19786 |
main () |
| 19787 |
{ |
| 19788 |
|
| 19789 |
const char **mv; |
| 19790 |
for (mv = macro_values; *mv != NULL; mv++) |
| 19791 |
{ |
| 19792 |
const char *value = *mv; |
| 19793 |
/* Test whether it looks like a cast expression. */ |
| 19794 |
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
| 19795 |
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
| 19796 |
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
| 19797 |
|| strncmp (value, "((int)"/*)*/, 6) == 0 |
| 19798 |
|| strncmp (value, "((signed short)"/*)*/, 15) == 0 |
| 19799 |
|| strncmp (value, "((signed char)"/*)*/, 14) == 0) |
| 19800 |
return mv - macro_values + 1; |
| 19801 |
} |
| 19802 |
return 0; |
| 19803 |
|
| 19804 |
; |
| 19805 |
return 0; |
| 19806 |
} |
| 19807 |
_ACEOF |
| 19808 |
if ac_fn_c_try_run "$LINENO"; then : |
| 19809 |
gl_cv_header_working_stdint_h=yes |
| 19810 |
fi |
| 19811 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19812 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19813 |
fi |
| 19814 |
|
| 19815 |
|
| 19816 |
fi |
| 19817 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19818 |
|
| 19819 |
fi |
| 19820 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 |
| 19821 |
$as_echo "$gl_cv_header_working_stdint_h" >&6; } |
| 19822 |
fi |
| 19823 |
if test "$gl_cv_header_working_stdint_h" = yes; then |
| 19824 |
STDINT_H= |
| 19825 |
else |
| 19826 |
for ac_header in sys/inttypes.h sys/bitypes.h |
| 19827 |
do : |
| 19828 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19829 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 19830 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 19831 |
cat >>confdefs.h <<_ACEOF |
| 19832 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19833 |
_ACEOF |
| 19834 |
|
| 19835 |
fi |
| 19836 |
|
| 19837 |
done |
| 19838 |
|
| 19839 |
if test $ac_cv_header_sys_inttypes_h = yes; then |
| 19840 |
HAVE_SYS_INTTYPES_H=1 |
| 19841 |
else |
| 19842 |
HAVE_SYS_INTTYPES_H=0 |
| 19843 |
fi |
| 19844 |
|
| 19845 |
if test $ac_cv_header_sys_bitypes_h = yes; then |
| 19846 |
HAVE_SYS_BITYPES_H=1 |
| 19847 |
else |
| 19848 |
HAVE_SYS_BITYPES_H=0 |
| 19849 |
fi |
| 19850 |
|
| 19851 |
|
| 19852 |
|
| 19853 |
|
| 19854 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 19855 |
|
| 19856 |
|
| 19857 |
for gltype in ptrdiff_t size_t ; do |
| 19858 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 19859 |
$as_echo_n "checking for bit size of $gltype... " >&6; } |
| 19860 |
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : |
| 19861 |
$as_echo_n "(cached) " >&6 |
| 19862 |
else |
| 19863 |
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 19864 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 19865 |
included before <wchar.h>. */ |
| 19866 |
#include <stddef.h> |
| 19867 |
#include <signal.h> |
| 19868 |
#if HAVE_WCHAR_H |
| 19869 |
# include <stdio.h> |
| 19870 |
# include <time.h> |
| 19871 |
# include <wchar.h> |
| 19872 |
#endif |
| 19873 |
|
| 19874 |
#include <limits.h>"; then : |
| 19875 |
|
| 19876 |
else |
| 19877 |
result=unknown |
| 19878 |
fi |
| 19879 |
|
| 19880 |
eval gl_cv_bitsizeof_${gltype}=\$result |
| 19881 |
|
| 19882 |
fi |
| 19883 |
eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 19884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19885 |
$as_echo "$ac_res" >&6; } |
| 19886 |
eval result=\$gl_cv_bitsizeof_${gltype} |
| 19887 |
if test $result = unknown; then |
| 19888 |
result=0 |
| 19889 |
fi |
| 19890 |
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 19891 |
cat >>confdefs.h <<_ACEOF |
| 19892 |
#define BITSIZEOF_${GLTYPE} $result |
| 19893 |
_ACEOF |
| 19894 |
|
| 19895 |
eval BITSIZEOF_${GLTYPE}=\$result |
| 19896 |
done |
| 19897 |
|
| 19898 |
|
| 19899 |
fi |
| 19900 |
|
| 19901 |
|
| 19902 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 19903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 19904 |
$as_echo_n "checking for bit size of $gltype... " >&6; } |
| 19905 |
if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : |
| 19906 |
$as_echo_n "(cached) " >&6 |
| 19907 |
else |
| 19908 |
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 19909 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 19910 |
included before <wchar.h>. */ |
| 19911 |
#include <stddef.h> |
| 19912 |
#include <signal.h> |
| 19913 |
#if HAVE_WCHAR_H |
| 19914 |
# include <stdio.h> |
| 19915 |
# include <time.h> |
| 19916 |
# include <wchar.h> |
| 19917 |
#endif |
| 19918 |
|
| 19919 |
#include <limits.h>"; then : |
| 19920 |
|
| 19921 |
else |
| 19922 |
result=unknown |
| 19923 |
fi |
| 19924 |
|
| 19925 |
eval gl_cv_bitsizeof_${gltype}=\$result |
| 19926 |
|
| 19927 |
fi |
| 19928 |
eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 19929 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19930 |
$as_echo "$ac_res" >&6; } |
| 19931 |
eval result=\$gl_cv_bitsizeof_${gltype} |
| 19932 |
if test $result = unknown; then |
| 19933 |
result=0 |
| 19934 |
fi |
| 19935 |
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 19936 |
cat >>confdefs.h <<_ACEOF |
| 19937 |
#define BITSIZEOF_${GLTYPE} $result |
| 19938 |
_ACEOF |
| 19939 |
|
| 19940 |
eval BITSIZEOF_${GLTYPE}=\$result |
| 19941 |
done |
| 19942 |
|
| 19943 |
|
| 19944 |
|
| 19945 |
|
| 19946 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 19947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 |
| 19948 |
$as_echo_n "checking whether $gltype is signed... " >&6; } |
| 19949 |
if eval \${gl_cv_type_${gltype}_signed+:} false; then : |
| 19950 |
$as_echo_n "(cached) " >&6 |
| 19951 |
else |
| 19952 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19953 |
/* end confdefs.h. */ |
| 19954 |
|
| 19955 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 19956 |
included before <wchar.h>. */ |
| 19957 |
#include <stddef.h> |
| 19958 |
#include <signal.h> |
| 19959 |
#if HAVE_WCHAR_H |
| 19960 |
# include <stdio.h> |
| 19961 |
# include <time.h> |
| 19962 |
# include <wchar.h> |
| 19963 |
#endif |
| 19964 |
|
| 19965 |
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 19966 |
int |
| 19967 |
main () |
| 19968 |
{ |
| 19969 |
|
| 19970 |
; |
| 19971 |
return 0; |
| 19972 |
} |
| 19973 |
_ACEOF |
| 19974 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 19975 |
result=yes |
| 19976 |
else |
| 19977 |
result=no |
| 19978 |
fi |
| 19979 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19980 |
eval gl_cv_type_${gltype}_signed=\$result |
| 19981 |
|
| 19982 |
fi |
| 19983 |
eval ac_res=\$gl_cv_type_${gltype}_signed |
| 19984 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 19985 |
$as_echo "$ac_res" >&6; } |
| 19986 |
eval result=\$gl_cv_type_${gltype}_signed |
| 19987 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 19988 |
if test "$result" = yes; then |
| 19989 |
cat >>confdefs.h <<_ACEOF |
| 19990 |
#define HAVE_SIGNED_${GLTYPE} 1 |
| 19991 |
_ACEOF |
| 19992 |
|
| 19993 |
eval HAVE_SIGNED_${GLTYPE}=1 |
| 19994 |
else |
| 19995 |
eval HAVE_SIGNED_${GLTYPE}=0 |
| 19996 |
fi |
| 19997 |
done |
| 19998 |
|
| 19999 |
|
| 20000 |
gl_cv_type_ptrdiff_t_signed=yes |
| 20001 |
gl_cv_type_size_t_signed=no |
| 20002 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 20003 |
|
| 20004 |
|
| 20005 |
for gltype in ptrdiff_t size_t ; do |
| 20006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 20007 |
$as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 20008 |
if eval \${gl_cv_type_${gltype}_suffix+:} false; then : |
| 20009 |
$as_echo_n "(cached) " >&6 |
| 20010 |
else |
| 20011 |
eval gl_cv_type_${gltype}_suffix=no |
| 20012 |
eval result=\$gl_cv_type_${gltype}_signed |
| 20013 |
if test "$result" = yes; then |
| 20014 |
glsufu= |
| 20015 |
else |
| 20016 |
glsufu=u |
| 20017 |
fi |
| 20018 |
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 20019 |
case $glsuf in |
| 20020 |
'') gltype1='int';; |
| 20021 |
l) gltype1='long int';; |
| 20022 |
ll) gltype1='long long int';; |
| 20023 |
i64) gltype1='__int64';; |
| 20024 |
u) gltype1='unsigned int';; |
| 20025 |
ul) gltype1='unsigned long int';; |
| 20026 |
ull) gltype1='unsigned long long int';; |
| 20027 |
ui64)gltype1='unsigned __int64';; |
| 20028 |
esac |
| 20029 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20030 |
/* end confdefs.h. */ |
| 20031 |
|
| 20032 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 20033 |
included before <wchar.h>. */ |
| 20034 |
#include <stddef.h> |
| 20035 |
#include <signal.h> |
| 20036 |
#if HAVE_WCHAR_H |
| 20037 |
# include <stdio.h> |
| 20038 |
# include <time.h> |
| 20039 |
# include <wchar.h> |
| 20040 |
#endif |
| 20041 |
|
| 20042 |
extern $gltype foo; |
| 20043 |
extern $gltype1 foo; |
| 20044 |
int |
| 20045 |
main () |
| 20046 |
{ |
| 20047 |
|
| 20048 |
; |
| 20049 |
return 0; |
| 20050 |
} |
| 20051 |
_ACEOF |
| 20052 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20053 |
eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 20054 |
fi |
| 20055 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20056 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 20057 |
test "$result" != no && break |
| 20058 |
done |
| 20059 |
fi |
| 20060 |
eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 20061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20062 |
$as_echo "$ac_res" >&6; } |
| 20063 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 20064 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 20065 |
test "$result" = no && result= |
| 20066 |
eval ${GLTYPE}_SUFFIX=\$result |
| 20067 |
cat >>confdefs.h <<_ACEOF |
| 20068 |
#define ${GLTYPE}_SUFFIX $result |
| 20069 |
_ACEOF |
| 20070 |
|
| 20071 |
done |
| 20072 |
|
| 20073 |
|
| 20074 |
fi |
| 20075 |
|
| 20076 |
|
| 20077 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 20078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 20079 |
$as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 20080 |
if eval \${gl_cv_type_${gltype}_suffix+:} false; then : |
| 20081 |
$as_echo_n "(cached) " >&6 |
| 20082 |
else |
| 20083 |
eval gl_cv_type_${gltype}_suffix=no |
| 20084 |
eval result=\$gl_cv_type_${gltype}_signed |
| 20085 |
if test "$result" = yes; then |
| 20086 |
glsufu= |
| 20087 |
else |
| 20088 |
glsufu=u |
| 20089 |
fi |
| 20090 |
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 20091 |
case $glsuf in |
| 20092 |
'') gltype1='int';; |
| 20093 |
l) gltype1='long int';; |
| 20094 |
ll) gltype1='long long int';; |
| 20095 |
i64) gltype1='__int64';; |
| 20096 |
u) gltype1='unsigned int';; |
| 20097 |
ul) gltype1='unsigned long int';; |
| 20098 |
ull) gltype1='unsigned long long int';; |
| 20099 |
ui64)gltype1='unsigned __int64';; |
| 20100 |
esac |
| 20101 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20102 |
/* end confdefs.h. */ |
| 20103 |
|
| 20104 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 20105 |
included before <wchar.h>. */ |
| 20106 |
#include <stddef.h> |
| 20107 |
#include <signal.h> |
| 20108 |
#if HAVE_WCHAR_H |
| 20109 |
# include <stdio.h> |
| 20110 |
# include <time.h> |
| 20111 |
# include <wchar.h> |
| 20112 |
#endif |
| 20113 |
|
| 20114 |
extern $gltype foo; |
| 20115 |
extern $gltype1 foo; |
| 20116 |
int |
| 20117 |
main () |
| 20118 |
{ |
| 20119 |
|
| 20120 |
; |
| 20121 |
return 0; |
| 20122 |
} |
| 20123 |
_ACEOF |
| 20124 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20125 |
eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 20126 |
fi |
| 20127 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20128 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 20129 |
test "$result" != no && break |
| 20130 |
done |
| 20131 |
fi |
| 20132 |
eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 20133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20134 |
$as_echo "$ac_res" >&6; } |
| 20135 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 20136 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 20137 |
test "$result" = no && result= |
| 20138 |
eval ${GLTYPE}_SUFFIX=\$result |
| 20139 |
cat >>confdefs.h <<_ACEOF |
| 20140 |
#define ${GLTYPE}_SUFFIX $result |
| 20141 |
_ACEOF |
| 20142 |
|
| 20143 |
done |
| 20144 |
|
| 20145 |
|
| 20146 |
|
| 20147 |
if test $BITSIZEOF_WINT_T -lt 32; then |
| 20148 |
BITSIZEOF_WINT_T=32 |
| 20149 |
fi |
| 20150 |
|
| 20151 |
STDINT_H=stdint.h |
| 20152 |
fi |
| 20153 |
|
| 20154 |
if test -n "$STDINT_H"; then |
| 20155 |
GL_GENERATE_STDINT_H_TRUE= |
| 20156 |
GL_GENERATE_STDINT_H_FALSE='#' |
| 20157 |
else |
| 20158 |
GL_GENERATE_STDINT_H_TRUE='#' |
| 20159 |
GL_GENERATE_STDINT_H_FALSE= |
| 20160 |
fi |
| 20161 |
|
| 20162 |
|
| 20163 |
|
| 20164 |
|
| 20165 |
ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" |
| 20166 |
if test "x$ac_cv_have_decl_strdup" = xyes; then : |
| 20167 |
ac_have_decl=1 |
| 20168 |
else |
| 20169 |
ac_have_decl=0 |
| 20170 |
fi |
| 20171 |
|
| 20172 |
cat >>confdefs.h <<_ACEOF |
| 20173 |
#define HAVE_DECL_STRDUP $ac_have_decl |
| 20174 |
_ACEOF |
| 20175 |
|
| 20176 |
|
| 20177 |
REPLACE_STRERROR_0=0 |
| 20178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 |
| 20179 |
$as_echo_n "checking whether strerror(0) succeeds... " >&6; } |
| 20180 |
if ${gl_cv_func_strerror_0_works+:} false; then : |
| 20181 |
$as_echo_n "(cached) " >&6 |
| 20182 |
else |
| 20183 |
if test "$cross_compiling" = yes; then : |
| 20184 |
case "$host_os" in |
| 20185 |
# Guess yes on glibc systems. |
| 20186 |
*-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; |
| 20187 |
# If we don't know, assume the worst. |
| 20188 |
*) gl_cv_func_strerror_0_works="guessing no" ;; |
| 20189 |
esac |
| 20190 |
|
| 20191 |
else |
| 20192 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20193 |
/* end confdefs.h. */ |
| 20194 |
#include <string.h> |
| 20195 |
#include <errno.h> |
| 20196 |
|
| 20197 |
int |
| 20198 |
main () |
| 20199 |
{ |
| 20200 |
int result = 0; |
| 20201 |
char *str; |
| 20202 |
errno = 0; |
| 20203 |
str = strerror (0); |
| 20204 |
if (!*str) result |= 1; |
| 20205 |
if (errno) result |= 2; |
| 20206 |
if (strstr (str, "nknown") || strstr (str, "ndefined")) |
| 20207 |
result |= 4; |
| 20208 |
return result; |
| 20209 |
; |
| 20210 |
return 0; |
| 20211 |
} |
| 20212 |
_ACEOF |
| 20213 |
if ac_fn_c_try_run "$LINENO"; then : |
| 20214 |
gl_cv_func_strerror_0_works=yes |
| 20215 |
else |
| 20216 |
gl_cv_func_strerror_0_works=no |
| 20217 |
fi |
| 20218 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20219 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20220 |
fi |
| 20221 |
|
| 20222 |
|
| 20223 |
fi |
| 20224 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 |
| 20225 |
$as_echo "$gl_cv_func_strerror_0_works" >&6; } |
| 20226 |
case "$gl_cv_func_strerror_0_works" in |
| 20227 |
*yes) ;; |
| 20228 |
*) |
| 20229 |
REPLACE_STRERROR_0=1 |
| 20230 |
|
| 20231 |
$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h |
| 20232 |
|
| 20233 |
;; |
| 20234 |
esac |
| 20235 |
|
| 20236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 20237 |
$as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 20238 |
if ${ac_cv_c_restrict+:} false; then : |
| 20239 |
$as_echo_n "(cached) " >&6 |
| 20240 |
else |
| 20241 |
ac_cv_c_restrict=no |
| 20242 |
# The order here caters to the fact that C++ does not require restrict. |
| 20243 |
for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 20244 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20245 |
/* end confdefs.h. */ |
| 20246 |
typedef int * int_ptr; |
| 20247 |
int foo (int_ptr $ac_kw ip) { |
| 20248 |
return ip[0]; |
| 20249 |
} |
| 20250 |
int |
| 20251 |
main () |
| 20252 |
{ |
| 20253 |
int s[1]; |
| 20254 |
int * $ac_kw t = s; |
| 20255 |
t[0] = 0; |
| 20256 |
return foo(t) |
| 20257 |
; |
| 20258 |
return 0; |
| 20259 |
} |
| 20260 |
_ACEOF |
| 20261 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20262 |
ac_cv_c_restrict=$ac_kw |
| 20263 |
fi |
| 20264 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20265 |
test "$ac_cv_c_restrict" != no && break |
| 20266 |
done |
| 20267 |
|
| 20268 |
fi |
| 20269 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 20270 |
$as_echo "$ac_cv_c_restrict" >&6; } |
| 20271 |
|
| 20272 |
case $ac_cv_c_restrict in |
| 20273 |
restrict) ;; |
| 20274 |
no) $as_echo "#define restrict /**/" >>confdefs.h |
| 20275 |
;; |
| 20276 |
*) cat >>confdefs.h <<_ACEOF |
| 20277 |
#define restrict $ac_cv_c_restrict |
| 20278 |
_ACEOF |
| 20279 |
;; |
| 20280 |
esac |
| 20281 |
|
| 20282 |
|
| 20283 |
|
| 20284 |
|
| 20285 |
|
| 20286 |
|
| 20287 |
|
| 20288 |
|
| 20289 |
|
| 20290 |
|
| 20291 |
|
| 20292 |
|
| 20293 |
if test $gl_cv_have_include_next = yes; then |
| 20294 |
gl_cv_next_string_h='<'string.h'>' |
| 20295 |
else |
| 20296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 |
| 20297 |
$as_echo_n "checking absolute name of <string.h>... " >&6; } |
| 20298 |
if ${gl_cv_next_string_h+:} false; then : |
| 20299 |
$as_echo_n "(cached) " >&6 |
| 20300 |
else |
| 20301 |
|
| 20302 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20303 |
/* end confdefs.h. */ |
| 20304 |
#include <string.h> |
| 20305 |
|
| 20306 |
_ACEOF |
| 20307 |
case "$host_os" in |
| 20308 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 20309 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 20310 |
esac |
| 20311 |
|
| 20312 |
case "$host_os" in |
| 20313 |
mingw*) |
| 20314 |
gl_dirsep_regex='[/\\]' |
| 20315 |
;; |
| 20316 |
*) |
| 20317 |
gl_dirsep_regex='\/' |
| 20318 |
;; |
| 20319 |
esac |
| 20320 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 20321 |
|
| 20322 |
gl_header_literal_regex=`echo 'string.h' \ |
| 20323 |
| sed -e "$gl_make_literal_regex_sed"` |
| 20324 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 20325 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 20326 |
s|^/[^/]|//&| |
| 20327 |
p |
| 20328 |
q |
| 20329 |
}' |
| 20330 |
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 20331 |
sed -n "$gl_absolute_header_sed"`'"' |
| 20332 |
|
| 20333 |
|
| 20334 |
fi |
| 20335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 |
| 20336 |
$as_echo "$gl_cv_next_string_h" >&6; } |
| 20337 |
fi |
| 20338 |
NEXT_STRING_H=$gl_cv_next_string_h |
| 20339 |
|
| 20340 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 20341 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 20342 |
gl_next_as_first_directive='<'string.h'>' |
| 20343 |
else |
| 20344 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 20345 |
gl_next_as_first_directive=$gl_cv_next_string_h |
| 20346 |
fi |
| 20347 |
NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive |
| 20348 |
|
| 20349 |
|
| 20350 |
|
| 20351 |
|
| 20352 |
|
| 20353 |
|
| 20354 |
for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do |
| 20355 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 20356 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 20357 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 20358 |
if eval \${$as_gl_Symbol+:} false; then : |
| 20359 |
$as_echo_n "(cached) " >&6 |
| 20360 |
else |
| 20361 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20362 |
/* end confdefs.h. */ |
| 20363 |
#include <string.h> |
| 20364 |
|
| 20365 |
int |
| 20366 |
main () |
| 20367 |
{ |
| 20368 |
#undef $gl_func |
| 20369 |
(void) $gl_func; |
| 20370 |
; |
| 20371 |
return 0; |
| 20372 |
} |
| 20373 |
_ACEOF |
| 20374 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20375 |
eval "$as_gl_Symbol=yes" |
| 20376 |
else |
| 20377 |
eval "$as_gl_Symbol=no" |
| 20378 |
fi |
| 20379 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20380 |
fi |
| 20381 |
eval ac_res=\$$as_gl_Symbol |
| 20382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 20383 |
$as_echo "$ac_res" >&6; } |
| 20384 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 20385 |
cat >>confdefs.h <<_ACEOF |
| 20386 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 20387 |
_ACEOF |
| 20388 |
|
| 20389 |
eval ac_cv_have_decl_$gl_func=yes |
| 20390 |
fi |
| 20391 |
done |
| 20392 |
|
| 20393 |
|
| 20394 |
|
| 20395 |
|
| 20396 |
|
| 20397 |
|
| 20398 |
|
| 20399 |
|
| 20400 |
|
| 20401 |
|
| 20402 |
|
| 20403 |
|
| 20404 |
|
| 20405 |
|
| 20406 |
|
| 20407 |
|
| 20408 |
|
| 20409 |
|
| 20410 |
|
| 20411 |
|
| 20412 |
if test $gl_cv_have_include_next = yes; then |
| 20413 |
gl_cv_next_sys_types_h='<'sys/types.h'>' |
| 20414 |
else |
| 20415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 |
| 20416 |
$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } |
| 20417 |
if ${gl_cv_next_sys_types_h+:} false; then : |
| 20418 |
$as_echo_n "(cached) " >&6 |
| 20419 |
else |
| 20420 |
|
| 20421 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20422 |
/* end confdefs.h. */ |
| 20423 |
#include <sys/types.h> |
| 20424 |
|
| 20425 |
_ACEOF |
| 20426 |
case "$host_os" in |
| 20427 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 20428 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 20429 |
esac |
| 20430 |
|
| 20431 |
case "$host_os" in |
| 20432 |
mingw*) |
| 20433 |
gl_dirsep_regex='[/\\]' |
| 20434 |
;; |
| 20435 |
*) |
| 20436 |
gl_dirsep_regex='\/' |
| 20437 |
;; |
| 20438 |
esac |
| 20439 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 20440 |
|
| 20441 |
gl_header_literal_regex=`echo 'sys/types.h' \ |
| 20442 |
| sed -e "$gl_make_literal_regex_sed"` |
| 20443 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 20444 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 20445 |
s|^/[^/]|//&| |
| 20446 |
p |
| 20447 |
q |
| 20448 |
}' |
| 20449 |
gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 20450 |
sed -n "$gl_absolute_header_sed"`'"' |
| 20451 |
|
| 20452 |
|
| 20453 |
fi |
| 20454 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 |
| 20455 |
$as_echo "$gl_cv_next_sys_types_h" >&6; } |
| 20456 |
fi |
| 20457 |
NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h |
| 20458 |
|
| 20459 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 20460 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 20461 |
gl_next_as_first_directive='<'sys/types.h'>' |
| 20462 |
else |
| 20463 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 20464 |
gl_next_as_first_directive=$gl_cv_next_sys_types_h |
| 20465 |
fi |
| 20466 |
NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive |
| 20467 |
|
| 20468 |
|
| 20469 |
|
| 20470 |
|
| 20471 |
|
| 20472 |
|
| 20473 |
|
| 20474 |
|
| 20475 |
|
| 20476 |
|
| 20477 |
|
| 20478 |
|
| 20479 |
GNULIB_MKTIME=0; |
| 20480 |
GNULIB_NANOSLEEP=0; |
| 20481 |
GNULIB_STRPTIME=0; |
| 20482 |
GNULIB_TIMEGM=0; |
| 20483 |
GNULIB_TIME_R=0; |
| 20484 |
HAVE_DECL_LOCALTIME_R=1; |
| 20485 |
HAVE_NANOSLEEP=1; |
| 20486 |
HAVE_STRPTIME=1; |
| 20487 |
HAVE_TIMEGM=1; |
| 20488 |
REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; |
| 20489 |
REPLACE_MKTIME=GNULIB_PORTCHECK; |
| 20490 |
REPLACE_NANOSLEEP=GNULIB_PORTCHECK; |
| 20491 |
REPLACE_TIMEGM=GNULIB_PORTCHECK; |
| 20492 |
|
| 20493 |
|
| 20494 |
|
| 20495 |
|
| 20496 |
|
| 20497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 |
| 20498 |
$as_echo_n "checking for struct timespec in <time.h>... " >&6; } |
| 20499 |
if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : |
| 20500 |
$as_echo_n "(cached) " >&6 |
| 20501 |
else |
| 20502 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20503 |
/* end confdefs.h. */ |
| 20504 |
#include <time.h> |
| 20505 |
|
| 20506 |
int |
| 20507 |
main () |
| 20508 |
{ |
| 20509 |
static struct timespec x; x.tv_sec = x.tv_nsec; |
| 20510 |
; |
| 20511 |
return 0; |
| 20512 |
} |
| 20513 |
_ACEOF |
| 20514 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20515 |
gl_cv_sys_struct_timespec_in_time_h=yes |
| 20516 |
else |
| 20517 |
gl_cv_sys_struct_timespec_in_time_h=no |
| 20518 |
fi |
| 20519 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20520 |
fi |
| 20521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 |
| 20522 |
$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } |
| 20523 |
|
| 20524 |
TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 20525 |
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 20526 |
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 20527 |
if test $gl_cv_sys_struct_timespec_in_time_h = yes; then |
| 20528 |
TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 20529 |
else |
| 20530 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 |
| 20531 |
$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } |
| 20532 |
if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : |
| 20533 |
$as_echo_n "(cached) " >&6 |
| 20534 |
else |
| 20535 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20536 |
/* end confdefs.h. */ |
| 20537 |
#include <sys/time.h> |
| 20538 |
|
| 20539 |
int |
| 20540 |
main () |
| 20541 |
{ |
| 20542 |
static struct timespec x; x.tv_sec = x.tv_nsec; |
| 20543 |
; |
| 20544 |
return 0; |
| 20545 |
} |
| 20546 |
_ACEOF |
| 20547 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20548 |
gl_cv_sys_struct_timespec_in_sys_time_h=yes |
| 20549 |
else |
| 20550 |
gl_cv_sys_struct_timespec_in_sys_time_h=no |
| 20551 |
fi |
| 20552 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20553 |
fi |
| 20554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 |
| 20555 |
$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } |
| 20556 |
if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then |
| 20557 |
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 20558 |
else |
| 20559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 |
| 20560 |
$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } |
| 20561 |
if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then : |
| 20562 |
$as_echo_n "(cached) " >&6 |
| 20563 |
else |
| 20564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20565 |
/* end confdefs.h. */ |
| 20566 |
#include <pthread.h> |
| 20567 |
|
| 20568 |
int |
| 20569 |
main () |
| 20570 |
{ |
| 20571 |
static struct timespec x; x.tv_sec = x.tv_nsec; |
| 20572 |
; |
| 20573 |
return 0; |
| 20574 |
} |
| 20575 |
_ACEOF |
| 20576 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20577 |
gl_cv_sys_struct_timespec_in_pthread_h=yes |
| 20578 |
else |
| 20579 |
gl_cv_sys_struct_timespec_in_pthread_h=no |
| 20580 |
fi |
| 20581 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20582 |
fi |
| 20583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 |
| 20584 |
$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } |
| 20585 |
if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then |
| 20586 |
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 20587 |
fi |
| 20588 |
fi |
| 20589 |
fi |
| 20590 |
|
| 20591 |
|
| 20592 |
|
| 20593 |
|
| 20594 |
|
| 20595 |
|
| 20596 |
|
| 20597 |
|
| 20598 |
|
| 20599 |
|
| 20600 |
|
| 20601 |
|
| 20602 |
|
| 20603 |
|
| 20604 |
|
| 20605 |
if test $gl_cv_have_include_next = yes; then |
| 20606 |
gl_cv_next_time_h='<'time.h'>' |
| 20607 |
else |
| 20608 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 |
| 20609 |
$as_echo_n "checking absolute name of <time.h>... " >&6; } |
| 20610 |
if ${gl_cv_next_time_h+:} false; then : |
| 20611 |
$as_echo_n "(cached) " >&6 |
| 20612 |
else |
| 20613 |
|
| 20614 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20615 |
/* end confdefs.h. */ |
| 20616 |
#include <time.h> |
| 20617 |
|
| 20618 |
_ACEOF |
| 20619 |
case "$host_os" in |
| 20620 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 20621 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 20622 |
esac |
| 20623 |
|
| 20624 |
case "$host_os" in |
| 20625 |
mingw*) |
| 20626 |
gl_dirsep_regex='[/\\]' |
| 20627 |
;; |
| 20628 |
*) |
| 20629 |
gl_dirsep_regex='\/' |
| 20630 |
;; |
| 20631 |
esac |
| 20632 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 20633 |
|
| 20634 |
gl_header_literal_regex=`echo 'time.h' \ |
| 20635 |
| sed -e "$gl_make_literal_regex_sed"` |
| 20636 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 20637 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 20638 |
s|^/[^/]|//&| |
| 20639 |
p |
| 20640 |
q |
| 20641 |
}' |
| 20642 |
gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 20643 |
sed -n "$gl_absolute_header_sed"`'"' |
| 20644 |
|
| 20645 |
|
| 20646 |
fi |
| 20647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 |
| 20648 |
$as_echo "$gl_cv_next_time_h" >&6; } |
| 20649 |
fi |
| 20650 |
NEXT_TIME_H=$gl_cv_next_time_h |
| 20651 |
|
| 20652 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 20653 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 20654 |
gl_next_as_first_directive='<'time.h'>' |
| 20655 |
else |
| 20656 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 20657 |
gl_next_as_first_directive=$gl_cv_next_time_h |
| 20658 |
fi |
| 20659 |
NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive |
| 20660 |
|
| 20661 |
|
| 20662 |
|
| 20663 |
|
| 20664 |
|
| 20665 |
|
| 20666 |
|
| 20667 |
|
| 20668 |
|
| 20669 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 20670 |
$as_echo_n "checking for wint_t... " >&6; } |
| 20671 |
if ${gt_cv_c_wint_t+:} false; then : |
| 20672 |
$as_echo_n "(cached) " >&6 |
| 20673 |
else |
| 20674 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20675 |
/* end confdefs.h. */ |
| 20676 |
|
| 20677 |
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 20678 |
<wchar.h>. |
| 20679 |
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 20680 |
before <wchar.h>. */ |
| 20681 |
#include <stddef.h> |
| 20682 |
#include <stdio.h> |
| 20683 |
#include <time.h> |
| 20684 |
#include <wchar.h> |
| 20685 |
wint_t foo = (wchar_t)'\0'; |
| 20686 |
int |
| 20687 |
main () |
| 20688 |
{ |
| 20689 |
|
| 20690 |
; |
| 20691 |
return 0; |
| 20692 |
} |
| 20693 |
_ACEOF |
| 20694 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20695 |
gt_cv_c_wint_t=yes |
| 20696 |
else |
| 20697 |
gt_cv_c_wint_t=no |
| 20698 |
fi |
| 20699 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20700 |
fi |
| 20701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 20702 |
$as_echo "$gt_cv_c_wint_t" >&6; } |
| 20703 |
if test $gt_cv_c_wint_t = yes; then |
| 20704 |
|
| 20705 |
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 20706 |
|
| 20707 |
fi |
| 20708 |
|
| 20709 |
|
| 20710 |
|
| 20711 |
|
| 20712 |
|
| 20713 |
if test $ac_cv_header_features_h = yes; then |
| 20714 |
HAVE_FEATURES_H=1 |
| 20715 |
else |
| 20716 |
HAVE_FEATURES_H=0 |
| 20717 |
fi |
| 20718 |
|
| 20719 |
|
| 20720 |
|
| 20721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 20722 |
$as_echo_n "checking for inttypes.h... " >&6; } |
| 20723 |
if ${gl_cv_header_inttypes_h+:} false; then : |
| 20724 |
$as_echo_n "(cached) " >&6 |
| 20725 |
else |
| 20726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20727 |
/* end confdefs.h. */ |
| 20728 |
|
| 20729 |
#include <sys/types.h> |
| 20730 |
#include <inttypes.h> |
| 20731 |
|
| 20732 |
int |
| 20733 |
main () |
| 20734 |
{ |
| 20735 |
uintmax_t i = (uintmax_t) -1; return !i; |
| 20736 |
; |
| 20737 |
return 0; |
| 20738 |
} |
| 20739 |
_ACEOF |
| 20740 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20741 |
gl_cv_header_inttypes_h=yes |
| 20742 |
else |
| 20743 |
gl_cv_header_inttypes_h=no |
| 20744 |
fi |
| 20745 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20746 |
fi |
| 20747 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 20748 |
$as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 20749 |
if test $gl_cv_header_inttypes_h = yes; then |
| 20750 |
|
| 20751 |
cat >>confdefs.h <<_ACEOF |
| 20752 |
#define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 20753 |
_ACEOF |
| 20754 |
|
| 20755 |
fi |
| 20756 |
|
| 20757 |
|
| 20758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
| 20759 |
$as_echo_n "checking for stdint.h... " >&6; } |
| 20760 |
if ${gl_cv_header_stdint_h+:} false; then : |
| 20761 |
$as_echo_n "(cached) " >&6 |
| 20762 |
else |
| 20763 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20764 |
/* end confdefs.h. */ |
| 20765 |
#include <sys/types.h> |
| 20766 |
#include <stdint.h> |
| 20767 |
int |
| 20768 |
main () |
| 20769 |
{ |
| 20770 |
uintmax_t i = (uintmax_t) -1; return !i; |
| 20771 |
; |
| 20772 |
return 0; |
| 20773 |
} |
| 20774 |
_ACEOF |
| 20775 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20776 |
gl_cv_header_stdint_h=yes |
| 20777 |
else |
| 20778 |
gl_cv_header_stdint_h=no |
| 20779 |
fi |
| 20780 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20781 |
fi |
| 20782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 20783 |
$as_echo "$gl_cv_header_stdint_h" >&6; } |
| 20784 |
if test $gl_cv_header_stdint_h = yes; then |
| 20785 |
|
| 20786 |
cat >>confdefs.h <<_ACEOF |
| 20787 |
#define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 20788 |
_ACEOF |
| 20789 |
|
| 20790 |
fi |
| 20791 |
|
| 20792 |
|
| 20793 |
|
| 20794 |
|
| 20795 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 20796 |
$as_echo_n "checking for intmax_t... " >&6; } |
| 20797 |
if ${gt_cv_c_intmax_t+:} false; then : |
| 20798 |
$as_echo_n "(cached) " >&6 |
| 20799 |
else |
| 20800 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20801 |
/* end confdefs.h. */ |
| 20802 |
|
| 20803 |
#include <stddef.h> |
| 20804 |
#include <stdlib.h> |
| 20805 |
#if HAVE_STDINT_H_WITH_UINTMAX |
| 20806 |
#include <stdint.h> |
| 20807 |
#endif |
| 20808 |
#if HAVE_INTTYPES_H_WITH_UINTMAX |
| 20809 |
#include <inttypes.h> |
| 20810 |
#endif |
| 20811 |
|
| 20812 |
int |
| 20813 |
main () |
| 20814 |
{ |
| 20815 |
intmax_t x = -1; return !x; |
| 20816 |
; |
| 20817 |
return 0; |
| 20818 |
} |
| 20819 |
_ACEOF |
| 20820 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20821 |
gt_cv_c_intmax_t=yes |
| 20822 |
else |
| 20823 |
gt_cv_c_intmax_t=no |
| 20824 |
fi |
| 20825 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20826 |
fi |
| 20827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 20828 |
$as_echo "$gt_cv_c_intmax_t" >&6; } |
| 20829 |
if test $gt_cv_c_intmax_t = yes; then |
| 20830 |
|
| 20831 |
$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 20832 |
|
| 20833 |
else |
| 20834 |
|
| 20835 |
test $ac_cv_type_long_long_int = yes \ |
| 20836 |
&& ac_type='long long' \ |
| 20837 |
|| ac_type='long' |
| 20838 |
|
| 20839 |
cat >>confdefs.h <<_ACEOF |
| 20840 |
#define intmax_t $ac_type |
| 20841 |
_ACEOF |
| 20842 |
|
| 20843 |
fi |
| 20844 |
|
| 20845 |
|
| 20846 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 |
| 20847 |
$as_echo_n "checking where to find the exponent in a 'double'... " >&6; } |
| 20848 |
if ${gl_cv_cc_double_expbit0+:} false; then : |
| 20849 |
$as_echo_n "(cached) " >&6 |
| 20850 |
else |
| 20851 |
|
| 20852 |
if test "$cross_compiling" = yes; then : |
| 20853 |
|
| 20854 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20855 |
/* end confdefs.h. */ |
| 20856 |
|
| 20857 |
#if defined arm || defined __arm || defined __arm__ |
| 20858 |
mixed_endianness |
| 20859 |
#endif |
| 20860 |
|
| 20861 |
_ACEOF |
| 20862 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20863 |
$EGREP "mixed_endianness" >/dev/null 2>&1; then : |
| 20864 |
gl_cv_cc_double_expbit0="unknown" |
| 20865 |
else |
| 20866 |
|
| 20867 |
: |
| 20868 |
if ${ac_cv_c_bigendian+:} false; then : |
| 20869 |
$as_echo_n "(cached) " >&6 |
| 20870 |
else |
| 20871 |
ac_cv_c_bigendian=unknown |
| 20872 |
# See if we're dealing with a universal compiler. |
| 20873 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20874 |
/* end confdefs.h. */ |
| 20875 |
#ifndef __APPLE_CC__ |
| 20876 |
not a universal capable compiler |
| 20877 |
#endif |
| 20878 |
typedef int dummy; |
| 20879 |
|
| 20880 |
_ACEOF |
| 20881 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20882 |
|
| 20883 |
# Check for potential -arch flags. It is not universal unless |
| 20884 |
# there are at least two -arch flags with different values. |
| 20885 |
ac_arch= |
| 20886 |
ac_prev= |
| 20887 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 20888 |
if test -n "$ac_prev"; then |
| 20889 |
case $ac_word in |
| 20890 |
i?86 | x86_64 | ppc | ppc64) |
| 20891 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 20892 |
ac_arch=$ac_word |
| 20893 |
else |
| 20894 |
ac_cv_c_bigendian=universal |
| 20895 |
break |
| 20896 |
fi |
| 20897 |
;; |
| 20898 |
esac |
| 20899 |
ac_prev= |
| 20900 |
elif test "x$ac_word" = "x-arch"; then |
| 20901 |
ac_prev=arch |
| 20902 |
fi |
| 20903 |
done |
| 20904 |
fi |
| 20905 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20906 |
if test $ac_cv_c_bigendian = unknown; then |
| 20907 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 20908 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20909 |
/* end confdefs.h. */ |
| 20910 |
#include <sys/types.h> |
| 20911 |
#include <sys/param.h> |
| 20912 |
|
| 20913 |
int |
| 20914 |
main () |
| 20915 |
{ |
| 20916 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 20917 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 20918 |
&& LITTLE_ENDIAN) |
| 20919 |
bogus endian macros |
| 20920 |
#endif |
| 20921 |
|
| 20922 |
; |
| 20923 |
return 0; |
| 20924 |
} |
| 20925 |
_ACEOF |
| 20926 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20927 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 20928 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20929 |
/* end confdefs.h. */ |
| 20930 |
#include <sys/types.h> |
| 20931 |
#include <sys/param.h> |
| 20932 |
|
| 20933 |
int |
| 20934 |
main () |
| 20935 |
{ |
| 20936 |
#if BYTE_ORDER != BIG_ENDIAN |
| 20937 |
not big endian |
| 20938 |
#endif |
| 20939 |
|
| 20940 |
; |
| 20941 |
return 0; |
| 20942 |
} |
| 20943 |
_ACEOF |
| 20944 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20945 |
ac_cv_c_bigendian=yes |
| 20946 |
else |
| 20947 |
ac_cv_c_bigendian=no |
| 20948 |
fi |
| 20949 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20950 |
fi |
| 20951 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20952 |
fi |
| 20953 |
if test $ac_cv_c_bigendian = unknown; then |
| 20954 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 20955 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20956 |
/* end confdefs.h. */ |
| 20957 |
#include <limits.h> |
| 20958 |
|
| 20959 |
int |
| 20960 |
main () |
| 20961 |
{ |
| 20962 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 20963 |
bogus endian macros |
| 20964 |
#endif |
| 20965 |
|
| 20966 |
; |
| 20967 |
return 0; |
| 20968 |
} |
| 20969 |
_ACEOF |
| 20970 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20971 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 20972 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20973 |
/* end confdefs.h. */ |
| 20974 |
#include <limits.h> |
| 20975 |
|
| 20976 |
int |
| 20977 |
main () |
| 20978 |
{ |
| 20979 |
#ifndef _BIG_ENDIAN |
| 20980 |
not big endian |
| 20981 |
#endif |
| 20982 |
|
| 20983 |
; |
| 20984 |
return 0; |
| 20985 |
} |
| 20986 |
_ACEOF |
| 20987 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 20988 |
ac_cv_c_bigendian=yes |
| 20989 |
else |
| 20990 |
ac_cv_c_bigendian=no |
| 20991 |
fi |
| 20992 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20993 |
fi |
| 20994 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20995 |
fi |
| 20996 |
if test $ac_cv_c_bigendian = unknown; then |
| 20997 |
# Compile a test program. |
| 20998 |
if test "$cross_compiling" = yes; then : |
| 20999 |
# Try to guess by grepping values from an object file. |
| 21000 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21001 |
/* end confdefs.h. */ |
| 21002 |
short int ascii_mm[] = |
| 21003 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 21004 |
short int ascii_ii[] = |
| 21005 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 21006 |
int use_ascii (int i) { |
| 21007 |
return ascii_mm[i] + ascii_ii[i]; |
| 21008 |
} |
| 21009 |
short int ebcdic_ii[] = |
| 21010 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 21011 |
short int ebcdic_mm[] = |
| 21012 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 21013 |
int use_ebcdic (int i) { |
| 21014 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 21015 |
} |
| 21016 |
extern int foo; |
| 21017 |
|
| 21018 |
int |
| 21019 |
main () |
| 21020 |
{ |
| 21021 |
return use_ascii (foo) == use_ebcdic (foo); |
| 21022 |
; |
| 21023 |
return 0; |
| 21024 |
} |
| 21025 |
_ACEOF |
| 21026 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 21027 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 21028 |
ac_cv_c_bigendian=yes |
| 21029 |
fi |
| 21030 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 21031 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 21032 |
ac_cv_c_bigendian=no |
| 21033 |
else |
| 21034 |
# finding both strings is unlikely to happen, but who knows? |
| 21035 |
ac_cv_c_bigendian=unknown |
| 21036 |
fi |
| 21037 |
fi |
| 21038 |
fi |
| 21039 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21040 |
else |
| 21041 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21042 |
/* end confdefs.h. */ |
| 21043 |
$ac_includes_default |
| 21044 |
int |
| 21045 |
main () |
| 21046 |
{ |
| 21047 |
|
| 21048 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 21049 |
union |
| 21050 |
{ |
| 21051 |
long int l; |
| 21052 |
char c[sizeof (long int)]; |
| 21053 |
} u; |
| 21054 |
u.l = 1; |
| 21055 |
return u.c[sizeof (long int) - 1] == 1; |
| 21056 |
|
| 21057 |
; |
| 21058 |
return 0; |
| 21059 |
} |
| 21060 |
_ACEOF |
| 21061 |
if ac_fn_c_try_run "$LINENO"; then : |
| 21062 |
ac_cv_c_bigendian=no |
| 21063 |
else |
| 21064 |
ac_cv_c_bigendian=yes |
| 21065 |
fi |
| 21066 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21067 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21068 |
fi |
| 21069 |
|
| 21070 |
fi |
| 21071 |
fi |
| 21072 |
: |
| 21073 |
case $ac_cv_c_bigendian in #( |
| 21074 |
yes) |
| 21075 |
gl_cv_cc_double_expbit0="word 0 bit 20";; #( |
| 21076 |
no) |
| 21077 |
gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( |
| 21078 |
universal) |
| 21079 |
|
| 21080 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 21081 |
|
| 21082 |
;; #( |
| 21083 |
*) |
| 21084 |
gl_cv_cc_double_expbit0="unknown" ;; |
| 21085 |
esac |
| 21086 |
|
| 21087 |
|
| 21088 |
fi |
| 21089 |
rm -f conftest* |
| 21090 |
|
| 21091 |
|
| 21092 |
else |
| 21093 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21094 |
/* end confdefs.h. */ |
| 21095 |
|
| 21096 |
#include <float.h> |
| 21097 |
#include <stddef.h> |
| 21098 |
#include <stdio.h> |
| 21099 |
#include <string.h> |
| 21100 |
#define NWORDS \ |
| 21101 |
((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 21102 |
typedef union { double value; unsigned int word[NWORDS]; } memory_double; |
| 21103 |
static unsigned int ored_words[NWORDS]; |
| 21104 |
static unsigned int anded_words[NWORDS]; |
| 21105 |
static void add_to_ored_words (double x) |
| 21106 |
{ |
| 21107 |
memory_double m; |
| 21108 |
size_t i; |
| 21109 |
/* Clear it first, in case sizeof (double) < sizeof (memory_double). */ |
| 21110 |
memset (&m, 0, sizeof (memory_double)); |
| 21111 |
m.value = x; |
| 21112 |
for (i = 0; i < NWORDS; i++) |
| 21113 |
{ |
| 21114 |
ored_words[i] |= m.word[i]; |
| 21115 |
anded_words[i] &= m.word[i]; |
| 21116 |
} |
| 21117 |
} |
| 21118 |
int main () |
| 21119 |
{ |
| 21120 |
size_t j; |
| 21121 |
FILE *fp = fopen ("conftest.out", "w"); |
| 21122 |
if (fp == NULL) |
| 21123 |
return 1; |
| 21124 |
for (j = 0; j < NWORDS; j++) |
| 21125 |
anded_words[j] = ~ (unsigned int) 0; |
| 21126 |
add_to_ored_words (0.25); |
| 21127 |
add_to_ored_words (0.5); |
| 21128 |
add_to_ored_words (1.0); |
| 21129 |
add_to_ored_words (2.0); |
| 21130 |
add_to_ored_words (4.0); |
| 21131 |
/* Remove bits that are common (e.g. if representation of the first mantissa |
| 21132 |
bit is explicit). */ |
| 21133 |
for (j = 0; j < NWORDS; j++) |
| 21134 |
ored_words[j] &= ~anded_words[j]; |
| 21135 |
/* Now find the nonzero word. */ |
| 21136 |
for (j = 0; j < NWORDS; j++) |
| 21137 |
if (ored_words[j] != 0) |
| 21138 |
break; |
| 21139 |
if (j < NWORDS) |
| 21140 |
{ |
| 21141 |
size_t i; |
| 21142 |
for (i = j + 1; i < NWORDS; i++) |
| 21143 |
if (ored_words[i] != 0) |
| 21144 |
{ |
| 21145 |
fprintf (fp, "unknown"); |
| 21146 |
return (fclose (fp) != 0); |
| 21147 |
} |
| 21148 |
for (i = 0; ; i++) |
| 21149 |
if ((ored_words[j] >> i) & 1) |
| 21150 |
{ |
| 21151 |
fprintf (fp, "word %d bit %d", (int) j, (int) i); |
| 21152 |
return (fclose (fp) != 0); |
| 21153 |
} |
| 21154 |
} |
| 21155 |
fprintf (fp, "unknown"); |
| 21156 |
return (fclose (fp) != 0); |
| 21157 |
} |
| 21158 |
|
| 21159 |
_ACEOF |
| 21160 |
if ac_fn_c_try_run "$LINENO"; then : |
| 21161 |
gl_cv_cc_double_expbit0=`cat conftest.out` |
| 21162 |
else |
| 21163 |
gl_cv_cc_double_expbit0="unknown" |
| 21164 |
fi |
| 21165 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21166 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21167 |
fi |
| 21168 |
|
| 21169 |
rm -f conftest.out |
| 21170 |
|
| 21171 |
fi |
| 21172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 |
| 21173 |
$as_echo "$gl_cv_cc_double_expbit0" >&6; } |
| 21174 |
case "$gl_cv_cc_double_expbit0" in |
| 21175 |
word*bit*) |
| 21176 |
word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` |
| 21177 |
bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` |
| 21178 |
|
| 21179 |
cat >>confdefs.h <<_ACEOF |
| 21180 |
#define DBL_EXPBIT0_WORD $word |
| 21181 |
_ACEOF |
| 21182 |
|
| 21183 |
|
| 21184 |
cat >>confdefs.h <<_ACEOF |
| 21185 |
#define DBL_EXPBIT0_BIT $bit |
| 21186 |
_ACEOF |
| 21187 |
|
| 21188 |
;; |
| 21189 |
esac |
| 21190 |
|
| 21191 |
|
| 21192 |
|
| 21193 |
|
| 21194 |
|
| 21195 |
|
| 21196 |
for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 21197 |
do : |
| 21198 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21199 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21200 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 21201 |
cat >>confdefs.h <<_ACEOF |
| 21202 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21203 |
_ACEOF |
| 21204 |
|
| 21205 |
fi |
| 21206 |
done |
| 21207 |
|
| 21208 |
ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 21209 |
" |
| 21210 |
if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 21211 |
ac_have_decl=1 |
| 21212 |
else |
| 21213 |
ac_have_decl=0 |
| 21214 |
fi |
| 21215 |
|
| 21216 |
cat >>confdefs.h <<_ACEOF |
| 21217 |
#define HAVE_DECL__SNPRINTF $ac_have_decl |
| 21218 |
_ACEOF |
| 21219 |
|
| 21220 |
|
| 21221 |
|
| 21222 |
case "$gl_cv_func_snprintf_retval_c99" in |
| 21223 |
*yes) |
| 21224 |
|
| 21225 |
$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h |
| 21226 |
|
| 21227 |
;; |
| 21228 |
esac |
| 21229 |
|
| 21230 |
|
| 21231 |
GNULIB_BTOWC=0; |
| 21232 |
GNULIB_WCTOB=0; |
| 21233 |
GNULIB_MBSINIT=0; |
| 21234 |
GNULIB_MBRTOWC=0; |
| 21235 |
GNULIB_MBRLEN=0; |
| 21236 |
GNULIB_MBSRTOWCS=0; |
| 21237 |
GNULIB_MBSNRTOWCS=0; |
| 21238 |
GNULIB_WCRTOMB=0; |
| 21239 |
GNULIB_WCSRTOMBS=0; |
| 21240 |
GNULIB_WCSNRTOMBS=0; |
| 21241 |
GNULIB_WCWIDTH=0; |
| 21242 |
GNULIB_WMEMCHR=0; |
| 21243 |
GNULIB_WMEMCMP=0; |
| 21244 |
GNULIB_WMEMCPY=0; |
| 21245 |
GNULIB_WMEMMOVE=0; |
| 21246 |
GNULIB_WMEMSET=0; |
| 21247 |
GNULIB_WCSLEN=0; |
| 21248 |
GNULIB_WCSNLEN=0; |
| 21249 |
GNULIB_WCSCPY=0; |
| 21250 |
GNULIB_WCPCPY=0; |
| 21251 |
GNULIB_WCSNCPY=0; |
| 21252 |
GNULIB_WCPNCPY=0; |
| 21253 |
GNULIB_WCSCAT=0; |
| 21254 |
GNULIB_WCSNCAT=0; |
| 21255 |
GNULIB_WCSCMP=0; |
| 21256 |
GNULIB_WCSNCMP=0; |
| 21257 |
GNULIB_WCSCASECMP=0; |
| 21258 |
GNULIB_WCSNCASECMP=0; |
| 21259 |
GNULIB_WCSCOLL=0; |
| 21260 |
GNULIB_WCSXFRM=0; |
| 21261 |
GNULIB_WCSDUP=0; |
| 21262 |
GNULIB_WCSCHR=0; |
| 21263 |
GNULIB_WCSRCHR=0; |
| 21264 |
GNULIB_WCSCSPN=0; |
| 21265 |
GNULIB_WCSSPN=0; |
| 21266 |
GNULIB_WCSPBRK=0; |
| 21267 |
GNULIB_WCSSTR=0; |
| 21268 |
GNULIB_WCSTOK=0; |
| 21269 |
GNULIB_WCSWIDTH=0; |
| 21270 |
HAVE_BTOWC=1; |
| 21271 |
HAVE_MBSINIT=1; |
| 21272 |
HAVE_MBRTOWC=1; |
| 21273 |
HAVE_MBRLEN=1; |
| 21274 |
HAVE_MBSRTOWCS=1; |
| 21275 |
HAVE_MBSNRTOWCS=1; |
| 21276 |
HAVE_WCRTOMB=1; |
| 21277 |
HAVE_WCSRTOMBS=1; |
| 21278 |
HAVE_WCSNRTOMBS=1; |
| 21279 |
HAVE_WMEMCHR=1; |
| 21280 |
HAVE_WMEMCMP=1; |
| 21281 |
HAVE_WMEMCPY=1; |
| 21282 |
HAVE_WMEMMOVE=1; |
| 21283 |
HAVE_WMEMSET=1; |
| 21284 |
HAVE_WCSLEN=1; |
| 21285 |
HAVE_WCSNLEN=1; |
| 21286 |
HAVE_WCSCPY=1; |
| 21287 |
HAVE_WCPCPY=1; |
| 21288 |
HAVE_WCSNCPY=1; |
| 21289 |
HAVE_WCPNCPY=1; |
| 21290 |
HAVE_WCSCAT=1; |
| 21291 |
HAVE_WCSNCAT=1; |
| 21292 |
HAVE_WCSCMP=1; |
| 21293 |
HAVE_WCSNCMP=1; |
| 21294 |
HAVE_WCSCASECMP=1; |
| 21295 |
HAVE_WCSNCASECMP=1; |
| 21296 |
HAVE_WCSCOLL=1; |
| 21297 |
HAVE_WCSXFRM=1; |
| 21298 |
HAVE_WCSDUP=1; |
| 21299 |
HAVE_WCSCHR=1; |
| 21300 |
HAVE_WCSRCHR=1; |
| 21301 |
HAVE_WCSCSPN=1; |
| 21302 |
HAVE_WCSSPN=1; |
| 21303 |
HAVE_WCSPBRK=1; |
| 21304 |
HAVE_WCSSTR=1; |
| 21305 |
HAVE_WCSTOK=1; |
| 21306 |
HAVE_WCSWIDTH=1; |
| 21307 |
HAVE_DECL_WCTOB=1; |
| 21308 |
HAVE_DECL_WCWIDTH=1; |
| 21309 |
REPLACE_MBSTATE_T=0; |
| 21310 |
REPLACE_BTOWC=0; |
| 21311 |
REPLACE_WCTOB=0; |
| 21312 |
REPLACE_MBSINIT=0; |
| 21313 |
REPLACE_MBRTOWC=0; |
| 21314 |
REPLACE_MBRLEN=0; |
| 21315 |
REPLACE_MBSRTOWCS=0; |
| 21316 |
REPLACE_MBSNRTOWCS=0; |
| 21317 |
REPLACE_WCRTOMB=0; |
| 21318 |
REPLACE_WCSRTOMBS=0; |
| 21319 |
REPLACE_WCSNRTOMBS=0; |
| 21320 |
REPLACE_WCWIDTH=0; |
| 21321 |
REPLACE_WCSWIDTH=0; |
| 21322 |
|
| 21323 |
|
| 21324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 |
| 21325 |
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } |
| 21326 |
if ${gl_cv_header_wchar_h_correct_inline+:} false; then : |
| 21327 |
$as_echo_n "(cached) " >&6 |
| 21328 |
else |
| 21329 |
gl_cv_header_wchar_h_correct_inline=yes |
| 21330 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21331 |
/* end confdefs.h. */ |
| 21332 |
|
| 21333 |
#define wcstod renamed_wcstod |
| 21334 |
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 21335 |
<wchar.h>. |
| 21336 |
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 21337 |
included before <wchar.h>. */ |
| 21338 |
#include <stddef.h> |
| 21339 |
#include <stdio.h> |
| 21340 |
#include <time.h> |
| 21341 |
#include <wchar.h> |
| 21342 |
extern int zero (void); |
| 21343 |
int main () { return zero(); } |
| 21344 |
|
| 21345 |
_ACEOF |
| 21346 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 21347 |
(eval $ac_compile) 2>&5 |
| 21348 |
ac_status=$? |
| 21349 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21350 |
test $ac_status = 0; }; then |
| 21351 |
mv conftest.$ac_objext conftest1.$ac_objext |
| 21352 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21353 |
/* end confdefs.h. */ |
| 21354 |
|
| 21355 |
#define wcstod renamed_wcstod |
| 21356 |
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 21357 |
<wchar.h>. |
| 21358 |
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 21359 |
included before <wchar.h>. */ |
| 21360 |
#include <stddef.h> |
| 21361 |
#include <stdio.h> |
| 21362 |
#include <time.h> |
| 21363 |
#include <wchar.h> |
| 21364 |
int zero (void) { return 0; } |
| 21365 |
|
| 21366 |
_ACEOF |
| 21367 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 21368 |
(eval $ac_compile) 2>&5 |
| 21369 |
ac_status=$? |
| 21370 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21371 |
test $ac_status = 0; }; then |
| 21372 |
mv conftest.$ac_objext conftest2.$ac_objext |
| 21373 |
if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then |
| 21374 |
: |
| 21375 |
else |
| 21376 |
gl_cv_header_wchar_h_correct_inline=no |
| 21377 |
fi |
| 21378 |
fi |
| 21379 |
fi |
| 21380 |
rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext |
| 21381 |
|
| 21382 |
fi |
| 21383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 |
| 21384 |
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } |
| 21385 |
if test $gl_cv_header_wchar_h_correct_inline = no; then |
| 21386 |
as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). |
| 21387 |
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in |
| 21388 |
C99 mode. You have four options: |
| 21389 |
- Add the flag -fgnu89-inline to CC and reconfigure, or |
| 21390 |
- Fix your include files, using parts of |
| 21391 |
<http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or |
| 21392 |
- Use a gcc version older than 4.3, or |
| 21393 |
- Don't use the flags -std=c99 or -std=gnu99. |
| 21394 |
Configuration aborted." "$LINENO" 5 |
| 21395 |
fi |
| 21396 |
|
| 21397 |
|
| 21398 |
if true; then |
| 21399 |
GL_COND_LIBTOOL_TRUE= |
| 21400 |
GL_COND_LIBTOOL_FALSE='#' |
| 21401 |
else |
| 21402 |
GL_COND_LIBTOOL_TRUE='#' |
| 21403 |
GL_COND_LIBTOOL_FALSE= |
| 21404 |
fi |
| 21405 |
|
| 21406 |
gl_cond_libtool=true |
| 21407 |
gl_m4_base='m4' |
| 21408 |
|
| 21409 |
|
| 21410 |
|
| 21411 |
|
| 21412 |
|
| 21413 |
|
| 21414 |
|
| 21415 |
|
| 21416 |
|
| 21417 |
gl_source_base='lib' |
| 21418 |
|
| 21419 |
|
| 21420 |
if test $ac_cv_func_alloca_works = no; then |
| 21421 |
: |
| 21422 |
fi |
| 21423 |
|
| 21424 |
# Define an additional variable used in the Makefile substitution. |
| 21425 |
if test $ac_cv_working_alloca_h = yes; then |
| 21426 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 |
| 21427 |
$as_echo_n "checking for alloca as a compiler built-in... " >&6; } |
| 21428 |
if ${gl_cv_rpl_alloca+:} false; then : |
| 21429 |
$as_echo_n "(cached) " >&6 |
| 21430 |
else |
| 21431 |
|
| 21432 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21433 |
/* end confdefs.h. */ |
| 21434 |
|
| 21435 |
#if defined __GNUC__ || defined _AIX || defined _MSC_VER |
| 21436 |
Need own alloca |
| 21437 |
#endif |
| 21438 |
|
| 21439 |
_ACEOF |
| 21440 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21441 |
$EGREP "Need own alloca" >/dev/null 2>&1; then : |
| 21442 |
gl_cv_rpl_alloca=yes |
| 21443 |
else |
| 21444 |
gl_cv_rpl_alloca=no |
| 21445 |
fi |
| 21446 |
rm -f conftest* |
| 21447 |
|
| 21448 |
|
| 21449 |
fi |
| 21450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 |
| 21451 |
$as_echo "$gl_cv_rpl_alloca" >&6; } |
| 21452 |
if test $gl_cv_rpl_alloca = yes; then |
| 21453 |
|
| 21454 |
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 21455 |
|
| 21456 |
ALLOCA_H=alloca.h |
| 21457 |
else |
| 21458 |
ALLOCA_H= |
| 21459 |
fi |
| 21460 |
else |
| 21461 |
ALLOCA_H=alloca.h |
| 21462 |
fi |
| 21463 |
|
| 21464 |
if test -n "$ALLOCA_H"; then |
| 21465 |
GL_GENERATE_ALLOCA_H_TRUE= |
| 21466 |
GL_GENERATE_ALLOCA_H_FALSE='#' |
| 21467 |
else |
| 21468 |
GL_GENERATE_ALLOCA_H_TRUE='#' |
| 21469 |
GL_GENERATE_ALLOCA_H_FALSE= |
| 21470 |
fi |
| 21471 |
|
| 21472 |
|
| 21473 |
|
| 21474 |
|
| 21475 |
|
| 21476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible calloc" >&5 |
| 21477 |
$as_echo_n "checking for GNU libc compatible calloc... " >&6; } |
| 21478 |
if ${ac_cv_func_calloc_0_nonnull+:} false; then : |
| 21479 |
$as_echo_n "(cached) " >&6 |
| 21480 |
else |
| 21481 |
if test "$cross_compiling" = yes; then : |
| 21482 |
case "$host_os" in |
| 21483 |
# Guess yes on glibc systems. |
| 21484 |
*-gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; |
| 21485 |
# If we don't know, assume the worst. |
| 21486 |
*) ac_cv_func_calloc_0_nonnull="guessing no" ;; |
| 21487 |
esac |
| 21488 |
|
| 21489 |
else |
| 21490 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21491 |
/* end confdefs.h. */ |
| 21492 |
$ac_includes_default |
| 21493 |
int |
| 21494 |
main () |
| 21495 |
{ |
| 21496 |
int result = 0; |
| 21497 |
if (!calloc (0, 0)) |
| 21498 |
result |= 1; |
| 21499 |
if (calloc ((size_t) -1 / 8 + 1, 8)) |
| 21500 |
result |= 2; |
| 21501 |
return result; |
| 21502 |
|
| 21503 |
; |
| 21504 |
return 0; |
| 21505 |
} |
| 21506 |
_ACEOF |
| 21507 |
if ac_fn_c_try_run "$LINENO"; then : |
| 21508 |
ac_cv_func_calloc_0_nonnull=yes |
| 21509 |
else |
| 21510 |
ac_cv_func_calloc_0_nonnull=no |
| 21511 |
fi |
| 21512 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21513 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21514 |
fi |
| 21515 |
|
| 21516 |
fi |
| 21517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5 |
| 21518 |
$as_echo "$ac_cv_func_calloc_0_nonnull" >&6; } |
| 21519 |
case "$ac_cv_func_calloc_0_nonnull" in |
| 21520 |
*yes) |
| 21521 |
|
| 21522 |
$as_echo "#define HAVE_CALLOC_GNU 1" >>confdefs.h |
| 21523 |
|
| 21524 |
;; |
| 21525 |
*) |
| 21526 |
$as_echo "#define HAVE_CALLOC_GNU 0" >>confdefs.h |
| 21527 |
|
| 21528 |
REPLACE_CALLOC=1 |
| 21529 |
|
| 21530 |
;; |
| 21531 |
esac |
| 21532 |
|
| 21533 |
|
| 21534 |
if test $REPLACE_CALLOC = 1; then |
| 21535 |
|
| 21536 |
|
| 21537 |
|
| 21538 |
|
| 21539 |
|
| 21540 |
|
| 21541 |
|
| 21542 |
|
| 21543 |
gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext" |
| 21544 |
|
| 21545 |
fi |
| 21546 |
|
| 21547 |
|
| 21548 |
cat >>confdefs.h <<_ACEOF |
| 21549 |
#define GNULIB_CALLOC_GNU 1 |
| 21550 |
_ACEOF |
| 21551 |
|
| 21552 |
|
| 21553 |
|
| 21554 |
|
| 21555 |
|
| 21556 |
if test $gl_cv_func_malloc_posix = yes; then |
| 21557 |
|
| 21558 |
$as_echo "#define HAVE_CALLOC_POSIX 1" >>confdefs.h |
| 21559 |
|
| 21560 |
else |
| 21561 |
REPLACE_CALLOC=1 |
| 21562 |
fi |
| 21563 |
|
| 21564 |
if test $REPLACE_CALLOC = 1; then |
| 21565 |
|
| 21566 |
|
| 21567 |
|
| 21568 |
|
| 21569 |
|
| 21570 |
|
| 21571 |
|
| 21572 |
|
| 21573 |
gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext" |
| 21574 |
|
| 21575 |
fi |
| 21576 |
|
| 21577 |
|
| 21578 |
|
| 21579 |
|
| 21580 |
|
| 21581 |
GNULIB_CALLOC_POSIX=1 |
| 21582 |
|
| 21583 |
|
| 21584 |
|
| 21585 |
|
| 21586 |
|
| 21587 |
$as_echo "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h |
| 21588 |
|
| 21589 |
|
| 21590 |
|
| 21591 |
|
| 21592 |
|
| 21593 |
|
| 21594 |
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 21595 |
REPLACE_CLOSE=1 |
| 21596 |
fi |
| 21597 |
|
| 21598 |
|
| 21599 |
|
| 21600 |
|
| 21601 |
|
| 21602 |
if test $ac_cv_header_sys_socket_h != yes; then |
| 21603 |
for ac_header in winsock2.h |
| 21604 |
do : |
| 21605 |
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 21606 |
if test "x$ac_cv_header_winsock2_h" = xyes; then : |
| 21607 |
cat >>confdefs.h <<_ACEOF |
| 21608 |
#define HAVE_WINSOCK2_H 1 |
| 21609 |
_ACEOF |
| 21610 |
|
| 21611 |
fi |
| 21612 |
|
| 21613 |
done |
| 21614 |
|
| 21615 |
fi |
| 21616 |
if test "$ac_cv_header_winsock2_h" = yes; then |
| 21617 |
HAVE_WINSOCK2_H=1 |
| 21618 |
UNISTD_H_HAVE_WINSOCK2_H=1 |
| 21619 |
SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 21620 |
else |
| 21621 |
HAVE_WINSOCK2_H=0 |
| 21622 |
fi |
| 21623 |
|
| 21624 |
|
| 21625 |
if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then |
| 21626 |
REPLACE_CLOSE=1 |
| 21627 |
fi |
| 21628 |
|
| 21629 |
|
| 21630 |
|
| 21631 |
if test $REPLACE_CLOSE = 1; then |
| 21632 |
|
| 21633 |
|
| 21634 |
|
| 21635 |
|
| 21636 |
|
| 21637 |
|
| 21638 |
|
| 21639 |
|
| 21640 |
gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext" |
| 21641 |
|
| 21642 |
fi |
| 21643 |
|
| 21644 |
|
| 21645 |
|
| 21646 |
|
| 21647 |
|
| 21648 |
GNULIB_CLOSE=1 |
| 21649 |
|
| 21650 |
|
| 21651 |
|
| 21652 |
|
| 21653 |
|
| 21654 |
$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h |
| 21655 |
|
| 21656 |
|
| 21657 |
|
| 21658 |
|
| 21659 |
|
| 21660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 |
| 21661 |
$as_echo_n "checking for error_at_line... " >&6; } |
| 21662 |
if ${ac_cv_lib_error_at_line+:} false; then : |
| 21663 |
$as_echo_n "(cached) " >&6 |
| 21664 |
else |
| 21665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21666 |
/* end confdefs.h. */ |
| 21667 |
#include <error.h> |
| 21668 |
int |
| 21669 |
main () |
| 21670 |
{ |
| 21671 |
error_at_line (0, 0, "", 0, "an error occurred"); |
| 21672 |
; |
| 21673 |
return 0; |
| 21674 |
} |
| 21675 |
_ACEOF |
| 21676 |
if ac_fn_c_try_link "$LINENO"; then : |
| 21677 |
ac_cv_lib_error_at_line=yes |
| 21678 |
else |
| 21679 |
ac_cv_lib_error_at_line=no |
| 21680 |
fi |
| 21681 |
rm -f core conftest.err conftest.$ac_objext \ |
| 21682 |
conftest$ac_exeext conftest.$ac_ext |
| 21683 |
fi |
| 21684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 |
| 21685 |
$as_echo "$ac_cv_lib_error_at_line" >&6; } |
| 21686 |
|
| 21687 |
if test $ac_cv_lib_error_at_line = no; then |
| 21688 |
|
| 21689 |
|
| 21690 |
|
| 21691 |
|
| 21692 |
|
| 21693 |
|
| 21694 |
|
| 21695 |
|
| 21696 |
gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" |
| 21697 |
|
| 21698 |
|
| 21699 |
|
| 21700 |
: |
| 21701 |
|
| 21702 |
fi |
| 21703 |
|
| 21704 |
|
| 21705 |
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" |
| 21706 |
|
| 21707 |
|
| 21708 |
|
| 21709 |
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" |
| 21710 |
|
| 21711 |
|
| 21712 |
|
| 21713 |
|
| 21714 |
|
| 21715 |
|
| 21716 |
|
| 21717 |
|
| 21718 |
|
| 21719 |
|
| 21720 |
|
| 21721 |
|
| 21722 |
|
| 21723 |
if test $gl_cv_have_include_next = yes; then |
| 21724 |
gl_cv_next_fcntl_h='<'fcntl.h'>' |
| 21725 |
else |
| 21726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 |
| 21727 |
$as_echo_n "checking absolute name of <fcntl.h>... " >&6; } |
| 21728 |
if ${gl_cv_next_fcntl_h+:} false; then : |
| 21729 |
$as_echo_n "(cached) " >&6 |
| 21730 |
else |
| 21731 |
|
| 21732 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21733 |
/* end confdefs.h. */ |
| 21734 |
#include <fcntl.h> |
| 21735 |
|
| 21736 |
_ACEOF |
| 21737 |
case "$host_os" in |
| 21738 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 21739 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 21740 |
esac |
| 21741 |
|
| 21742 |
case "$host_os" in |
| 21743 |
mingw*) |
| 21744 |
gl_dirsep_regex='[/\\]' |
| 21745 |
;; |
| 21746 |
*) |
| 21747 |
gl_dirsep_regex='\/' |
| 21748 |
;; |
| 21749 |
esac |
| 21750 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 21751 |
|
| 21752 |
gl_header_literal_regex=`echo 'fcntl.h' \ |
| 21753 |
| sed -e "$gl_make_literal_regex_sed"` |
| 21754 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 21755 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 21756 |
s|^/[^/]|//&| |
| 21757 |
p |
| 21758 |
q |
| 21759 |
}' |
| 21760 |
gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 21761 |
sed -n "$gl_absolute_header_sed"`'"' |
| 21762 |
|
| 21763 |
|
| 21764 |
fi |
| 21765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 |
| 21766 |
$as_echo "$gl_cv_next_fcntl_h" >&6; } |
| 21767 |
fi |
| 21768 |
NEXT_FCNTL_H=$gl_cv_next_fcntl_h |
| 21769 |
|
| 21770 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 21771 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 21772 |
gl_next_as_first_directive='<'fcntl.h'>' |
| 21773 |
else |
| 21774 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 21775 |
gl_next_as_first_directive=$gl_cv_next_fcntl_h |
| 21776 |
fi |
| 21777 |
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive |
| 21778 |
|
| 21779 |
|
| 21780 |
|
| 21781 |
|
| 21782 |
|
| 21783 |
|
| 21784 |
|
| 21785 |
|
| 21786 |
|
| 21787 |
|
| 21788 |
for gl_func in fcntl openat; do |
| 21789 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 21790 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 21791 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 21792 |
if eval \${$as_gl_Symbol+:} false; then : |
| 21793 |
$as_echo_n "(cached) " >&6 |
| 21794 |
else |
| 21795 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21796 |
/* end confdefs.h. */ |
| 21797 |
#include <fcntl.h> |
| 21798 |
|
| 21799 |
int |
| 21800 |
main () |
| 21801 |
{ |
| 21802 |
#undef $gl_func |
| 21803 |
(void) $gl_func; |
| 21804 |
; |
| 21805 |
return 0; |
| 21806 |
} |
| 21807 |
_ACEOF |
| 21808 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 21809 |
eval "$as_gl_Symbol=yes" |
| 21810 |
else |
| 21811 |
eval "$as_gl_Symbol=no" |
| 21812 |
fi |
| 21813 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21814 |
fi |
| 21815 |
eval ac_res=\$$as_gl_Symbol |
| 21816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21817 |
$as_echo "$ac_res" >&6; } |
| 21818 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 21819 |
cat >>confdefs.h <<_ACEOF |
| 21820 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 21821 |
_ACEOF |
| 21822 |
|
| 21823 |
eval ac_cv_have_decl_$gl_func=yes |
| 21824 |
fi |
| 21825 |
done |
| 21826 |
|
| 21827 |
|
| 21828 |
|
| 21829 |
|
| 21830 |
|
| 21831 |
FLOAT_H= |
| 21832 |
REPLACE_FLOAT_LDBL=0 |
| 21833 |
case "$host_os" in |
| 21834 |
aix* | beos* | openbsd* | mirbsd* | irix*) |
| 21835 |
FLOAT_H=float.h |
| 21836 |
;; |
| 21837 |
freebsd*) |
| 21838 |
case "$host_cpu" in |
| 21839 |
i[34567]86 ) |
| 21840 |
FLOAT_H=float.h |
| 21841 |
;; |
| 21842 |
x86_64 ) |
| 21843 |
# On x86_64 systems, the C compiler may still be generating |
| 21844 |
# 32-bit code. |
| 21845 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21846 |
/* end confdefs.h. */ |
| 21847 |
#if defined __LP64__ || defined __x86_64__ || defined __amd64__ |
| 21848 |
yes |
| 21849 |
#endif |
| 21850 |
_ACEOF |
| 21851 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21852 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 21853 |
|
| 21854 |
else |
| 21855 |
FLOAT_H=float.h |
| 21856 |
fi |
| 21857 |
rm -f conftest* |
| 21858 |
|
| 21859 |
;; |
| 21860 |
esac |
| 21861 |
;; |
| 21862 |
linux*) |
| 21863 |
case "$host_cpu" in |
| 21864 |
powerpc*) |
| 21865 |
FLOAT_H=float.h |
| 21866 |
;; |
| 21867 |
esac |
| 21868 |
;; |
| 21869 |
esac |
| 21870 |
case "$host_os" in |
| 21871 |
aix* | freebsd* | linux*) |
| 21872 |
if test -n "$FLOAT_H"; then |
| 21873 |
REPLACE_FLOAT_LDBL=1 |
| 21874 |
fi |
| 21875 |
;; |
| 21876 |
esac |
| 21877 |
|
| 21878 |
REPLACE_ITOLD=0 |
| 21879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 |
| 21880 |
$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; } |
| 21881 |
if ${gl_cv_func_itold_works+:} false; then : |
| 21882 |
$as_echo_n "(cached) " >&6 |
| 21883 |
else |
| 21884 |
|
| 21885 |
if test "$cross_compiling" = yes; then : |
| 21886 |
case "$host" in |
| 21887 |
sparc*-*-linux*) |
| 21888 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21889 |
/* end confdefs.h. */ |
| 21890 |
#if defined __LP64__ || defined __arch64__ |
| 21891 |
yes |
| 21892 |
#endif |
| 21893 |
_ACEOF |
| 21894 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21895 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 21896 |
gl_cv_func_itold_works="guessing no" |
| 21897 |
else |
| 21898 |
gl_cv_func_itold_works="guessing yes" |
| 21899 |
fi |
| 21900 |
rm -f conftest* |
| 21901 |
|
| 21902 |
;; |
| 21903 |
*) gl_cv_func_itold_works="guessing yes" ;; |
| 21904 |
esac |
| 21905 |
|
| 21906 |
else |
| 21907 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21908 |
/* end confdefs.h. */ |
| 21909 |
|
| 21910 |
int i = -1; |
| 21911 |
volatile long double ld; |
| 21912 |
int main () |
| 21913 |
{ |
| 21914 |
ld += i * 1.0L; |
| 21915 |
if (ld > 0) |
| 21916 |
return 1; |
| 21917 |
return 0; |
| 21918 |
} |
| 21919 |
_ACEOF |
| 21920 |
if ac_fn_c_try_run "$LINENO"; then : |
| 21921 |
gl_cv_func_itold_works=yes |
| 21922 |
else |
| 21923 |
gl_cv_func_itold_works=no |
| 21924 |
fi |
| 21925 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21926 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21927 |
fi |
| 21928 |
|
| 21929 |
|
| 21930 |
fi |
| 21931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 |
| 21932 |
$as_echo "$gl_cv_func_itold_works" >&6; } |
| 21933 |
case "$gl_cv_func_itold_works" in |
| 21934 |
*no) |
| 21935 |
REPLACE_ITOLD=1 |
| 21936 |
FLOAT_H=float.h |
| 21937 |
;; |
| 21938 |
esac |
| 21939 |
|
| 21940 |
if test -n "$FLOAT_H"; then |
| 21941 |
|
| 21942 |
|
| 21943 |
|
| 21944 |
|
| 21945 |
|
| 21946 |
|
| 21947 |
|
| 21948 |
|
| 21949 |
if test $gl_cv_have_include_next = yes; then |
| 21950 |
gl_cv_next_float_h='<'float.h'>' |
| 21951 |
else |
| 21952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5 |
| 21953 |
$as_echo_n "checking absolute name of <float.h>... " >&6; } |
| 21954 |
if ${gl_cv_next_float_h+:} false; then : |
| 21955 |
$as_echo_n "(cached) " >&6 |
| 21956 |
else |
| 21957 |
|
| 21958 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21959 |
/* end confdefs.h. */ |
| 21960 |
#include <float.h> |
| 21961 |
|
| 21962 |
_ACEOF |
| 21963 |
case "$host_os" in |
| 21964 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 21965 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 21966 |
esac |
| 21967 |
|
| 21968 |
case "$host_os" in |
| 21969 |
mingw*) |
| 21970 |
gl_dirsep_regex='[/\\]' |
| 21971 |
;; |
| 21972 |
*) |
| 21973 |
gl_dirsep_regex='\/' |
| 21974 |
;; |
| 21975 |
esac |
| 21976 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 21977 |
|
| 21978 |
gl_header_literal_regex=`echo 'float.h' \ |
| 21979 |
| sed -e "$gl_make_literal_regex_sed"` |
| 21980 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 21981 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 21982 |
s|^/[^/]|//&| |
| 21983 |
p |
| 21984 |
q |
| 21985 |
}' |
| 21986 |
gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 21987 |
sed -n "$gl_absolute_header_sed"`'"' |
| 21988 |
|
| 21989 |
|
| 21990 |
fi |
| 21991 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 |
| 21992 |
$as_echo "$gl_cv_next_float_h" >&6; } |
| 21993 |
fi |
| 21994 |
NEXT_FLOAT_H=$gl_cv_next_float_h |
| 21995 |
|
| 21996 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 21997 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 21998 |
gl_next_as_first_directive='<'float.h'>' |
| 21999 |
else |
| 22000 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22001 |
gl_next_as_first_directive=$gl_cv_next_float_h |
| 22002 |
fi |
| 22003 |
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive |
| 22004 |
|
| 22005 |
|
| 22006 |
|
| 22007 |
|
| 22008 |
fi |
| 22009 |
|
| 22010 |
if test -n "$FLOAT_H"; then |
| 22011 |
GL_GENERATE_FLOAT_H_TRUE= |
| 22012 |
GL_GENERATE_FLOAT_H_FALSE='#' |
| 22013 |
else |
| 22014 |
GL_GENERATE_FLOAT_H_TRUE='#' |
| 22015 |
GL_GENERATE_FLOAT_H_FALSE= |
| 22016 |
fi |
| 22017 |
|
| 22018 |
|
| 22019 |
|
| 22020 |
if test $REPLACE_FLOAT_LDBL = 1; then |
| 22021 |
|
| 22022 |
|
| 22023 |
|
| 22024 |
|
| 22025 |
|
| 22026 |
|
| 22027 |
|
| 22028 |
|
| 22029 |
gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext" |
| 22030 |
|
| 22031 |
fi |
| 22032 |
if test $REPLACE_ITOLD = 1; then |
| 22033 |
|
| 22034 |
|
| 22035 |
|
| 22036 |
|
| 22037 |
|
| 22038 |
|
| 22039 |
|
| 22040 |
|
| 22041 |
gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext" |
| 22042 |
|
| 22043 |
fi |
| 22044 |
|
| 22045 |
|
| 22046 |
|
| 22047 |
case "$host_os" in |
| 22048 |
mingw* | pw*) |
| 22049 |
REPLACE_FOPEN=1 |
| 22050 |
gl_cv_func_fopen_slash="guessing no" |
| 22051 |
;; |
| 22052 |
*) |
| 22053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 |
| 22054 |
$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; } |
| 22055 |
if ${gl_cv_func_fopen_slash+:} false; then : |
| 22056 |
$as_echo_n "(cached) " >&6 |
| 22057 |
else |
| 22058 |
|
| 22059 |
if test "$cross_compiling" = yes; then : |
| 22060 |
|
| 22061 |
case "$host_os" in |
| 22062 |
aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) |
| 22063 |
gl_cv_func_fopen_slash="guessing no" ;; |
| 22064 |
*) |
| 22065 |
gl_cv_func_fopen_slash="guessing yes" ;; |
| 22066 |
esac |
| 22067 |
|
| 22068 |
else |
| 22069 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22070 |
/* end confdefs.h. */ |
| 22071 |
|
| 22072 |
#include <stddef.h> |
| 22073 |
#include <stdio.h> |
| 22074 |
int main () |
| 22075 |
{ |
| 22076 |
return fopen ("conftest.sl/", "w") != NULL; |
| 22077 |
} |
| 22078 |
_ACEOF |
| 22079 |
if ac_fn_c_try_run "$LINENO"; then : |
| 22080 |
gl_cv_func_fopen_slash=yes |
| 22081 |
else |
| 22082 |
gl_cv_func_fopen_slash=no |
| 22083 |
fi |
| 22084 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22085 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22086 |
fi |
| 22087 |
|
| 22088 |
rm -f conftest.sl |
| 22089 |
|
| 22090 |
fi |
| 22091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 |
| 22092 |
$as_echo "$gl_cv_func_fopen_slash" >&6; } |
| 22093 |
;; |
| 22094 |
esac |
| 22095 |
case "$gl_cv_func_fopen_slash" in |
| 22096 |
*no) |
| 22097 |
|
| 22098 |
$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 22099 |
|
| 22100 |
REPLACE_FOPEN=1 |
| 22101 |
;; |
| 22102 |
esac |
| 22103 |
|
| 22104 |
if test $REPLACE_FOPEN = 1; then |
| 22105 |
|
| 22106 |
|
| 22107 |
|
| 22108 |
|
| 22109 |
|
| 22110 |
|
| 22111 |
|
| 22112 |
|
| 22113 |
gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext" |
| 22114 |
|
| 22115 |
: |
| 22116 |
fi |
| 22117 |
|
| 22118 |
|
| 22119 |
|
| 22120 |
|
| 22121 |
|
| 22122 |
GNULIB_FOPEN=1 |
| 22123 |
|
| 22124 |
|
| 22125 |
|
| 22126 |
|
| 22127 |
|
| 22128 |
$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h |
| 22129 |
|
| 22130 |
|
| 22131 |
|
| 22132 |
|
| 22133 |
|
| 22134 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free (NULL) is known to work" >&5 |
| 22135 |
$as_echo_n "checking whether free (NULL) is known to work... " >&6; } |
| 22136 |
if ${gl_cv_func_free+:} false; then : |
| 22137 |
$as_echo_n "(cached) " >&6 |
| 22138 |
else |
| 22139 |
case "$host_os" in |
| 22140 |
mingw*) gl_cv_func_free=yes ;; |
| 22141 |
*) |
| 22142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22143 |
/* end confdefs.h. */ |
| 22144 |
#include <unistd.h> |
| 22145 |
int |
| 22146 |
main () |
| 22147 |
{ |
| 22148 |
#if _POSIX_VERSION < 199009L && \ |
| 22149 |
(defined unix || defined _unix || defined _unix_ \ |
| 22150 |
|| defined __unix || defined __unix__) |
| 22151 |
#error "'free (NULL)' is not known to work" |
| 22152 |
#endif |
| 22153 |
; |
| 22154 |
return 0; |
| 22155 |
} |
| 22156 |
_ACEOF |
| 22157 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 22158 |
gl_cv_func_free=yes |
| 22159 |
else |
| 22160 |
gl_cv_func_free=no |
| 22161 |
fi |
| 22162 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22163 |
esac |
| 22164 |
|
| 22165 |
fi |
| 22166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free" >&5 |
| 22167 |
$as_echo "$gl_cv_func_free" >&6; } |
| 22168 |
|
| 22169 |
if test $gl_cv_func_free = no; then |
| 22170 |
|
| 22171 |
$as_echo "#define free rpl_free" >>confdefs.h |
| 22172 |
|
| 22173 |
fi |
| 22174 |
|
| 22175 |
if test $gl_cv_func_free = no; then |
| 22176 |
|
| 22177 |
|
| 22178 |
|
| 22179 |
|
| 22180 |
|
| 22181 |
|
| 22182 |
|
| 22183 |
|
| 22184 |
gl_LIBOBJS="$gl_LIBOBJS free.$ac_objext" |
| 22185 |
|
| 22186 |
: |
| 22187 |
fi |
| 22188 |
|
| 22189 |
|
| 22190 |
|
| 22191 |
|
| 22192 |
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 22193 |
REPLACE_FSTAT=1 |
| 22194 |
fi |
| 22195 |
|
| 22196 |
|
| 22197 |
if test $WINDOWS_64_BIT_ST_SIZE = 1; then |
| 22198 |
REPLACE_FSTAT=1 |
| 22199 |
fi |
| 22200 |
|
| 22201 |
|
| 22202 |
|
| 22203 |
if test $REPLACE_FSTAT = 1; then |
| 22204 |
|
| 22205 |
|
| 22206 |
|
| 22207 |
|
| 22208 |
|
| 22209 |
|
| 22210 |
|
| 22211 |
|
| 22212 |
gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext" |
| 22213 |
|
| 22214 |
: |
| 22215 |
fi |
| 22216 |
|
| 22217 |
|
| 22218 |
|
| 22219 |
|
| 22220 |
|
| 22221 |
GNULIB_FSTAT=1 |
| 22222 |
|
| 22223 |
|
| 22224 |
|
| 22225 |
|
| 22226 |
|
| 22227 |
$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h |
| 22228 |
|
| 22229 |
|
| 22230 |
|
| 22231 |
|
| 22232 |
|
| 22233 |
|
| 22234 |
|
| 22235 |
|
| 22236 |
if test $REPLACE_GETOPT = 1; then |
| 22237 |
|
| 22238 |
|
| 22239 |
|
| 22240 |
|
| 22241 |
|
| 22242 |
|
| 22243 |
|
| 22244 |
|
| 22245 |
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 22246 |
|
| 22247 |
|
| 22248 |
|
| 22249 |
|
| 22250 |
|
| 22251 |
|
| 22252 |
|
| 22253 |
|
| 22254 |
|
| 22255 |
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 22256 |
|
| 22257 |
|
| 22258 |
|
| 22259 |
|
| 22260 |
GNULIB_GL_UNISTD_H_GETOPT=1 |
| 22261 |
fi |
| 22262 |
|
| 22263 |
|
| 22264 |
|
| 22265 |
$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h |
| 22266 |
|
| 22267 |
|
| 22268 |
|
| 22269 |
|
| 22270 |
|
| 22271 |
|
| 22272 |
|
| 22273 |
REPLACE_GETOPT=0 |
| 22274 |
if test -n "$gl_replace_getopt"; then |
| 22275 |
REPLACE_GETOPT=1 |
| 22276 |
fi |
| 22277 |
|
| 22278 |
if test $REPLACE_GETOPT = 1; then |
| 22279 |
|
| 22280 |
GETOPT_H=getopt.h |
| 22281 |
|
| 22282 |
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 22283 |
|
| 22284 |
|
| 22285 |
|
| 22286 |
fi |
| 22287 |
|
| 22288 |
if test $REPLACE_GETOPT = 1; then |
| 22289 |
|
| 22290 |
|
| 22291 |
|
| 22292 |
|
| 22293 |
|
| 22294 |
|
| 22295 |
|
| 22296 |
|
| 22297 |
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 22298 |
|
| 22299 |
|
| 22300 |
|
| 22301 |
|
| 22302 |
|
| 22303 |
|
| 22304 |
|
| 22305 |
|
| 22306 |
|
| 22307 |
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 22308 |
|
| 22309 |
|
| 22310 |
|
| 22311 |
|
| 22312 |
GNULIB_GL_UNISTD_H_GETOPT=1 |
| 22313 |
fi |
| 22314 |
|
| 22315 |
|
| 22316 |
|
| 22317 |
|
| 22318 |
|
| 22319 |
|
| 22320 |
|
| 22321 |
|
| 22322 |
for ac_header in stdlib.h |
| 22323 |
do : |
| 22324 |
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 22325 |
if test "x$ac_cv_header_stdlib_h" = xyes; then : |
| 22326 |
cat >>confdefs.h <<_ACEOF |
| 22327 |
#define HAVE_STDLIB_H 1 |
| 22328 |
_ACEOF |
| 22329 |
|
| 22330 |
fi |
| 22331 |
|
| 22332 |
done |
| 22333 |
|
| 22334 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
| 22335 |
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
| 22336 |
if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
| 22337 |
$as_echo_n "(cached) " >&6 |
| 22338 |
else |
| 22339 |
if test "$cross_compiling" = yes; then : |
| 22340 |
case "$host_os" in |
| 22341 |
# Guess yes on platforms where we know the result. |
| 22342 |
*-gnu* | freebsd* | netbsd* | openbsd* \ |
| 22343 |
| hpux* | solaris* | cygwin* | mingw*) |
| 22344 |
ac_cv_func_malloc_0_nonnull=yes ;; |
| 22345 |
# If we don't know, assume the worst. |
| 22346 |
*) ac_cv_func_malloc_0_nonnull=no ;; |
| 22347 |
esac |
| 22348 |
|
| 22349 |
else |
| 22350 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22351 |
/* end confdefs.h. */ |
| 22352 |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
| 22353 |
# include <stdlib.h> |
| 22354 |
#else |
| 22355 |
char *malloc (); |
| 22356 |
#endif |
| 22357 |
|
| 22358 |
int |
| 22359 |
main () |
| 22360 |
{ |
| 22361 |
return ! malloc (0); |
| 22362 |
; |
| 22363 |
return 0; |
| 22364 |
} |
| 22365 |
|
| 22366 |
_ACEOF |
| 22367 |
if ac_fn_c_try_run "$LINENO"; then : |
| 22368 |
ac_cv_func_malloc_0_nonnull=yes |
| 22369 |
else |
| 22370 |
ac_cv_func_malloc_0_nonnull=no |
| 22371 |
fi |
| 22372 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22373 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22374 |
fi |
| 22375 |
|
| 22376 |
|
| 22377 |
fi |
| 22378 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 22379 |
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
| 22380 |
if test $ac_cv_func_malloc_0_nonnull = yes; then : |
| 22381 |
|
| 22382 |
$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h |
| 22383 |
|
| 22384 |
else |
| 22385 |
$as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h |
| 22386 |
|
| 22387 |
REPLACE_MALLOC=1 |
| 22388 |
|
| 22389 |
fi |
| 22390 |
|
| 22391 |
|
| 22392 |
if test $REPLACE_MALLOC = 1; then |
| 22393 |
|
| 22394 |
|
| 22395 |
|
| 22396 |
|
| 22397 |
|
| 22398 |
|
| 22399 |
|
| 22400 |
|
| 22401 |
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" |
| 22402 |
|
| 22403 |
fi |
| 22404 |
|
| 22405 |
|
| 22406 |
cat >>confdefs.h <<_ACEOF |
| 22407 |
#define GNULIB_MALLOC_GNU 1 |
| 22408 |
_ACEOF |
| 22409 |
|
| 22410 |
|
| 22411 |
|
| 22412 |
|
| 22413 |
|
| 22414 |
if test $gl_cv_func_malloc_posix = yes; then |
| 22415 |
|
| 22416 |
$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h |
| 22417 |
|
| 22418 |
else |
| 22419 |
REPLACE_MALLOC=1 |
| 22420 |
fi |
| 22421 |
|
| 22422 |
if test $REPLACE_MALLOC = 1; then |
| 22423 |
|
| 22424 |
|
| 22425 |
|
| 22426 |
|
| 22427 |
|
| 22428 |
|
| 22429 |
|
| 22430 |
|
| 22431 |
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" |
| 22432 |
|
| 22433 |
fi |
| 22434 |
|
| 22435 |
|
| 22436 |
|
| 22437 |
|
| 22438 |
|
| 22439 |
GNULIB_MALLOC_POSIX=1 |
| 22440 |
|
| 22441 |
|
| 22442 |
|
| 22443 |
|
| 22444 |
|
| 22445 |
$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h |
| 22446 |
|
| 22447 |
|
| 22448 |
|
| 22449 |
|
| 22450 |
|
| 22451 |
|
| 22452 |
|
| 22453 |
|
| 22454 |
|
| 22455 |
|
| 22456 |
|
| 22457 |
|
| 22458 |
|
| 22459 |
|
| 22460 |
if test $gl_cv_have_include_next = yes; then |
| 22461 |
gl_cv_next_math_h='<'math.h'>' |
| 22462 |
else |
| 22463 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5 |
| 22464 |
$as_echo_n "checking absolute name of <math.h>... " >&6; } |
| 22465 |
if ${gl_cv_next_math_h+:} false; then : |
| 22466 |
$as_echo_n "(cached) " >&6 |
| 22467 |
else |
| 22468 |
|
| 22469 |
if test $ac_cv_header_math_h = yes; then |
| 22470 |
|
| 22471 |
|
| 22472 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22473 |
/* end confdefs.h. */ |
| 22474 |
#include <math.h> |
| 22475 |
|
| 22476 |
_ACEOF |
| 22477 |
case "$host_os" in |
| 22478 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22479 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 22480 |
esac |
| 22481 |
|
| 22482 |
case "$host_os" in |
| 22483 |
mingw*) |
| 22484 |
gl_dirsep_regex='[/\\]' |
| 22485 |
;; |
| 22486 |
*) |
| 22487 |
gl_dirsep_regex='\/' |
| 22488 |
;; |
| 22489 |
esac |
| 22490 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22491 |
|
| 22492 |
gl_header_literal_regex=`echo 'math.h' \ |
| 22493 |
| sed -e "$gl_make_literal_regex_sed"` |
| 22494 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22495 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22496 |
s|^/[^/]|//&| |
| 22497 |
p |
| 22498 |
q |
| 22499 |
}' |
| 22500 |
gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22501 |
sed -n "$gl_absolute_header_sed"`'"' |
| 22502 |
else |
| 22503 |
gl_cv_next_math_h='<'math.h'>' |
| 22504 |
fi |
| 22505 |
|
| 22506 |
|
| 22507 |
fi |
| 22508 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5 |
| 22509 |
$as_echo "$gl_cv_next_math_h" >&6; } |
| 22510 |
fi |
| 22511 |
NEXT_MATH_H=$gl_cv_next_math_h |
| 22512 |
|
| 22513 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22514 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22515 |
gl_next_as_first_directive='<'math.h'>' |
| 22516 |
else |
| 22517 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22518 |
gl_next_as_first_directive=$gl_cv_next_math_h |
| 22519 |
fi |
| 22520 |
NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive |
| 22521 |
|
| 22522 |
|
| 22523 |
|
| 22524 |
|
| 22525 |
|
| 22526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5 |
| 22527 |
$as_echo_n "checking whether NAN macro works... " >&6; } |
| 22528 |
if ${gl_cv_header_math_nan_works+:} false; then : |
| 22529 |
$as_echo_n "(cached) " >&6 |
| 22530 |
else |
| 22531 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22532 |
/* end confdefs.h. */ |
| 22533 |
#include <math.h> |
| 22534 |
int |
| 22535 |
main () |
| 22536 |
{ |
| 22537 |
/* Solaris 10 has a broken definition of NAN. Other platforms |
| 22538 |
fail to provide NAN, or provide it only in C99 mode; this |
| 22539 |
test only needs to fail when NAN is provided but wrong. */ |
| 22540 |
float f = 1.0f; |
| 22541 |
#ifdef NAN |
| 22542 |
f = NAN; |
| 22543 |
#endif |
| 22544 |
return f == 0; |
| 22545 |
; |
| 22546 |
return 0; |
| 22547 |
} |
| 22548 |
_ACEOF |
| 22549 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 22550 |
gl_cv_header_math_nan_works=yes |
| 22551 |
else |
| 22552 |
gl_cv_header_math_nan_works=no |
| 22553 |
fi |
| 22554 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22555 |
fi |
| 22556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5 |
| 22557 |
$as_echo "$gl_cv_header_math_nan_works" >&6; } |
| 22558 |
if test $gl_cv_header_math_nan_works = no; then |
| 22559 |
REPLACE_NAN=1 |
| 22560 |
fi |
| 22561 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5 |
| 22562 |
$as_echo_n "checking whether HUGE_VAL works... " >&6; } |
| 22563 |
if ${gl_cv_header_math_huge_val_works+:} false; then : |
| 22564 |
$as_echo_n "(cached) " >&6 |
| 22565 |
else |
| 22566 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22567 |
/* end confdefs.h. */ |
| 22568 |
#include <math.h> |
| 22569 |
int |
| 22570 |
main () |
| 22571 |
{ |
| 22572 |
/* Solaris 10 has a broken definition of HUGE_VAL. */ |
| 22573 |
double d = HUGE_VAL; |
| 22574 |
return d == 0; |
| 22575 |
; |
| 22576 |
return 0; |
| 22577 |
} |
| 22578 |
_ACEOF |
| 22579 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 22580 |
gl_cv_header_math_huge_val_works=yes |
| 22581 |
else |
| 22582 |
gl_cv_header_math_huge_val_works=no |
| 22583 |
fi |
| 22584 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22585 |
fi |
| 22586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5 |
| 22587 |
$as_echo "$gl_cv_header_math_huge_val_works" >&6; } |
| 22588 |
if test $gl_cv_header_math_huge_val_works = no; then |
| 22589 |
REPLACE_HUGE_VAL=1 |
| 22590 |
fi |
| 22591 |
|
| 22592 |
|
| 22593 |
for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do |
| 22594 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 22595 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 22596 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 22597 |
if eval \${$as_gl_Symbol+:} false; then : |
| 22598 |
$as_echo_n "(cached) " >&6 |
| 22599 |
else |
| 22600 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22601 |
/* end confdefs.h. */ |
| 22602 |
#include <math.h> |
| 22603 |
int |
| 22604 |
main () |
| 22605 |
{ |
| 22606 |
#undef $gl_func |
| 22607 |
(void) $gl_func; |
| 22608 |
; |
| 22609 |
return 0; |
| 22610 |
} |
| 22611 |
_ACEOF |
| 22612 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 22613 |
eval "$as_gl_Symbol=yes" |
| 22614 |
else |
| 22615 |
eval "$as_gl_Symbol=no" |
| 22616 |
fi |
| 22617 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22618 |
fi |
| 22619 |
eval ac_res=\$$as_gl_Symbol |
| 22620 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 22621 |
$as_echo "$ac_res" >&6; } |
| 22622 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 22623 |
cat >>confdefs.h <<_ACEOF |
| 22624 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 22625 |
_ACEOF |
| 22626 |
|
| 22627 |
eval ac_cv_have_decl_$gl_func=yes |
| 22628 |
fi |
| 22629 |
done |
| 22630 |
|
| 22631 |
|
| 22632 |
|
| 22633 |
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then |
| 22634 |
|
| 22635 |
|
| 22636 |
|
| 22637 |
|
| 22638 |
|
| 22639 |
|
| 22640 |
|
| 22641 |
|
| 22642 |
gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" |
| 22643 |
|
| 22644 |
|
| 22645 |
for ac_header in bp-sym.h |
| 22646 |
do : |
| 22647 |
ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" |
| 22648 |
if test "x$ac_cv_header_bp_sym_h" = xyes; then : |
| 22649 |
cat >>confdefs.h <<_ACEOF |
| 22650 |
#define HAVE_BP_SYM_H 1 |
| 22651 |
_ACEOF |
| 22652 |
|
| 22653 |
fi |
| 22654 |
|
| 22655 |
done |
| 22656 |
|
| 22657 |
|
| 22658 |
fi |
| 22659 |
|
| 22660 |
|
| 22661 |
|
| 22662 |
|
| 22663 |
|
| 22664 |
GNULIB_MEMCHR=1 |
| 22665 |
|
| 22666 |
|
| 22667 |
|
| 22668 |
|
| 22669 |
|
| 22670 |
$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h |
| 22671 |
|
| 22672 |
|
| 22673 |
|
| 22674 |
|
| 22675 |
for ac_func in memcpy |
| 22676 |
do : |
| 22677 |
ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" |
| 22678 |
if test "x$ac_cv_func_memcpy" = xyes; then : |
| 22679 |
cat >>confdefs.h <<_ACEOF |
| 22680 |
#define HAVE_MEMCPY 1 |
| 22681 |
_ACEOF |
| 22682 |
|
| 22683 |
fi |
| 22684 |
done |
| 22685 |
|
| 22686 |
|
| 22687 |
if test $ac_cv_func_memcpy = no; then |
| 22688 |
|
| 22689 |
|
| 22690 |
|
| 22691 |
|
| 22692 |
|
| 22693 |
|
| 22694 |
|
| 22695 |
|
| 22696 |
gl_LIBOBJS="$gl_LIBOBJS memcpy.$ac_objext" |
| 22697 |
|
| 22698 |
|
| 22699 |
: |
| 22700 |
|
| 22701 |
fi |
| 22702 |
|
| 22703 |
for ac_func in memset |
| 22704 |
do : |
| 22705 |
ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 22706 |
if test "x$ac_cv_func_memset" = xyes; then : |
| 22707 |
cat >>confdefs.h <<_ACEOF |
| 22708 |
#define HAVE_MEMSET 1 |
| 22709 |
_ACEOF |
| 22710 |
|
| 22711 |
fi |
| 22712 |
done |
| 22713 |
|
| 22714 |
|
| 22715 |
if test $ac_cv_func_memset = no; then |
| 22716 |
|
| 22717 |
|
| 22718 |
|
| 22719 |
|
| 22720 |
|
| 22721 |
|
| 22722 |
|
| 22723 |
|
| 22724 |
gl_LIBOBJS="$gl_LIBOBJS memset.$ac_objext" |
| 22725 |
|
| 22726 |
|
| 22727 |
: |
| 22728 |
|
| 22729 |
fi |
| 22730 |
|
| 22731 |
|
| 22732 |
if test $ac_cv_func__set_invalid_parameter_handler = yes; then |
| 22733 |
HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 |
| 22734 |
|
| 22735 |
$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h |
| 22736 |
|
| 22737 |
else |
| 22738 |
HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 |
| 22739 |
fi |
| 22740 |
|
| 22741 |
|
| 22742 |
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 22743 |
|
| 22744 |
|
| 22745 |
|
| 22746 |
|
| 22747 |
|
| 22748 |
|
| 22749 |
|
| 22750 |
|
| 22751 |
gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" |
| 22752 |
|
| 22753 |
fi |
| 22754 |
|
| 22755 |
|
| 22756 |
|
| 22757 |
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 22758 |
|
| 22759 |
|
| 22760 |
|
| 22761 |
|
| 22762 |
|
| 22763 |
|
| 22764 |
|
| 22765 |
|
| 22766 |
gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" |
| 22767 |
|
| 22768 |
fi |
| 22769 |
|
| 22770 |
|
| 22771 |
|
| 22772 |
case "$host_os" in |
| 22773 |
mingw* | pw*) |
| 22774 |
REPLACE_OPEN=1 |
| 22775 |
;; |
| 22776 |
*) |
| 22777 |
|
| 22778 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 |
| 22779 |
$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } |
| 22780 |
if ${gl_cv_func_open_slash+:} false; then : |
| 22781 |
$as_echo_n "(cached) " >&6 |
| 22782 |
else |
| 22783 |
# Assume that if we have lstat, we can also check symlinks. |
| 22784 |
if test $ac_cv_func_lstat = yes; then |
| 22785 |
touch conftest.tmp |
| 22786 |
ln -s conftest.tmp conftest.lnk |
| 22787 |
fi |
| 22788 |
if test "$cross_compiling" = yes; then : |
| 22789 |
|
| 22790 |
case "$host_os" in |
| 22791 |
freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) |
| 22792 |
gl_cv_func_open_slash="guessing no" ;; |
| 22793 |
*) |
| 22794 |
gl_cv_func_open_slash="guessing yes" ;; |
| 22795 |
esac |
| 22796 |
|
| 22797 |
else |
| 22798 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22799 |
/* end confdefs.h. */ |
| 22800 |
|
| 22801 |
#include <fcntl.h> |
| 22802 |
#if HAVE_UNISTD_H |
| 22803 |
# include <unistd.h> |
| 22804 |
#endif |
| 22805 |
int main () |
| 22806 |
{ |
| 22807 |
int result = 0; |
| 22808 |
#if HAVE_LSTAT |
| 22809 |
if (open ("conftest.lnk/", O_RDONLY) != -1) |
| 22810 |
result |= 1; |
| 22811 |
#endif |
| 22812 |
if (open ("conftest.sl/", O_CREAT, 0600) >= 0) |
| 22813 |
result |= 2; |
| 22814 |
return result; |
| 22815 |
} |
| 22816 |
_ACEOF |
| 22817 |
if ac_fn_c_try_run "$LINENO"; then : |
| 22818 |
gl_cv_func_open_slash=yes |
| 22819 |
else |
| 22820 |
gl_cv_func_open_slash=no |
| 22821 |
fi |
| 22822 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22823 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22824 |
fi |
| 22825 |
|
| 22826 |
rm -f conftest.sl conftest.tmp conftest.lnk |
| 22827 |
|
| 22828 |
fi |
| 22829 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 |
| 22830 |
$as_echo "$gl_cv_func_open_slash" >&6; } |
| 22831 |
case "$gl_cv_func_open_slash" in |
| 22832 |
*no) |
| 22833 |
|
| 22834 |
$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 22835 |
|
| 22836 |
REPLACE_OPEN=1 |
| 22837 |
;; |
| 22838 |
esac |
| 22839 |
;; |
| 22840 |
esac |
| 22841 |
|
| 22842 |
|
| 22843 |
|
| 22844 |
if test $REPLACE_OPEN = 1; then |
| 22845 |
|
| 22846 |
|
| 22847 |
|
| 22848 |
|
| 22849 |
|
| 22850 |
|
| 22851 |
|
| 22852 |
|
| 22853 |
gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" |
| 22854 |
|
| 22855 |
|
| 22856 |
|
| 22857 |
: |
| 22858 |
|
| 22859 |
fi |
| 22860 |
|
| 22861 |
|
| 22862 |
|
| 22863 |
|
| 22864 |
|
| 22865 |
GNULIB_OPEN=1 |
| 22866 |
|
| 22867 |
|
| 22868 |
|
| 22869 |
|
| 22870 |
|
| 22871 |
$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h |
| 22872 |
|
| 22873 |
|
| 22874 |
|
| 22875 |
|
| 22876 |
|
| 22877 |
|
| 22878 |
|
| 22879 |
|
| 22880 |
|
| 22881 |
|
| 22882 |
for ac_func in raise |
| 22883 |
do : |
| 22884 |
ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" |
| 22885 |
if test "x$ac_cv_func_raise" = xyes; then : |
| 22886 |
cat >>confdefs.h <<_ACEOF |
| 22887 |
#define HAVE_RAISE 1 |
| 22888 |
_ACEOF |
| 22889 |
|
| 22890 |
fi |
| 22891 |
done |
| 22892 |
|
| 22893 |
if test $ac_cv_func_raise = no; then |
| 22894 |
HAVE_RAISE=0 |
| 22895 |
else |
| 22896 |
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 22897 |
REPLACE_RAISE=1 |
| 22898 |
fi |
| 22899 |
|
| 22900 |
|
| 22901 |
|
| 22902 |
|
| 22903 |
if test $gl_cv_type_sigset_t = yes; then |
| 22904 |
ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 22905 |
if test "x$ac_cv_func_sigprocmask" = xyes; then : |
| 22906 |
gl_cv_func_sigprocmask=1 |
| 22907 |
fi |
| 22908 |
|
| 22909 |
fi |
| 22910 |
if test -z "$gl_cv_func_sigprocmask"; then |
| 22911 |
HAVE_POSIX_SIGNALBLOCKING=0 |
| 22912 |
fi |
| 22913 |
|
| 22914 |
if test $HAVE_POSIX_SIGNALBLOCKING = 0; then |
| 22915 |
|
| 22916 |
|
| 22917 |
|
| 22918 |
|
| 22919 |
if test $gl_cv_header_signal_h_SIGPIPE != yes; then |
| 22920 |
REPLACE_RAISE=1 |
| 22921 |
fi |
| 22922 |
|
| 22923 |
fi |
| 22924 |
|
| 22925 |
fi |
| 22926 |
|
| 22927 |
if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then |
| 22928 |
|
| 22929 |
|
| 22930 |
|
| 22931 |
|
| 22932 |
|
| 22933 |
|
| 22934 |
|
| 22935 |
|
| 22936 |
gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext" |
| 22937 |
|
| 22938 |
: |
| 22939 |
fi |
| 22940 |
|
| 22941 |
|
| 22942 |
|
| 22943 |
|
| 22944 |
|
| 22945 |
GNULIB_RAISE=1 |
| 22946 |
|
| 22947 |
|
| 22948 |
|
| 22949 |
|
| 22950 |
|
| 22951 |
$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h |
| 22952 |
|
| 22953 |
|
| 22954 |
|
| 22955 |
|
| 22956 |
|
| 22957 |
|
| 22958 |
|
| 22959 |
|
| 22960 |
|
| 22961 |
|
| 22962 |
RINT_LIBM= |
| 22963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rint can be used without linking with libm" >&5 |
| 22964 |
$as_echo_n "checking whether rint can be used without linking with libm... " >&6; } |
| 22965 |
if ${gl_cv_func_rint_no_libm+:} false; then : |
| 22966 |
$as_echo_n "(cached) " >&6 |
| 22967 |
else |
| 22968 |
|
| 22969 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22970 |
/* end confdefs.h. */ |
| 22971 |
#ifndef __NO_MATH_INLINES |
| 22972 |
# define __NO_MATH_INLINES 1 /* for glibc */ |
| 22973 |
#endif |
| 22974 |
#include <math.h> |
| 22975 |
|
| 22976 |
double (*funcptr) (double) = rint; |
| 22977 |
int i_ret; |
| 22978 |
float f_ret; |
| 22979 |
double d_ret; |
| 22980 |
long double l_ret; |
| 22981 |
int |
| 22982 |
main () |
| 22983 |
{ |
| 22984 |
double y = funcptr (1.6180339887) + rint (1.6180339887); |
| 22985 |
y += rint (2.0); |
| 22986 |
return y < 0.3 || y > 1.7; |
| 22987 |
|
| 22988 |
; |
| 22989 |
return 0; |
| 22990 |
} |
| 22991 |
_ACEOF |
| 22992 |
if ac_fn_c_try_link "$LINENO"; then : |
| 22993 |
gl_cv_func_rint_no_libm=yes |
| 22994 |
else |
| 22995 |
gl_cv_func_rint_no_libm=no |
| 22996 |
fi |
| 22997 |
rm -f core conftest.err conftest.$ac_objext \ |
| 22998 |
conftest$ac_exeext conftest.$ac_ext |
| 22999 |
|
| 23000 |
fi |
| 23001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rint_no_libm" >&5 |
| 23002 |
$as_echo "$gl_cv_func_rint_no_libm" >&6; } |
| 23003 |
if test $gl_cv_func_rint_no_libm = no; then |
| 23004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rint can be used with libm" >&5 |
| 23005 |
$as_echo_n "checking whether rint can be used with libm... " >&6; } |
| 23006 |
if ${gl_cv_func_rint_in_libm+:} false; then : |
| 23007 |
$as_echo_n "(cached) " >&6 |
| 23008 |
else |
| 23009 |
|
| 23010 |
save_LIBS="$LIBS" |
| 23011 |
LIBS="$LIBS -lm" |
| 23012 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23013 |
/* end confdefs.h. */ |
| 23014 |
#ifndef __NO_MATH_INLINES |
| 23015 |
# define __NO_MATH_INLINES 1 /* for glibc */ |
| 23016 |
#endif |
| 23017 |
#include <math.h> |
| 23018 |
|
| 23019 |
double (*funcptr) (double) = rint; |
| 23020 |
int i_ret; |
| 23021 |
float f_ret; |
| 23022 |
double d_ret; |
| 23023 |
long double l_ret; |
| 23024 |
int |
| 23025 |
main () |
| 23026 |
{ |
| 23027 |
double y = funcptr (1.6180339887) + rint (1.6180339887); |
| 23028 |
y += rint (2.0); |
| 23029 |
return y < 0.3 || y > 1.7; |
| 23030 |
|
| 23031 |
; |
| 23032 |
return 0; |
| 23033 |
} |
| 23034 |
_ACEOF |
| 23035 |
if ac_fn_c_try_link "$LINENO"; then : |
| 23036 |
gl_cv_func_rint_in_libm=yes |
| 23037 |
else |
| 23038 |
gl_cv_func_rint_in_libm=no |
| 23039 |
fi |
| 23040 |
rm -f core conftest.err conftest.$ac_objext \ |
| 23041 |
conftest$ac_exeext conftest.$ac_ext |
| 23042 |
LIBS="$save_LIBS" |
| 23043 |
|
| 23044 |
fi |
| 23045 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rint_in_libm" >&5 |
| 23046 |
$as_echo "$gl_cv_func_rint_in_libm" >&6; } |
| 23047 |
if test $gl_cv_func_rint_in_libm = yes; then |
| 23048 |
RINT_LIBM=-lm |
| 23049 |
fi |
| 23050 |
fi |
| 23051 |
|
| 23052 |
|
| 23053 |
|
| 23054 |
|
| 23055 |
|
| 23056 |
if test $gl_cv_func_rint_no_libm = no \ |
| 23057 |
&& test $gl_cv_func_rint_in_libm = no; then |
| 23058 |
HAVE_RINT=0 |
| 23059 |
RINT_LIBM= |
| 23060 |
fi |
| 23061 |
|
| 23062 |
|
| 23063 |
if test $HAVE_RINT = 0; then |
| 23064 |
|
| 23065 |
|
| 23066 |
|
| 23067 |
|
| 23068 |
|
| 23069 |
|
| 23070 |
|
| 23071 |
|
| 23072 |
gl_LIBOBJS="$gl_LIBOBJS rint.$ac_objext" |
| 23073 |
|
| 23074 |
fi |
| 23075 |
|
| 23076 |
|
| 23077 |
|
| 23078 |
|
| 23079 |
|
| 23080 |
GNULIB_RINT=1 |
| 23081 |
|
| 23082 |
|
| 23083 |
|
| 23084 |
|
| 23085 |
|
| 23086 |
$as_echo "#define GNULIB_TEST_RINT 1" >>confdefs.h |
| 23087 |
|
| 23088 |
|
| 23089 |
|
| 23090 |
|
| 23091 |
|
| 23092 |
|
| 23093 |
|
| 23094 |
|
| 23095 |
|
| 23096 |
|
| 23097 |
|
| 23098 |
|
| 23099 |
|
| 23100 |
|
| 23101 |
if test $gl_cv_have_include_next = yes; then |
| 23102 |
gl_cv_next_search_h='<'search.h'>' |
| 23103 |
else |
| 23104 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <search.h>" >&5 |
| 23105 |
$as_echo_n "checking absolute name of <search.h>... " >&6; } |
| 23106 |
if ${gl_cv_next_search_h+:} false; then : |
| 23107 |
$as_echo_n "(cached) " >&6 |
| 23108 |
else |
| 23109 |
|
| 23110 |
if test $ac_cv_header_search_h = yes; then |
| 23111 |
|
| 23112 |
|
| 23113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23114 |
/* end confdefs.h. */ |
| 23115 |
#include <search.h> |
| 23116 |
|
| 23117 |
_ACEOF |
| 23118 |
case "$host_os" in |
| 23119 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23120 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 23121 |
esac |
| 23122 |
|
| 23123 |
case "$host_os" in |
| 23124 |
mingw*) |
| 23125 |
gl_dirsep_regex='[/\\]' |
| 23126 |
;; |
| 23127 |
*) |
| 23128 |
gl_dirsep_regex='\/' |
| 23129 |
;; |
| 23130 |
esac |
| 23131 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23132 |
|
| 23133 |
gl_header_literal_regex=`echo 'search.h' \ |
| 23134 |
| sed -e "$gl_make_literal_regex_sed"` |
| 23135 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23136 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23137 |
s|^/[^/]|//&| |
| 23138 |
p |
| 23139 |
q |
| 23140 |
}' |
| 23141 |
gl_cv_next_search_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23142 |
sed -n "$gl_absolute_header_sed"`'"' |
| 23143 |
else |
| 23144 |
gl_cv_next_search_h='<'search.h'>' |
| 23145 |
fi |
| 23146 |
|
| 23147 |
|
| 23148 |
fi |
| 23149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_search_h" >&5 |
| 23150 |
$as_echo "$gl_cv_next_search_h" >&6; } |
| 23151 |
fi |
| 23152 |
NEXT_SEARCH_H=$gl_cv_next_search_h |
| 23153 |
|
| 23154 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23155 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23156 |
gl_next_as_first_directive='<'search.h'>' |
| 23157 |
else |
| 23158 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23159 |
gl_next_as_first_directive=$gl_cv_next_search_h |
| 23160 |
fi |
| 23161 |
NEXT_AS_FIRST_DIRECTIVE_SEARCH_H=$gl_next_as_first_directive |
| 23162 |
|
| 23163 |
|
| 23164 |
|
| 23165 |
|
| 23166 |
if test $ac_cv_header_search_h = yes; then |
| 23167 |
HAVE_SEARCH_H=1 |
| 23168 |
else |
| 23169 |
HAVE_SEARCH_H=0 |
| 23170 |
fi |
| 23171 |
|
| 23172 |
|
| 23173 |
|
| 23174 |
for gl_func in tdelete tfind tsearch twalk; do |
| 23175 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 23176 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 23177 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 23178 |
if eval \${$as_gl_Symbol+:} false; then : |
| 23179 |
$as_echo_n "(cached) " >&6 |
| 23180 |
else |
| 23181 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23182 |
/* end confdefs.h. */ |
| 23183 |
#include <search.h> |
| 23184 |
|
| 23185 |
int |
| 23186 |
main () |
| 23187 |
{ |
| 23188 |
#undef $gl_func |
| 23189 |
(void) $gl_func; |
| 23190 |
; |
| 23191 |
return 0; |
| 23192 |
} |
| 23193 |
_ACEOF |
| 23194 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 23195 |
eval "$as_gl_Symbol=yes" |
| 23196 |
else |
| 23197 |
eval "$as_gl_Symbol=no" |
| 23198 |
fi |
| 23199 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23200 |
fi |
| 23201 |
eval ac_res=\$$as_gl_Symbol |
| 23202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 23203 |
$as_echo "$ac_res" >&6; } |
| 23204 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 23205 |
cat >>confdefs.h <<_ACEOF |
| 23206 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 23207 |
_ACEOF |
| 23208 |
|
| 23209 |
eval ac_cv_have_decl_$gl_func=yes |
| 23210 |
fi |
| 23211 |
done |
| 23212 |
|
| 23213 |
|
| 23214 |
|
| 23215 |
|
| 23216 |
|
| 23217 |
|
| 23218 |
|
| 23219 |
|
| 23220 |
|
| 23221 |
|
| 23222 |
|
| 23223 |
|
| 23224 |
|
| 23225 |
if test $gl_cv_have_include_next = yes; then |
| 23226 |
gl_cv_next_signal_h='<'signal.h'>' |
| 23227 |
else |
| 23228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 |
| 23229 |
$as_echo_n "checking absolute name of <signal.h>... " >&6; } |
| 23230 |
if ${gl_cv_next_signal_h+:} false; then : |
| 23231 |
$as_echo_n "(cached) " >&6 |
| 23232 |
else |
| 23233 |
|
| 23234 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23235 |
/* end confdefs.h. */ |
| 23236 |
#include <signal.h> |
| 23237 |
|
| 23238 |
_ACEOF |
| 23239 |
case "$host_os" in |
| 23240 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23241 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 23242 |
esac |
| 23243 |
|
| 23244 |
case "$host_os" in |
| 23245 |
mingw*) |
| 23246 |
gl_dirsep_regex='[/\\]' |
| 23247 |
;; |
| 23248 |
*) |
| 23249 |
gl_dirsep_regex='\/' |
| 23250 |
;; |
| 23251 |
esac |
| 23252 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23253 |
|
| 23254 |
gl_header_literal_regex=`echo 'signal.h' \ |
| 23255 |
| sed -e "$gl_make_literal_regex_sed"` |
| 23256 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23257 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23258 |
s|^/[^/]|//&| |
| 23259 |
p |
| 23260 |
q |
| 23261 |
}' |
| 23262 |
gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23263 |
sed -n "$gl_absolute_header_sed"`'"' |
| 23264 |
|
| 23265 |
|
| 23266 |
fi |
| 23267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 |
| 23268 |
$as_echo "$gl_cv_next_signal_h" >&6; } |
| 23269 |
fi |
| 23270 |
NEXT_SIGNAL_H=$gl_cv_next_signal_h |
| 23271 |
|
| 23272 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23273 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23274 |
gl_next_as_first_directive='<'signal.h'>' |
| 23275 |
else |
| 23276 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23277 |
gl_next_as_first_directive=$gl_cv_next_signal_h |
| 23278 |
fi |
| 23279 |
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive |
| 23280 |
|
| 23281 |
|
| 23282 |
|
| 23283 |
|
| 23284 |
|
| 23285 |
# AIX declares sig_atomic_t to already include volatile, and C89 compilers |
| 23286 |
# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. |
| 23287 |
ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " |
| 23288 |
#include <signal.h> |
| 23289 |
|
| 23290 |
" |
| 23291 |
if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then : |
| 23292 |
|
| 23293 |
else |
| 23294 |
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 |
| 23295 |
fi |
| 23296 |
|
| 23297 |
|
| 23298 |
|
| 23299 |
|
| 23300 |
|
| 23301 |
|
| 23302 |
|
| 23303 |
ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " |
| 23304 |
#include <signal.h> |
| 23305 |
|
| 23306 |
" |
| 23307 |
if test "x$ac_cv_type_sighandler_t" = xyes; then : |
| 23308 |
|
| 23309 |
else |
| 23310 |
HAVE_SIGHANDLER_T=0 |
| 23311 |
fi |
| 23312 |
|
| 23313 |
|
| 23314 |
|
| 23315 |
for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do |
| 23316 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 23317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 23318 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 23319 |
if eval \${$as_gl_Symbol+:} false; then : |
| 23320 |
$as_echo_n "(cached) " >&6 |
| 23321 |
else |
| 23322 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23323 |
/* end confdefs.h. */ |
| 23324 |
#include <signal.h> |
| 23325 |
|
| 23326 |
int |
| 23327 |
main () |
| 23328 |
{ |
| 23329 |
#undef $gl_func |
| 23330 |
(void) $gl_func; |
| 23331 |
; |
| 23332 |
return 0; |
| 23333 |
} |
| 23334 |
_ACEOF |
| 23335 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 23336 |
eval "$as_gl_Symbol=yes" |
| 23337 |
else |
| 23338 |
eval "$as_gl_Symbol=no" |
| 23339 |
fi |
| 23340 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23341 |
fi |
| 23342 |
eval ac_res=\$$as_gl_Symbol |
| 23343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 23344 |
$as_echo "$ac_res" >&6; } |
| 23345 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 23346 |
cat >>confdefs.h <<_ACEOF |
| 23347 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 23348 |
_ACEOF |
| 23349 |
|
| 23350 |
eval ac_cv_have_decl_$gl_func=yes |
| 23351 |
fi |
| 23352 |
done |
| 23353 |
|
| 23354 |
|
| 23355 |
|
| 23356 |
|
| 23357 |
|
| 23358 |
|
| 23359 |
|
| 23360 |
cat >>confdefs.h <<_ACEOF |
| 23361 |
#define GNULIB_SIGPIPE 1 |
| 23362 |
_ACEOF |
| 23363 |
|
| 23364 |
|
| 23365 |
|
| 23366 |
GNULIB_SIGNAL_H_SIGPIPE=1 |
| 23367 |
|
| 23368 |
|
| 23369 |
GNULIB_STDIO_H_SIGPIPE=1 |
| 23370 |
|
| 23371 |
GNULIB_UNISTD_H_SIGPIPE=1 |
| 23372 |
|
| 23373 |
|
| 23374 |
|
| 23375 |
if test $gl_cv_type_sigset_t = yes; then |
| 23376 |
ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 23377 |
if test "x$ac_cv_func_sigprocmask" = xyes; then : |
| 23378 |
gl_cv_func_sigprocmask=1 |
| 23379 |
fi |
| 23380 |
|
| 23381 |
fi |
| 23382 |
if test -z "$gl_cv_func_sigprocmask"; then |
| 23383 |
HAVE_POSIX_SIGNALBLOCKING=0 |
| 23384 |
fi |
| 23385 |
|
| 23386 |
if test $HAVE_POSIX_SIGNALBLOCKING = 0; then |
| 23387 |
|
| 23388 |
|
| 23389 |
|
| 23390 |
|
| 23391 |
|
| 23392 |
|
| 23393 |
|
| 23394 |
|
| 23395 |
gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext" |
| 23396 |
|
| 23397 |
: |
| 23398 |
fi |
| 23399 |
|
| 23400 |
|
| 23401 |
|
| 23402 |
|
| 23403 |
|
| 23404 |
GNULIB_SIGPROCMASK=1 |
| 23405 |
|
| 23406 |
|
| 23407 |
|
| 23408 |
|
| 23409 |
|
| 23410 |
$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h |
| 23411 |
|
| 23412 |
|
| 23413 |
|
| 23414 |
|
| 23415 |
for ac_header in stdint.h |
| 23416 |
do : |
| 23417 |
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 23418 |
if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 23419 |
cat >>confdefs.h <<_ACEOF |
| 23420 |
#define HAVE_STDINT_H 1 |
| 23421 |
_ACEOF |
| 23422 |
|
| 23423 |
fi |
| 23424 |
|
| 23425 |
done |
| 23426 |
|
| 23427 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 23428 |
$as_echo_n "checking for SIZE_MAX... " >&6; } |
| 23429 |
if ${gl_cv_size_max+:} false; then : |
| 23430 |
$as_echo_n "(cached) " >&6 |
| 23431 |
else |
| 23432 |
|
| 23433 |
gl_cv_size_max= |
| 23434 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23435 |
/* end confdefs.h. */ |
| 23436 |
|
| 23437 |
#include <limits.h> |
| 23438 |
#if HAVE_STDINT_H |
| 23439 |
#include <stdint.h> |
| 23440 |
#endif |
| 23441 |
#ifdef SIZE_MAX |
| 23442 |
Found it |
| 23443 |
#endif |
| 23444 |
|
| 23445 |
_ACEOF |
| 23446 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23447 |
$EGREP "Found it" >/dev/null 2>&1; then : |
| 23448 |
gl_cv_size_max=yes |
| 23449 |
fi |
| 23450 |
rm -f conftest* |
| 23451 |
|
| 23452 |
if test -z "$gl_cv_size_max"; then |
| 23453 |
if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 23454 |
#include <limits.h>"; then : |
| 23455 |
|
| 23456 |
else |
| 23457 |
size_t_bits_minus_1= |
| 23458 |
fi |
| 23459 |
|
| 23460 |
if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 23461 |
|
| 23462 |
else |
| 23463 |
fits_in_uint= |
| 23464 |
fi |
| 23465 |
|
| 23466 |
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 23467 |
if test $fits_in_uint = 1; then |
| 23468 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23469 |
/* end confdefs.h. */ |
| 23470 |
#include <stddef.h> |
| 23471 |
extern size_t foo; |
| 23472 |
extern unsigned long foo; |
| 23473 |
|
| 23474 |
int |
| 23475 |
main () |
| 23476 |
{ |
| 23477 |
|
| 23478 |
; |
| 23479 |
return 0; |
| 23480 |
} |
| 23481 |
_ACEOF |
| 23482 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 23483 |
fits_in_uint=0 |
| 23484 |
fi |
| 23485 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23486 |
fi |
| 23487 |
if test $fits_in_uint = 1; then |
| 23488 |
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 23489 |
else |
| 23490 |
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 23491 |
fi |
| 23492 |
else |
| 23493 |
gl_cv_size_max='((size_t)~(size_t)0)' |
| 23494 |
fi |
| 23495 |
fi |
| 23496 |
|
| 23497 |
fi |
| 23498 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 23499 |
$as_echo "$gl_cv_size_max" >&6; } |
| 23500 |
if test "$gl_cv_size_max" != yes; then |
| 23501 |
|
| 23502 |
cat >>confdefs.h <<_ACEOF |
| 23503 |
#define SIZE_MAX $gl_cv_size_max |
| 23504 |
_ACEOF |
| 23505 |
|
| 23506 |
fi |
| 23507 |
|
| 23508 |
|
| 23509 |
|
| 23510 |
|
| 23511 |
gl_cv_func_snprintf_usable=no |
| 23512 |
for ac_func in snprintf |
| 23513 |
do : |
| 23514 |
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 23515 |
if test "x$ac_cv_func_snprintf" = xyes; then : |
| 23516 |
cat >>confdefs.h <<_ACEOF |
| 23517 |
#define HAVE_SNPRINTF 1 |
| 23518 |
_ACEOF |
| 23519 |
|
| 23520 |
fi |
| 23521 |
done |
| 23522 |
|
| 23523 |
if test $ac_cv_func_snprintf = yes; then |
| 23524 |
|
| 23525 |
|
| 23526 |
|
| 23527 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 |
| 23528 |
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; } |
| 23529 |
if ${gl_cv_func_snprintf_size1+:} false; then : |
| 23530 |
$as_echo_n "(cached) " >&6 |
| 23531 |
else |
| 23532 |
|
| 23533 |
if test "$cross_compiling" = yes; then : |
| 23534 |
gl_cv_func_snprintf_size1="guessing yes" |
| 23535 |
else |
| 23536 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23537 |
/* end confdefs.h. */ |
| 23538 |
|
| 23539 |
#include <stdio.h> |
| 23540 |
#if HAVE_SNPRINTF |
| 23541 |
# define my_snprintf snprintf |
| 23542 |
#else |
| 23543 |
# include <stdarg.h> |
| 23544 |
static int my_snprintf (char *buf, int size, const char *format, ...) |
| 23545 |
{ |
| 23546 |
va_list args; |
| 23547 |
int ret; |
| 23548 |
va_start (args, format); |
| 23549 |
ret = vsnprintf (buf, size, format, args); |
| 23550 |
va_end (args); |
| 23551 |
return ret; |
| 23552 |
} |
| 23553 |
#endif |
| 23554 |
int main() |
| 23555 |
{ |
| 23556 |
static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; |
| 23557 |
my_snprintf (buf, 1, "%d", 12345); |
| 23558 |
return buf[1] != 'E'; |
| 23559 |
} |
| 23560 |
_ACEOF |
| 23561 |
if ac_fn_c_try_run "$LINENO"; then : |
| 23562 |
gl_cv_func_snprintf_size1=yes |
| 23563 |
else |
| 23564 |
gl_cv_func_snprintf_size1=no |
| 23565 |
fi |
| 23566 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23567 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23568 |
fi |
| 23569 |
|
| 23570 |
|
| 23571 |
fi |
| 23572 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 |
| 23573 |
$as_echo "$gl_cv_func_snprintf_size1" >&6; } |
| 23574 |
|
| 23575 |
case "$gl_cv_func_snprintf_size1" in |
| 23576 |
*yes) |
| 23577 |
|
| 23578 |
case "$gl_cv_func_snprintf_retval_c99" in |
| 23579 |
*yes) |
| 23580 |
|
| 23581 |
|
| 23582 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 |
| 23583 |
$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } |
| 23584 |
if ${gl_cv_func_printf_positions+:} false; then : |
| 23585 |
$as_echo_n "(cached) " >&6 |
| 23586 |
else |
| 23587 |
|
| 23588 |
if test "$cross_compiling" = yes; then : |
| 23589 |
|
| 23590 |
case "$host_os" in |
| 23591 |
netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) |
| 23592 |
gl_cv_func_printf_positions="guessing no";; |
| 23593 |
beos*) gl_cv_func_printf_positions="guessing no";; |
| 23594 |
mingw* | pw*) gl_cv_func_printf_positions="guessing no";; |
| 23595 |
*) gl_cv_func_printf_positions="guessing yes";; |
| 23596 |
esac |
| 23597 |
|
| 23598 |
else |
| 23599 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23600 |
/* end confdefs.h. */ |
| 23601 |
|
| 23602 |
#include <stdio.h> |
| 23603 |
#include <string.h> |
| 23604 |
/* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 23605 |
dollar expansion (possibly an autoconf bug). */ |
| 23606 |
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 23607 |
static char buf[100]; |
| 23608 |
int main () |
| 23609 |
{ |
| 23610 |
sprintf (buf, format, 33, 55); |
| 23611 |
return (strcmp (buf, "55 33") != 0); |
| 23612 |
} |
| 23613 |
_ACEOF |
| 23614 |
if ac_fn_c_try_run "$LINENO"; then : |
| 23615 |
gl_cv_func_printf_positions=yes |
| 23616 |
else |
| 23617 |
gl_cv_func_printf_positions=no |
| 23618 |
fi |
| 23619 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23620 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23621 |
fi |
| 23622 |
|
| 23623 |
|
| 23624 |
fi |
| 23625 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 |
| 23626 |
$as_echo "$gl_cv_func_printf_positions" >&6; } |
| 23627 |
|
| 23628 |
case "$gl_cv_func_printf_positions" in |
| 23629 |
*yes) |
| 23630 |
gl_cv_func_snprintf_usable=yes |
| 23631 |
;; |
| 23632 |
esac |
| 23633 |
;; |
| 23634 |
esac |
| 23635 |
;; |
| 23636 |
esac |
| 23637 |
fi |
| 23638 |
if test $gl_cv_func_snprintf_usable = no; then |
| 23639 |
|
| 23640 |
|
| 23641 |
|
| 23642 |
|
| 23643 |
|
| 23644 |
|
| 23645 |
|
| 23646 |
|
| 23647 |
|
| 23648 |
|
| 23649 |
gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext" |
| 23650 |
|
| 23651 |
if test $ac_cv_func_snprintf = yes; then |
| 23652 |
REPLACE_SNPRINTF=1 |
| 23653 |
fi |
| 23654 |
: |
| 23655 |
|
| 23656 |
fi |
| 23657 |
|
| 23658 |
if test $ac_cv_have_decl_snprintf = no; then |
| 23659 |
HAVE_DECL_SNPRINTF=0 |
| 23660 |
fi |
| 23661 |
|
| 23662 |
|
| 23663 |
|
| 23664 |
|
| 23665 |
|
| 23666 |
|
| 23667 |
GNULIB_SNPRINTF=1 |
| 23668 |
|
| 23669 |
|
| 23670 |
|
| 23671 |
|
| 23672 |
|
| 23673 |
$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h |
| 23674 |
|
| 23675 |
|
| 23676 |
|
| 23677 |
|
| 23678 |
|
| 23679 |
cat >>confdefs.h <<_ACEOF |
| 23680 |
#define GNULIB_SNPRINTF 1 |
| 23681 |
_ACEOF |
| 23682 |
|
| 23683 |
|
| 23684 |
|
| 23685 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 23686 |
$as_echo_n "checking for ssize_t... " >&6; } |
| 23687 |
if ${gt_cv_ssize_t+:} false; then : |
| 23688 |
$as_echo_n "(cached) " >&6 |
| 23689 |
else |
| 23690 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23691 |
/* end confdefs.h. */ |
| 23692 |
#include <sys/types.h> |
| 23693 |
int |
| 23694 |
main () |
| 23695 |
{ |
| 23696 |
int x = sizeof (ssize_t *) + sizeof (ssize_t); |
| 23697 |
return !x; |
| 23698 |
; |
| 23699 |
return 0; |
| 23700 |
} |
| 23701 |
_ACEOF |
| 23702 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 23703 |
gt_cv_ssize_t=yes |
| 23704 |
else |
| 23705 |
gt_cv_ssize_t=no |
| 23706 |
fi |
| 23707 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23708 |
fi |
| 23709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 |
| 23710 |
$as_echo "$gt_cv_ssize_t" >&6; } |
| 23711 |
if test $gt_cv_ssize_t = no; then |
| 23712 |
|
| 23713 |
$as_echo "#define ssize_t int" >>confdefs.h |
| 23714 |
|
| 23715 |
fi |
| 23716 |
|
| 23717 |
|
| 23718 |
|
| 23719 |
|
| 23720 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 |
| 23721 |
$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } |
| 23722 |
if ${gl_cv_func_stat_dir_slash+:} false; then : |
| 23723 |
$as_echo_n "(cached) " >&6 |
| 23724 |
else |
| 23725 |
if test "$cross_compiling" = yes; then : |
| 23726 |
case $host_os in |
| 23727 |
mingw*) gl_cv_func_stat_dir_slash="guessing no";; |
| 23728 |
*) gl_cv_func_stat_dir_slash="guessing yes";; |
| 23729 |
esac |
| 23730 |
else |
| 23731 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23732 |
/* end confdefs.h. */ |
| 23733 |
#include <sys/stat.h> |
| 23734 |
|
| 23735 |
int |
| 23736 |
main () |
| 23737 |
{ |
| 23738 |
struct stat st; return stat (".", &st) != stat ("./", &st); |
| 23739 |
; |
| 23740 |
return 0; |
| 23741 |
} |
| 23742 |
_ACEOF |
| 23743 |
if ac_fn_c_try_run "$LINENO"; then : |
| 23744 |
gl_cv_func_stat_dir_slash=yes |
| 23745 |
else |
| 23746 |
gl_cv_func_stat_dir_slash=no |
| 23747 |
fi |
| 23748 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23749 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23750 |
fi |
| 23751 |
|
| 23752 |
fi |
| 23753 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 |
| 23754 |
$as_echo "$gl_cv_func_stat_dir_slash" >&6; } |
| 23755 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 |
| 23756 |
$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } |
| 23757 |
if ${gl_cv_func_stat_file_slash+:} false; then : |
| 23758 |
$as_echo_n "(cached) " >&6 |
| 23759 |
else |
| 23760 |
touch conftest.tmp |
| 23761 |
# Assume that if we have lstat, we can also check symlinks. |
| 23762 |
if test $ac_cv_func_lstat = yes; then |
| 23763 |
ln -s conftest.tmp conftest.lnk |
| 23764 |
fi |
| 23765 |
if test "$cross_compiling" = yes; then : |
| 23766 |
case "$host_os" in |
| 23767 |
# Guess yes on glibc systems. |
| 23768 |
*-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; |
| 23769 |
# If we don't know, assume the worst. |
| 23770 |
*) gl_cv_func_stat_file_slash="guessing no" ;; |
| 23771 |
esac |
| 23772 |
|
| 23773 |
else |
| 23774 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23775 |
/* end confdefs.h. */ |
| 23776 |
#include <sys/stat.h> |
| 23777 |
|
| 23778 |
int |
| 23779 |
main () |
| 23780 |
{ |
| 23781 |
int result = 0; |
| 23782 |
struct stat st; |
| 23783 |
if (!stat ("conftest.tmp/", &st)) |
| 23784 |
result |= 1; |
| 23785 |
#if HAVE_LSTAT |
| 23786 |
if (!stat ("conftest.lnk/", &st)) |
| 23787 |
result |= 2; |
| 23788 |
#endif |
| 23789 |
return result; |
| 23790 |
|
| 23791 |
; |
| 23792 |
return 0; |
| 23793 |
} |
| 23794 |
_ACEOF |
| 23795 |
if ac_fn_c_try_run "$LINENO"; then : |
| 23796 |
gl_cv_func_stat_file_slash=yes |
| 23797 |
else |
| 23798 |
gl_cv_func_stat_file_slash=no |
| 23799 |
fi |
| 23800 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23801 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23802 |
fi |
| 23803 |
|
| 23804 |
rm -f conftest.tmp conftest.lnk |
| 23805 |
fi |
| 23806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 |
| 23807 |
$as_echo "$gl_cv_func_stat_file_slash" >&6; } |
| 23808 |
case $gl_cv_func_stat_dir_slash in |
| 23809 |
*no) REPLACE_STAT=1 |
| 23810 |
|
| 23811 |
$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h |
| 23812 |
;; |
| 23813 |
esac |
| 23814 |
case $gl_cv_func_stat_file_slash in |
| 23815 |
*no) REPLACE_STAT=1 |
| 23816 |
|
| 23817 |
$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h |
| 23818 |
;; |
| 23819 |
esac |
| 23820 |
|
| 23821 |
if test $REPLACE_STAT = 1; then |
| 23822 |
|
| 23823 |
|
| 23824 |
|
| 23825 |
|
| 23826 |
|
| 23827 |
|
| 23828 |
|
| 23829 |
|
| 23830 |
gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" |
| 23831 |
|
| 23832 |
: |
| 23833 |
fi |
| 23834 |
|
| 23835 |
|
| 23836 |
|
| 23837 |
|
| 23838 |
|
| 23839 |
GNULIB_STAT=1 |
| 23840 |
|
| 23841 |
|
| 23842 |
|
| 23843 |
|
| 23844 |
|
| 23845 |
$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h |
| 23846 |
|
| 23847 |
|
| 23848 |
|
| 23849 |
|
| 23850 |
|
| 23851 |
|
| 23852 |
# Define two additional variables used in the Makefile substitution. |
| 23853 |
|
| 23854 |
if test "$ac_cv_header_stdbool_h" = yes; then |
| 23855 |
STDBOOL_H='' |
| 23856 |
else |
| 23857 |
STDBOOL_H='stdbool.h' |
| 23858 |
fi |
| 23859 |
|
| 23860 |
if test -n "$STDBOOL_H"; then |
| 23861 |
GL_GENERATE_STDBOOL_H_TRUE= |
| 23862 |
GL_GENERATE_STDBOOL_H_FALSE='#' |
| 23863 |
else |
| 23864 |
GL_GENERATE_STDBOOL_H_TRUE='#' |
| 23865 |
GL_GENERATE_STDBOOL_H_FALSE= |
| 23866 |
fi |
| 23867 |
|
| 23868 |
|
| 23869 |
if test "$ac_cv_type__Bool" = yes; then |
| 23870 |
HAVE__BOOL=1 |
| 23871 |
else |
| 23872 |
HAVE__BOOL=0 |
| 23873 |
fi |
| 23874 |
|
| 23875 |
|
| 23876 |
|
| 23877 |
|
| 23878 |
|
| 23879 |
STDDEF_H= |
| 23880 |
if test $gt_cv_c_wchar_t = no; then |
| 23881 |
HAVE_WCHAR_T=0 |
| 23882 |
STDDEF_H=stddef.h |
| 23883 |
fi |
| 23884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 |
| 23885 |
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } |
| 23886 |
if ${gl_cv_decl_null_works+:} false; then : |
| 23887 |
$as_echo_n "(cached) " >&6 |
| 23888 |
else |
| 23889 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23890 |
/* end confdefs.h. */ |
| 23891 |
#include <stddef.h> |
| 23892 |
int test[2 * (sizeof NULL == sizeof (void *)) -1]; |
| 23893 |
|
| 23894 |
int |
| 23895 |
main () |
| 23896 |
{ |
| 23897 |
|
| 23898 |
; |
| 23899 |
return 0; |
| 23900 |
} |
| 23901 |
_ACEOF |
| 23902 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 23903 |
gl_cv_decl_null_works=yes |
| 23904 |
else |
| 23905 |
gl_cv_decl_null_works=no |
| 23906 |
fi |
| 23907 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23908 |
fi |
| 23909 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
| 23910 |
$as_echo "$gl_cv_decl_null_works" >&6; } |
| 23911 |
if test $gl_cv_decl_null_works = no; then |
| 23912 |
REPLACE_NULL=1 |
| 23913 |
STDDEF_H=stddef.h |
| 23914 |
fi |
| 23915 |
|
| 23916 |
if test -n "$STDDEF_H"; then |
| 23917 |
GL_GENERATE_STDDEF_H_TRUE= |
| 23918 |
GL_GENERATE_STDDEF_H_FALSE='#' |
| 23919 |
else |
| 23920 |
GL_GENERATE_STDDEF_H_TRUE='#' |
| 23921 |
GL_GENERATE_STDDEF_H_FALSE= |
| 23922 |
fi |
| 23923 |
|
| 23924 |
if test -n "$STDDEF_H"; then |
| 23925 |
|
| 23926 |
|
| 23927 |
|
| 23928 |
|
| 23929 |
|
| 23930 |
|
| 23931 |
|
| 23932 |
|
| 23933 |
if test $gl_cv_have_include_next = yes; then |
| 23934 |
gl_cv_next_stddef_h='<'stddef.h'>' |
| 23935 |
else |
| 23936 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 |
| 23937 |
$as_echo_n "checking absolute name of <stddef.h>... " >&6; } |
| 23938 |
if ${gl_cv_next_stddef_h+:} false; then : |
| 23939 |
$as_echo_n "(cached) " >&6 |
| 23940 |
else |
| 23941 |
|
| 23942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23943 |
/* end confdefs.h. */ |
| 23944 |
#include <stddef.h> |
| 23945 |
|
| 23946 |
_ACEOF |
| 23947 |
case "$host_os" in |
| 23948 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23949 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 23950 |
esac |
| 23951 |
|
| 23952 |
case "$host_os" in |
| 23953 |
mingw*) |
| 23954 |
gl_dirsep_regex='[/\\]' |
| 23955 |
;; |
| 23956 |
*) |
| 23957 |
gl_dirsep_regex='\/' |
| 23958 |
;; |
| 23959 |
esac |
| 23960 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23961 |
|
| 23962 |
gl_header_literal_regex=`echo 'stddef.h' \ |
| 23963 |
| sed -e "$gl_make_literal_regex_sed"` |
| 23964 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23965 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23966 |
s|^/[^/]|//&| |
| 23967 |
p |
| 23968 |
q |
| 23969 |
}' |
| 23970 |
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23971 |
sed -n "$gl_absolute_header_sed"`'"' |
| 23972 |
|
| 23973 |
|
| 23974 |
fi |
| 23975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
| 23976 |
$as_echo "$gl_cv_next_stddef_h" >&6; } |
| 23977 |
fi |
| 23978 |
NEXT_STDDEF_H=$gl_cv_next_stddef_h |
| 23979 |
|
| 23980 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23981 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23982 |
gl_next_as_first_directive='<'stddef.h'>' |
| 23983 |
else |
| 23984 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23985 |
gl_next_as_first_directive=$gl_cv_next_stddef_h |
| 23986 |
fi |
| 23987 |
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive |
| 23988 |
|
| 23989 |
|
| 23990 |
|
| 23991 |
|
| 23992 |
fi |
| 23993 |
|
| 23994 |
|
| 23995 |
|
| 23996 |
|
| 23997 |
|
| 23998 |
|
| 23999 |
|
| 24000 |
|
| 24001 |
|
| 24002 |
|
| 24003 |
|
| 24004 |
|
| 24005 |
if test $gl_cv_have_include_next = yes; then |
| 24006 |
gl_cv_next_stdio_h='<'stdio.h'>' |
| 24007 |
else |
| 24008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 |
| 24009 |
$as_echo_n "checking absolute name of <stdio.h>... " >&6; } |
| 24010 |
if ${gl_cv_next_stdio_h+:} false; then : |
| 24011 |
$as_echo_n "(cached) " >&6 |
| 24012 |
else |
| 24013 |
|
| 24014 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24015 |
/* end confdefs.h. */ |
| 24016 |
#include <stdio.h> |
| 24017 |
|
| 24018 |
_ACEOF |
| 24019 |
case "$host_os" in |
| 24020 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 24021 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 24022 |
esac |
| 24023 |
|
| 24024 |
case "$host_os" in |
| 24025 |
mingw*) |
| 24026 |
gl_dirsep_regex='[/\\]' |
| 24027 |
;; |
| 24028 |
*) |
| 24029 |
gl_dirsep_regex='\/' |
| 24030 |
;; |
| 24031 |
esac |
| 24032 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 24033 |
|
| 24034 |
gl_header_literal_regex=`echo 'stdio.h' \ |
| 24035 |
| sed -e "$gl_make_literal_regex_sed"` |
| 24036 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 24037 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 24038 |
s|^/[^/]|//&| |
| 24039 |
p |
| 24040 |
q |
| 24041 |
}' |
| 24042 |
gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 24043 |
sed -n "$gl_absolute_header_sed"`'"' |
| 24044 |
|
| 24045 |
|
| 24046 |
fi |
| 24047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 |
| 24048 |
$as_echo "$gl_cv_next_stdio_h" >&6; } |
| 24049 |
fi |
| 24050 |
NEXT_STDIO_H=$gl_cv_next_stdio_h |
| 24051 |
|
| 24052 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 24053 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 24054 |
gl_next_as_first_directive='<'stdio.h'>' |
| 24055 |
else |
| 24056 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 24057 |
gl_next_as_first_directive=$gl_cv_next_stdio_h |
| 24058 |
fi |
| 24059 |
NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive |
| 24060 |
|
| 24061 |
|
| 24062 |
|
| 24063 |
|
| 24064 |
|
| 24065 |
GNULIB_FSCANF=1 |
| 24066 |
|
| 24067 |
|
| 24068 |
cat >>confdefs.h <<_ACEOF |
| 24069 |
#define GNULIB_FSCANF 1 |
| 24070 |
_ACEOF |
| 24071 |
|
| 24072 |
|
| 24073 |
GNULIB_SCANF=1 |
| 24074 |
|
| 24075 |
|
| 24076 |
cat >>confdefs.h <<_ACEOF |
| 24077 |
#define GNULIB_SCANF 1 |
| 24078 |
_ACEOF |
| 24079 |
|
| 24080 |
|
| 24081 |
GNULIB_FGETC=1 |
| 24082 |
GNULIB_GETC=1 |
| 24083 |
GNULIB_GETCHAR=1 |
| 24084 |
GNULIB_FGETS=1 |
| 24085 |
GNULIB_FREAD=1 |
| 24086 |
|
| 24087 |
|
| 24088 |
GNULIB_FPRINTF=1 |
| 24089 |
GNULIB_PRINTF=1 |
| 24090 |
GNULIB_VFPRINTF=1 |
| 24091 |
GNULIB_VPRINTF=1 |
| 24092 |
GNULIB_FPUTC=1 |
| 24093 |
GNULIB_PUTC=1 |
| 24094 |
GNULIB_PUTCHAR=1 |
| 24095 |
GNULIB_FPUTS=1 |
| 24096 |
GNULIB_PUTS=1 |
| 24097 |
GNULIB_FWRITE=1 |
| 24098 |
|
| 24099 |
|
| 24100 |
|
| 24101 |
|
| 24102 |
if test $gl_cv_header_signal_h_SIGPIPE != yes; then |
| 24103 |
REPLACE_STDIO_WRITE_FUNCS=1 |
| 24104 |
|
| 24105 |
|
| 24106 |
|
| 24107 |
|
| 24108 |
|
| 24109 |
|
| 24110 |
|
| 24111 |
|
| 24112 |
gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext" |
| 24113 |
|
| 24114 |
fi |
| 24115 |
|
| 24116 |
|
| 24117 |
|
| 24118 |
|
| 24119 |
for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do |
| 24120 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 24121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 24122 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 24123 |
if eval \${$as_gl_Symbol+:} false; then : |
| 24124 |
$as_echo_n "(cached) " >&6 |
| 24125 |
else |
| 24126 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24127 |
/* end confdefs.h. */ |
| 24128 |
#include <stdio.h> |
| 24129 |
|
| 24130 |
int |
| 24131 |
main () |
| 24132 |
{ |
| 24133 |
#undef $gl_func |
| 24134 |
(void) $gl_func; |
| 24135 |
; |
| 24136 |
return 0; |
| 24137 |
} |
| 24138 |
_ACEOF |
| 24139 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 24140 |
eval "$as_gl_Symbol=yes" |
| 24141 |
else |
| 24142 |
eval "$as_gl_Symbol=no" |
| 24143 |
fi |
| 24144 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24145 |
fi |
| 24146 |
eval ac_res=\$$as_gl_Symbol |
| 24147 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 24148 |
$as_echo "$ac_res" >&6; } |
| 24149 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 24150 |
cat >>confdefs.h <<_ACEOF |
| 24151 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 24152 |
_ACEOF |
| 24153 |
|
| 24154 |
eval ac_cv_have_decl_$gl_func=yes |
| 24155 |
fi |
| 24156 |
done |
| 24157 |
|
| 24158 |
|
| 24159 |
|
| 24160 |
|
| 24161 |
|
| 24162 |
|
| 24163 |
|
| 24164 |
|
| 24165 |
|
| 24166 |
|
| 24167 |
|
| 24168 |
|
| 24169 |
if test $gl_cv_have_include_next = yes; then |
| 24170 |
gl_cv_next_stdlib_h='<'stdlib.h'>' |
| 24171 |
else |
| 24172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 |
| 24173 |
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } |
| 24174 |
if ${gl_cv_next_stdlib_h+:} false; then : |
| 24175 |
$as_echo_n "(cached) " >&6 |
| 24176 |
else |
| 24177 |
|
| 24178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24179 |
/* end confdefs.h. */ |
| 24180 |
#include <stdlib.h> |
| 24181 |
|
| 24182 |
_ACEOF |
| 24183 |
case "$host_os" in |
| 24184 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 24185 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 24186 |
esac |
| 24187 |
|
| 24188 |
case "$host_os" in |
| 24189 |
mingw*) |
| 24190 |
gl_dirsep_regex='[/\\]' |
| 24191 |
;; |
| 24192 |
*) |
| 24193 |
gl_dirsep_regex='\/' |
| 24194 |
;; |
| 24195 |
esac |
| 24196 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 24197 |
|
| 24198 |
gl_header_literal_regex=`echo 'stdlib.h' \ |
| 24199 |
| sed -e "$gl_make_literal_regex_sed"` |
| 24200 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 24201 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 24202 |
s|^/[^/]|//&| |
| 24203 |
p |
| 24204 |
q |
| 24205 |
}' |
| 24206 |
gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 24207 |
sed -n "$gl_absolute_header_sed"`'"' |
| 24208 |
|
| 24209 |
|
| 24210 |
fi |
| 24211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 |
| 24212 |
$as_echo "$gl_cv_next_stdlib_h" >&6; } |
| 24213 |
fi |
| 24214 |
NEXT_STDLIB_H=$gl_cv_next_stdlib_h |
| 24215 |
|
| 24216 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 24217 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 24218 |
gl_next_as_first_directive='<'stdlib.h'>' |
| 24219 |
else |
| 24220 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 24221 |
gl_next_as_first_directive=$gl_cv_next_stdlib_h |
| 24222 |
fi |
| 24223 |
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive |
| 24224 |
|
| 24225 |
|
| 24226 |
|
| 24227 |
|
| 24228 |
|
| 24229 |
|
| 24230 |
for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do |
| 24231 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 24232 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 24233 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 24234 |
if eval \${$as_gl_Symbol+:} false; then : |
| 24235 |
$as_echo_n "(cached) " >&6 |
| 24236 |
else |
| 24237 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24238 |
/* end confdefs.h. */ |
| 24239 |
#include <stdlib.h> |
| 24240 |
#if HAVE_SYS_LOADAVG_H |
| 24241 |
# include <sys/loadavg.h> |
| 24242 |
#endif |
| 24243 |
#if HAVE_RANDOM_H |
| 24244 |
# include <random.h> |
| 24245 |
#endif |
| 24246 |
|
| 24247 |
int |
| 24248 |
main () |
| 24249 |
{ |
| 24250 |
#undef $gl_func |
| 24251 |
(void) $gl_func; |
| 24252 |
; |
| 24253 |
return 0; |
| 24254 |
} |
| 24255 |
_ACEOF |
| 24256 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 24257 |
eval "$as_gl_Symbol=yes" |
| 24258 |
else |
| 24259 |
eval "$as_gl_Symbol=no" |
| 24260 |
fi |
| 24261 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24262 |
fi |
| 24263 |
eval ac_res=\$$as_gl_Symbol |
| 24264 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 24265 |
$as_echo "$ac_res" >&6; } |
| 24266 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 24267 |
cat >>confdefs.h <<_ACEOF |
| 24268 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 24269 |
_ACEOF |
| 24270 |
|
| 24271 |
eval ac_cv_have_decl_$gl_func=yes |
| 24272 |
fi |
| 24273 |
done |
| 24274 |
|
| 24275 |
|
| 24276 |
|
| 24277 |
|
| 24278 |
|
| 24279 |
|
| 24280 |
if test $ac_cv_func_strdup = yes; then |
| 24281 |
if test $gl_cv_func_malloc_posix != yes; then |
| 24282 |
REPLACE_STRDUP=1 |
| 24283 |
fi |
| 24284 |
fi |
| 24285 |
|
| 24286 |
if test $ac_cv_have_decl_strdup = no; then |
| 24287 |
HAVE_DECL_STRDUP=0 |
| 24288 |
fi |
| 24289 |
|
| 24290 |
if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then |
| 24291 |
|
| 24292 |
|
| 24293 |
|
| 24294 |
|
| 24295 |
|
| 24296 |
|
| 24297 |
|
| 24298 |
|
| 24299 |
gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext" |
| 24300 |
|
| 24301 |
: |
| 24302 |
fi |
| 24303 |
|
| 24304 |
|
| 24305 |
|
| 24306 |
|
| 24307 |
|
| 24308 |
GNULIB_STRDUP=1 |
| 24309 |
|
| 24310 |
|
| 24311 |
|
| 24312 |
|
| 24313 |
|
| 24314 |
$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h |
| 24315 |
|
| 24316 |
|
| 24317 |
|
| 24318 |
|
| 24319 |
|
| 24320 |
|
| 24321 |
|
| 24322 |
|
| 24323 |
if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then |
| 24324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 |
| 24325 |
$as_echo_n "checking for working strerror function... " >&6; } |
| 24326 |
if ${gl_cv_func_working_strerror+:} false; then : |
| 24327 |
$as_echo_n "(cached) " >&6 |
| 24328 |
else |
| 24329 |
if test "$cross_compiling" = yes; then : |
| 24330 |
case "$host_os" in |
| 24331 |
# Guess yes on glibc systems. |
| 24332 |
*-gnu*) gl_cv_func_working_strerror="guessing yes" ;; |
| 24333 |
# If we don't know, assume the worst. |
| 24334 |
*) gl_cv_func_working_strerror="guessing no" ;; |
| 24335 |
esac |
| 24336 |
|
| 24337 |
else |
| 24338 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24339 |
/* end confdefs.h. */ |
| 24340 |
#include <string.h> |
| 24341 |
|
| 24342 |
int |
| 24343 |
main () |
| 24344 |
{ |
| 24345 |
if (!*strerror (-2)) return 1; |
| 24346 |
; |
| 24347 |
return 0; |
| 24348 |
} |
| 24349 |
_ACEOF |
| 24350 |
if ac_fn_c_try_run "$LINENO"; then : |
| 24351 |
gl_cv_func_working_strerror=yes |
| 24352 |
else |
| 24353 |
gl_cv_func_working_strerror=no |
| 24354 |
fi |
| 24355 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24356 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24357 |
fi |
| 24358 |
|
| 24359 |
|
| 24360 |
fi |
| 24361 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 |
| 24362 |
$as_echo "$gl_cv_func_working_strerror" >&6; } |
| 24363 |
case "$gl_cv_func_working_strerror" in |
| 24364 |
*yes) ;; |
| 24365 |
*) |
| 24366 |
REPLACE_STRERROR=1 |
| 24367 |
;; |
| 24368 |
esac |
| 24369 |
|
| 24370 |
else |
| 24371 |
REPLACE_STRERROR=1 |
| 24372 |
fi |
| 24373 |
|
| 24374 |
if test $REPLACE_STRERROR = 1; then |
| 24375 |
|
| 24376 |
|
| 24377 |
|
| 24378 |
|
| 24379 |
|
| 24380 |
|
| 24381 |
|
| 24382 |
|
| 24383 |
gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" |
| 24384 |
|
| 24385 |
fi |
| 24386 |
|
| 24387 |
|
| 24388 |
cat >>confdefs.h <<_ACEOF |
| 24389 |
#define GNULIB_STRERROR 1 |
| 24390 |
_ACEOF |
| 24391 |
|
| 24392 |
|
| 24393 |
|
| 24394 |
|
| 24395 |
|
| 24396 |
|
| 24397 |
|
| 24398 |
GNULIB_STRERROR=1 |
| 24399 |
|
| 24400 |
|
| 24401 |
|
| 24402 |
|
| 24403 |
|
| 24404 |
$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h |
| 24405 |
|
| 24406 |
|
| 24407 |
|
| 24408 |
|
| 24409 |
|
| 24410 |
if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then |
| 24411 |
|
| 24412 |
|
| 24413 |
|
| 24414 |
|
| 24415 |
|
| 24416 |
|
| 24417 |
|
| 24418 |
|
| 24419 |
gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" |
| 24420 |
|
| 24421 |
|
| 24422 |
|
| 24423 |
|
| 24424 |
|
| 24425 |
if test $ac_cv_header_sys_socket_h != yes; then |
| 24426 |
for ac_header in winsock2.h |
| 24427 |
do : |
| 24428 |
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 24429 |
if test "x$ac_cv_header_winsock2_h" = xyes; then : |
| 24430 |
cat >>confdefs.h <<_ACEOF |
| 24431 |
#define HAVE_WINSOCK2_H 1 |
| 24432 |
_ACEOF |
| 24433 |
|
| 24434 |
fi |
| 24435 |
|
| 24436 |
done |
| 24437 |
|
| 24438 |
fi |
| 24439 |
if test "$ac_cv_header_winsock2_h" = yes; then |
| 24440 |
HAVE_WINSOCK2_H=1 |
| 24441 |
UNISTD_H_HAVE_WINSOCK2_H=1 |
| 24442 |
SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 24443 |
else |
| 24444 |
HAVE_WINSOCK2_H=0 |
| 24445 |
fi |
| 24446 |
|
| 24447 |
|
| 24448 |
fi |
| 24449 |
|
| 24450 |
|
| 24451 |
|
| 24452 |
|
| 24453 |
|
| 24454 |
|
| 24455 |
|
| 24456 |
|
| 24457 |
|
| 24458 |
|
| 24459 |
|
| 24460 |
|
| 24461 |
|
| 24462 |
|
| 24463 |
|
| 24464 |
|
| 24465 |
|
| 24466 |
if test $gl_cv_have_include_next = yes; then |
| 24467 |
gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 24468 |
else |
| 24469 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 |
| 24470 |
$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } |
| 24471 |
if ${gl_cv_next_sys_stat_h+:} false; then : |
| 24472 |
$as_echo_n "(cached) " >&6 |
| 24473 |
else |
| 24474 |
|
| 24475 |
if test $ac_cv_header_sys_stat_h = yes; then |
| 24476 |
|
| 24477 |
|
| 24478 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24479 |
/* end confdefs.h. */ |
| 24480 |
#include <sys/stat.h> |
| 24481 |
|
| 24482 |
_ACEOF |
| 24483 |
case "$host_os" in |
| 24484 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 24485 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 24486 |
esac |
| 24487 |
|
| 24488 |
case "$host_os" in |
| 24489 |
mingw*) |
| 24490 |
gl_dirsep_regex='[/\\]' |
| 24491 |
;; |
| 24492 |
*) |
| 24493 |
gl_dirsep_regex='\/' |
| 24494 |
;; |
| 24495 |
esac |
| 24496 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 24497 |
|
| 24498 |
gl_header_literal_regex=`echo 'sys/stat.h' \ |
| 24499 |
| sed -e "$gl_make_literal_regex_sed"` |
| 24500 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 24501 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 24502 |
s|^/[^/]|//&| |
| 24503 |
p |
| 24504 |
q |
| 24505 |
}' |
| 24506 |
gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 24507 |
sed -n "$gl_absolute_header_sed"`'"' |
| 24508 |
else |
| 24509 |
gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 24510 |
fi |
| 24511 |
|
| 24512 |
|
| 24513 |
fi |
| 24514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 |
| 24515 |
$as_echo "$gl_cv_next_sys_stat_h" >&6; } |
| 24516 |
fi |
| 24517 |
NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h |
| 24518 |
|
| 24519 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 24520 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 24521 |
gl_next_as_first_directive='<'sys/stat.h'>' |
| 24522 |
else |
| 24523 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 24524 |
gl_next_as_first_directive=$gl_cv_next_sys_stat_h |
| 24525 |
fi |
| 24526 |
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive |
| 24527 |
|
| 24528 |
|
| 24529 |
|
| 24530 |
|
| 24531 |
|
| 24532 |
|
| 24533 |
|
| 24534 |
|
| 24535 |
|
| 24536 |
|
| 24537 |
|
| 24538 |
if test $WINDOWS_64_BIT_ST_SIZE = 1; then |
| 24539 |
|
| 24540 |
$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h |
| 24541 |
|
| 24542 |
fi |
| 24543 |
|
| 24544 |
ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> |
| 24545 |
#include <sys/stat.h> |
| 24546 |
" |
| 24547 |
if test "x$ac_cv_type_nlink_t" = xyes; then : |
| 24548 |
|
| 24549 |
else |
| 24550 |
|
| 24551 |
$as_echo "#define nlink_t int" >>confdefs.h |
| 24552 |
|
| 24553 |
fi |
| 24554 |
|
| 24555 |
|
| 24556 |
|
| 24557 |
for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do |
| 24558 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 24559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 24560 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 24561 |
if eval \${$as_gl_Symbol+:} false; then : |
| 24562 |
$as_echo_n "(cached) " >&6 |
| 24563 |
else |
| 24564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24565 |
/* end confdefs.h. */ |
| 24566 |
#include <sys/stat.h> |
| 24567 |
|
| 24568 |
int |
| 24569 |
main () |
| 24570 |
{ |
| 24571 |
#undef $gl_func |
| 24572 |
(void) $gl_func; |
| 24573 |
; |
| 24574 |
return 0; |
| 24575 |
} |
| 24576 |
_ACEOF |
| 24577 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 24578 |
eval "$as_gl_Symbol=yes" |
| 24579 |
else |
| 24580 |
eval "$as_gl_Symbol=no" |
| 24581 |
fi |
| 24582 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24583 |
fi |
| 24584 |
eval ac_res=\$$as_gl_Symbol |
| 24585 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 24586 |
$as_echo "$ac_res" >&6; } |
| 24587 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 24588 |
cat >>confdefs.h <<_ACEOF |
| 24589 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 24590 |
_ACEOF |
| 24591 |
|
| 24592 |
eval ac_cv_have_decl_$gl_func=yes |
| 24593 |
fi |
| 24594 |
done |
| 24595 |
|
| 24596 |
|
| 24597 |
|
| 24598 |
|
| 24599 |
|
| 24600 |
|
| 24601 |
|
| 24602 |
|
| 24603 |
|
| 24604 |
|
| 24605 |
|
| 24606 |
|
| 24607 |
|
| 24608 |
|
| 24609 |
|
| 24610 |
|
| 24611 |
|
| 24612 |
|
| 24613 |
|
| 24614 |
|
| 24615 |
if test $gl_cv_have_include_next = yes; then |
| 24616 |
gl_cv_next_unistd_h='<'unistd.h'>' |
| 24617 |
else |
| 24618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 |
| 24619 |
$as_echo_n "checking absolute name of <unistd.h>... " >&6; } |
| 24620 |
if ${gl_cv_next_unistd_h+:} false; then : |
| 24621 |
$as_echo_n "(cached) " >&6 |
| 24622 |
else |
| 24623 |
|
| 24624 |
if test $ac_cv_header_unistd_h = yes; then |
| 24625 |
|
| 24626 |
|
| 24627 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24628 |
/* end confdefs.h. */ |
| 24629 |
#include <unistd.h> |
| 24630 |
|
| 24631 |
_ACEOF |
| 24632 |
case "$host_os" in |
| 24633 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 24634 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 24635 |
esac |
| 24636 |
|
| 24637 |
case "$host_os" in |
| 24638 |
mingw*) |
| 24639 |
gl_dirsep_regex='[/\\]' |
| 24640 |
;; |
| 24641 |
*) |
| 24642 |
gl_dirsep_regex='\/' |
| 24643 |
;; |
| 24644 |
esac |
| 24645 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 24646 |
|
| 24647 |
gl_header_literal_regex=`echo 'unistd.h' \ |
| 24648 |
| sed -e "$gl_make_literal_regex_sed"` |
| 24649 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 24650 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 24651 |
s|^/[^/]|//&| |
| 24652 |
p |
| 24653 |
q |
| 24654 |
}' |
| 24655 |
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 24656 |
sed -n "$gl_absolute_header_sed"`'"' |
| 24657 |
else |
| 24658 |
gl_cv_next_unistd_h='<'unistd.h'>' |
| 24659 |
fi |
| 24660 |
|
| 24661 |
|
| 24662 |
fi |
| 24663 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 |
| 24664 |
$as_echo "$gl_cv_next_unistd_h" >&6; } |
| 24665 |
fi |
| 24666 |
NEXT_UNISTD_H=$gl_cv_next_unistd_h |
| 24667 |
|
| 24668 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 24669 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 24670 |
gl_next_as_first_directive='<'unistd.h'>' |
| 24671 |
else |
| 24672 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 24673 |
gl_next_as_first_directive=$gl_cv_next_unistd_h |
| 24674 |
fi |
| 24675 |
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive |
| 24676 |
|
| 24677 |
|
| 24678 |
|
| 24679 |
|
| 24680 |
if test $ac_cv_header_unistd_h = yes; then |
| 24681 |
HAVE_UNISTD_H=1 |
| 24682 |
else |
| 24683 |
HAVE_UNISTD_H=0 |
| 24684 |
fi |
| 24685 |
|
| 24686 |
|
| 24687 |
|
| 24688 |
|
| 24689 |
|
| 24690 |
|
| 24691 |
|
| 24692 |
for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do |
| 24693 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 24694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 24695 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 24696 |
if eval \${$as_gl_Symbol+:} false; then : |
| 24697 |
$as_echo_n "(cached) " >&6 |
| 24698 |
else |
| 24699 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24700 |
/* end confdefs.h. */ |
| 24701 |
|
| 24702 |
#if HAVE_UNISTD_H |
| 24703 |
# include <unistd.h> |
| 24704 |
#endif |
| 24705 |
/* Some systems declare various items in the wrong headers. */ |
| 24706 |
#if !(defined __GLIBC__ && !defined __UCLIBC__) |
| 24707 |
# include <fcntl.h> |
| 24708 |
# include <stdio.h> |
| 24709 |
# include <stdlib.h> |
| 24710 |
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 24711 |
# include <io.h> |
| 24712 |
# endif |
| 24713 |
#endif |
| 24714 |
|
| 24715 |
int |
| 24716 |
main () |
| 24717 |
{ |
| 24718 |
#undef $gl_func |
| 24719 |
(void) $gl_func; |
| 24720 |
; |
| 24721 |
return 0; |
| 24722 |
} |
| 24723 |
_ACEOF |
| 24724 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 24725 |
eval "$as_gl_Symbol=yes" |
| 24726 |
else |
| 24727 |
eval "$as_gl_Symbol=no" |
| 24728 |
fi |
| 24729 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24730 |
fi |
| 24731 |
eval ac_res=\$$as_gl_Symbol |
| 24732 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 24733 |
$as_echo "$ac_res" >&6; } |
| 24734 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 24735 |
cat >>confdefs.h <<_ACEOF |
| 24736 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 24737 |
_ACEOF |
| 24738 |
|
| 24739 |
eval ac_cv_have_decl_$gl_func=yes |
| 24740 |
fi |
| 24741 |
done |
| 24742 |
|
| 24743 |
|
| 24744 |
|
| 24745 |
|
| 24746 |
if test $ac_cv_func_vasnprintf = no; then |
| 24747 |
|
| 24748 |
|
| 24749 |
|
| 24750 |
|
| 24751 |
|
| 24752 |
|
| 24753 |
|
| 24754 |
|
| 24755 |
|
| 24756 |
|
| 24757 |
gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" |
| 24758 |
|
| 24759 |
|
| 24760 |
|
| 24761 |
|
| 24762 |
|
| 24763 |
|
| 24764 |
|
| 24765 |
|
| 24766 |
|
| 24767 |
gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" |
| 24768 |
|
| 24769 |
|
| 24770 |
|
| 24771 |
|
| 24772 |
|
| 24773 |
|
| 24774 |
|
| 24775 |
|
| 24776 |
|
| 24777 |
gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" |
| 24778 |
|
| 24779 |
|
| 24780 |
|
| 24781 |
|
| 24782 |
|
| 24783 |
|
| 24784 |
|
| 24785 |
|
| 24786 |
|
| 24787 |
gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" |
| 24788 |
|
| 24789 |
if test $ac_cv_func_vasnprintf = yes; then |
| 24790 |
|
| 24791 |
$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h |
| 24792 |
|
| 24793 |
fi |
| 24794 |
|
| 24795 |
|
| 24796 |
|
| 24797 |
|
| 24798 |
|
| 24799 |
|
| 24800 |
|
| 24801 |
|
| 24802 |
|
| 24803 |
|
| 24804 |
|
| 24805 |
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 24806 |
if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 24807 |
|
| 24808 |
else |
| 24809 |
|
| 24810 |
$as_echo "#define ptrdiff_t long" >>confdefs.h |
| 24811 |
|
| 24812 |
|
| 24813 |
fi |
| 24814 |
|
| 24815 |
|
| 24816 |
|
| 24817 |
|
| 24818 |
|
| 24819 |
|
| 24820 |
|
| 24821 |
fi |
| 24822 |
|
| 24823 |
|
| 24824 |
|
| 24825 |
|
| 24826 |
|
| 24827 |
|
| 24828 |
|
| 24829 |
|
| 24830 |
|
| 24831 |
|
| 24832 |
|
| 24833 |
|
| 24834 |
|
| 24835 |
if test $gl_cv_have_include_next = yes; then |
| 24836 |
gl_cv_next_wchar_h='<'wchar.h'>' |
| 24837 |
else |
| 24838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 |
| 24839 |
$as_echo_n "checking absolute name of <wchar.h>... " >&6; } |
| 24840 |
if ${gl_cv_next_wchar_h+:} false; then : |
| 24841 |
$as_echo_n "(cached) " >&6 |
| 24842 |
else |
| 24843 |
|
| 24844 |
if test $ac_cv_header_wchar_h = yes; then |
| 24845 |
|
| 24846 |
|
| 24847 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24848 |
/* end confdefs.h. */ |
| 24849 |
#include <wchar.h> |
| 24850 |
|
| 24851 |
_ACEOF |
| 24852 |
case "$host_os" in |
| 24853 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 24854 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 24855 |
esac |
| 24856 |
|
| 24857 |
case "$host_os" in |
| 24858 |
mingw*) |
| 24859 |
gl_dirsep_regex='[/\\]' |
| 24860 |
;; |
| 24861 |
*) |
| 24862 |
gl_dirsep_regex='\/' |
| 24863 |
;; |
| 24864 |
esac |
| 24865 |
gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 24866 |
|
| 24867 |
gl_header_literal_regex=`echo 'wchar.h' \ |
| 24868 |
| sed -e "$gl_make_literal_regex_sed"` |
| 24869 |
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 24870 |
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 24871 |
s|^/[^/]|//&| |
| 24872 |
p |
| 24873 |
q |
| 24874 |
}' |
| 24875 |
gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 24876 |
sed -n "$gl_absolute_header_sed"`'"' |
| 24877 |
else |
| 24878 |
gl_cv_next_wchar_h='<'wchar.h'>' |
| 24879 |
fi |
| 24880 |
|
| 24881 |
|
| 24882 |
fi |
| 24883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 |
| 24884 |
$as_echo "$gl_cv_next_wchar_h" >&6; } |
| 24885 |
fi |
| 24886 |
NEXT_WCHAR_H=$gl_cv_next_wchar_h |
| 24887 |
|
| 24888 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 24889 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 24890 |
gl_next_as_first_directive='<'wchar.h'>' |
| 24891 |
else |
| 24892 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 24893 |
gl_next_as_first_directive=$gl_cv_next_wchar_h |
| 24894 |
fi |
| 24895 |
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive |
| 24896 |
|
| 24897 |
|
| 24898 |
|
| 24899 |
|
| 24900 |
if test $ac_cv_header_wchar_h = yes; then |
| 24901 |
HAVE_WCHAR_H=1 |
| 24902 |
else |
| 24903 |
HAVE_WCHAR_H=0 |
| 24904 |
fi |
| 24905 |
|
| 24906 |
|
| 24907 |
|
| 24908 |
|
| 24909 |
|
| 24910 |
if test $gt_cv_c_wint_t = yes; then |
| 24911 |
HAVE_WINT_T=1 |
| 24912 |
else |
| 24913 |
HAVE_WINT_T=0 |
| 24914 |
fi |
| 24915 |
|
| 24916 |
|
| 24917 |
|
| 24918 |
for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do |
| 24919 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 24920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 24921 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 24922 |
if eval \${$as_gl_Symbol+:} false; then : |
| 24923 |
$as_echo_n "(cached) " >&6 |
| 24924 |
else |
| 24925 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24926 |
/* end confdefs.h. */ |
| 24927 |
|
| 24928 |
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 24929 |
<wchar.h>. |
| 24930 |
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 24931 |
included before <wchar.h>. */ |
| 24932 |
#if !(defined __GLIBC__ && !defined __UCLIBC__) |
| 24933 |
# include <stddef.h> |
| 24934 |
# include <stdio.h> |
| 24935 |
# include <time.h> |
| 24936 |
#endif |
| 24937 |
#include <wchar.h> |
| 24938 |
|
| 24939 |
int |
| 24940 |
main () |
| 24941 |
{ |
| 24942 |
#undef $gl_func |
| 24943 |
(void) $gl_func; |
| 24944 |
; |
| 24945 |
return 0; |
| 24946 |
} |
| 24947 |
_ACEOF |
| 24948 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 24949 |
eval "$as_gl_Symbol=yes" |
| 24950 |
else |
| 24951 |
eval "$as_gl_Symbol=no" |
| 24952 |
fi |
| 24953 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24954 |
fi |
| 24955 |
eval ac_res=\$$as_gl_Symbol |
| 24956 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 24957 |
$as_echo "$ac_res" >&6; } |
| 24958 |
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : |
| 24959 |
cat >>confdefs.h <<_ACEOF |
| 24960 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 24961 |
_ACEOF |
| 24962 |
|
| 24963 |
eval ac_cv_have_decl_$gl_func=yes |
| 24964 |
fi |
| 24965 |
done |
| 24966 |
|
| 24967 |
|
| 24968 |
|
| 24969 |
|
| 24970 |
|
| 24971 |
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 24972 |
REPLACE_WRITE=1 |
| 24973 |
fi |
| 24974 |
|
| 24975 |
|
| 24976 |
|
| 24977 |
|
| 24978 |
if test $gl_cv_header_signal_h_SIGPIPE != yes; then |
| 24979 |
REPLACE_WRITE=1 |
| 24980 |
fi |
| 24981 |
|
| 24982 |
|
| 24983 |
|
| 24984 |
if test $REPLACE_WRITE = 1; then |
| 24985 |
|
| 24986 |
|
| 24987 |
|
| 24988 |
|
| 24989 |
|
| 24990 |
|
| 24991 |
|
| 24992 |
|
| 24993 |
gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext" |
| 24994 |
|
| 24995 |
: |
| 24996 |
fi |
| 24997 |
|
| 24998 |
|
| 24999 |
|
| 25000 |
|
| 25001 |
|
| 25002 |
GNULIB_WRITE=1 |
| 25003 |
|
| 25004 |
|
| 25005 |
|
| 25006 |
|
| 25007 |
|
| 25008 |
$as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h |
| 25009 |
|
| 25010 |
|
| 25011 |
|
| 25012 |
|
| 25013 |
|
| 25014 |
for ac_header in stdint.h |
| 25015 |
do : |
| 25016 |
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 25017 |
if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 25018 |
cat >>confdefs.h <<_ACEOF |
| 25019 |
#define HAVE_STDINT_H 1 |
| 25020 |
_ACEOF |
| 25021 |
|
| 25022 |
fi |
| 25023 |
|
| 25024 |
done |
| 25025 |
|
| 25026 |
|
| 25027 |
# End of code from modules |
| 25028 |
|
| 25029 |
|
| 25030 |
|
| 25031 |
|
| 25032 |
|
| 25033 |
|
| 25034 |
|
| 25035 |
|
| 25036 |
|
| 25037 |
gltests_libdeps= |
| 25038 |
gltests_ltlibdeps= |
| 25039 |
|
| 25040 |
|
| 25041 |
|
| 25042 |
|
| 25043 |
|
| 25044 |
|
| 25045 |
|
| 25046 |
|
| 25047 |
|
| 25048 |
gl_source_base='tests' |
| 25049 |
gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS |
| 25050 |
|
| 25051 |
gl_module_indicator_condition=$gltests_WITNESS |
| 25052 |
|
| 25053 |
|
| 25054 |
|
| 25055 |
|
| 25056 |
|
| 25057 |
|
| 25058 |
|
| 25059 |
|
| 25060 |
|
| 25061 |
|
| 25062 |
|
| 25063 |
ac_fn_c_check_header_mongrel "$LINENO" "paper.h" "ac_cv_header_paper_h" "$ac_includes_default" |
| 25064 |
if test "x$ac_cv_header_paper_h" = xyes; then : |
| 25065 |
LIBPAPER=-lpaper |
| 25066 |
else |
| 25067 |
NO_LIBPAPER=-DNO_LIBPAPER |
| 25068 |
fi |
| 25069 |
|
| 25070 |
|
| 25071 |
for ac_header in unistd.h |
| 25072 |
do : |
| 25073 |
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| 25074 |
if test "x$ac_cv_header_unistd_h" = xyes; then : |
| 25075 |
cat >>confdefs.h <<_ACEOF |
| 25076 |
#define HAVE_UNISTD_H 1 |
| 25077 |
_ACEOF |
| 25078 |
|
| 25079 |
fi |
| 25080 |
|
| 25081 |
done |
| 25082 |
|
| 25083 |
|
| 25084 |
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 25085 |
if test "x$ac_cv_func_strerror" = xyes; then : |
| 25086 |
|
| 25087 |
else |
| 25088 |
NO_STRERROR=-DNO_STRERROR |
| 25089 |
fi |
| 25090 |
|
| 25091 |
for ac_func in strcasecmp |
| 25092 |
do : |
| 25093 |
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 25094 |
if test "x$ac_cv_func_strcasecmp" = xyes; then : |
| 25095 |
cat >>confdefs.h <<_ACEOF |
| 25096 |
#define HAVE_STRCASECMP 1 |
| 25097 |
_ACEOF |
| 25098 |
|
| 25099 |
fi |
| 25100 |
done |
| 25101 |
|
| 25102 |
|
| 25103 |
|
| 25104 |
|
| 25105 |
|
| 25106 |
|
| 25107 |
|
| 25108 |
|
| 25109 |
|
| 25110 |
|
| 25111 |
|
| 25112 |
|
| 25113 |
|
| 25114 |
ac_config_files="$ac_config_files Makefile po/Makefile.in lib/Makefile doc/Makefile" |
| 25115 |
|
| 25116 |
|
| 25117 |
cat >confcache <<\_ACEOF |
| 25118 |
# This file is a shell script that caches the results of configure |
| 25119 |
# tests run on this system so they can be shared between configure |
| 25120 |
# scripts and configure runs, see configure's option --config-cache. |
| 25121 |
# It is not useful on other systems. If it contains results you don't |
| 25122 |
# want to keep, you may remove or edit it. |
| 25123 |
# |
| 25124 |
# config.status only pays attention to the cache file if you give it |
| 25125 |
# the --recheck option to rerun configure. |
| 25126 |
# |
| 25127 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 25128 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 25129 |
# following values. |
| 25130 |
|
| 25131 |
_ACEOF |
| 25132 |
|
| 25133 |
# The following way of writing the cache mishandles newlines in values, |
| 25134 |
# but we know of no workaround that is simple, portable, and efficient. |
| 25135 |
# So, we kill variables containing newlines. |
| 25136 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 25137 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 25138 |
( |
| 25139 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 25140 |
eval ac_val=\$$ac_var |
| 25141 |
case $ac_val in #( |
| 25142 |
*${as_nl}*) |
| 25143 |
case $ac_var in #( |
| 25144 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 25145 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 25146 |
esac |
| 25147 |
case $ac_var in #( |
| 25148 |
_ | IFS | as_nl) ;; #( |
| 25149 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 25150 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 25151 |
esac ;; |
| 25152 |
esac |
| 25153 |
done |
| 25154 |
|
| 25155 |
(set) 2>&1 | |
| 25156 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 25157 |
*${as_nl}ac_space=\ *) |
| 25158 |
# `set' does not quote correctly, so add quotes: double-quote |
| 25159 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 25160 |
sed -n \ |
| 25161 |
"s/'/'\\\\''/g; |
| 25162 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 25163 |
;; #( |
| 25164 |
*) |
| 25165 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 25166 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 25167 |
;; |
| 25168 |
esac | |
| 25169 |
sort |
| 25170 |
) | |
| 25171 |
sed ' |
| 25172 |
/^ac_cv_env_/b end |
| 25173 |
t clear |
| 25174 |
:clear |
| 25175 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25176 |
t end |
| 25177 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25178 |
:end' >>confcache |
| 25179 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 25180 |
if test -w "$cache_file"; then |
| 25181 |
if test "x$cache_file" != "x/dev/null"; then |
| 25182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 25183 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 25184 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 25185 |
cat confcache >"$cache_file" |
| 25186 |
else |
| 25187 |
case $cache_file in #( |
| 25188 |
*/* | ?:*) |
| 25189 |
mv -f confcache "$cache_file"$$ && |
| 25190 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 25191 |
*) |
| 25192 |
mv -f confcache "$cache_file" ;; |
| 25193 |
esac |
| 25194 |
fi |
| 25195 |
fi |
| 25196 |
else |
| 25197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 25198 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 25199 |
fi |
| 25200 |
fi |
| 25201 |
rm -f confcache |
| 25202 |
|
| 25203 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25204 |
# Let make expand exec_prefix. |
| 25205 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 25206 |
|
| 25207 |
DEFS=-DHAVE_CONFIG_H |
| 25208 |
|
| 25209 |
ac_libobjs= |
| 25210 |
ac_ltlibobjs= |
| 25211 |
U= |
| 25212 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25213 |
# 1. Remove the extension, and $U if already installed. |
| 25214 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 25215 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 25216 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 25217 |
# will be set to the directory where LIBOBJS objects are built. |
| 25218 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 25219 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 25220 |
done |
| 25221 |
LIBOBJS=$ac_libobjs |
| 25222 |
|
| 25223 |
LTLIBOBJS=$ac_ltlibobjs |
| 25224 |
|
| 25225 |
|
| 25226 |
if test -n "$EXEEXT"; then |
| 25227 |
am__EXEEXT_TRUE= |
| 25228 |
am__EXEEXT_FALSE='#' |
| 25229 |
else |
| 25230 |
am__EXEEXT_TRUE='#' |
| 25231 |
am__EXEEXT_FALSE= |
| 25232 |
fi |
| 25233 |
|
| 25234 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 25235 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 25236 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25237 |
fi |
| 25238 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 25239 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 25240 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25241 |
fi |
| 25242 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 25243 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 25244 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25245 |
fi |
| 25246 |
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 25247 |
as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. |
| 25248 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25249 |
fi |
| 25250 |
if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then |
| 25251 |
as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. |
| 25252 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25253 |
fi |
| 25254 |
if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then |
| 25255 |
as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. |
| 25256 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25257 |
fi |
| 25258 |
if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then |
| 25259 |
as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined. |
| 25260 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25261 |
fi |
| 25262 |
if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then |
| 25263 |
as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. |
| 25264 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25265 |
fi |
| 25266 |
if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then |
| 25267 |
as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. |
| 25268 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25269 |
fi |
| 25270 |
if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then |
| 25271 |
as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. |
| 25272 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25273 |
fi |
| 25274 |
|
| 25275 |
|
| 25276 |
gl_libobjs= |
| 25277 |
gl_ltlibobjs= |
| 25278 |
if test -n "$gl_LIBOBJS"; then |
| 25279 |
# Remove the extension. |
| 25280 |
sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 25281 |
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 25282 |
gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 25283 |
gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 25284 |
done |
| 25285 |
fi |
| 25286 |
gl_LIBOBJS=$gl_libobjs |
| 25287 |
|
| 25288 |
gl_LTLIBOBJS=$gl_ltlibobjs |
| 25289 |
|
| 25290 |
|
| 25291 |
|
| 25292 |
gltests_libobjs= |
| 25293 |
gltests_ltlibobjs= |
| 25294 |
if test -n "$gltests_LIBOBJS"; then |
| 25295 |
# Remove the extension. |
| 25296 |
sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 25297 |
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 25298 |
gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 25299 |
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 25300 |
done |
| 25301 |
fi |
| 25302 |
gltests_LIBOBJS=$gltests_libobjs |
| 25303 |
|
| 25304 |
gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 25305 |
|
| 25306 |
|
| 25307 |
|
| 25308 |
: "${CONFIG_STATUS=./config.status}" |
| 25309 |
ac_write_fail=0 |
| 25310 |
ac_clean_files_save=$ac_clean_files |
| 25311 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 25312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 25313 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25314 |
as_write_fail=0 |
| 25315 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 25316 |
#! $SHELL |
| 25317 |
# Generated by $as_me. |
| 25318 |
# Run this file to recreate the current configuration. |
| 25319 |
# Compiler output produced by configure, useful for debugging |
| 25320 |
# configure, is in config.log if it exists. |
| 25321 |
|
| 25322 |
debug=false |
| 25323 |
ac_cs_recheck=false |
| 25324 |
ac_cs_silent=false |
| 25325 |
|
| 25326 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 25327 |
export SHELL |
| 25328 |
_ASEOF |
| 25329 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 25330 |
## -------------------- ## |
| 25331 |
## M4sh Initialization. ## |
| 25332 |
## -------------------- ## |
| 25333 |
|
| 25334 |
# Be more Bourne compatible |
| 25335 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 25336 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 25337 |
emulate sh |
| 25338 |
NULLCMD=: |
| 25339 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25340 |
# is contrary to our usage. Disable this feature. |
| 25341 |
alias -g '${1+"$@"}'='"$@"' |
| 25342 |
setopt NO_GLOB_SUBST |
| 25343 |
else |
| 25344 |
case `(set -o) 2>/dev/null` in #( |
| 25345 |
*posix*) : |
| 25346 |
set -o posix ;; #( |
| 25347 |
*) : |
| 25348 |
;; |
| 25349 |
esac |
| 25350 |
fi |
| 25351 |
|
| 25352 |
|
| 25353 |
as_nl=' |
| 25354 |
' |
| 25355 |
export as_nl |
| 25356 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 25357 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 25358 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 25359 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 25360 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 25361 |
# but without wasting forks for bash or zsh. |
| 25362 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 25363 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 25364 |
as_echo='print -r --' |
| 25365 |
as_echo_n='print -rn --' |
| 25366 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 25367 |
as_echo='printf %s\n' |
| 25368 |
as_echo_n='printf %s' |
| 25369 |
else |
| 25370 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 25371 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 25372 |
as_echo_n='/usr/ucb/echo -n' |
| 25373 |
else |
| 25374 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 25375 |
as_echo_n_body='eval |
| 25376 |
arg=$1; |
| 25377 |
case $arg in #( |
| 25378 |
*"$as_nl"*) |
| 25379 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 25380 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 25381 |
esac; |
| 25382 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 25383 |
' |
| 25384 |
export as_echo_n_body |
| 25385 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 25386 |
fi |
| 25387 |
export as_echo_body |
| 25388 |
as_echo='sh -c $as_echo_body as_echo' |
| 25389 |
fi |
| 25390 |
|
| 25391 |
# The user is always right. |
| 25392 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 25393 |
PATH_SEPARATOR=: |
| 25394 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 25395 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 25396 |
PATH_SEPARATOR=';' |
| 25397 |
} |
| 25398 |
fi |
| 25399 |
|
| 25400 |
|
| 25401 |
# IFS |
| 25402 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 25403 |
# there to prevent editors from complaining about space-tab. |
| 25404 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25405 |
# splitting by setting IFS to empty value.) |
| 25406 |
IFS=" "" $as_nl" |
| 25407 |
|
| 25408 |
# Find who we are. Look in the path if we contain no directory separator. |
| 25409 |
as_myself= |
| 25410 |
case $0 in #(( |
| 25411 |
*[\\/]* ) as_myself=$0 ;; |
| 25412 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25413 |
for as_dir in $PATH |
| 25414 |
do |
| 25415 |
IFS=$as_save_IFS |
| 25416 |
test -z "$as_dir" && as_dir=. |
| 25417 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25418 |
done |
| 25419 |
IFS=$as_save_IFS |
| 25420 |
|
| 25421 |
;; |
| 25422 |
esac |
| 25423 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25424 |
# in which case we are not to be found in the path. |
| 25425 |
if test "x$as_myself" = x; then |
| 25426 |
as_myself=$0 |
| 25427 |
fi |
| 25428 |
if test ! -f "$as_myself"; then |
| 25429 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 25430 |
exit 1 |
| 25431 |
fi |
| 25432 |
|
| 25433 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 25434 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 25435 |
# suppresses any "Segmentation fault" message there. '((' could |
| 25436 |
# trigger a bug in pdksh 5.2.14. |
| 25437 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 25438 |
do eval test x\${$as_var+set} = xset \ |
| 25439 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 25440 |
done |
| 25441 |
PS1='$ ' |
| 25442 |
PS2='> ' |
| 25443 |
PS4='+ ' |
| 25444 |
|
| 25445 |
# NLS nuisances. |
| 25446 |
LC_ALL=C |
| 25447 |
export LC_ALL |
| 25448 |
LANGUAGE=C |
| 25449 |
export LANGUAGE |
| 25450 |
|
| 25451 |
# CDPATH. |
| 25452 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 25453 |
|
| 25454 |
|
| 25455 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 25456 |
# ---------------------------------------- |
| 25457 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 25458 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 25459 |
# script with STATUS, using 1 if that was 0. |
| 25460 |
as_fn_error () |
| 25461 |
{ |
| 25462 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 25463 |
if test "$4"; then |
| 25464 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 25465 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 25466 |
fi |
| 25467 |
$as_echo "$as_me: error: $2" >&2 |
| 25468 |
as_fn_exit $as_status |
| 25469 |
} # as_fn_error |
| 25470 |
|
| 25471 |
|
| 25472 |
# as_fn_set_status STATUS |
| 25473 |
# ----------------------- |
| 25474 |
# Set $? to STATUS, without forking. |
| 25475 |
as_fn_set_status () |
| 25476 |
{ |
| 25477 |
return $1 |
| 25478 |
} # as_fn_set_status |
| 25479 |
|
| 25480 |
# as_fn_exit STATUS |
| 25481 |
# ----------------- |
| 25482 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 25483 |
as_fn_exit () |
| 25484 |
{ |
| 25485 |
set +e |
| 25486 |
as_fn_set_status $1 |
| 25487 |
exit $1 |
| 25488 |
} # as_fn_exit |
| 25489 |
|
| 25490 |
# as_fn_unset VAR |
| 25491 |
# --------------- |
| 25492 |
# Portably unset VAR. |
| 25493 |
as_fn_unset () |
| 25494 |
{ |
| 25495 |
{ eval $1=; unset $1;} |
| 25496 |
} |
| 25497 |
as_unset=as_fn_unset |
| 25498 |
# as_fn_append VAR VALUE |
| 25499 |
# ---------------------- |
| 25500 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 25501 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 25502 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 25503 |
# implementations. |
| 25504 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 25505 |
eval 'as_fn_append () |
| 25506 |
{ |
| 25507 |
eval $1+=\$2 |
| 25508 |
}' |
| 25509 |
else |
| 25510 |
as_fn_append () |
| 25511 |
{ |
| 25512 |
eval $1=\$$1\$2 |
| 25513 |
} |
| 25514 |
fi # as_fn_append |
| 25515 |
|
| 25516 |
# as_fn_arith ARG... |
| 25517 |
# ------------------ |
| 25518 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 25519 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 25520 |
# must be portable across $(()) and expr. |
| 25521 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 25522 |
eval 'as_fn_arith () |
| 25523 |
{ |
| 25524 |
as_val=$(( $* )) |
| 25525 |
}' |
| 25526 |
else |
| 25527 |
as_fn_arith () |
| 25528 |
{ |
| 25529 |
as_val=`expr "$@" || test $? -eq 1` |
| 25530 |
} |
| 25531 |
fi # as_fn_arith |
| 25532 |
|
| 25533 |
|
| 25534 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 25535 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 25536 |
as_expr=expr |
| 25537 |
else |
| 25538 |
as_expr=false |
| 25539 |
fi |
| 25540 |
|
| 25541 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 25542 |
as_basename=basename |
| 25543 |
else |
| 25544 |
as_basename=false |
| 25545 |
fi |
| 25546 |
|
| 25547 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 25548 |
as_dirname=dirname |
| 25549 |
else |
| 25550 |
as_dirname=false |
| 25551 |
fi |
| 25552 |
|
| 25553 |
as_me=`$as_basename -- "$0" || |
| 25554 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 25555 |
X"$0" : 'X\(//\)$' \| \ |
| 25556 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 25557 |
$as_echo X/"$0" | |
| 25558 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 25559 |
s//\1/ |
| 25560 |
q |
| 25561 |
} |
| 25562 |
/^X\/\(\/\/\)$/{ |
| 25563 |
s//\1/ |
| 25564 |
q |
| 25565 |
} |
| 25566 |
/^X\/\(\/\).*/{ |
| 25567 |
s//\1/ |
| 25568 |
q |
| 25569 |
} |
| 25570 |
s/.*/./; q'` |
| 25571 |
|
| 25572 |
# Avoid depending upon Character Ranges. |
| 25573 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 25574 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25575 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25576 |
as_cr_digits='0123456789' |
| 25577 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25578 |
|
| 25579 |
ECHO_C= ECHO_N= ECHO_T= |
| 25580 |
case `echo -n x` in #((((( |
| 25581 |
-n*) |
| 25582 |
case `echo 'xy\c'` in |
| 25583 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 25584 |
xy) ECHO_C='\c';; |
| 25585 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 25586 |
ECHO_T=' ';; |
| 25587 |
esac;; |
| 25588 |
*) |
| 25589 |
ECHO_N='-n';; |
| 25590 |
esac |
| 25591 |
|
| 25592 |
rm -f conf$$ conf$$.exe conf$$.file |
| 25593 |
if test -d conf$$.dir; then |
| 25594 |
rm -f conf$$.dir/conf$$.file |
| 25595 |
else |
| 25596 |
rm -f conf$$.dir |
| 25597 |
mkdir conf$$.dir 2>/dev/null |
| 25598 |
fi |
| 25599 |
if (echo >conf$$.file) 2>/dev/null; then |
| 25600 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25601 |
as_ln_s='ln -s' |
| 25602 |
# ... but there are two gotchas: |
| 25603 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 25604 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 25605 |
# In both cases, we have to default to `cp -pR'. |
| 25606 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 25607 |
as_ln_s='cp -pR' |
| 25608 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25609 |
as_ln_s=ln |
| 25610 |
else |
| 25611 |
as_ln_s='cp -pR' |
| 25612 |
fi |
| 25613 |
else |
| 25614 |
as_ln_s='cp -pR' |
| 25615 |
fi |
| 25616 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 25617 |
rmdir conf$$.dir 2>/dev/null |
| 25618 |
|
| 25619 |
|
| 25620 |
# as_fn_mkdir_p |
| 25621 |
# ------------- |
| 25622 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 25623 |
as_fn_mkdir_p () |
| 25624 |
{ |
| 25625 |
|
| 25626 |
case $as_dir in #( |
| 25627 |
-*) as_dir=./$as_dir;; |
| 25628 |
esac |
| 25629 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 25630 |
as_dirs= |
| 25631 |
while :; do |
| 25632 |
case $as_dir in #( |
| 25633 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 25634 |
*) as_qdir=$as_dir;; |
| 25635 |
esac |
| 25636 |
as_dirs="'$as_qdir' $as_dirs" |
| 25637 |
as_dir=`$as_dirname -- "$as_dir" || |
| 25638 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25639 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25640 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 25641 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 25642 |
$as_echo X"$as_dir" | |
| 25643 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25644 |
s//\1/ |
| 25645 |
q |
| 25646 |
} |
| 25647 |
/^X\(\/\/\)[^/].*/{ |
| 25648 |
s//\1/ |
| 25649 |
q |
| 25650 |
} |
| 25651 |
/^X\(\/\/\)$/{ |
| 25652 |
s//\1/ |
| 25653 |
q |
| 25654 |
} |
| 25655 |
/^X\(\/\).*/{ |
| 25656 |
s//\1/ |
| 25657 |
q |
| 25658 |
} |
| 25659 |
s/.*/./; q'` |
| 25660 |
test -d "$as_dir" && break |
| 25661 |
done |
| 25662 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 25663 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 25664 |
|
| 25665 |
|
| 25666 |
} # as_fn_mkdir_p |
| 25667 |
if mkdir -p . 2>/dev/null; then |
| 25668 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 25669 |
else |
| 25670 |
test -d ./-p && rmdir ./-p |
| 25671 |
as_mkdir_p=false |
| 25672 |
fi |
| 25673 |
|
| 25674 |
|
| 25675 |
# as_fn_executable_p FILE |
| 25676 |
# ----------------------- |
| 25677 |
# Test if FILE is an executable regular file. |
| 25678 |
as_fn_executable_p () |
| 25679 |
{ |
| 25680 |
test -f "$1" && test -x "$1" |
| 25681 |
} # as_fn_executable_p |
| 25682 |
as_test_x='test -x' |
| 25683 |
as_executable_p=as_fn_executable_p |
| 25684 |
|
| 25685 |
# Sed expression to map a string onto a valid CPP name. |
| 25686 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 25687 |
|
| 25688 |
# Sed expression to map a string onto a valid variable name. |
| 25689 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 25690 |
|
| 25691 |
|
| 25692 |
exec 6>&1 |
| 25693 |
## ----------------------------------- ## |
| 25694 |
## Main body of $CONFIG_STATUS script. ## |
| 25695 |
## ----------------------------------- ## |
| 25696 |
_ASEOF |
| 25697 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 25698 |
|
| 25699 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25700 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 25701 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 25702 |
# values after options handling. |
| 25703 |
ac_log=" |
| 25704 |
This file was extended by barcode $as_me 0.99, which was |
| 25705 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 25706 |
|
| 25707 |
CONFIG_FILES = $CONFIG_FILES |
| 25708 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 25709 |
CONFIG_LINKS = $CONFIG_LINKS |
| 25710 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25711 |
$ $0 $@ |
| 25712 |
|
| 25713 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 25714 |
" |
| 25715 |
|
| 25716 |
_ACEOF |
| 25717 |
|
| 25718 |
case $ac_config_files in *" |
| 25719 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 25720 |
esac |
| 25721 |
|
| 25722 |
case $ac_config_headers in *" |
| 25723 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 25724 |
esac |
| 25725 |
|
| 25726 |
|
| 25727 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25728 |
# Files that config.status was made for. |
| 25729 |
config_files="$ac_config_files" |
| 25730 |
config_headers="$ac_config_headers" |
| 25731 |
config_commands="$ac_config_commands" |
| 25732 |
|
| 25733 |
_ACEOF |
| 25734 |
|
| 25735 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25736 |
ac_cs_usage="\ |
| 25737 |
\`$as_me' instantiates files and other configuration actions |
| 25738 |
from templates according to the current configuration. Unless the files |
| 25739 |
and actions are specified as TAGs, all are instantiated by default. |
| 25740 |
|
| 25741 |
Usage: $0 [OPTION]... [TAG]... |
| 25742 |
|
| 25743 |
-h, --help print this help, then exit |
| 25744 |
-V, --version print version number and configuration settings, then exit |
| 25745 |
--config print configuration, then exit |
| 25746 |
-q, --quiet, --silent |
| 25747 |
do not print progress messages |
| 25748 |
-d, --debug don't remove temporary files |
| 25749 |
--recheck update $as_me by reconfiguring in the same conditions |
| 25750 |
--file=FILE[:TEMPLATE] |
| 25751 |
instantiate the configuration file FILE |
| 25752 |
--header=FILE[:TEMPLATE] |
| 25753 |
instantiate the configuration header FILE |
| 25754 |
|
| 25755 |
Configuration files: |
| 25756 |
$config_files |
| 25757 |
|
| 25758 |
Configuration headers: |
| 25759 |
$config_headers |
| 25760 |
|
| 25761 |
Configuration commands: |
| 25762 |
$config_commands |
| 25763 |
|
| 25764 |
Report bugs to <[email protected]>." |
| 25765 |
|
| 25766 |
_ACEOF |
| 25767 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25768 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 25769 |
ac_cs_version="\\ |
| 25770 |
barcode config.status 0.99 |
| 25771 |
configured by $0, generated by GNU Autoconf 2.69, |
| 25772 |
with options \\"\$ac_cs_config\\" |
| 25773 |
|
| 25774 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 25775 |
This config.status script is free software; the Free Software Foundation |
| 25776 |
gives unlimited permission to copy, distribute and modify it." |
| 25777 |
|
| 25778 |
ac_pwd='$ac_pwd' |
| 25779 |
srcdir='$srcdir' |
| 25780 |
INSTALL='$INSTALL' |
| 25781 |
MKDIR_P='$MKDIR_P' |
| 25782 |
AWK='$AWK' |
| 25783 |
test -n "\$AWK" || AWK=awk |
| 25784 |
_ACEOF |
| 25785 |
|
| 25786 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25787 |
# The default lists apply if the user does not specify any file. |
| 25788 |
ac_need_defaults=: |
| 25789 |
while test $# != 0 |
| 25790 |
do |
| 25791 |
case $1 in |
| 25792 |
--*=?*) |
| 25793 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25794 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 25795 |
ac_shift=: |
| 25796 |
;; |
| 25797 |
--*=) |
| 25798 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 25799 |
ac_optarg= |
| 25800 |
ac_shift=: |
| 25801 |
;; |
| 25802 |
*) |
| 25803 |
ac_option=$1 |
| 25804 |
ac_optarg=$2 |
| 25805 |
ac_shift=shift |
| 25806 |
;; |
| 25807 |
esac |
| 25808 |
|
| 25809 |
case $ac_option in |
| 25810 |
# Handling of the options. |
| 25811 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25812 |
ac_cs_recheck=: ;; |
| 25813 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 25814 |
$as_echo "$ac_cs_version"; exit ;; |
| 25815 |
--config | --confi | --conf | --con | --co | --c ) |
| 25816 |
$as_echo "$ac_cs_config"; exit ;; |
| 25817 |
--debug | --debu | --deb | --de | --d | -d ) |
| 25818 |
debug=: ;; |
| 25819 |
--file | --fil | --fi | --f ) |
| 25820 |
$ac_shift |
| 25821 |
case $ac_optarg in |
| 25822 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 25823 |
'') as_fn_error $? "missing file argument" ;; |
| 25824 |
esac |
| 25825 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 25826 |
ac_need_defaults=false;; |
| 25827 |
--header | --heade | --head | --hea ) |
| 25828 |
$ac_shift |
| 25829 |
case $ac_optarg in |
| 25830 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 25831 |
esac |
| 25832 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 25833 |
ac_need_defaults=false;; |
| 25834 |
--he | --h) |
| 25835 |
# Conflict between --help and --header |
| 25836 |
as_fn_error $? "ambiguous option: \`$1' |
| 25837 |
Try \`$0 --help' for more information.";; |
| 25838 |
--help | --hel | -h ) |
| 25839 |
$as_echo "$ac_cs_usage"; exit ;; |
| 25840 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25841 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25842 |
ac_cs_silent=: ;; |
| 25843 |
|
| 25844 |
# This is an error. |
| 25845 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 25846 |
Try \`$0 --help' for more information." ;; |
| 25847 |
|
| 25848 |
*) as_fn_append ac_config_targets " $1" |
| 25849 |
ac_need_defaults=false ;; |
| 25850 |
|
| 25851 |
esac |
| 25852 |
shift |
| 25853 |
done |
| 25854 |
|
| 25855 |
ac_configure_extra_args= |
| 25856 |
|
| 25857 |
if $ac_cs_silent; then |
| 25858 |
exec 6>/dev/null |
| 25859 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25860 |
fi |
| 25861 |
|
| 25862 |
_ACEOF |
| 25863 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25864 |
if \$ac_cs_recheck; then |
| 25865 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 25866 |
shift |
| 25867 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 25868 |
CONFIG_SHELL='$SHELL' |
| 25869 |
export CONFIG_SHELL |
| 25870 |
exec "\$@" |
| 25871 |
fi |
| 25872 |
|
| 25873 |
_ACEOF |
| 25874 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 25875 |
exec 5>>config.log |
| 25876 |
{ |
| 25877 |
echo |
| 25878 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25879 |
## Running $as_me. ## |
| 25880 |
_ASBOX |
| 25881 |
$as_echo "$ac_log" |
| 25882 |
} >&5 |
| 25883 |
|
| 25884 |
_ACEOF |
| 25885 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 25886 |
# |
| 25887 |
# INIT-COMMANDS |
| 25888 |
# |
| 25889 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 25890 |
|
| 25891 |
|
| 25892 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 25893 |
# if CDPATH is set. |
| 25894 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 25895 |
|
| 25896 |
sed_quote_subst='$sed_quote_subst' |
| 25897 |
double_quote_subst='$double_quote_subst' |
| 25898 |
delay_variable_subst='$delay_variable_subst' |
| 25899 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 25900 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 25901 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 25902 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 25903 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 25904 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 25905 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 25906 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 25907 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 25908 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 25909 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 25910 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 25911 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 25912 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 25913 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 25914 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 25915 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 25916 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 25917 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 25918 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 25919 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 25920 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 25921 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 25922 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 25923 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 25924 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 25925 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 25926 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 25927 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 25928 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 25929 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 25930 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 25931 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 25932 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 25933 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 25934 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 25935 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 25936 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 25937 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 25938 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 25939 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 25940 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 25941 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 25942 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 25943 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 25944 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 25945 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 25946 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 25947 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 25948 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 25949 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 25950 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 25951 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 25952 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 25953 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 25954 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 25955 |
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"`' |
| 25956 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 25957 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 25958 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 25959 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 25960 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 25961 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 25962 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 25963 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 25964 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 25965 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 25966 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 25967 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 25968 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 25969 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 25970 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 25971 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 25972 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 25973 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 25974 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 25975 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 25976 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 25977 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 25978 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 25979 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 25980 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 25981 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 25982 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 25983 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 25984 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 25985 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 25986 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 25987 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 25988 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 25989 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 25990 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 25991 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 25992 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 25993 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 25994 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 25995 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 25996 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 25997 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 25998 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 25999 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 26000 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 26001 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 26002 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 26003 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 26004 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 26005 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 26006 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 26007 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 26008 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 26009 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 26010 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 26011 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 26012 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 26013 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 26014 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 26015 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 26016 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 26017 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 26018 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 26019 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 26020 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 26021 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 26022 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 26023 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 26024 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 26025 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 26026 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 26027 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 26028 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 26029 |
|
| 26030 |
LTCC='$LTCC' |
| 26031 |
LTCFLAGS='$LTCFLAGS' |
| 26032 |
compiler='$compiler_DEFAULT' |
| 26033 |
|
| 26034 |
# A function that is used when there is no print builtin or printf. |
| 26035 |
func_fallback_echo () |
| 26036 |
{ |
| 26037 |
eval 'cat <<_LTECHO_EOF |
| 26038 |
\$1 |
| 26039 |
_LTECHO_EOF' |
| 26040 |
} |
| 26041 |
|
| 26042 |
# Quote evaled strings. |
| 26043 |
for var in SHELL \ |
| 26044 |
ECHO \ |
| 26045 |
PATH_SEPARATOR \ |
| 26046 |
SED \ |
| 26047 |
GREP \ |
| 26048 |
EGREP \ |
| 26049 |
FGREP \ |
| 26050 |
LD \ |
| 26051 |
NM \ |
| 26052 |
LN_S \ |
| 26053 |
lt_SP2NL \ |
| 26054 |
lt_NL2SP \ |
| 26055 |
reload_flag \ |
| 26056 |
OBJDUMP \ |
| 26057 |
deplibs_check_method \ |
| 26058 |
file_magic_cmd \ |
| 26059 |
file_magic_glob \ |
| 26060 |
want_nocaseglob \ |
| 26061 |
DLLTOOL \ |
| 26062 |
sharedlib_from_linklib_cmd \ |
| 26063 |
AR \ |
| 26064 |
AR_FLAGS \ |
| 26065 |
archiver_list_spec \ |
| 26066 |
STRIP \ |
| 26067 |
RANLIB \ |
| 26068 |
CC \ |
| 26069 |
CFLAGS \ |
| 26070 |
compiler \ |
| 26071 |
lt_cv_sys_global_symbol_pipe \ |
| 26072 |
lt_cv_sys_global_symbol_to_cdecl \ |
| 26073 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 26074 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 26075 |
nm_file_list_spec \ |
| 26076 |
lt_prog_compiler_no_builtin_flag \ |
| 26077 |
lt_prog_compiler_pic \ |
| 26078 |
lt_prog_compiler_wl \ |
| 26079 |
lt_prog_compiler_static \ |
| 26080 |
lt_cv_prog_compiler_c_o \ |
| 26081 |
need_locks \ |
| 26082 |
MANIFEST_TOOL \ |
| 26083 |
DSYMUTIL \ |
| 26084 |
NMEDIT \ |
| 26085 |
LIPO \ |
| 26086 |
OTOOL \ |
| 26087 |
OTOOL64 \ |
| 26088 |
shrext_cmds \ |
| 26089 |
export_dynamic_flag_spec \ |
| 26090 |
whole_archive_flag_spec \ |
| 26091 |
compiler_needs_object \ |
| 26092 |
with_gnu_ld \ |
| 26093 |
allow_undefined_flag \ |
| 26094 |
no_undefined_flag \ |
| 26095 |
hardcode_libdir_flag_spec \ |
| 26096 |
hardcode_libdir_separator \ |
| 26097 |
exclude_expsyms \ |
| 26098 |
include_expsyms \ |
| 26099 |
file_list_spec \ |
| 26100 |
variables_saved_for_relink \ |
| 26101 |
libname_spec \ |
| 26102 |
library_names_spec \ |
| 26103 |
soname_spec \ |
| 26104 |
install_override_mode \ |
| 26105 |
finish_eval \ |
| 26106 |
old_striplib \ |
| 26107 |
striplib; do |
| 26108 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 26109 |
*[\\\\\\\`\\"\\\$]*) |
| 26110 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 26111 |
;; |
| 26112 |
*) |
| 26113 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 26114 |
;; |
| 26115 |
esac |
| 26116 |
done |
| 26117 |
|
| 26118 |
# Double-quote double-evaled strings. |
| 26119 |
for var in reload_cmds \ |
| 26120 |
old_postinstall_cmds \ |
| 26121 |
old_postuninstall_cmds \ |
| 26122 |
old_archive_cmds \ |
| 26123 |
extract_expsyms_cmds \ |
| 26124 |
old_archive_from_new_cmds \ |
| 26125 |
old_archive_from_expsyms_cmds \ |
| 26126 |
archive_cmds \ |
| 26127 |
archive_expsym_cmds \ |
| 26128 |
module_cmds \ |
| 26129 |
module_expsym_cmds \ |
| 26130 |
export_symbols_cmds \ |
| 26131 |
prelink_cmds \ |
| 26132 |
postlink_cmds \ |
| 26133 |
postinstall_cmds \ |
| 26134 |
postuninstall_cmds \ |
| 26135 |
finish_cmds \ |
| 26136 |
sys_lib_search_path_spec \ |
| 26137 |
sys_lib_dlsearch_path_spec; do |
| 26138 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 26139 |
*[\\\\\\\`\\"\\\$]*) |
| 26140 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 26141 |
;; |
| 26142 |
*) |
| 26143 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 26144 |
;; |
| 26145 |
esac |
| 26146 |
done |
| 26147 |
|
| 26148 |
ac_aux_dir='$ac_aux_dir' |
| 26149 |
xsi_shell='$xsi_shell' |
| 26150 |
lt_shell_append='$lt_shell_append' |
| 26151 |
|
| 26152 |
# See if we are running on zsh, and set the options which allow our |
| 26153 |
# commands through without removal of \ escapes INIT. |
| 26154 |
if test -n "\${ZSH_VERSION+set}" ; then |
| 26155 |
setopt NO_GLOB_SUBST |
| 26156 |
fi |
| 26157 |
|
| 26158 |
|
| 26159 |
PACKAGE='$PACKAGE' |
| 26160 |
VERSION='$VERSION' |
| 26161 |
TIMESTAMP='$TIMESTAMP' |
| 26162 |
RM='$RM' |
| 26163 |
ofile='$ofile' |
| 26164 |
|
| 26165 |
|
| 26166 |
|
| 26167 |
# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 26168 |
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
| 26169 |
# from automake < 1.5. |
| 26170 |
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 26171 |
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 26172 |
LINGUAS="${LINGUAS-%UNSET%}" |
| 26173 |
|
| 26174 |
|
| 26175 |
_ACEOF |
| 26176 |
|
| 26177 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26178 |
|
| 26179 |
# Handling of arguments. |
| 26180 |
for ac_config_target in $ac_config_targets |
| 26181 |
do |
| 26182 |
case $ac_config_target in |
| 26183 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 26184 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 26185 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 26186 |
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 26187 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 26188 |
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 26189 |
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 26190 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 26191 |
|
| 26192 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 26193 |
esac |
| 26194 |
done |
| 26195 |
|
| 26196 |
|
| 26197 |
# If the user did not use the arguments to specify the items to instantiate, |
| 26198 |
# then the envvar interface is used. Set only those that are not. |
| 26199 |
# We use the long form for the default assignment because of an extremely |
| 26200 |
# bizarre bug on SunOS 4.1.3. |
| 26201 |
if $ac_need_defaults; then |
| 26202 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 26203 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 26204 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 26205 |
fi |
| 26206 |
|
| 26207 |
# Have a temporary directory for convenience. Make it in the build tree |
| 26208 |
# simply because there is no reason against having it here, and in addition, |
| 26209 |
# creating and moving files from /tmp can sometimes cause problems. |
| 26210 |
# Hook for its removal unless debugging. |
| 26211 |
# Note that there is a small window in which the directory will not be cleaned: |
| 26212 |
# after its creation but before its name has been assigned to `$tmp'. |
| 26213 |
$debug || |
| 26214 |
{ |
| 26215 |
tmp= ac_tmp= |
| 26216 |
trap 'exit_status=$? |
| 26217 |
: "${ac_tmp:=$tmp}" |
| 26218 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 26219 |
' 0 |
| 26220 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 26221 |
} |
| 26222 |
# Create a (secure) tmp directory for tmp files. |
| 26223 |
|
| 26224 |
{ |
| 26225 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 26226 |
test -d "$tmp" |
| 26227 |
} || |
| 26228 |
{ |
| 26229 |
tmp=./conf$$-$RANDOM |
| 26230 |
(umask 077 && mkdir "$tmp") |
| 26231 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 26232 |
ac_tmp=$tmp |
| 26233 |
|
| 26234 |
# Set up the scripts for CONFIG_FILES section. |
| 26235 |
# No need to generate them if there are no CONFIG_FILES. |
| 26236 |
# This happens for instance with `./config.status config.h'. |
| 26237 |
if test -n "$CONFIG_FILES"; then |
| 26238 |
|
| 26239 |
|
| 26240 |
ac_cr=`echo X | tr X '\015'` |
| 26241 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 26242 |
# But we know of no other shell where ac_cr would be empty at this |
| 26243 |
# point, so we can use a bashism as a fallback. |
| 26244 |
if test "x$ac_cr" = x; then |
| 26245 |
eval ac_cr=\$\'\\r\' |
| 26246 |
fi |
| 26247 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 26248 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 26249 |
ac_cs_awk_cr='\\r' |
| 26250 |
else |
| 26251 |
ac_cs_awk_cr=$ac_cr |
| 26252 |
fi |
| 26253 |
|
| 26254 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 26255 |
_ACEOF |
| 26256 |
|
| 26257 |
|
| 26258 |
{ |
| 26259 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 26260 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 26261 |
echo "_ACEOF" |
| 26262 |
} >conf$$subs.sh || |
| 26263 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26264 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 26265 |
ac_delim='%!_!# ' |
| 26266 |
for ac_last_try in false false false false false :; do |
| 26267 |
. ./conf$$subs.sh || |
| 26268 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26269 |
|
| 26270 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 26271 |
if test $ac_delim_n = $ac_delim_num; then |
| 26272 |
break |
| 26273 |
elif $ac_last_try; then |
| 26274 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26275 |
else |
| 26276 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26277 |
fi |
| 26278 |
done |
| 26279 |
rm -f conf$$subs.sh |
| 26280 |
|
| 26281 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26282 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 26283 |
_ACEOF |
| 26284 |
sed -n ' |
| 26285 |
h |
| 26286 |
s/^/S["/; s/!.*/"]=/ |
| 26287 |
p |
| 26288 |
g |
| 26289 |
s/^[^!]*!// |
| 26290 |
:repl |
| 26291 |
t repl |
| 26292 |
s/'"$ac_delim"'$// |
| 26293 |
t delim |
| 26294 |
:nl |
| 26295 |
h |
| 26296 |
s/\(.\{148\}\)..*/\1/ |
| 26297 |
t more1 |
| 26298 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 26299 |
p |
| 26300 |
n |
| 26301 |
b repl |
| 26302 |
:more1 |
| 26303 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26304 |
p |
| 26305 |
g |
| 26306 |
s/.\{148\}// |
| 26307 |
t nl |
| 26308 |
:delim |
| 26309 |
h |
| 26310 |
s/\(.\{148\}\)..*/\1/ |
| 26311 |
t more2 |
| 26312 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 26313 |
p |
| 26314 |
b |
| 26315 |
:more2 |
| 26316 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26317 |
p |
| 26318 |
g |
| 26319 |
s/.\{148\}// |
| 26320 |
t delim |
| 26321 |
' <conf$$subs.awk | sed ' |
| 26322 |
/^[^""]/{ |
| 26323 |
N |
| 26324 |
s/\n// |
| 26325 |
} |
| 26326 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26327 |
rm -f conf$$subs.awk |
| 26328 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26329 |
_ACAWK |
| 26330 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 26331 |
for (key in S) S_is_set[key] = 1 |
| 26332 |
FS = "" |
| 26333 |
|
| 26334 |
} |
| 26335 |
{ |
| 26336 |
line = $ 0 |
| 26337 |
nfields = split(line, field, "@") |
| 26338 |
substed = 0 |
| 26339 |
len = length(field[1]) |
| 26340 |
for (i = 2; i < nfields; i++) { |
| 26341 |
key = field[i] |
| 26342 |
keylen = length(key) |
| 26343 |
if (S_is_set[key]) { |
| 26344 |
value = S[key] |
| 26345 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 26346 |
len += length(value) + length(field[++i]) |
| 26347 |
substed = 1 |
| 26348 |
} else |
| 26349 |
len += 1 + keylen |
| 26350 |
} |
| 26351 |
|
| 26352 |
print line |
| 26353 |
} |
| 26354 |
|
| 26355 |
_ACAWK |
| 26356 |
_ACEOF |
| 26357 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26358 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 26359 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 26360 |
else |
| 26361 |
cat |
| 26362 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 26363 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 26364 |
_ACEOF |
| 26365 |
|
| 26366 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 26367 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 26368 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 26369 |
# (actually we leave an empty line to preserve line numbers). |
| 26370 |
if test "x$srcdir" = x.; then |
| 26371 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 26372 |
h |
| 26373 |
s/// |
| 26374 |
s/^/:/ |
| 26375 |
s/[ ]*$/:/ |
| 26376 |
s/:\$(srcdir):/:/g |
| 26377 |
s/:\${srcdir}:/:/g |
| 26378 |
s/:@srcdir@:/:/g |
| 26379 |
s/^:*// |
| 26380 |
s/:*$// |
| 26381 |
x |
| 26382 |
s/\(=[ ]*\).*/\1/ |
| 26383 |
G |
| 26384 |
s/\n// |
| 26385 |
s/^[^=]*=[ ]*$// |
| 26386 |
}' |
| 26387 |
fi |
| 26388 |
|
| 26389 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26390 |
fi # test -n "$CONFIG_FILES" |
| 26391 |
|
| 26392 |
# Set up the scripts for CONFIG_HEADERS section. |
| 26393 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 26394 |
# This happens for instance with `./config.status Makefile'. |
| 26395 |
if test -n "$CONFIG_HEADERS"; then |
| 26396 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 26397 |
BEGIN { |
| 26398 |
_ACEOF |
| 26399 |
|
| 26400 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
| 26401 |
# here-document in config.status, that substitutes the proper values into |
| 26402 |
# config.h.in to produce config.h. |
| 26403 |
|
| 26404 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 26405 |
# handling of long lines. |
| 26406 |
ac_delim='%!_!# ' |
| 26407 |
for ac_last_try in false false :; do |
| 26408 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 26409 |
if test -z "$ac_tt"; then |
| 26410 |
break |
| 26411 |
elif $ac_last_try; then |
| 26412 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 26413 |
else |
| 26414 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26415 |
fi |
| 26416 |
done |
| 26417 |
|
| 26418 |
# For the awk script, D is an array of macro values keyed by name, |
| 26419 |
# likewise P contains macro parameters if any. Preserve backslash |
| 26420 |
# newline sequences. |
| 26421 |
|
| 26422 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26423 |
sed -n ' |
| 26424 |
s/.\{148\}/&'"$ac_delim"'/g |
| 26425 |
t rset |
| 26426 |
:rset |
| 26427 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 26428 |
t def |
| 26429 |
d |
| 26430 |
:def |
| 26431 |
s/\\$// |
| 26432 |
t bsnl |
| 26433 |
s/["\\]/\\&/g |
| 26434 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26435 |
D["\1"]=" \3"/p |
| 26436 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 26437 |
d |
| 26438 |
:bsnl |
| 26439 |
s/["\\]/\\&/g |
| 26440 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26441 |
D["\1"]=" \3\\\\\\n"\\/p |
| 26442 |
t cont |
| 26443 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 26444 |
t cont |
| 26445 |
d |
| 26446 |
:cont |
| 26447 |
n |
| 26448 |
s/.\{148\}/&'"$ac_delim"'/g |
| 26449 |
t clear |
| 26450 |
:clear |
| 26451 |
s/\\$// |
| 26452 |
t bsnlc |
| 26453 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 26454 |
d |
| 26455 |
:bsnlc |
| 26456 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 26457 |
b cont |
| 26458 |
' <confdefs.h | sed ' |
| 26459 |
s/'"$ac_delim"'/"\\\ |
| 26460 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26461 |
|
| 26462 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26463 |
for (key in D) D_is_set[key] = 1 |
| 26464 |
FS = "" |
| 26465 |
} |
| 26466 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 26467 |
line = \$ 0 |
| 26468 |
split(line, arg, " ") |
| 26469 |
if (arg[1] == "#") { |
| 26470 |
defundef = arg[2] |
| 26471 |
mac1 = arg[3] |
| 26472 |
} else { |
| 26473 |
defundef = substr(arg[1], 2) |
| 26474 |
mac1 = arg[2] |
| 26475 |
} |
| 26476 |
split(mac1, mac2, "(") #) |
| 26477 |
macro = mac2[1] |
| 26478 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 26479 |
if (D_is_set[macro]) { |
| 26480 |
# Preserve the white space surrounding the "#". |
| 26481 |
print prefix "define", macro P[macro] D[macro] |
| 26482 |
next |
| 26483 |
} else { |
| 26484 |
# Replace #undef with comments. This is necessary, for example, |
| 26485 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 26486 |
# on some systems where configure will not decide to define it. |
| 26487 |
if (defundef == "undef") { |
| 26488 |
print "/*", prefix defundef, macro, "*/" |
| 26489 |
next |
| 26490 |
} |
| 26491 |
} |
| 26492 |
} |
| 26493 |
{ print } |
| 26494 |
_ACAWK |
| 26495 |
_ACEOF |
| 26496 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26497 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 26498 |
fi # test -n "$CONFIG_HEADERS" |
| 26499 |
|
| 26500 |
|
| 26501 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 26502 |
shift |
| 26503 |
for ac_tag |
| 26504 |
do |
| 26505 |
case $ac_tag in |
| 26506 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 26507 |
esac |
| 26508 |
case $ac_mode$ac_tag in |
| 26509 |
:[FHL]*:*);; |
| 26510 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 26511 |
:[FH]-) ac_tag=-:-;; |
| 26512 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 26513 |
esac |
| 26514 |
ac_save_IFS=$IFS |
| 26515 |
IFS=: |
| 26516 |
set x $ac_tag |
| 26517 |
IFS=$ac_save_IFS |
| 26518 |
shift |
| 26519 |
ac_file=$1 |
| 26520 |
shift |
| 26521 |
|
| 26522 |
case $ac_mode in |
| 26523 |
:L) ac_source=$1;; |
| 26524 |
:[FH]) |
| 26525 |
ac_file_inputs= |
| 26526 |
for ac_f |
| 26527 |
do |
| 26528 |
case $ac_f in |
| 26529 |
-) ac_f="$ac_tmp/stdin";; |
| 26530 |
*) # Look for the file first in the build tree, then in the source tree |
| 26531 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 26532 |
# because $ac_f cannot contain `:'. |
| 26533 |
test -f "$ac_f" || |
| 26534 |
case $ac_f in |
| 26535 |
[\\/$]*) false;; |
| 26536 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 26537 |
esac || |
| 26538 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 26539 |
esac |
| 26540 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 26541 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 26542 |
done |
| 26543 |
|
| 26544 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26545 |
# use $as_me), people would be surprised to read: |
| 26546 |
# /* config.h. Generated by config.status. */ |
| 26547 |
configure_input='Generated from '` |
| 26548 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 26549 |
`' by configure.' |
| 26550 |
if test x"$ac_file" != x-; then |
| 26551 |
configure_input="$ac_file. $configure_input" |
| 26552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 26553 |
$as_echo "$as_me: creating $ac_file" >&6;} |
| 26554 |
fi |
| 26555 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 26556 |
case $configure_input in #( |
| 26557 |
*\&* | *\|* | *\\* ) |
| 26558 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
| 26559 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 26560 |
*) ac_sed_conf_input=$configure_input;; |
| 26561 |
esac |
| 26562 |
|
| 26563 |
case $ac_tag in |
| 26564 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 26565 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 26566 |
esac |
| 26567 |
;; |
| 26568 |
esac |
| 26569 |
|
| 26570 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 26571 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26572 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26573 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 26574 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 26575 |
$as_echo X"$ac_file" | |
| 26576 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26577 |
s//\1/ |
| 26578 |
q |
| 26579 |
} |
| 26580 |
/^X\(\/\/\)[^/].*/{ |
| 26581 |
s//\1/ |
| 26582 |
q |
| 26583 |
} |
| 26584 |
/^X\(\/\/\)$/{ |
| 26585 |
s//\1/ |
| 26586 |
q |
| 26587 |
} |
| 26588 |
/^X\(\/\).*/{ |
| 26589 |
s//\1/ |
| 26590 |
q |
| 26591 |
} |
| 26592 |
s/.*/./; q'` |
| 26593 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 26594 |
ac_builddir=. |
| 26595 |
|
| 26596 |
case "$ac_dir" in |
| 26597 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26598 |
*) |
| 26599 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 26600 |
# A ".." for each directory in $ac_dir_suffix. |
| 26601 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 26602 |
case $ac_top_builddir_sub in |
| 26603 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26604 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 26605 |
esac ;; |
| 26606 |
esac |
| 26607 |
ac_abs_top_builddir=$ac_pwd |
| 26608 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 26609 |
# for backward compatibility: |
| 26610 |
ac_top_builddir=$ac_top_build_prefix |
| 26611 |
|
| 26612 |
case $srcdir in |
| 26613 |
.) # We are building in place. |
| 26614 |
ac_srcdir=. |
| 26615 |
ac_top_srcdir=$ac_top_builddir_sub |
| 26616 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 26617 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 26618 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 26619 |
ac_top_srcdir=$srcdir |
| 26620 |
ac_abs_top_srcdir=$srcdir ;; |
| 26621 |
*) # Relative name. |
| 26622 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 26623 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 26624 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 26625 |
esac |
| 26626 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 26627 |
|
| 26628 |
|
| 26629 |
case $ac_mode in |
| 26630 |
:F) |
| 26631 |
# |
| 26632 |
# CONFIG_FILE |
| 26633 |
# |
| 26634 |
|
| 26635 |
case $INSTALL in |
| 26636 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 26637 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 26638 |
esac |
| 26639 |
ac_MKDIR_P=$MKDIR_P |
| 26640 |
case $MKDIR_P in |
| 26641 |
[\\/$]* | ?:[\\/]* ) ;; |
| 26642 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 26643 |
esac |
| 26644 |
_ACEOF |
| 26645 |
|
| 26646 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26647 |
# If the template does not know about datarootdir, expand it. |
| 26648 |
# FIXME: This hack should be removed a few years after 2.60. |
| 26649 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 26650 |
ac_sed_dataroot=' |
| 26651 |
/datarootdir/ { |
| 26652 |
p |
| 26653 |
q |
| 26654 |
} |
| 26655 |
/@datadir@/p |
| 26656 |
/@docdir@/p |
| 26657 |
/@infodir@/p |
| 26658 |
/@localedir@/p |
| 26659 |
/@mandir@/p' |
| 26660 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 26661 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 26662 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 26663 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26664 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 26665 |
_ACEOF |
| 26666 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26667 |
ac_datarootdir_hack=' |
| 26668 |
s&@datadir@&$datadir&g |
| 26669 |
s&@docdir@&$docdir&g |
| 26670 |
s&@infodir@&$infodir&g |
| 26671 |
s&@localedir@&$localedir&g |
| 26672 |
s&@mandir@&$mandir&g |
| 26673 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26674 |
esac |
| 26675 |
_ACEOF |
| 26676 |
|
| 26677 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 26678 |
# Shell code in configure.ac might set extrasub. |
| 26679 |
# FIXME: do we really want to maintain this feature? |
| 26680 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26681 |
ac_sed_extra="$ac_vpsub |
| 26682 |
$extrasub |
| 26683 |
_ACEOF |
| 26684 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26685 |
:t |
| 26686 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 26687 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 26688 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 26689 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 26690 |
s&@srcdir@&$ac_srcdir&;t t |
| 26691 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26692 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26693 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26694 |
s&@builddir@&$ac_builddir&;t t |
| 26695 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26696 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26697 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 26698 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 26699 |
$ac_datarootdir_hack |
| 26700 |
" |
| 26701 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 26702 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26703 |
|
| 26704 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26705 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 26706 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 26707 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 26708 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26709 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 26710 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26711 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 26712 |
|
| 26713 |
rm -f "$ac_tmp/stdin" |
| 26714 |
case $ac_file in |
| 26715 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 26716 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 26717 |
esac \ |
| 26718 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26719 |
;; |
| 26720 |
:H) |
| 26721 |
# |
| 26722 |
# CONFIG_HEADER |
| 26723 |
# |
| 26724 |
if test x"$ac_file" != x-; then |
| 26725 |
{ |
| 26726 |
$as_echo "/* $configure_input */" \ |
| 26727 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 26728 |
} >"$ac_tmp/config.h" \ |
| 26729 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26730 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 26731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 26732 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 26733 |
else |
| 26734 |
rm -f "$ac_file" |
| 26735 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 26736 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 26737 |
fi |
| 26738 |
else |
| 26739 |
$as_echo "/* $configure_input */" \ |
| 26740 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 26741 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 26742 |
fi |
| 26743 |
# Compute "$ac_file"'s index in $config_headers. |
| 26744 |
_am_arg="$ac_file" |
| 26745 |
_am_stamp_count=1 |
| 26746 |
for _am_header in $config_headers :; do |
| 26747 |
case $_am_header in |
| 26748 |
$_am_arg | $_am_arg:* ) |
| 26749 |
break ;; |
| 26750 |
* ) |
| 26751 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 26752 |
esac |
| 26753 |
done |
| 26754 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 26755 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26756 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 26757 |
X"$_am_arg" : 'X\(//\)$' \| \ |
| 26758 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 26759 |
$as_echo X"$_am_arg" | |
| 26760 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26761 |
s//\1/ |
| 26762 |
q |
| 26763 |
} |
| 26764 |
/^X\(\/\/\)[^/].*/{ |
| 26765 |
s//\1/ |
| 26766 |
q |
| 26767 |
} |
| 26768 |
/^X\(\/\/\)$/{ |
| 26769 |
s//\1/ |
| 26770 |
q |
| 26771 |
} |
| 26772 |
/^X\(\/\).*/{ |
| 26773 |
s//\1/ |
| 26774 |
q |
| 26775 |
} |
| 26776 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
| 26777 |
;; |
| 26778 |
|
| 26779 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 26780 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
| 26781 |
;; |
| 26782 |
esac |
| 26783 |
|
| 26784 |
|
| 26785 |
case $ac_file$ac_mode in |
| 26786 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 26787 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 26788 |
# are listed without --file. Let's play safe and only enable the eval |
| 26789 |
# if we detect the quoting. |
| 26790 |
case $CONFIG_FILES in |
| 26791 |
*\'*) eval set x "$CONFIG_FILES" ;; |
| 26792 |
*) set x $CONFIG_FILES ;; |
| 26793 |
esac |
| 26794 |
shift |
| 26795 |
for mf |
| 26796 |
do |
| 26797 |
# Strip MF so we end up with the name of the file. |
| 26798 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 26799 |
# Check whether this is an Automake generated Makefile or not. |
| 26800 |
# We used to match only the files named `Makefile.in', but |
| 26801 |
# some people rename them; so instead we look at the file content. |
| 26802 |
# Grep'ing the first line is not enough: some people post-process |
| 26803 |
# each Makefile.in and add a new line on top of each file to say so. |
| 26804 |
# Grep'ing the whole file is not good either: AIX grep has a line |
| 26805 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 26806 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 26807 |
dirpart=`$as_dirname -- "$mf" || |
| 26808 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26809 |
X"$mf" : 'X\(//\)[^/]' \| \ |
| 26810 |
X"$mf" : 'X\(//\)$' \| \ |
| 26811 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 26812 |
$as_echo X"$mf" | |
| 26813 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26814 |
s//\1/ |
| 26815 |
q |
| 26816 |
} |
| 26817 |
/^X\(\/\/\)[^/].*/{ |
| 26818 |
s//\1/ |
| 26819 |
q |
| 26820 |
} |
| 26821 |
/^X\(\/\/\)$/{ |
| 26822 |
s//\1/ |
| 26823 |
q |
| 26824 |
} |
| 26825 |
/^X\(\/\).*/{ |
| 26826 |
s//\1/ |
| 26827 |
q |
| 26828 |
} |
| 26829 |
s/.*/./; q'` |
| 26830 |
else |
| 26831 |
continue |
| 26832 |
fi |
| 26833 |
# Extract the definition of DEPDIR, am__include, and am__quote |
| 26834 |
# from the Makefile without running `make'. |
| 26835 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 26836 |
test -z "$DEPDIR" && continue |
| 26837 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 26838 |
test -z "am__include" && continue |
| 26839 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 26840 |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 26841 |
U=`sed -n 's/^U = //p' < "$mf"` |
| 26842 |
# Find all dependency output files, they are included files with |
| 26843 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 26844 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 26845 |
# expansion. |
| 26846 |
for file in `sed -n " |
| 26847 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 26848 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 26849 |
# Make sure the directory exists. |
| 26850 |
test -f "$dirpart/$file" && continue |
| 26851 |
fdir=`$as_dirname -- "$file" || |
| 26852 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26853 |
X"$file" : 'X\(//\)[^/]' \| \ |
| 26854 |
X"$file" : 'X\(//\)$' \| \ |
| 26855 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 26856 |
$as_echo X"$file" | |
| 26857 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26858 |
s//\1/ |
| 26859 |
q |
| 26860 |
} |
| 26861 |
/^X\(\/\/\)[^/].*/{ |
| 26862 |
s//\1/ |
| 26863 |
q |
| 26864 |
} |
| 26865 |
/^X\(\/\/\)$/{ |
| 26866 |
s//\1/ |
| 26867 |
q |
| 26868 |
} |
| 26869 |
/^X\(\/\).*/{ |
| 26870 |
s//\1/ |
| 26871 |
q |
| 26872 |
} |
| 26873 |
s/.*/./; q'` |
| 26874 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 26875 |
# echo "creating $dirpart/$file" |
| 26876 |
echo '# dummy' > "$dirpart/$file" |
| 26877 |
done |
| 26878 |
done |
| 26879 |
} |
| 26880 |
;; |
| 26881 |
"libtool":C) |
| 26882 |
|
| 26883 |
# See if we are running on zsh, and set the options which allow our |
| 26884 |
# commands through without removal of \ escapes. |
| 26885 |
if test -n "${ZSH_VERSION+set}" ; then |
| 26886 |
setopt NO_GLOB_SUBST |
| 26887 |
fi |
| 26888 |
|
| 26889 |
cfgfile="${ofile}T" |
| 26890 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 26891 |
$RM "$cfgfile" |
| 26892 |
|
| 26893 |
cat <<_LT_EOF >> "$cfgfile" |
| 26894 |
#! $SHELL |
| 26895 |
|
| 26896 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 26897 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 26898 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26899 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 26900 |
# |
| 26901 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 26902 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 26903 |
# Foundation, Inc. |
| 26904 |
# Written by Gordon Matzigkeit, 1996 |
| 26905 |
# |
| 26906 |
# This file is part of GNU Libtool. |
| 26907 |
# |
| 26908 |
# GNU Libtool is free software; you can redistribute it and/or |
| 26909 |
# modify it under the terms of the GNU General Public License as |
| 26910 |
# published by the Free Software Foundation; either version 2 of |
| 26911 |
# the License, or (at your option) any later version. |
| 26912 |
# |
| 26913 |
# As a special exception to the GNU General Public License, |
| 26914 |
# if you distribute this file as part of a program or library that |
| 26915 |
# is built using GNU Libtool, you may include this file under the |
| 26916 |
# same distribution terms that you use for the rest of that program. |
| 26917 |
# |
| 26918 |
# GNU Libtool is distributed in the hope that it will be useful, |
| 26919 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26920 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 26921 |
# GNU General Public License for more details. |
| 26922 |
# |
| 26923 |
# You should have received a copy of the GNU General Public License |
| 26924 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
| 26925 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 26926 |
# obtained by writing to the Free Software Foundation, Inc., |
| 26927 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 26928 |
|
| 26929 |
|
| 26930 |
# The names of the tagged configurations supported by this script. |
| 26931 |
available_tags="" |
| 26932 |
|
| 26933 |
# ### BEGIN LIBTOOL CONFIG |
| 26934 |
|
| 26935 |
# Which release of libtool.m4 was used? |
| 26936 |
macro_version=$macro_version |
| 26937 |
macro_revision=$macro_revision |
| 26938 |
|
| 26939 |
# Whether or not to build shared libraries. |
| 26940 |
build_libtool_libs=$enable_shared |
| 26941 |
|
| 26942 |
# Whether or not to build static libraries. |
| 26943 |
build_old_libs=$enable_static |
| 26944 |
|
| 26945 |
# What type of objects to build. |
| 26946 |
pic_mode=$pic_mode |
| 26947 |
|
| 26948 |
# Whether or not to optimize for fast installation. |
| 26949 |
fast_install=$enable_fast_install |
| 26950 |
|
| 26951 |
# Shell to use when invoking shell scripts. |
| 26952 |
SHELL=$lt_SHELL |
| 26953 |
|
| 26954 |
# An echo program that protects backslashes. |
| 26955 |
ECHO=$lt_ECHO |
| 26956 |
|
| 26957 |
# The PATH separator for the build system. |
| 26958 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 26959 |
|
| 26960 |
# The host system. |
| 26961 |
host_alias=$host_alias |
| 26962 |
host=$host |
| 26963 |
host_os=$host_os |
| 26964 |
|
| 26965 |
# The build system. |
| 26966 |
build_alias=$build_alias |
| 26967 |
build=$build |
| 26968 |
build_os=$build_os |
| 26969 |
|
| 26970 |
# A sed program that does not truncate output. |
| 26971 |
SED=$lt_SED |
| 26972 |
|
| 26973 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 26974 |
Xsed="\$SED -e 1s/^X//" |
| 26975 |
|
| 26976 |
# A grep program that handles long lines. |
| 26977 |
GREP=$lt_GREP |
| 26978 |
|
| 26979 |
# An ERE matcher. |
| 26980 |
EGREP=$lt_EGREP |
| 26981 |
|
| 26982 |
# A literal string matcher. |
| 26983 |
FGREP=$lt_FGREP |
| 26984 |
|
| 26985 |
# A BSD- or MS-compatible name lister. |
| 26986 |
NM=$lt_NM |
| 26987 |
|
| 26988 |
# Whether we need soft or hard links. |
| 26989 |
LN_S=$lt_LN_S |
| 26990 |
|
| 26991 |
# What is the maximum length of a command? |
| 26992 |
max_cmd_len=$max_cmd_len |
| 26993 |
|
| 26994 |
# Object file suffix (normally "o"). |
| 26995 |
objext=$ac_objext |
| 26996 |
|
| 26997 |
# Executable file suffix (normally ""). |
| 26998 |
exeext=$exeext |
| 26999 |
|
| 27000 |
# whether the shell understands "unset". |
| 27001 |
lt_unset=$lt_unset |
| 27002 |
|
| 27003 |
# turn spaces into newlines. |
| 27004 |
SP2NL=$lt_lt_SP2NL |
| 27005 |
|
| 27006 |
# turn newlines into spaces. |
| 27007 |
NL2SP=$lt_lt_NL2SP |
| 27008 |
|
| 27009 |
# convert \$build file names to \$host format. |
| 27010 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 27011 |
|
| 27012 |
# convert \$build files to toolchain format. |
| 27013 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 27014 |
|
| 27015 |
# An object symbol dumper. |
| 27016 |
OBJDUMP=$lt_OBJDUMP |
| 27017 |
|
| 27018 |
# Method to check whether dependent libraries are shared objects. |
| 27019 |
deplibs_check_method=$lt_deplibs_check_method |
| 27020 |
|
| 27021 |
# Command to use when deplibs_check_method = "file_magic". |
| 27022 |
file_magic_cmd=$lt_file_magic_cmd |
| 27023 |
|
| 27024 |
# How to find potential files when deplibs_check_method = "file_magic". |
| 27025 |
file_magic_glob=$lt_file_magic_glob |
| 27026 |
|
| 27027 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 27028 |
want_nocaseglob=$lt_want_nocaseglob |
| 27029 |
|
| 27030 |
# DLL creation program. |
| 27031 |
DLLTOOL=$lt_DLLTOOL |
| 27032 |
|
| 27033 |
# Command to associate shared and link libraries. |
| 27034 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 27035 |
|
| 27036 |
# The archiver. |
| 27037 |
AR=$lt_AR |
| 27038 |
|
| 27039 |
# Flags to create an archive. |
| 27040 |
AR_FLAGS=$lt_AR_FLAGS |
| 27041 |
|
| 27042 |
# How to feed a file listing to the archiver. |
| 27043 |
archiver_list_spec=$lt_archiver_list_spec |
| 27044 |
|
| 27045 |
# A symbol stripping program. |
| 27046 |
STRIP=$lt_STRIP |
| 27047 |
|
| 27048 |
# Commands used to install an old-style archive. |
| 27049 |
RANLIB=$lt_RANLIB |
| 27050 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 27051 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 27052 |
|
| 27053 |
# Whether to use a lock for old archive extraction. |
| 27054 |
lock_old_archive_extraction=$lock_old_archive_extraction |
| 27055 |
|
| 27056 |
# A C compiler. |
| 27057 |
LTCC=$lt_CC |
| 27058 |
|
| 27059 |
# LTCC compiler flags. |
| 27060 |
LTCFLAGS=$lt_CFLAGS |
| 27061 |
|
| 27062 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 27063 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 27064 |
|
| 27065 |
# Transform the output of nm in a proper C declaration. |
| 27066 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 27067 |
|
| 27068 |
# Transform the output of nm in a C name address pair. |
| 27069 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 27070 |
|
| 27071 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
| 27072 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 27073 |
|
| 27074 |
# Specify filename containing input files for \$NM. |
| 27075 |
nm_file_list_spec=$lt_nm_file_list_spec |
| 27076 |
|
| 27077 |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
| 27078 |
lt_sysroot=$lt_sysroot |
| 27079 |
|
| 27080 |
# The name of the directory that contains temporary libtool files. |
| 27081 |
objdir=$objdir |
| 27082 |
|
| 27083 |
# Used to examine libraries when file_magic_cmd begins with "file". |
| 27084 |
MAGIC_CMD=$MAGIC_CMD |
| 27085 |
|
| 27086 |
# Must we lock files when doing compilation? |
| 27087 |
need_locks=$lt_need_locks |
| 27088 |
|
| 27089 |
# Manifest tool. |
| 27090 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 27091 |
|
| 27092 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 27093 |
DSYMUTIL=$lt_DSYMUTIL |
| 27094 |
|
| 27095 |
# Tool to change global to local symbols on Mac OS X. |
| 27096 |
NMEDIT=$lt_NMEDIT |
| 27097 |
|
| 27098 |
# Tool to manipulate fat objects and archives on Mac OS X. |
| 27099 |
LIPO=$lt_LIPO |
| 27100 |
|
| 27101 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 27102 |
OTOOL=$lt_OTOOL |
| 27103 |
|
| 27104 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 27105 |
OTOOL64=$lt_OTOOL64 |
| 27106 |
|
| 27107 |
# Old archive suffix (normally "a"). |
| 27108 |
libext=$libext |
| 27109 |
|
| 27110 |
# Shared library suffix (normally ".so"). |
| 27111 |
shrext_cmds=$lt_shrext_cmds |
| 27112 |
|
| 27113 |
# The commands to extract the exported symbol list from a shared archive. |
| 27114 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27115 |
|
| 27116 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 27117 |
# restored at link time. |
| 27118 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
| 27119 |
|
| 27120 |
# Do we need the "lib" prefix for modules? |
| 27121 |
need_lib_prefix=$need_lib_prefix |
| 27122 |
|
| 27123 |
# Do we need a version for libraries? |
| 27124 |
need_version=$need_version |
| 27125 |
|
| 27126 |
# Library versioning type. |
| 27127 |
version_type=$version_type |
| 27128 |
|
| 27129 |
# Shared library runtime path variable. |
| 27130 |
runpath_var=$runpath_var |
| 27131 |
|
| 27132 |
# Shared library path variable. |
| 27133 |
shlibpath_var=$shlibpath_var |
| 27134 |
|
| 27135 |
# Is shlibpath searched before the hard-coded library search path? |
| 27136 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27137 |
|
| 27138 |
# Format of library name prefix. |
| 27139 |
libname_spec=$lt_libname_spec |
| 27140 |
|
| 27141 |
# List of archive names. First name is the real one, the rest are links. |
| 27142 |
# The last name is the one that the linker finds with -lNAME |
| 27143 |
library_names_spec=$lt_library_names_spec |
| 27144 |
|
| 27145 |
# The coded name of the library, if different from the real name. |
| 27146 |
soname_spec=$lt_soname_spec |
| 27147 |
|
| 27148 |
# Permission mode override for installation of shared libraries. |
| 27149 |
install_override_mode=$lt_install_override_mode |
| 27150 |
|
| 27151 |
# Command to use after installation of a shared archive. |
| 27152 |
postinstall_cmds=$lt_postinstall_cmds |
| 27153 |
|
| 27154 |
# Command to use after uninstallation of a shared archive. |
| 27155 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 27156 |
|
| 27157 |
# Commands used to finish a libtool library installation in a directory. |
| 27158 |
finish_cmds=$lt_finish_cmds |
| 27159 |
|
| 27160 |
# As "finish_cmds", except a single script fragment to be evaled but |
| 27161 |
# not shown. |
| 27162 |
finish_eval=$lt_finish_eval |
| 27163 |
|
| 27164 |
# Whether we should hardcode library paths into libraries. |
| 27165 |
hardcode_into_libs=$hardcode_into_libs |
| 27166 |
|
| 27167 |
# Compile-time system search path for libraries. |
| 27168 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27169 |
|
| 27170 |
# Run-time system search path for libraries. |
| 27171 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 27172 |
|
| 27173 |
# Whether dlopen is supported. |
| 27174 |
dlopen_support=$enable_dlopen |
| 27175 |
|
| 27176 |
# Whether dlopen of programs is supported. |
| 27177 |
dlopen_self=$enable_dlopen_self |
| 27178 |
|
| 27179 |
# Whether dlopen of statically linked programs is supported. |
| 27180 |
dlopen_self_static=$enable_dlopen_self_static |
| 27181 |
|
| 27182 |
# Commands to strip libraries. |
| 27183 |
old_striplib=$lt_old_striplib |
| 27184 |
striplib=$lt_striplib |
| 27185 |
|
| 27186 |
|
| 27187 |
# The linker used to build libraries. |
| 27188 |
LD=$lt_LD |
| 27189 |
|
| 27190 |
# How to create reloadable object files. |
| 27191 |
reload_flag=$lt_reload_flag |
| 27192 |
reload_cmds=$lt_reload_cmds |
| 27193 |
|
| 27194 |
# Commands used to build an old-style archive. |
| 27195 |
old_archive_cmds=$lt_old_archive_cmds |
| 27196 |
|
| 27197 |
# A language specific compiler. |
| 27198 |
CC=$lt_compiler |
| 27199 |
|
| 27200 |
# Is the compiler the GNU compiler? |
| 27201 |
with_gcc=$GCC |
| 27202 |
|
| 27203 |
# Compiler flag to turn off builtin functions. |
| 27204 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 27205 |
|
| 27206 |
# Additional compiler flags for building library objects. |
| 27207 |
pic_flag=$lt_lt_prog_compiler_pic |
| 27208 |
|
| 27209 |
# How to pass a linker flag through the compiler. |
| 27210 |
wl=$lt_lt_prog_compiler_wl |
| 27211 |
|
| 27212 |
# Compiler flag to prevent dynamic linking. |
| 27213 |
link_static_flag=$lt_lt_prog_compiler_static |
| 27214 |
|
| 27215 |
# Does compiler simultaneously support -c and -o options? |
| 27216 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 27217 |
|
| 27218 |
# Whether or not to add -lc for building shared libraries. |
| 27219 |
build_libtool_need_lc=$archive_cmds_need_lc |
| 27220 |
|
| 27221 |
# Whether or not to disallow shared libs when runtime libs are static. |
| 27222 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 27223 |
|
| 27224 |
# Compiler flag to allow reflexive dlopens. |
| 27225 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 27226 |
|
| 27227 |
# Compiler flag to generate shared objects directly from archives. |
| 27228 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 27229 |
|
| 27230 |
# Whether the compiler copes with passing no objects directly. |
| 27231 |
compiler_needs_object=$lt_compiler_needs_object |
| 27232 |
|
| 27233 |
# Create an old-style archive from a shared archive. |
| 27234 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 27235 |
|
| 27236 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 27237 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 27238 |
|
| 27239 |
# Commands used to build a shared archive. |
| 27240 |
archive_cmds=$lt_archive_cmds |
| 27241 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| 27242 |
|
| 27243 |
# Commands used to build a loadable module if different from building |
| 27244 |
# a shared archive. |
| 27245 |
module_cmds=$lt_module_cmds |
| 27246 |
module_expsym_cmds=$lt_module_expsym_cmds |
| 27247 |
|
| 27248 |
# Whether we are building with GNU ld or not. |
| 27249 |
with_gnu_ld=$lt_with_gnu_ld |
| 27250 |
|
| 27251 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 27252 |
allow_undefined_flag=$lt_allow_undefined_flag |
| 27253 |
|
| 27254 |
# Flag that enforces no undefined symbols. |
| 27255 |
no_undefined_flag=$lt_no_undefined_flag |
| 27256 |
|
| 27257 |
# Flag to hardcode \$libdir into a binary during linking. |
| 27258 |
# This must work even if \$libdir does not exist |
| 27259 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 27260 |
|
| 27261 |
# Whether we need a single "-rpath" flag with a separated argument. |
| 27262 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 27263 |
|
| 27264 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 27265 |
# DIR into the resulting binary. |
| 27266 |
hardcode_direct=$hardcode_direct |
| 27267 |
|
| 27268 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 27269 |
# DIR into the resulting binary and the resulting library dependency is |
| 27270 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 27271 |
# library is relocated. |
| 27272 |
hardcode_direct_absolute=$hardcode_direct_absolute |
| 27273 |
|
| 27274 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 27275 |
# into the resulting binary. |
| 27276 |
hardcode_minus_L=$hardcode_minus_L |
| 27277 |
|
| 27278 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 27279 |
# into the resulting binary. |
| 27280 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 27281 |
|
| 27282 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
| 27283 |
# into the library and all subsequent libraries and executables linked |
| 27284 |
# against it. |
| 27285 |
hardcode_automatic=$hardcode_automatic |
| 27286 |
|
| 27287 |
# Set to yes if linker adds runtime paths of dependent libraries |
| 27288 |
# to runtime path list. |
| 27289 |
inherit_rpath=$inherit_rpath |
| 27290 |
|
| 27291 |
# Whether libtool must link a program against all its dependency libraries. |
| 27292 |
link_all_deplibs=$link_all_deplibs |
| 27293 |
|
| 27294 |
# Set to "yes" if exported symbols are required. |
| 27295 |
always_export_symbols=$always_export_symbols |
| 27296 |
|
| 27297 |
# The commands to list exported symbols. |
| 27298 |
export_symbols_cmds=$lt_export_symbols_cmds |
| 27299 |
|
| 27300 |
# Symbols that should not be listed in the preloaded symbols. |
| 27301 |
exclude_expsyms=$lt_exclude_expsyms |
| 27302 |
|
| 27303 |
# Symbols that must always be exported. |
| 27304 |
include_expsyms=$lt_include_expsyms |
| 27305 |
|
| 27306 |
# Commands necessary for linking programs (against libraries) with templates. |
| 27307 |
prelink_cmds=$lt_prelink_cmds |
| 27308 |
|
| 27309 |
# Commands necessary for finishing linking programs. |
| 27310 |
postlink_cmds=$lt_postlink_cmds |
| 27311 |
|
| 27312 |
# Specify filename containing input files. |
| 27313 |
file_list_spec=$lt_file_list_spec |
| 27314 |
|
| 27315 |
# How to hardcode a shared library path into an executable. |
| 27316 |
hardcode_action=$hardcode_action |
| 27317 |
|
| 27318 |
# ### END LIBTOOL CONFIG |
| 27319 |
|
| 27320 |
_LT_EOF |
| 27321 |
|
| 27322 |
case $host_os in |
| 27323 |
aix3*) |
| 27324 |
cat <<\_LT_EOF >> "$cfgfile" |
| 27325 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 27326 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 27327 |
# vanish in a puff of smoke. |
| 27328 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 27329 |
COLLECT_NAMES= |
| 27330 |
export COLLECT_NAMES |
| 27331 |
fi |
| 27332 |
_LT_EOF |
| 27333 |
;; |
| 27334 |
esac |
| 27335 |
|
| 27336 |
|
| 27337 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 27338 |
|
| 27339 |
|
| 27340 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 27341 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 27342 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 27343 |
# is reportedly fixed, but why not run on old versions too? |
| 27344 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
| 27345 |
|| (rm -f "$cfgfile"; exit 1) |
| 27346 |
|
| 27347 |
if test x"$xsi_shell" = xyes; then |
| 27348 |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 27349 |
func_dirname ()\ |
| 27350 |
{\ |
| 27351 |
\ case ${1} in\ |
| 27352 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 27353 |
\ * ) func_dirname_result="${3}" ;;\ |
| 27354 |
\ esac\ |
| 27355 |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27356 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27357 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27358 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27359 |
|
| 27360 |
|
| 27361 |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 27362 |
func_basename ()\ |
| 27363 |
{\ |
| 27364 |
\ func_basename_result="${1##*/}"\ |
| 27365 |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27366 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27367 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27368 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27369 |
|
| 27370 |
|
| 27371 |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 27372 |
func_dirname_and_basename ()\ |
| 27373 |
{\ |
| 27374 |
\ case ${1} in\ |
| 27375 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 27376 |
\ * ) func_dirname_result="${3}" ;;\ |
| 27377 |
\ esac\ |
| 27378 |
\ func_basename_result="${1##*/}"\ |
| 27379 |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27380 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27381 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27382 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27383 |
|
| 27384 |
|
| 27385 |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 27386 |
func_stripname ()\ |
| 27387 |
{\ |
| 27388 |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 27389 |
\ # positional parameters, so assign one to ordinary parameter first.\ |
| 27390 |
\ func_stripname_result=${3}\ |
| 27391 |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 27392 |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 27393 |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27394 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27395 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27396 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27397 |
|
| 27398 |
|
| 27399 |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 27400 |
func_split_long_opt ()\ |
| 27401 |
{\ |
| 27402 |
\ func_split_long_opt_name=${1%%=*}\ |
| 27403 |
\ func_split_long_opt_arg=${1#*=}\ |
| 27404 |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27405 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27406 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27407 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27408 |
|
| 27409 |
|
| 27410 |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 27411 |
func_split_short_opt ()\ |
| 27412 |
{\ |
| 27413 |
\ func_split_short_opt_arg=${1#??}\ |
| 27414 |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 27415 |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27416 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27417 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27418 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27419 |
|
| 27420 |
|
| 27421 |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 27422 |
func_lo2o ()\ |
| 27423 |
{\ |
| 27424 |
\ case ${1} in\ |
| 27425 |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 27426 |
\ *) func_lo2o_result=${1} ;;\ |
| 27427 |
\ esac\ |
| 27428 |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27429 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27430 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27431 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27432 |
|
| 27433 |
|
| 27434 |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 27435 |
func_xform ()\ |
| 27436 |
{\ |
| 27437 |
func_xform_result=${1%.*}.lo\ |
| 27438 |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27439 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27440 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27441 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27442 |
|
| 27443 |
|
| 27444 |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 27445 |
func_arith ()\ |
| 27446 |
{\ |
| 27447 |
func_arith_result=$(( $* ))\ |
| 27448 |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27449 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27450 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27451 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27452 |
|
| 27453 |
|
| 27454 |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 27455 |
func_len ()\ |
| 27456 |
{\ |
| 27457 |
func_len_result=${#1}\ |
| 27458 |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27459 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27460 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27461 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27462 |
|
| 27463 |
fi |
| 27464 |
|
| 27465 |
if test x"$lt_shell_append" = xyes; then |
| 27466 |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 27467 |
func_append ()\ |
| 27468 |
{\ |
| 27469 |
eval "${1}+=\\${2}"\ |
| 27470 |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27471 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27472 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27473 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27474 |
|
| 27475 |
|
| 27476 |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 27477 |
func_append_quoted ()\ |
| 27478 |
{\ |
| 27479 |
\ func_quote_for_eval "${2}"\ |
| 27480 |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 27481 |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 27482 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27483 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27484 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27485 |
|
| 27486 |
|
| 27487 |
# Save a `func_append' function call where possible by direct use of '+=' |
| 27488 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 27489 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27490 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27491 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27492 |
else |
| 27493 |
# Save a `func_append' function call even when '+=' is not available |
| 27494 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 27495 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 27496 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 27497 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 27498 |
fi |
| 27499 |
|
| 27500 |
if test x"$_lt_function_replace_fail" = x":"; then |
| 27501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 27502 |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 27503 |
fi |
| 27504 |
|
| 27505 |
|
| 27506 |
mv -f "$cfgfile" "$ofile" || |
| 27507 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 27508 |
chmod +x "$ofile" |
| 27509 |
|
| 27510 |
;; |
| 27511 |
"po-directories":C) |
| 27512 |
for ac_file in $CONFIG_FILES; do |
| 27513 |
# Support "outfile[:infile[:infile...]]" |
| 27514 |
case "$ac_file" in |
| 27515 |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 27516 |
esac |
| 27517 |
# PO directories have a Makefile.in generated from Makefile.in.in. |
| 27518 |
case "$ac_file" in */Makefile.in) |
| 27519 |
# Adjust a relative srcdir. |
| 27520 |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 27521 |
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
| 27522 |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 27523 |
# In autoconf-2.13 it is called $ac_given_srcdir. |
| 27524 |
# In autoconf-2.50 it is called $srcdir. |
| 27525 |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 27526 |
case "$ac_given_srcdir" in |
| 27527 |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 27528 |
/*) top_srcdir="$ac_given_srcdir" ;; |
| 27529 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 27530 |
esac |
| 27531 |
# Treat a directory as a PO directory if and only if it has a |
| 27532 |
# POTFILES.in file. This allows packages to have multiple PO |
| 27533 |
# directories under different names or in different locations. |
| 27534 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 27535 |
rm -f "$ac_dir/POTFILES" |
| 27536 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 27537 |
gt_tab=`printf '\t'` |
| 27538 |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 27539 |
POMAKEFILEDEPS="POTFILES.in" |
| 27540 |
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 27541 |
# on $ac_dir but don't depend on user-specified configuration |
| 27542 |
# parameters. |
| 27543 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 27544 |
# The LINGUAS file contains the set of available languages. |
| 27545 |
if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 27546 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 27547 |
fi |
| 27548 |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 27549 |
# Hide the ALL_LINGUAS assignment from automake < 1.5. |
| 27550 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 27551 |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 27552 |
else |
| 27553 |
# The set of available languages was given in configure.in. |
| 27554 |
# Hide the ALL_LINGUAS assignment from automake < 1.5. |
| 27555 |
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 27556 |
fi |
| 27557 |
# Compute POFILES |
| 27558 |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 27559 |
# Compute UPDATEPOFILES |
| 27560 |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 27561 |
# Compute DUMMYPOFILES |
| 27562 |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 27563 |
# Compute GMOFILES |
| 27564 |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 27565 |
case "$ac_given_srcdir" in |
| 27566 |
.) srcdirpre= ;; |
| 27567 |
*) srcdirpre='$(srcdir)/' ;; |
| 27568 |
esac |
| 27569 |
POFILES= |
| 27570 |
UPDATEPOFILES= |
| 27571 |
DUMMYPOFILES= |
| 27572 |
GMOFILES= |
| 27573 |
for lang in $ALL_LINGUAS; do |
| 27574 |
POFILES="$POFILES $srcdirpre$lang.po" |
| 27575 |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 27576 |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 27577 |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 27578 |
done |
| 27579 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 27580 |
# environment variable. |
| 27581 |
INST_LINGUAS= |
| 27582 |
if test -n "$ALL_LINGUAS"; then |
| 27583 |
for presentlang in $ALL_LINGUAS; do |
| 27584 |
useit=no |
| 27585 |
if test "%UNSET%" != "$LINGUAS"; then |
| 27586 |
desiredlanguages="$LINGUAS" |
| 27587 |
else |
| 27588 |
desiredlanguages="$ALL_LINGUAS" |
| 27589 |
fi |
| 27590 |
for desiredlang in $desiredlanguages; do |
| 27591 |
# Use the presentlang catalog if desiredlang is |
| 27592 |
# a. equal to presentlang, or |
| 27593 |
# b. a variant of presentlang (because in this case, |
| 27594 |
# presentlang can be used as a fallback for messages |
| 27595 |
# which are not translated in the desiredlang catalog). |
| 27596 |
case "$desiredlang" in |
| 27597 |
"$presentlang"*) useit=yes;; |
| 27598 |
esac |
| 27599 |
done |
| 27600 |
if test $useit = yes; then |
| 27601 |
INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 27602 |
fi |
| 27603 |
done |
| 27604 |
fi |
| 27605 |
CATALOGS= |
| 27606 |
if test -n "$INST_LINGUAS"; then |
| 27607 |
for lang in $INST_LINGUAS; do |
| 27608 |
CATALOGS="$CATALOGS $lang.gmo" |
| 27609 |
done |
| 27610 |
fi |
| 27611 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 27612 |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 27613 |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 27614 |
if test -f "$f"; then |
| 27615 |
case "$f" in |
| 27616 |
*.orig | *.bak | *~) ;; |
| 27617 |
*) cat "$f" >> "$ac_dir/Makefile" ;; |
| 27618 |
esac |
| 27619 |
fi |
| 27620 |
done |
| 27621 |
fi |
| 27622 |
;; |
| 27623 |
esac |
| 27624 |
done ;; |
| 27625 |
|
| 27626 |
esac |
| 27627 |
done # for ac_tag |
| 27628 |
|
| 27629 |
|
| 27630 |
as_fn_exit 0 |
| 27631 |
_ACEOF |
| 27632 |
ac_clean_files=$ac_clean_files_save |
| 27633 |
|
| 27634 |
test $ac_write_fail = 0 || |
| 27635 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 27636 |
|
| 27637 |
|
| 27638 |
# configure is writing to config.log, and then calls config.status. |
| 27639 |
# config.status does its own redirection, appending to config.log. |
| 27640 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 27641 |
# by configure, so config.status won't be able to write to it; its |
| 27642 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 27643 |
# effectively closing config.log, so it can be properly (re)opened and |
| 27644 |
# appended to by config.status. When coming back to configure, we |
| 27645 |
# need to make the FD available again. |
| 27646 |
if test "$no_create" != yes; then |
| 27647 |
ac_cs_success=: |
| 27648 |
ac_config_status_args= |
| 27649 |
test "$silent" = yes && |
| 27650 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 27651 |
exec 5>/dev/null |
| 27652 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 27653 |
exec 5>>config.log |
| 27654 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27655 |
# would make configure fail if this is the last instruction. |
| 27656 |
$ac_cs_success || as_fn_exit 1 |
| 27657 |
fi |
| 27658 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 27659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 27660 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 27661 |
fi |
| 27662 |
|