| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.65. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 7 |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 |
# 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 |
case $0 in #(( |
| 93 |
*[\\/]* ) as_myself=$0 ;; |
| 94 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 95 |
for as_dir in $PATH |
| 96 |
do |
| 97 |
IFS=$as_save_IFS |
| 98 |
test -z "$as_dir" && as_dir=. |
| 99 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 |
done |
| 101 |
IFS=$as_save_IFS |
| 102 |
|
| 103 |
;; |
| 104 |
esac |
| 105 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 |
# in which case we are not to be found in the path. |
| 107 |
if test "x$as_myself" = x; then |
| 108 |
as_myself=$0 |
| 109 |
fi |
| 110 |
if test ! -f "$as_myself"; then |
| 111 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 112 |
exit 1 |
| 113 |
fi |
| 114 |
|
| 115 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 116 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 |
# suppresses any "Segmentation fault" message there. '((' could |
| 118 |
# trigger a bug in pdksh 5.2.14. |
| 119 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 |
do eval test x\${$as_var+set} = xset \ |
| 121 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 122 |
done |
| 123 |
PS1='$ ' |
| 124 |
PS2='> ' |
| 125 |
PS4='+ ' |
| 126 |
|
| 127 |
# NLS nuisances. |
| 128 |
LC_ALL=C |
| 129 |
export LC_ALL |
| 130 |
LANGUAGE=C |
| 131 |
export LANGUAGE |
| 132 |
|
| 133 |
# CDPATH. |
| 134 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 |
|
| 136 |
if test "x$CONFIG_SHELL" = x; then |
| 137 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 |
emulate sh |
| 139 |
NULLCMD=: |
| 140 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 |
# is contrary to our usage. Disable this feature. |
| 142 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 |
setopt NO_GLOB_SUBST |
| 144 |
else |
| 145 |
case \`(set -o) 2>/dev/null\` in #( |
| 146 |
*posix*) : |
| 147 |
set -o posix ;; #( |
| 148 |
*) : |
| 149 |
;; |
| 150 |
esac |
| 151 |
fi |
| 152 |
" |
| 153 |
as_required="as_fn_return () { (exit \$1); } |
| 154 |
as_fn_success () { as_fn_return 0; } |
| 155 |
as_fn_failure () { as_fn_return 1; } |
| 156 |
as_fn_ret_success () { return 0; } |
| 157 |
as_fn_ret_failure () { return 1; } |
| 158 |
|
| 159 |
exitcode=0 |
| 160 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 |
|
| 166 |
else |
| 167 |
exitcode=1; echo positional parameters were not saved. |
| 168 |
fi |
| 169 |
test x\$exitcode = x0 || exit 1" |
| 170 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 |
if (eval "$as_required") 2>/dev/null; then : |
| 176 |
as_have_required=yes |
| 177 |
else |
| 178 |
as_have_required=no |
| 179 |
fi |
| 180 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 |
|
| 182 |
else |
| 183 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 |
as_found=false |
| 185 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 |
do |
| 187 |
IFS=$as_save_IFS |
| 188 |
test -z "$as_dir" && as_dir=. |
| 189 |
as_found=: |
| 190 |
case $as_dir in #( |
| 191 |
/*) |
| 192 |
for as_base in sh bash ksh sh5; do |
| 193 |
# Try only shells that exist, to save several forks. |
| 194 |
as_shell=$as_dir/$as_base |
| 195 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 |
break 2 |
| 200 |
fi |
| 201 |
fi |
| 202 |
done;; |
| 203 |
esac |
| 204 |
as_found=false |
| 205 |
done |
| 206 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 |
fi; } |
| 210 |
IFS=$as_save_IFS |
| 211 |
|
| 212 |
|
| 213 |
if test "x$CONFIG_SHELL" != x; then : |
| 214 |
# We cannot yet assume a decent shell, so we have to provide a |
| 215 |
# neutralization value for shells without unset; and this also |
| 216 |
# works around shells that cannot unset nonexistent variables. |
| 217 |
BASH_ENV=/dev/null |
| 218 |
ENV=/dev/null |
| 219 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 |
export CONFIG_SHELL |
| 221 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 |
fi |
| 223 |
|
| 224 |
if test x$as_have_required = xno; then : |
| 225 |
$as_echo "$0: This script requires a shell more modern than all" |
| 226 |
$as_echo "$0: the shells that I found on your system." |
| 227 |
if test x${ZSH_VERSION+set} = xset ; then |
| 228 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 |
else |
| 231 |
$as_echo "$0: Please tell [email protected] about your system, |
| 232 |
$0: including any error possibly output before this |
| 233 |
$0: message. Then install a modern shell, or manually run |
| 234 |
$0: the script under such a shell if you do have one." |
| 235 |
fi |
| 236 |
exit 1 |
| 237 |
fi |
| 238 |
fi |
| 239 |
fi |
| 240 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 |
export SHELL |
| 242 |
# Unset more variables known to interfere with behavior of common tools. |
| 243 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 |
|
| 246 |
## --------------------- ## |
| 247 |
## M4sh Shell Functions. ## |
| 248 |
## --------------------- ## |
| 249 |
# as_fn_unset VAR |
| 250 |
# --------------- |
| 251 |
# Portably unset VAR. |
| 252 |
as_fn_unset () |
| 253 |
{ |
| 254 |
{ eval $1=; unset $1;} |
| 255 |
} |
| 256 |
as_unset=as_fn_unset |
| 257 |
|
| 258 |
# as_fn_set_status STATUS |
| 259 |
# ----------------------- |
| 260 |
# Set $? to STATUS, without forking. |
| 261 |
as_fn_set_status () |
| 262 |
{ |
| 263 |
return $1 |
| 264 |
} # as_fn_set_status |
| 265 |
|
| 266 |
# as_fn_exit STATUS |
| 267 |
# ----------------- |
| 268 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 |
as_fn_exit () |
| 270 |
{ |
| 271 |
set +e |
| 272 |
as_fn_set_status $1 |
| 273 |
exit $1 |
| 274 |
} # as_fn_exit |
| 275 |
|
| 276 |
# as_fn_mkdir_p |
| 277 |
# ------------- |
| 278 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 279 |
as_fn_mkdir_p () |
| 280 |
{ |
| 281 |
|
| 282 |
case $as_dir in #( |
| 283 |
-*) as_dir=./$as_dir;; |
| 284 |
esac |
| 285 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 |
as_dirs= |
| 287 |
while :; do |
| 288 |
case $as_dir in #( |
| 289 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 |
*) as_qdir=$as_dir;; |
| 291 |
esac |
| 292 |
as_dirs="'$as_qdir' $as_dirs" |
| 293 |
as_dir=`$as_dirname -- "$as_dir" || |
| 294 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 297 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 |
$as_echo X"$as_dir" | |
| 299 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 |
s//\1/ |
| 301 |
q |
| 302 |
} |
| 303 |
/^X\(\/\/\)[^/].*/{ |
| 304 |
s//\1/ |
| 305 |
q |
| 306 |
} |
| 307 |
/^X\(\/\/\)$/{ |
| 308 |
s//\1/ |
| 309 |
q |
| 310 |
} |
| 311 |
/^X\(\/\).*/{ |
| 312 |
s//\1/ |
| 313 |
q |
| 314 |
} |
| 315 |
s/.*/./; q'` |
| 316 |
test -d "$as_dir" && break |
| 317 |
done |
| 318 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 |
|
| 321 |
|
| 322 |
} # as_fn_mkdir_p |
| 323 |
# as_fn_append VAR VALUE |
| 324 |
# ---------------------- |
| 325 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 327 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 328 |
# implementations. |
| 329 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 |
eval 'as_fn_append () |
| 331 |
{ |
| 332 |
eval $1+=\$2 |
| 333 |
}' |
| 334 |
else |
| 335 |
as_fn_append () |
| 336 |
{ |
| 337 |
eval $1=\$$1\$2 |
| 338 |
} |
| 339 |
fi # as_fn_append |
| 340 |
|
| 341 |
# as_fn_arith ARG... |
| 342 |
# ------------------ |
| 343 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 |
# must be portable across $(()) and expr. |
| 346 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 |
eval 'as_fn_arith () |
| 348 |
{ |
| 349 |
as_val=$(( $* )) |
| 350 |
}' |
| 351 |
else |
| 352 |
as_fn_arith () |
| 353 |
{ |
| 354 |
as_val=`expr "$@" || test $? -eq 1` |
| 355 |
} |
| 356 |
fi # as_fn_arith |
| 357 |
|
| 358 |
|
| 359 |
# as_fn_error ERROR [LINENO LOG_FD] |
| 360 |
# --------------------------------- |
| 361 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 |
# script with status $?, using 1 if that was 0. |
| 364 |
as_fn_error () |
| 365 |
{ |
| 366 |
as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 |
if test "$3"; then |
| 368 |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 |
fi |
| 371 |
$as_echo "$as_me: error: $1" >&2 |
| 372 |
as_fn_exit $as_status |
| 373 |
} # as_fn_error |
| 374 |
|
| 375 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 |
as_expr=expr |
| 378 |
else |
| 379 |
as_expr=false |
| 380 |
fi |
| 381 |
|
| 382 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 |
as_basename=basename |
| 384 |
else |
| 385 |
as_basename=false |
| 386 |
fi |
| 387 |
|
| 388 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 |
as_dirname=dirname |
| 390 |
else |
| 391 |
as_dirname=false |
| 392 |
fi |
| 393 |
|
| 394 |
as_me=`$as_basename -- "$0" || |
| 395 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 |
X"$0" : 'X\(//\)$' \| \ |
| 397 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 398 |
$as_echo X/"$0" | |
| 399 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 |
s//\1/ |
| 401 |
q |
| 402 |
} |
| 403 |
/^X\/\(\/\/\)$/{ |
| 404 |
s//\1/ |
| 405 |
q |
| 406 |
} |
| 407 |
/^X\/\(\/\).*/{ |
| 408 |
s//\1/ |
| 409 |
q |
| 410 |
} |
| 411 |
s/.*/./; q'` |
| 412 |
|
| 413 |
# Avoid depending upon Character Ranges. |
| 414 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 |
as_cr_digits='0123456789' |
| 418 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 419 |
|
| 420 |
|
| 421 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 426 |
sed -n ' |
| 427 |
p |
| 428 |
/[$]LINENO/= |
| 429 |
' <$as_myself | |
| 430 |
sed ' |
| 431 |
s/[$]LINENO.*/&-/ |
| 432 |
t lineno |
| 433 |
b |
| 434 |
:lineno |
| 435 |
N |
| 436 |
:loop |
| 437 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 438 |
t loop |
| 439 |
s/-\n.*// |
| 440 |
' >$as_me.lineno && |
| 441 |
chmod +x "$as_me.lineno" || |
| 442 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 443 |
|
| 444 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 445 |
# (the dirname of $[0] is not the place where we might find the |
| 446 |
# original and so on. Autoconf is especially sensitive to this). |
| 447 |
. "./$as_me.lineno" |
| 448 |
# Exit status is that of the last command. |
| 449 |
exit |
| 450 |
} |
| 451 |
|
| 452 |
ECHO_C= ECHO_N= ECHO_T= |
| 453 |
case `echo -n x` in #((((( |
| 454 |
-n*) |
| 455 |
case `echo 'xy\c'` in |
| 456 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 457 |
xy) ECHO_C='\c';; |
| 458 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 |
ECHO_T=' ';; |
| 460 |
esac;; |
| 461 |
*) |
| 462 |
ECHO_N='-n';; |
| 463 |
esac |
| 464 |
|
| 465 |
rm -f conf$$ conf$$.exe conf$$.file |
| 466 |
if test -d conf$$.dir; then |
| 467 |
rm -f conf$$.dir/conf$$.file |
| 468 |
else |
| 469 |
rm -f conf$$.dir |
| 470 |
mkdir conf$$.dir 2>/dev/null |
| 471 |
fi |
| 472 |
if (echo >conf$$.file) 2>/dev/null; then |
| 473 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 |
as_ln_s='ln -s' |
| 475 |
# ... but there are two gotchas: |
| 476 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 |
# In both cases, we have to default to `cp -p'. |
| 479 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 |
as_ln_s='cp -p' |
| 481 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 |
as_ln_s=ln |
| 483 |
else |
| 484 |
as_ln_s='cp -p' |
| 485 |
fi |
| 486 |
else |
| 487 |
as_ln_s='cp -p' |
| 488 |
fi |
| 489 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 |
rmdir conf$$.dir 2>/dev/null |
| 491 |
|
| 492 |
if mkdir -p . 2>/dev/null; then |
| 493 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 494 |
else |
| 495 |
test -d ./-p && rmdir ./-p |
| 496 |
as_mkdir_p=false |
| 497 |
fi |
| 498 |
|
| 499 |
if test -x / >/dev/null 2>&1; then |
| 500 |
as_test_x='test -x' |
| 501 |
else |
| 502 |
if ls -dL / >/dev/null 2>&1; then |
| 503 |
as_ls_L_option=L |
| 504 |
else |
| 505 |
as_ls_L_option= |
| 506 |
fi |
| 507 |
as_test_x=' |
| 508 |
eval sh -c '\'' |
| 509 |
if test -d "$1"; then |
| 510 |
test -d "$1/."; |
| 511 |
else |
| 512 |
case $1 in #( |
| 513 |
-*)set "./$1";; |
| 514 |
esac; |
| 515 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 516 |
???[sx]*):;;*)false;;esac;fi |
| 517 |
'\'' sh |
| 518 |
' |
| 519 |
fi |
| 520 |
as_executable_p=$as_test_x |
| 521 |
|
| 522 |
# Sed expression to map a string onto a valid CPP name. |
| 523 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 |
|
| 525 |
# Sed expression to map a string onto a valid variable name. |
| 526 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 |
|
| 528 |
|
| 529 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 |
exec 6>&1 |
| 531 |
|
| 532 |
# Name of the host. |
| 533 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 |
# so uname gets run too. |
| 535 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 |
|
| 537 |
# |
| 538 |
# Initializations. |
| 539 |
# |
| 540 |
ac_default_prefix=/usr/local |
| 541 |
ac_clean_files= |
| 542 |
ac_config_libobj_dir=. |
| 543 |
LIBOBJS= |
| 544 |
cross_compiling=no |
| 545 |
subdirs= |
| 546 |
MFLAGS= |
| 547 |
MAKEFLAGS= |
| 548 |
|
| 549 |
# Identity of this package. |
| 550 |
PACKAGE_NAME= |
| 551 |
PACKAGE_TARNAME= |
| 552 |
PACKAGE_VERSION= |
| 553 |
PACKAGE_STRING= |
| 554 |
PACKAGE_BUGREPORT= |
| 555 |
PACKAGE_URL= |
| 556 |
|
| 557 |
ac_unique_file="src/ps.c" |
| 558 |
# Factoring default headers for most tests. |
| 559 |
ac_includes_default="\ |
| 560 |
#include <stdio.h> |
| 561 |
#ifdef HAVE_SYS_TYPES_H |
| 562 |
# include <sys/types.h> |
| 563 |
#endif |
| 564 |
#ifdef HAVE_SYS_STAT_H |
| 565 |
# include <sys/stat.h> |
| 566 |
#endif |
| 567 |
#ifdef STDC_HEADERS |
| 568 |
# include <stdlib.h> |
| 569 |
# include <stddef.h> |
| 570 |
#else |
| 571 |
# ifdef HAVE_STDLIB_H |
| 572 |
# include <stdlib.h> |
| 573 |
# endif |
| 574 |
#endif |
| 575 |
#ifdef HAVE_STRING_H |
| 576 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 577 |
# include <memory.h> |
| 578 |
# endif |
| 579 |
# include <string.h> |
| 580 |
#endif |
| 581 |
#ifdef HAVE_STRINGS_H |
| 582 |
# include <strings.h> |
| 583 |
#endif |
| 584 |
#ifdef HAVE_INTTYPES_H |
| 585 |
# include <inttypes.h> |
| 586 |
#endif |
| 587 |
#ifdef HAVE_STDINT_H |
| 588 |
# include <stdint.h> |
| 589 |
#endif |
| 590 |
#ifdef HAVE_UNISTD_H |
| 591 |
# include <unistd.h> |
| 592 |
#endif" |
| 593 |
|
| 594 |
gl_func_list= |
| 595 |
gl_header_list= |
| 596 |
gl_getopt_required=POSIX |
| 597 |
gl_getopt_required=POSIX |
| 598 |
ac_subst_vars='gltests_LTLIBOBJS |
| 599 |
gltests_LIBOBJS |
| 600 |
gl_LTLIBOBJS |
| 601 |
gl_LIBOBJS |
| 602 |
am__EXEEXT_FALSE |
| 603 |
am__EXEEXT_TRUE |
| 604 |
LTLIBOBJS |
| 605 |
LIBOBJS |
| 606 |
DEPS_LIBS |
| 607 |
DEPS_CFLAGS |
| 608 |
PKG_CONFIG |
| 609 |
X_EXTRA_LIBS |
| 610 |
X_LIBS |
| 611 |
X_PRE_LIBS |
| 612 |
X_CFLAGS |
| 613 |
XMKMF |
| 614 |
USE_OFF_T_FALSE |
| 615 |
USE_OFF_T_TRUE |
| 616 |
USE_SETENV_CODE_FALSE |
| 617 |
USE_SETENV_CODE_TRUE |
| 618 |
ENABLE_INTERNATIONAL_FALSE |
| 619 |
ENABLE_INTERNATIONAL_TRUE |
| 620 |
ENABLE_FALLBACK_STYLES_FALSE |
| 621 |
ENABLE_FALLBACK_STYLES_TRUE |
| 622 |
USE_SCROLLBAR_CODE_FALSE |
| 623 |
USE_SCROLLBAR_CODE_TRUE |
| 624 |
USE_BACKING_PIXMAP |
| 625 |
SAVE_DIR |
| 626 |
SCRATCH_DIR |
| 627 |
PRINT_COMMAND |
| 628 |
PAPERSIZE |
| 629 |
LIBGNU_LTLIBDEPS |
| 630 |
LIBGNU_LIBDEPS |
| 631 |
gltests_WITNESS |
| 632 |
HAVE_UNISTD_H |
| 633 |
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H |
| 634 |
NEXT_UNISTD_H |
| 635 |
PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
| 636 |
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
| 637 |
TIME_H_DEFINES_STRUCT_TIMESPEC |
| 638 |
NEXT_AS_FIRST_DIRECTIVE_TIME_H |
| 639 |
NEXT_TIME_H |
| 640 |
REPLACE_TIMEGM |
| 641 |
REPLACE_NANOSLEEP |
| 642 |
REPLACE_MKTIME |
| 643 |
REPLACE_LOCALTIME_R |
| 644 |
HAVE_TIMEGM |
| 645 |
HAVE_STRPTIME |
| 646 |
HAVE_NANOSLEEP |
| 647 |
HAVE_DECL_LOCALTIME_R |
| 648 |
GNULIB_TIME_R |
| 649 |
GNULIB_TIMEGM |
| 650 |
GNULIB_STRPTIME |
| 651 |
GNULIB_NANOSLEEP |
| 652 |
GNULIB_MKTIME |
| 653 |
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H |
| 654 |
NEXT_SYS_STAT_H |
| 655 |
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 656 |
NEXT_STDLIB_H |
| 657 |
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
| 658 |
NEXT_STDDEF_H |
| 659 |
GL_GENERATE_STDDEF_H_FALSE |
| 660 |
GL_GENERATE_STDDEF_H_TRUE |
| 661 |
STDDEF_H |
| 662 |
HAVE_WCHAR_T |
| 663 |
REPLACE_NULL |
| 664 |
HAVE__BOOL |
| 665 |
GL_GENERATE_STDBOOL_H_FALSE |
| 666 |
GL_GENERATE_STDBOOL_H_TRUE |
| 667 |
STDBOOL_H |
| 668 |
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H |
| 669 |
NEXT_SIGNAL_H |
| 670 |
HAVE_SIGHANDLER_T |
| 671 |
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T |
| 672 |
HAVE_STRUCT_SIGACTION_SA_SIGACTION |
| 673 |
HAVE_SIGACTION |
| 674 |
HAVE_SIGINFO_T |
| 675 |
HAVE_SIGSET_T |
| 676 |
HAVE_POSIX_SIGNALBLOCKING |
| 677 |
GNULIB_SIGACTION |
| 678 |
GNULIB_SIGPROCMASK |
| 679 |
GNULIB_SIGNAL_H_SIGPIPE |
| 680 |
REPLACE_UTIMENSAT |
| 681 |
REPLACE_STAT |
| 682 |
REPLACE_MKNOD |
| 683 |
REPLACE_MKFIFO |
| 684 |
REPLACE_MKDIR |
| 685 |
REPLACE_LSTAT |
| 686 |
REPLACE_FUTIMENS |
| 687 |
REPLACE_FSTATAT |
| 688 |
REPLACE_FSTAT |
| 689 |
HAVE_UTIMENSAT |
| 690 |
HAVE_MKNODAT |
| 691 |
HAVE_MKNOD |
| 692 |
HAVE_MKFIFOAT |
| 693 |
HAVE_MKFIFO |
| 694 |
HAVE_MKDIRAT |
| 695 |
HAVE_LSTAT |
| 696 |
HAVE_LCHMOD |
| 697 |
HAVE_FUTIMENS |
| 698 |
HAVE_FSTATAT |
| 699 |
HAVE_FCHMODAT |
| 700 |
GNULIB_UTIMENSAT |
| 701 |
GNULIB_STAT |
| 702 |
GNULIB_MKNODAT |
| 703 |
GNULIB_MKNOD |
| 704 |
GNULIB_MKFIFOAT |
| 705 |
GNULIB_MKFIFO |
| 706 |
GNULIB_MKDIRAT |
| 707 |
GNULIB_LSTAT |
| 708 |
GNULIB_LCHMOD |
| 709 |
GNULIB_FUTIMENS |
| 710 |
GNULIB_FSTATAT |
| 711 |
GNULIB_FCHMODAT |
| 712 |
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H |
| 713 |
NEXT_INTTYPES_H |
| 714 |
UINT64_MAX_EQ_ULONG_MAX |
| 715 |
UINT32_MAX_LT_UINTMAX_MAX |
| 716 |
PRIPTR_PREFIX |
| 717 |
PRI_MACROS_BROKEN |
| 718 |
INT64_MAX_EQ_LONG_MAX |
| 719 |
INT32_MAX_LT_INTMAX_MAX |
| 720 |
HAVE_DECL_STRTOUMAX |
| 721 |
HAVE_DECL_STRTOIMAX |
| 722 |
HAVE_DECL_IMAXDIV |
| 723 |
HAVE_DECL_IMAXABS |
| 724 |
GNULIB_STRTOUMAX |
| 725 |
GNULIB_STRTOIMAX |
| 726 |
GNULIB_IMAXDIV |
| 727 |
GNULIB_IMAXABS |
| 728 |
GL_GENERATE_STDINT_H_FALSE |
| 729 |
GL_GENERATE_STDINT_H_TRUE |
| 730 |
STDINT_H |
| 731 |
WINT_T_SUFFIX |
| 732 |
WCHAR_T_SUFFIX |
| 733 |
SIG_ATOMIC_T_SUFFIX |
| 734 |
SIZE_T_SUFFIX |
| 735 |
PTRDIFF_T_SUFFIX |
| 736 |
HAVE_SIGNED_WINT_T |
| 737 |
HAVE_SIGNED_WCHAR_T |
| 738 |
HAVE_SIGNED_SIG_ATOMIC_T |
| 739 |
BITSIZEOF_WINT_T |
| 740 |
BITSIZEOF_WCHAR_T |
| 741 |
BITSIZEOF_SIG_ATOMIC_T |
| 742 |
BITSIZEOF_SIZE_T |
| 743 |
BITSIZEOF_PTRDIFF_T |
| 744 |
APPLE_UNIVERSAL_BUILD |
| 745 |
HAVE_SYS_BITYPES_H |
| 746 |
HAVE_SYS_INTTYPES_H |
| 747 |
HAVE_STDINT_H |
| 748 |
NEXT_AS_FIRST_DIRECTIVE_STDINT_H |
| 749 |
NEXT_STDINT_H |
| 750 |
HAVE_SYS_TYPES_H |
| 751 |
HAVE_INTTYPES_H |
| 752 |
HAVE_WCHAR_H |
| 753 |
HAVE_UNSIGNED_LONG_LONG_INT |
| 754 |
HAVE_LONG_LONG_INT |
| 755 |
NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H |
| 756 |
NEXT_SYS_TIME_H |
| 757 |
REPLACE_GETTIMEOFDAY |
| 758 |
HAVE_SYS_TIME_H |
| 759 |
HAVE_STRUCT_TIMEVAL |
| 760 |
HAVE_GETTIMEOFDAY |
| 761 |
GNULIB_GETTIMEOFDAY |
| 762 |
LTLIBINTL |
| 763 |
LIBINTL |
| 764 |
GETOPT_H |
| 765 |
HAVE_GETOPT_H |
| 766 |
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H |
| 767 |
NEXT_GETOPT_H |
| 768 |
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS |
| 769 |
UNISTD_H_HAVE_WINSOCK2_H |
| 770 |
REPLACE_WRITE |
| 771 |
REPLACE_USLEEP |
| 772 |
REPLACE_UNLINKAT |
| 773 |
REPLACE_UNLINK |
| 774 |
REPLACE_TTYNAME_R |
| 775 |
REPLACE_SYMLINK |
| 776 |
REPLACE_SLEEP |
| 777 |
REPLACE_RMDIR |
| 778 |
REPLACE_READLINK |
| 779 |
REPLACE_READ |
| 780 |
REPLACE_PWRITE |
| 781 |
REPLACE_PREAD |
| 782 |
REPLACE_LSEEK |
| 783 |
REPLACE_LINKAT |
| 784 |
REPLACE_LINK |
| 785 |
REPLACE_LCHOWN |
| 786 |
REPLACE_GETPAGESIZE |
| 787 |
REPLACE_GETGROUPS |
| 788 |
REPLACE_GETLOGIN_R |
| 789 |
REPLACE_GETDOMAINNAME |
| 790 |
REPLACE_GETCWD |
| 791 |
REPLACE_FCHOWNAT |
| 792 |
REPLACE_DUP2 |
| 793 |
REPLACE_DUP |
| 794 |
REPLACE_CLOSE |
| 795 |
REPLACE_CHOWN |
| 796 |
HAVE_SYS_PARAM_H |
| 797 |
HAVE_OS_H |
| 798 |
HAVE_DECL_TTYNAME_R |
| 799 |
HAVE_DECL_GETUSERSHELL |
| 800 |
HAVE_DECL_GETPAGESIZE |
| 801 |
HAVE_DECL_GETLOGIN_R |
| 802 |
HAVE_DECL_GETDOMAINNAME |
| 803 |
HAVE_DECL_FCHDIR |
| 804 |
HAVE_DECL_ENVIRON |
| 805 |
HAVE_USLEEP |
| 806 |
HAVE_UNLINKAT |
| 807 |
HAVE_SYMLINKAT |
| 808 |
HAVE_SYMLINK |
| 809 |
HAVE_SLEEP |
| 810 |
HAVE_READLINKAT |
| 811 |
HAVE_READLINK |
| 812 |
HAVE_PWRITE |
| 813 |
HAVE_PREAD |
| 814 |
HAVE_PIPE2 |
| 815 |
HAVE_PIPE |
| 816 |
HAVE_LINKAT |
| 817 |
HAVE_LINK |
| 818 |
HAVE_LCHOWN |
| 819 |
HAVE_GETPAGESIZE |
| 820 |
HAVE_GETLOGIN |
| 821 |
HAVE_GETHOSTNAME |
| 822 |
HAVE_GETGROUPS |
| 823 |
HAVE_GETDTABLESIZE |
| 824 |
HAVE_FTRUNCATE |
| 825 |
HAVE_FSYNC |
| 826 |
HAVE_FCHOWNAT |
| 827 |
HAVE_FCHDIR |
| 828 |
HAVE_FACCESSAT |
| 829 |
HAVE_EUIDACCESS |
| 830 |
HAVE_DUP3 |
| 831 |
HAVE_DUP2 |
| 832 |
HAVE_CHOWN |
| 833 |
GNULIB_WRITE |
| 834 |
GNULIB_USLEEP |
| 835 |
GNULIB_UNLINKAT |
| 836 |
GNULIB_UNLINK |
| 837 |
GNULIB_UNISTD_H_SIGPIPE |
| 838 |
GNULIB_UNISTD_H_NONBLOCKING |
| 839 |
GNULIB_UNISTD_H_GETOPT |
| 840 |
GNULIB_TTYNAME_R |
| 841 |
GNULIB_SYMLINKAT |
| 842 |
GNULIB_SYMLINK |
| 843 |
GNULIB_SLEEP |
| 844 |
GNULIB_RMDIR |
| 845 |
GNULIB_READLINKAT |
| 846 |
GNULIB_READLINK |
| 847 |
GNULIB_READ |
| 848 |
GNULIB_PWRITE |
| 849 |
GNULIB_PREAD |
| 850 |
GNULIB_PIPE2 |
| 851 |
GNULIB_PIPE |
| 852 |
GNULIB_LSEEK |
| 853 |
GNULIB_LINKAT |
| 854 |
GNULIB_LINK |
| 855 |
GNULIB_LCHOWN |
| 856 |
GNULIB_GETUSERSHELL |
| 857 |
GNULIB_GETPAGESIZE |
| 858 |
GNULIB_GETLOGIN_R |
| 859 |
GNULIB_GETLOGIN |
| 860 |
GNULIB_GETHOSTNAME |
| 861 |
GNULIB_GETGROUPS |
| 862 |
GNULIB_GETDTABLESIZE |
| 863 |
GNULIB_GETDOMAINNAME |
| 864 |
GNULIB_GETCWD |
| 865 |
GNULIB_FTRUNCATE |
| 866 |
GNULIB_FSYNC |
| 867 |
GNULIB_FCHOWNAT |
| 868 |
GNULIB_FCHDIR |
| 869 |
GNULIB_FACCESSAT |
| 870 |
GNULIB_EUIDACCESS |
| 871 |
GNULIB_ENVIRON |
| 872 |
GNULIB_DUP3 |
| 873 |
GNULIB_DUP2 |
| 874 |
GNULIB_CLOSE |
| 875 |
GNULIB_CHOWN |
| 876 |
EOVERFLOW_VALUE |
| 877 |
EOVERFLOW_HIDDEN |
| 878 |
ENOLINK_VALUE |
| 879 |
ENOLINK_HIDDEN |
| 880 |
EMULTIHOP_VALUE |
| 881 |
EMULTIHOP_HIDDEN |
| 882 |
GL_GENERATE_ERRNO_H_FALSE |
| 883 |
GL_GENERATE_ERRNO_H_TRUE |
| 884 |
ERRNO_H |
| 885 |
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H |
| 886 |
NEXT_ERRNO_H |
| 887 |
PRAGMA_COLUMNS |
| 888 |
PRAGMA_SYSTEM_HEADER |
| 889 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 890 |
INCLUDE_NEXT |
| 891 |
REPLACE_WCTOMB |
| 892 |
REPLACE_UNSETENV |
| 893 |
REPLACE_STRTOD |
| 894 |
REPLACE_SETENV |
| 895 |
REPLACE_REALPATH |
| 896 |
REPLACE_REALLOC |
| 897 |
REPLACE_PUTENV |
| 898 |
REPLACE_MKSTEMP |
| 899 |
REPLACE_MBTOWC |
| 900 |
REPLACE_MALLOC |
| 901 |
REPLACE_CANONICALIZE_FILE_NAME |
| 902 |
REPLACE_CALLOC |
| 903 |
HAVE_DECL_UNSETENV |
| 904 |
HAVE_UNLOCKPT |
| 905 |
HAVE_SYS_LOADAVG_H |
| 906 |
HAVE_STRUCT_RANDOM_DATA |
| 907 |
HAVE_STRTOULL |
| 908 |
HAVE_STRTOLL |
| 909 |
HAVE_STRTOD |
| 910 |
HAVE_DECL_SETENV |
| 911 |
HAVE_SETENV |
| 912 |
HAVE_RPMATCH |
| 913 |
HAVE_REALPATH |
| 914 |
HAVE_RANDOM_R |
| 915 |
HAVE_RANDOM_H |
| 916 |
HAVE_PTSNAME |
| 917 |
HAVE_MKSTEMPS |
| 918 |
HAVE_MKSTEMP |
| 919 |
HAVE_MKOSTEMPS |
| 920 |
HAVE_MKOSTEMP |
| 921 |
HAVE_MKDTEMP |
| 922 |
HAVE_GRANTPT |
| 923 |
HAVE_GETSUBOPT |
| 924 |
HAVE_DECL_GETLOADAVG |
| 925 |
HAVE_CANONICALIZE_FILE_NAME |
| 926 |
HAVE_ATOLL |
| 927 |
HAVE__EXIT |
| 928 |
GNULIB_WCTOMB |
| 929 |
GNULIB_UNSETENV |
| 930 |
GNULIB_UNLOCKPT |
| 931 |
GNULIB_SYSTEM_POSIX |
| 932 |
GNULIB_STRTOULL |
| 933 |
GNULIB_STRTOLL |
| 934 |
GNULIB_STRTOD |
| 935 |
GNULIB_SETENV |
| 936 |
GNULIB_RPMATCH |
| 937 |
GNULIB_REALPATH |
| 938 |
GNULIB_REALLOC_POSIX |
| 939 |
GNULIB_RANDOM_R |
| 940 |
GNULIB_PUTENV |
| 941 |
GNULIB_PTSNAME |
| 942 |
GNULIB_MKSTEMPS |
| 943 |
GNULIB_MKSTEMP |
| 944 |
GNULIB_MKOSTEMPS |
| 945 |
GNULIB_MKOSTEMP |
| 946 |
GNULIB_MKDTEMP |
| 947 |
GNULIB_MBTOWC |
| 948 |
GNULIB_MALLOC_POSIX |
| 949 |
GNULIB_GRANTPT |
| 950 |
GNULIB_GETSUBOPT |
| 951 |
GNULIB_GETLOADAVG |
| 952 |
GNULIB_CANONICALIZE_FILE_NAME |
| 953 |
GNULIB_CALLOC_POSIX |
| 954 |
GNULIB_ATOLL |
| 955 |
GNULIB__EXIT |
| 956 |
GL_GENERATE_ALLOCA_H_FALSE |
| 957 |
GL_GENERATE_ALLOCA_H_TRUE |
| 958 |
ALLOCA_H |
| 959 |
ALLOCA |
| 960 |
GL_COND_LIBTOOL_FALSE |
| 961 |
GL_COND_LIBTOOL_TRUE |
| 962 |
EGREP |
| 963 |
GREP |
| 964 |
CPP |
| 965 |
host_os |
| 966 |
host_vendor |
| 967 |
host_cpu |
| 968 |
host |
| 969 |
build_os |
| 970 |
build_vendor |
| 971 |
build_cpu |
| 972 |
build |
| 973 |
RANLIB |
| 974 |
am__fastdepCC_FALSE |
| 975 |
am__fastdepCC_TRUE |
| 976 |
CCDEPMODE |
| 977 |
AMDEPBACKSLASH |
| 978 |
AMDEP_FALSE |
| 979 |
AMDEP_TRUE |
| 980 |
am__quote |
| 981 |
am__include |
| 982 |
DEPDIR |
| 983 |
OBJEXT |
| 984 |
EXEEXT |
| 985 |
ac_ct_CC |
| 986 |
CPPFLAGS |
| 987 |
LDFLAGS |
| 988 |
CFLAGS |
| 989 |
CC |
| 990 |
MANUALEDITION |
| 991 |
MAINT |
| 992 |
MAINTAINER_MODE_FALSE |
| 993 |
MAINTAINER_MODE_TRUE |
| 994 |
am__untar |
| 995 |
am__tar |
| 996 |
AMTAR |
| 997 |
am__leading_dot |
| 998 |
SET_MAKE |
| 999 |
AWK |
| 1000 |
mkdir_p |
| 1001 |
MKDIR_P |
| 1002 |
INSTALL_STRIP_PROGRAM |
| 1003 |
STRIP |
| 1004 |
install_sh |
| 1005 |
MAKEINFO |
| 1006 |
AUTOHEADER |
| 1007 |
AUTOMAKE |
| 1008 |
AUTOCONF |
| 1009 |
ACLOCAL |
| 1010 |
VERSION |
| 1011 |
PACKAGE |
| 1012 |
CYGPATH_W |
| 1013 |
am__isrc |
| 1014 |
INSTALL_DATA |
| 1015 |
INSTALL_SCRIPT |
| 1016 |
INSTALL_PROGRAM |
| 1017 |
target_alias |
| 1018 |
host_alias |
| 1019 |
build_alias |
| 1020 |
LIBS |
| 1021 |
ECHO_T |
| 1022 |
ECHO_N |
| 1023 |
ECHO_C |
| 1024 |
DEFS |
| 1025 |
mandir |
| 1026 |
localedir |
| 1027 |
libdir |
| 1028 |
psdir |
| 1029 |
pdfdir |
| 1030 |
dvidir |
| 1031 |
htmldir |
| 1032 |
infodir |
| 1033 |
docdir |
| 1034 |
oldincludedir |
| 1035 |
includedir |
| 1036 |
localstatedir |
| 1037 |
sharedstatedir |
| 1038 |
sysconfdir |
| 1039 |
datadir |
| 1040 |
datarootdir |
| 1041 |
libexecdir |
| 1042 |
sbindir |
| 1043 |
bindir |
| 1044 |
program_transform_name |
| 1045 |
prefix |
| 1046 |
exec_prefix |
| 1047 |
PACKAGE_URL |
| 1048 |
PACKAGE_BUGREPORT |
| 1049 |
PACKAGE_STRING |
| 1050 |
PACKAGE_VERSION |
| 1051 |
PACKAGE_TARNAME |
| 1052 |
PACKAGE_NAME |
| 1053 |
PATH_SEPARATOR |
| 1054 |
SHELL' |
| 1055 |
ac_subst_files='' |
| 1056 |
ac_user_opts=' |
| 1057 |
enable_option_checking |
| 1058 |
enable_maintainer_mode |
| 1059 |
enable_dependency_tracking |
| 1060 |
enable_largefile |
| 1061 |
with_libzio |
| 1062 |
with_default_papersize |
| 1063 |
with_print_command |
| 1064 |
with_user_defaults_file |
| 1065 |
with_scratch_dir |
| 1066 |
with_save_dir |
| 1067 |
enable_ps_level_one |
| 1068 |
enable_signal_handler |
| 1069 |
enable_backing_pixmap |
| 1070 |
enable_scrollbar_code |
| 1071 |
enable_memmove_code |
| 1072 |
enable_runtime_messages |
| 1073 |
enable_fallback_styles |
| 1074 |
enable_international |
| 1075 |
enable_SIGCHLD_fallback |
| 1076 |
enable_setenv_code |
| 1077 |
enable_off_t |
| 1078 |
with_x |
| 1079 |
' |
| 1080 |
ac_precious_vars='build_alias |
| 1081 |
host_alias |
| 1082 |
target_alias |
| 1083 |
CC |
| 1084 |
CFLAGS |
| 1085 |
LDFLAGS |
| 1086 |
LIBS |
| 1087 |
CPPFLAGS |
| 1088 |
CPP |
| 1089 |
XMKMF |
| 1090 |
PKG_CONFIG |
| 1091 |
DEPS_CFLAGS |
| 1092 |
DEPS_LIBS' |
| 1093 |
|
| 1094 |
|
| 1095 |
# Initialize some variables set by options. |
| 1096 |
ac_init_help= |
| 1097 |
ac_init_version=false |
| 1098 |
ac_unrecognized_opts= |
| 1099 |
ac_unrecognized_sep= |
| 1100 |
# The variables have the same names as the options, with |
| 1101 |
# dashes changed to underlines. |
| 1102 |
cache_file=/dev/null |
| 1103 |
exec_prefix=NONE |
| 1104 |
no_create= |
| 1105 |
no_recursion= |
| 1106 |
prefix=NONE |
| 1107 |
program_prefix=NONE |
| 1108 |
program_suffix=NONE |
| 1109 |
program_transform_name=s,x,x, |
| 1110 |
silent= |
| 1111 |
site= |
| 1112 |
srcdir= |
| 1113 |
verbose= |
| 1114 |
x_includes=NONE |
| 1115 |
x_libraries=NONE |
| 1116 |
|
| 1117 |
# Installation directory options. |
| 1118 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1119 |
# and all the variables that are supposed to be based on exec_prefix |
| 1120 |
# by default will actually change. |
| 1121 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 1122 |
# (The list follows the same order as the GNU Coding Standards.) |
| 1123 |
bindir='${exec_prefix}/bin' |
| 1124 |
sbindir='${exec_prefix}/sbin' |
| 1125 |
libexecdir='${exec_prefix}/libexec' |
| 1126 |
datarootdir='${prefix}/share' |
| 1127 |
datadir='${datarootdir}' |
| 1128 |
sysconfdir='${prefix}/etc' |
| 1129 |
sharedstatedir='${prefix}/com' |
| 1130 |
localstatedir='${prefix}/var' |
| 1131 |
includedir='${prefix}/include' |
| 1132 |
oldincludedir='/usr/include' |
| 1133 |
docdir='${datarootdir}/doc/${PACKAGE}' |
| 1134 |
infodir='${datarootdir}/info' |
| 1135 |
htmldir='${docdir}' |
| 1136 |
dvidir='${docdir}' |
| 1137 |
pdfdir='${docdir}' |
| 1138 |
psdir='${docdir}' |
| 1139 |
libdir='${exec_prefix}/lib' |
| 1140 |
localedir='${datarootdir}/locale' |
| 1141 |
mandir='${datarootdir}/man' |
| 1142 |
|
| 1143 |
ac_prev= |
| 1144 |
ac_dashdash= |
| 1145 |
for ac_option |
| 1146 |
do |
| 1147 |
# If the previous option needs an argument, assign it. |
| 1148 |
if test -n "$ac_prev"; then |
| 1149 |
eval $ac_prev=\$ac_option |
| 1150 |
ac_prev= |
| 1151 |
continue |
| 1152 |
fi |
| 1153 |
|
| 1154 |
case $ac_option in |
| 1155 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1156 |
*) ac_optarg=yes ;; |
| 1157 |
esac |
| 1158 |
|
| 1159 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 1160 |
|
| 1161 |
case $ac_dashdash$ac_option in |
| 1162 |
--) |
| 1163 |
ac_dashdash=yes ;; |
| 1164 |
|
| 1165 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1166 |
ac_prev=bindir ;; |
| 1167 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1168 |
bindir=$ac_optarg ;; |
| 1169 |
|
| 1170 |
-build | --build | --buil | --bui | --bu) |
| 1171 |
ac_prev=build_alias ;; |
| 1172 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1173 |
build_alias=$ac_optarg ;; |
| 1174 |
|
| 1175 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1176 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1177 |
ac_prev=cache_file ;; |
| 1178 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1179 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1180 |
cache_file=$ac_optarg ;; |
| 1181 |
|
| 1182 |
--config-cache | -C) |
| 1183 |
cache_file=config.cache ;; |
| 1184 |
|
| 1185 |
-datadir | --datadir | --datadi | --datad) |
| 1186 |
ac_prev=datadir ;; |
| 1187 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1188 |
datadir=$ac_optarg ;; |
| 1189 |
|
| 1190 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1191 |
| --dataroo | --dataro | --datar) |
| 1192 |
ac_prev=datarootdir ;; |
| 1193 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1194 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1195 |
datarootdir=$ac_optarg ;; |
| 1196 |
|
| 1197 |
-disable-* | --disable-*) |
| 1198 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1199 |
# Reject names that are not valid shell variable names. |
| 1200 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1201 |
as_fn_error "invalid feature name: $ac_useropt" |
| 1202 |
ac_useropt_orig=$ac_useropt |
| 1203 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1204 |
case $ac_user_opts in |
| 1205 |
*" |
| 1206 |
"enable_$ac_useropt" |
| 1207 |
"*) ;; |
| 1208 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1209 |
ac_unrecognized_sep=', ';; |
| 1210 |
esac |
| 1211 |
eval enable_$ac_useropt=no ;; |
| 1212 |
|
| 1213 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1214 |
ac_prev=docdir ;; |
| 1215 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1216 |
docdir=$ac_optarg ;; |
| 1217 |
|
| 1218 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1219 |
ac_prev=dvidir ;; |
| 1220 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1221 |
dvidir=$ac_optarg ;; |
| 1222 |
|
| 1223 |
-enable-* | --enable-*) |
| 1224 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1225 |
# Reject names that are not valid shell variable names. |
| 1226 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1227 |
as_fn_error "invalid feature name: $ac_useropt" |
| 1228 |
ac_useropt_orig=$ac_useropt |
| 1229 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1230 |
case $ac_user_opts in |
| 1231 |
*" |
| 1232 |
"enable_$ac_useropt" |
| 1233 |
"*) ;; |
| 1234 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1235 |
ac_unrecognized_sep=', ';; |
| 1236 |
esac |
| 1237 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1238 |
|
| 1239 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1240 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1241 |
| --exec | --exe | --ex) |
| 1242 |
ac_prev=exec_prefix ;; |
| 1243 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1244 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1245 |
| --exec=* | --exe=* | --ex=*) |
| 1246 |
exec_prefix=$ac_optarg ;; |
| 1247 |
|
| 1248 |
-gas | --gas | --ga | --g) |
| 1249 |
# Obsolete; use --with-gas. |
| 1250 |
with_gas=yes ;; |
| 1251 |
|
| 1252 |
-help | --help | --hel | --he | -h) |
| 1253 |
ac_init_help=long ;; |
| 1254 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1255 |
ac_init_help=recursive ;; |
| 1256 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1257 |
ac_init_help=short ;; |
| 1258 |
|
| 1259 |
-host | --host | --hos | --ho) |
| 1260 |
ac_prev=host_alias ;; |
| 1261 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1262 |
host_alias=$ac_optarg ;; |
| 1263 |
|
| 1264 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1265 |
ac_prev=htmldir ;; |
| 1266 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1267 |
| --ht=*) |
| 1268 |
htmldir=$ac_optarg ;; |
| 1269 |
|
| 1270 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1271 |
| --includ | --inclu | --incl | --inc) |
| 1272 |
ac_prev=includedir ;; |
| 1273 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1274 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1275 |
includedir=$ac_optarg ;; |
| 1276 |
|
| 1277 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1278 |
ac_prev=infodir ;; |
| 1279 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1280 |
infodir=$ac_optarg ;; |
| 1281 |
|
| 1282 |
-libdir | --libdir | --libdi | --libd) |
| 1283 |
ac_prev=libdir ;; |
| 1284 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1285 |
libdir=$ac_optarg ;; |
| 1286 |
|
| 1287 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1288 |
| --libexe | --libex | --libe) |
| 1289 |
ac_prev=libexecdir ;; |
| 1290 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1291 |
| --libexe=* | --libex=* | --libe=*) |
| 1292 |
libexecdir=$ac_optarg ;; |
| 1293 |
|
| 1294 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1295 |
ac_prev=localedir ;; |
| 1296 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1297 |
localedir=$ac_optarg ;; |
| 1298 |
|
| 1299 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1300 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1301 |
ac_prev=localstatedir ;; |
| 1302 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1303 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1304 |
localstatedir=$ac_optarg ;; |
| 1305 |
|
| 1306 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1307 |
ac_prev=mandir ;; |
| 1308 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1309 |
mandir=$ac_optarg ;; |
| 1310 |
|
| 1311 |
-nfp | --nfp | --nf) |
| 1312 |
# Obsolete; use --without-fp. |
| 1313 |
with_fp=no ;; |
| 1314 |
|
| 1315 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1316 |
| --no-cr | --no-c | -n) |
| 1317 |
no_create=yes ;; |
| 1318 |
|
| 1319 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1320 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1321 |
no_recursion=yes ;; |
| 1322 |
|
| 1323 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1324 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1325 |
| --oldin | --oldi | --old | --ol | --o) |
| 1326 |
ac_prev=oldincludedir ;; |
| 1327 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1328 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1329 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1330 |
oldincludedir=$ac_optarg ;; |
| 1331 |
|
| 1332 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1333 |
ac_prev=prefix ;; |
| 1334 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1335 |
prefix=$ac_optarg ;; |
| 1336 |
|
| 1337 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1338 |
| --program-pre | --program-pr | --program-p) |
| 1339 |
ac_prev=program_prefix ;; |
| 1340 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1341 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1342 |
program_prefix=$ac_optarg ;; |
| 1343 |
|
| 1344 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1345 |
| --program-suf | --program-su | --program-s) |
| 1346 |
ac_prev=program_suffix ;; |
| 1347 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1348 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1349 |
program_suffix=$ac_optarg ;; |
| 1350 |
|
| 1351 |
-program-transform-name | --program-transform-name \ |
| 1352 |
| --program-transform-nam | --program-transform-na \ |
| 1353 |
| --program-transform-n | --program-transform- \ |
| 1354 |
| --program-transform | --program-transfor \ |
| 1355 |
| --program-transfo | --program-transf \ |
| 1356 |
| --program-trans | --program-tran \ |
| 1357 |
| --progr-tra | --program-tr | --program-t) |
| 1358 |
ac_prev=program_transform_name ;; |
| 1359 |
-program-transform-name=* | --program-transform-name=* \ |
| 1360 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1361 |
| --program-transform-n=* | --program-transform-=* \ |
| 1362 |
| --program-transform=* | --program-transfor=* \ |
| 1363 |
| --program-transfo=* | --program-transf=* \ |
| 1364 |
| --program-trans=* | --program-tran=* \ |
| 1365 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1366 |
program_transform_name=$ac_optarg ;; |
| 1367 |
|
| 1368 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1369 |
ac_prev=pdfdir ;; |
| 1370 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1371 |
pdfdir=$ac_optarg ;; |
| 1372 |
|
| 1373 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1374 |
ac_prev=psdir ;; |
| 1375 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1376 |
psdir=$ac_optarg ;; |
| 1377 |
|
| 1378 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1379 |
| -silent | --silent | --silen | --sile | --sil) |
| 1380 |
silent=yes ;; |
| 1381 |
|
| 1382 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1383 |
ac_prev=sbindir ;; |
| 1384 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1385 |
| --sbi=* | --sb=*) |
| 1386 |
sbindir=$ac_optarg ;; |
| 1387 |
|
| 1388 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1389 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1390 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1391 |
| --sha | --sh) |
| 1392 |
ac_prev=sharedstatedir ;; |
| 1393 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1394 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1395 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1396 |
| --sha=* | --sh=*) |
| 1397 |
sharedstatedir=$ac_optarg ;; |
| 1398 |
|
| 1399 |
-site | --site | --sit) |
| 1400 |
ac_prev=site ;; |
| 1401 |
-site=* | --site=* | --sit=*) |
| 1402 |
site=$ac_optarg ;; |
| 1403 |
|
| 1404 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1405 |
ac_prev=srcdir ;; |
| 1406 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1407 |
srcdir=$ac_optarg ;; |
| 1408 |
|
| 1409 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1410 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1411 |
ac_prev=sysconfdir ;; |
| 1412 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1413 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1414 |
sysconfdir=$ac_optarg ;; |
| 1415 |
|
| 1416 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1417 |
ac_prev=target_alias ;; |
| 1418 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1419 |
target_alias=$ac_optarg ;; |
| 1420 |
|
| 1421 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1422 |
verbose=yes ;; |
| 1423 |
|
| 1424 |
-version | --version | --versio | --versi | --vers | -V) |
| 1425 |
ac_init_version=: ;; |
| 1426 |
|
| 1427 |
-with-* | --with-*) |
| 1428 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1429 |
# Reject names that are not valid shell variable names. |
| 1430 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1431 |
as_fn_error "invalid package name: $ac_useropt" |
| 1432 |
ac_useropt_orig=$ac_useropt |
| 1433 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1434 |
case $ac_user_opts in |
| 1435 |
*" |
| 1436 |
"with_$ac_useropt" |
| 1437 |
"*) ;; |
| 1438 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1439 |
ac_unrecognized_sep=', ';; |
| 1440 |
esac |
| 1441 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1442 |
|
| 1443 |
-without-* | --without-*) |
| 1444 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1445 |
# Reject names that are not valid shell variable names. |
| 1446 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1447 |
as_fn_error "invalid package name: $ac_useropt" |
| 1448 |
ac_useropt_orig=$ac_useropt |
| 1449 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1450 |
case $ac_user_opts in |
| 1451 |
*" |
| 1452 |
"with_$ac_useropt" |
| 1453 |
"*) ;; |
| 1454 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1455 |
ac_unrecognized_sep=', ';; |
| 1456 |
esac |
| 1457 |
eval with_$ac_useropt=no ;; |
| 1458 |
|
| 1459 |
--x) |
| 1460 |
# Obsolete; use --with-x. |
| 1461 |
with_x=yes ;; |
| 1462 |
|
| 1463 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1464 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1465 |
ac_prev=x_includes ;; |
| 1466 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1467 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1468 |
x_includes=$ac_optarg ;; |
| 1469 |
|
| 1470 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1471 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1472 |
ac_prev=x_libraries ;; |
| 1473 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1474 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1475 |
x_libraries=$ac_optarg ;; |
| 1476 |
|
| 1477 |
-*) as_fn_error "unrecognized option: \`$ac_option' |
| 1478 |
Try \`$0 --help' for more information." |
| 1479 |
;; |
| 1480 |
|
| 1481 |
*=*) |
| 1482 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1483 |
# Reject names that are not valid shell variable names. |
| 1484 |
case $ac_envvar in #( |
| 1485 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1486 |
as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1487 |
esac |
| 1488 |
eval $ac_envvar=\$ac_optarg |
| 1489 |
export $ac_envvar ;; |
| 1490 |
|
| 1491 |
*) |
| 1492 |
# FIXME: should be removed in autoconf 3.0. |
| 1493 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1494 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1495 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1496 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1497 |
;; |
| 1498 |
|
| 1499 |
esac |
| 1500 |
done |
| 1501 |
|
| 1502 |
if test -n "$ac_prev"; then |
| 1503 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1504 |
as_fn_error "missing argument to $ac_option" |
| 1505 |
fi |
| 1506 |
|
| 1507 |
if test -n "$ac_unrecognized_opts"; then |
| 1508 |
case $enable_option_checking in |
| 1509 |
no) ;; |
| 1510 |
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1511 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1512 |
esac |
| 1513 |
fi |
| 1514 |
|
| 1515 |
# Check all directory arguments for consistency. |
| 1516 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1517 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1518 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1519 |
libdir localedir mandir |
| 1520 |
do |
| 1521 |
eval ac_val=\$$ac_var |
| 1522 |
# Remove trailing slashes. |
| 1523 |
case $ac_val in |
| 1524 |
*/ ) |
| 1525 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1526 |
eval $ac_var=\$ac_val;; |
| 1527 |
esac |
| 1528 |
# Be sure to have absolute directory names. |
| 1529 |
case $ac_val in |
| 1530 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1531 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1532 |
esac |
| 1533 |
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1534 |
done |
| 1535 |
|
| 1536 |
# There might be people who depend on the old broken behavior: `$host' |
| 1537 |
# used to hold the argument of --host etc. |
| 1538 |
# FIXME: To remove some day. |
| 1539 |
build=$build_alias |
| 1540 |
host=$host_alias |
| 1541 |
target=$target_alias |
| 1542 |
|
| 1543 |
# FIXME: To remove some day. |
| 1544 |
if test "x$host_alias" != x; then |
| 1545 |
if test "x$build_alias" = x; then |
| 1546 |
cross_compiling=maybe |
| 1547 |
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1548 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1549 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1550 |
cross_compiling=yes |
| 1551 |
fi |
| 1552 |
fi |
| 1553 |
|
| 1554 |
ac_tool_prefix= |
| 1555 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1556 |
|
| 1557 |
test "$silent" = yes && exec 6>/dev/null |
| 1558 |
|
| 1559 |
|
| 1560 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1561 |
ac_ls_di=`ls -di .` && |
| 1562 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1563 |
as_fn_error "working directory cannot be determined" |
| 1564 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1565 |
as_fn_error "pwd does not report name of working directory" |
| 1566 |
|
| 1567 |
|
| 1568 |
# Find the source files, if location was not specified. |
| 1569 |
if test -z "$srcdir"; then |
| 1570 |
ac_srcdir_defaulted=yes |
| 1571 |
# Try the directory containing this script, then the parent directory. |
| 1572 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1573 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1574 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1575 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1576 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1577 |
$as_echo X"$as_myself" | |
| 1578 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1579 |
s//\1/ |
| 1580 |
q |
| 1581 |
} |
| 1582 |
/^X\(\/\/\)[^/].*/{ |
| 1583 |
s//\1/ |
| 1584 |
q |
| 1585 |
} |
| 1586 |
/^X\(\/\/\)$/{ |
| 1587 |
s//\1/ |
| 1588 |
q |
| 1589 |
} |
| 1590 |
/^X\(\/\).*/{ |
| 1591 |
s//\1/ |
| 1592 |
q |
| 1593 |
} |
| 1594 |
s/.*/./; q'` |
| 1595 |
srcdir=$ac_confdir |
| 1596 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1597 |
srcdir=.. |
| 1598 |
fi |
| 1599 |
else |
| 1600 |
ac_srcdir_defaulted=no |
| 1601 |
fi |
| 1602 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1603 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1604 |
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1605 |
fi |
| 1606 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1607 |
ac_abs_confdir=`( |
| 1608 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1609 |
pwd)` |
| 1610 |
# When building in place, set srcdir=. |
| 1611 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1612 |
srcdir=. |
| 1613 |
fi |
| 1614 |
# Remove unnecessary trailing slashes from srcdir. |
| 1615 |
# Double slashes in file names in object file debugging info |
| 1616 |
# mess up M-x gdb in Emacs. |
| 1617 |
case $srcdir in |
| 1618 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1619 |
esac |
| 1620 |
for ac_var in $ac_precious_vars; do |
| 1621 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1622 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1623 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1624 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1625 |
done |
| 1626 |
|
| 1627 |
# |
| 1628 |
# Report the --help message. |
| 1629 |
# |
| 1630 |
if test "$ac_init_help" = "long"; then |
| 1631 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1632 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1633 |
cat <<_ACEOF |
| 1634 |
\`configure' configures this package to adapt to many kinds of systems. |
| 1635 |
|
| 1636 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1637 |
|
| 1638 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1639 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1640 |
|
| 1641 |
Defaults for the options are specified in brackets. |
| 1642 |
|
| 1643 |
Configuration: |
| 1644 |
-h, --help display this help and exit |
| 1645 |
--help=short display options specific to this package |
| 1646 |
--help=recursive display the short help of all the included packages |
| 1647 |
-V, --version display version information and exit |
| 1648 |
-q, --quiet, --silent do not print \`checking...' messages |
| 1649 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1650 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1651 |
-n, --no-create do not create output files |
| 1652 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1653 |
|
| 1654 |
Installation directories: |
| 1655 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1656 |
[$ac_default_prefix] |
| 1657 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1658 |
[PREFIX] |
| 1659 |
|
| 1660 |
By default, \`make install' will install all the files in |
| 1661 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1662 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1663 |
for instance \`--prefix=\$HOME'. |
| 1664 |
|
| 1665 |
For better control, use the options below. |
| 1666 |
|
| 1667 |
Fine tuning of the installation directories: |
| 1668 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1669 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1670 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1671 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1672 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1673 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1674 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1675 |
--includedir=DIR C header files [PREFIX/include] |
| 1676 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1677 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1678 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1679 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1680 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1681 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1682 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1683 |
--htmldir=DIR html documentation [DOCDIR] |
| 1684 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1685 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1686 |
--psdir=DIR ps documentation [DOCDIR] |
| 1687 |
_ACEOF |
| 1688 |
|
| 1689 |
cat <<\_ACEOF |
| 1690 |
|
| 1691 |
Program names: |
| 1692 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1693 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1694 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1695 |
|
| 1696 |
X features: |
| 1697 |
--x-includes=DIR X include files are in DIR |
| 1698 |
--x-libraries=DIR X library files are in DIR |
| 1699 |
|
| 1700 |
System types: |
| 1701 |
--build=BUILD configure for building on BUILD [guessed] |
| 1702 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1703 |
_ACEOF |
| 1704 |
fi |
| 1705 |
|
| 1706 |
if test -n "$ac_init_help"; then |
| 1707 |
|
| 1708 |
cat <<\_ACEOF |
| 1709 |
|
| 1710 |
Optional Features: |
| 1711 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1712 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1713 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1714 |
--enable-maintainer-mode enable make rules and dependencies not useful |
| 1715 |
(and sometimes confusing) to the casual installer |
| 1716 |
--disable-dependency-tracking speeds up one-time build |
| 1717 |
--enable-dependency-tracking do not reject slow dependency extractors |
| 1718 |
--disable-largefile omit support for large files |
| 1719 |
--enable-ps-level-one Produce Level 1 PostScript |
| 1720 |
--enable-signal-handler Use a signal handler intercepting SIGTERM,SIGQUIT, |
| 1721 |
SIGHUP snd SIGINT signals. It requires X11R6. |
| 1722 |
Defaults to `yes' |
| 1723 |
--enable-backing-pixmap Use a backing pixmap and not rely on the XServer to |
| 1724 |
maintain backing store (can be changed at runtime). |
| 1725 |
Defaults to `yes' |
| 1726 |
--enable-scrollbar-code Use gv's own Motif like scrollbar. It defaults to |
| 1727 |
`yes' |
| 1728 |
--enable-memmove-code Use gv's own memmove. It defaults to `yes' |
| 1729 |
--enable-runtime-messages |
| 1730 |
Generate informative messages at runtime. It |
| 1731 |
defaults to `no' |
| 1732 |
--enable-fallback-styles |
| 1733 |
Compile X resource files into the executable. |
| 1734 |
Defaults to `yes' |
| 1735 |
--enable-international Enable international by default. It defaults to `no' |
| 1736 |
--enable-SIGCHLD-fallback |
| 1737 |
Use SIGCHLD as a fallback to SIGCLD. Defaults to |
| 1738 |
'no' |
| 1739 |
--enable-setenv-code Use extra code for setenv() and getenv(). Defaults |
| 1740 |
to `no' |
| 1741 |
--enable-off_t Use code with off_t and fopen, ftello, fseeko, stat |
| 1742 |
for potential large file support. It defaults to |
| 1743 |
auto detection. largefile only has effects if this |
| 1744 |
option is turned on. |
| 1745 |
|
| 1746 |
Optional Packages: |
| 1747 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1748 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1749 |
--without-libzio Do not probe for libzio |
| 1750 |
--with-default-papersize=PSIZE |
| 1751 |
The default papersize (can be changed at runtime). |
| 1752 |
Defaults to `A4' |
| 1753 |
--with-print-command=COMMAND |
| 1754 |
Command for spool a print job. Defaults for `lpr' |
| 1755 |
--with-user-defaults-file=PATH |
| 1756 |
The file containing your preferences. It defaults to |
| 1757 |
`~/.gv'. |
| 1758 |
--with-scratch-dir=PATH Temporary directory. Must be terminated with a |
| 1759 |
trailing `/'. Defaults to `/tmp/' |
| 1760 |
--with-save-dir=PATH The default directory for saving. Must be terminated |
| 1761 |
with a trailing `/'. Defaults to `~/' |
| 1762 |
--with-x use the X Window System |
| 1763 |
|
| 1764 |
Some influential environment variables: |
| 1765 |
CC C compiler command |
| 1766 |
CFLAGS C compiler flags |
| 1767 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1768 |
nonstandard directory <lib dir> |
| 1769 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1770 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1771 |
you have headers in a nonstandard directory <include dir> |
| 1772 |
CPP C preprocessor |
| 1773 |
XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1774 |
PKG_CONFIG path to pkg-config utility |
| 1775 |
DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config |
| 1776 |
DEPS_LIBS linker flags for DEPS, overriding pkg-config |
| 1777 |
|
| 1778 |
Use these variables to override the choices made by `configure' or to help |
| 1779 |
it to find libraries and programs with nonstandard names/locations. |
| 1780 |
|
| 1781 |
Report bugs to the package provider. |
| 1782 |
_ACEOF |
| 1783 |
ac_status=$? |
| 1784 |
fi |
| 1785 |
|
| 1786 |
if test "$ac_init_help" = "recursive"; then |
| 1787 |
# If there are subdirs, report their specific --help. |
| 1788 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1789 |
test -d "$ac_dir" || |
| 1790 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1791 |
continue |
| 1792 |
ac_builddir=. |
| 1793 |
|
| 1794 |
case "$ac_dir" in |
| 1795 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1796 |
*) |
| 1797 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1798 |
# A ".." for each directory in $ac_dir_suffix. |
| 1799 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1800 |
case $ac_top_builddir_sub in |
| 1801 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1802 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1803 |
esac ;; |
| 1804 |
esac |
| 1805 |
ac_abs_top_builddir=$ac_pwd |
| 1806 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1807 |
# for backward compatibility: |
| 1808 |
ac_top_builddir=$ac_top_build_prefix |
| 1809 |
|
| 1810 |
case $srcdir in |
| 1811 |
.) # We are building in place. |
| 1812 |
ac_srcdir=. |
| 1813 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1814 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1815 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1816 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1817 |
ac_top_srcdir=$srcdir |
| 1818 |
ac_abs_top_srcdir=$srcdir ;; |
| 1819 |
*) # Relative name. |
| 1820 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1821 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1822 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1823 |
esac |
| 1824 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1825 |
|
| 1826 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1827 |
# Check for guested configure. |
| 1828 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1829 |
echo && |
| 1830 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1831 |
elif test -f "$ac_srcdir/configure"; then |
| 1832 |
echo && |
| 1833 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1834 |
else |
| 1835 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1836 |
fi || ac_status=$? |
| 1837 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1838 |
done |
| 1839 |
fi |
| 1840 |
|
| 1841 |
test -n "$ac_init_help" && exit $ac_status |
| 1842 |
if $ac_init_version; then |
| 1843 |
cat <<\_ACEOF |
| 1844 |
configure |
| 1845 |
generated by GNU Autoconf 2.65 |
| 1846 |
|
| 1847 |
Copyright (C) 2009 Free Software Foundation, Inc. |
| 1848 |
This configure script is free software; the Free Software Foundation |
| 1849 |
gives unlimited permission to copy, distribute and modify it. |
| 1850 |
_ACEOF |
| 1851 |
exit |
| 1852 |
fi |
| 1853 |
|
| 1854 |
## ------------------------ ## |
| 1855 |
## Autoconf initialization. ## |
| 1856 |
## ------------------------ ## |
| 1857 |
|
| 1858 |
# ac_fn_c_try_compile LINENO |
| 1859 |
# -------------------------- |
| 1860 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1861 |
ac_fn_c_try_compile () |
| 1862 |
{ |
| 1863 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1864 |
rm -f conftest.$ac_objext |
| 1865 |
if { { ac_try="$ac_compile" |
| 1866 |
case "(($ac_try" in |
| 1867 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1868 |
*) ac_try_echo=$ac_try;; |
| 1869 |
esac |
| 1870 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1871 |
$as_echo "$ac_try_echo"; } >&5 |
| 1872 |
(eval "$ac_compile") 2>conftest.err |
| 1873 |
ac_status=$? |
| 1874 |
if test -s conftest.err; then |
| 1875 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1876 |
cat conftest.er1 >&5 |
| 1877 |
mv -f conftest.er1 conftest.err |
| 1878 |
fi |
| 1879 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1880 |
test $ac_status = 0; } && { |
| 1881 |
test -z "$ac_c_werror_flag" || |
| 1882 |
test ! -s conftest.err |
| 1883 |
} && test -s conftest.$ac_objext; then : |
| 1884 |
ac_retval=0 |
| 1885 |
else |
| 1886 |
$as_echo "$as_me: failed program was:" >&5 |
| 1887 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1888 |
|
| 1889 |
ac_retval=1 |
| 1890 |
fi |
| 1891 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1892 |
as_fn_set_status $ac_retval |
| 1893 |
|
| 1894 |
} # ac_fn_c_try_compile |
| 1895 |
|
| 1896 |
# ac_fn_c_try_cpp LINENO |
| 1897 |
# ---------------------- |
| 1898 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1899 |
ac_fn_c_try_cpp () |
| 1900 |
{ |
| 1901 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1902 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1903 |
case "(($ac_try" in |
| 1904 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1905 |
*) ac_try_echo=$ac_try;; |
| 1906 |
esac |
| 1907 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1908 |
$as_echo "$ac_try_echo"; } >&5 |
| 1909 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1910 |
ac_status=$? |
| 1911 |
if test -s conftest.err; then |
| 1912 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1913 |
cat conftest.er1 >&5 |
| 1914 |
mv -f conftest.er1 conftest.err |
| 1915 |
fi |
| 1916 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1917 |
test $ac_status = 0; } >/dev/null && { |
| 1918 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1919 |
test ! -s conftest.err |
| 1920 |
}; then : |
| 1921 |
ac_retval=0 |
| 1922 |
else |
| 1923 |
$as_echo "$as_me: failed program was:" >&5 |
| 1924 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1925 |
|
| 1926 |
ac_retval=1 |
| 1927 |
fi |
| 1928 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1929 |
as_fn_set_status $ac_retval |
| 1930 |
|
| 1931 |
} # ac_fn_c_try_cpp |
| 1932 |
|
| 1933 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1934 |
# ------------------------------------------------------- |
| 1935 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1936 |
# the include files in INCLUDES and setting the cache variable VAR |
| 1937 |
# accordingly. |
| 1938 |
ac_fn_c_check_header_mongrel () |
| 1939 |
{ |
| 1940 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1941 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1943 |
$as_echo_n "checking for $2... " >&6; } |
| 1944 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1945 |
$as_echo_n "(cached) " >&6 |
| 1946 |
fi |
| 1947 |
eval ac_res=\$$3 |
| 1948 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1949 |
$as_echo "$ac_res" >&6; } |
| 1950 |
else |
| 1951 |
# Is the header compilable? |
| 1952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1953 |
$as_echo_n "checking $2 usability... " >&6; } |
| 1954 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1955 |
/* end confdefs.h. */ |
| 1956 |
$4 |
| 1957 |
#include <$2> |
| 1958 |
_ACEOF |
| 1959 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1960 |
ac_header_compiler=yes |
| 1961 |
else |
| 1962 |
ac_header_compiler=no |
| 1963 |
fi |
| 1964 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1965 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1966 |
$as_echo "$ac_header_compiler" >&6; } |
| 1967 |
|
| 1968 |
# Is the header present? |
| 1969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1970 |
$as_echo_n "checking $2 presence... " >&6; } |
| 1971 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1972 |
/* end confdefs.h. */ |
| 1973 |
#include <$2> |
| 1974 |
_ACEOF |
| 1975 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 1976 |
ac_header_preproc=yes |
| 1977 |
else |
| 1978 |
ac_header_preproc=no |
| 1979 |
fi |
| 1980 |
rm -f conftest.err conftest.$ac_ext |
| 1981 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1982 |
$as_echo "$ac_header_preproc" >&6; } |
| 1983 |
|
| 1984 |
# So? What about this header? |
| 1985 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1986 |
yes:no: ) |
| 1987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1988 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1989 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1990 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1991 |
;; |
| 1992 |
no:yes:* ) |
| 1993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1994 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1996 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1997 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1998 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1999 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2000 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2002 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2003 |
;; |
| 2004 |
esac |
| 2005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2006 |
$as_echo_n "checking for $2... " >&6; } |
| 2007 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2008 |
$as_echo_n "(cached) " >&6 |
| 2009 |
else |
| 2010 |
eval "$3=\$ac_header_compiler" |
| 2011 |
fi |
| 2012 |
eval ac_res=\$$3 |
| 2013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2014 |
$as_echo "$ac_res" >&6; } |
| 2015 |
fi |
| 2016 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2017 |
|
| 2018 |
} # ac_fn_c_check_header_mongrel |
| 2019 |
|
| 2020 |
# ac_fn_c_try_run LINENO |
| 2021 |
# ---------------------- |
| 2022 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2023 |
# that executables *can* be run. |
| 2024 |
ac_fn_c_try_run () |
| 2025 |
{ |
| 2026 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2027 |
if { { ac_try="$ac_link" |
| 2028 |
case "(($ac_try" in |
| 2029 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2030 |
*) ac_try_echo=$ac_try;; |
| 2031 |
esac |
| 2032 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2033 |
$as_echo "$ac_try_echo"; } >&5 |
| 2034 |
(eval "$ac_link") 2>&5 |
| 2035 |
ac_status=$? |
| 2036 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2037 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2038 |
{ { case "(($ac_try" in |
| 2039 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2040 |
*) ac_try_echo=$ac_try;; |
| 2041 |
esac |
| 2042 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2043 |
$as_echo "$ac_try_echo"; } >&5 |
| 2044 |
(eval "$ac_try") 2>&5 |
| 2045 |
ac_status=$? |
| 2046 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2047 |
test $ac_status = 0; }; }; then : |
| 2048 |
ac_retval=0 |
| 2049 |
else |
| 2050 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2051 |
$as_echo "$as_me: failed program was:" >&5 |
| 2052 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2053 |
|
| 2054 |
ac_retval=$ac_status |
| 2055 |
fi |
| 2056 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2057 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2058 |
as_fn_set_status $ac_retval |
| 2059 |
|
| 2060 |
} # ac_fn_c_try_run |
| 2061 |
|
| 2062 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2063 |
# ------------------------------------------------------- |
| 2064 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 2065 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 2066 |
ac_fn_c_check_header_compile () |
| 2067 |
{ |
| 2068 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2070 |
$as_echo_n "checking for $2... " >&6; } |
| 2071 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2072 |
$as_echo_n "(cached) " >&6 |
| 2073 |
else |
| 2074 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2075 |
/* end confdefs.h. */ |
| 2076 |
$4 |
| 2077 |
#include <$2> |
| 2078 |
_ACEOF |
| 2079 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2080 |
eval "$3=yes" |
| 2081 |
else |
| 2082 |
eval "$3=no" |
| 2083 |
fi |
| 2084 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2085 |
fi |
| 2086 |
eval ac_res=\$$3 |
| 2087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2088 |
$as_echo "$ac_res" >&6; } |
| 2089 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2090 |
|
| 2091 |
} # ac_fn_c_check_header_compile |
| 2092 |
|
| 2093 |
# ac_fn_c_try_link LINENO |
| 2094 |
# ----------------------- |
| 2095 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2096 |
ac_fn_c_try_link () |
| 2097 |
{ |
| 2098 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2099 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2100 |
if { { ac_try="$ac_link" |
| 2101 |
case "(($ac_try" in |
| 2102 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2103 |
*) ac_try_echo=$ac_try;; |
| 2104 |
esac |
| 2105 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2106 |
$as_echo "$ac_try_echo"; } >&5 |
| 2107 |
(eval "$ac_link") 2>conftest.err |
| 2108 |
ac_status=$? |
| 2109 |
if test -s conftest.err; then |
| 2110 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2111 |
cat conftest.er1 >&5 |
| 2112 |
mv -f conftest.er1 conftest.err |
| 2113 |
fi |
| 2114 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2115 |
test $ac_status = 0; } && { |
| 2116 |
test -z "$ac_c_werror_flag" || |
| 2117 |
test ! -s conftest.err |
| 2118 |
} && test -s conftest$ac_exeext && { |
| 2119 |
test "$cross_compiling" = yes || |
| 2120 |
$as_test_x conftest$ac_exeext |
| 2121 |
}; then : |
| 2122 |
ac_retval=0 |
| 2123 |
else |
| 2124 |
$as_echo "$as_me: failed program was:" >&5 |
| 2125 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2126 |
|
| 2127 |
ac_retval=1 |
| 2128 |
fi |
| 2129 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2130 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2131 |
# interfere with the next link command; also delete a directory that is |
| 2132 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2133 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2134 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2135 |
as_fn_set_status $ac_retval |
| 2136 |
|
| 2137 |
} # ac_fn_c_try_link |
| 2138 |
|
| 2139 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 2140 |
# ---------------------------------- |
| 2141 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2142 |
ac_fn_c_check_func () |
| 2143 |
{ |
| 2144 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2146 |
$as_echo_n "checking for $2... " >&6; } |
| 2147 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2148 |
$as_echo_n "(cached) " >&6 |
| 2149 |
else |
| 2150 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2151 |
/* end confdefs.h. */ |
| 2152 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2153 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2154 |
#define $2 innocuous_$2 |
| 2155 |
|
| 2156 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2157 |
which can conflict with char $2 (); below. |
| 2158 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2159 |
<limits.h> exists even on freestanding compilers. */ |
| 2160 |
|
| 2161 |
#ifdef __STDC__ |
| 2162 |
# include <limits.h> |
| 2163 |
#else |
| 2164 |
# include <assert.h> |
| 2165 |
#endif |
| 2166 |
|
| 2167 |
#undef $2 |
| 2168 |
|
| 2169 |
/* Override any GCC internal prototype to avoid an error. |
| 2170 |
Use char because int might match the return type of a GCC |
| 2171 |
builtin and then its argument prototype would still apply. */ |
| 2172 |
#ifdef __cplusplus |
| 2173 |
extern "C" |
| 2174 |
#endif |
| 2175 |
char $2 (); |
| 2176 |
/* The GNU C library defines this for functions which it implements |
| 2177 |
to always fail with ENOSYS. Some functions are actually named |
| 2178 |
something starting with __ and the normal name is an alias. */ |
| 2179 |
#if defined __stub_$2 || defined __stub___$2 |
| 2180 |
choke me |
| 2181 |
#endif |
| 2182 |
|
| 2183 |
int |
| 2184 |
main () |
| 2185 |
{ |
| 2186 |
return $2 (); |
| 2187 |
; |
| 2188 |
return 0; |
| 2189 |
} |
| 2190 |
_ACEOF |
| 2191 |
if ac_fn_c_try_link "$LINENO"; then : |
| 2192 |
eval "$3=yes" |
| 2193 |
else |
| 2194 |
eval "$3=no" |
| 2195 |
fi |
| 2196 |
rm -f core conftest.err conftest.$ac_objext \ |
| 2197 |
conftest$ac_exeext conftest.$ac_ext |
| 2198 |
fi |
| 2199 |
eval ac_res=\$$3 |
| 2200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2201 |
$as_echo "$ac_res" >&6; } |
| 2202 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2203 |
|
| 2204 |
} # ac_fn_c_check_func |
| 2205 |
|
| 2206 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2207 |
# -------------------------------------------- |
| 2208 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2209 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2210 |
# computed |
| 2211 |
ac_fn_c_compute_int () |
| 2212 |
{ |
| 2213 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2214 |
if test "$cross_compiling" = yes; then |
| 2215 |
# Depending upon the size, compute the lo and hi bounds. |
| 2216 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2217 |
/* end confdefs.h. */ |
| 2218 |
$4 |
| 2219 |
int |
| 2220 |
main () |
| 2221 |
{ |
| 2222 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2223 |
test_array [0] = 0 |
| 2224 |
|
| 2225 |
; |
| 2226 |
return 0; |
| 2227 |
} |
| 2228 |
_ACEOF |
| 2229 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2230 |
ac_lo=0 ac_mid=0 |
| 2231 |
while :; do |
| 2232 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2233 |
/* end confdefs.h. */ |
| 2234 |
$4 |
| 2235 |
int |
| 2236 |
main () |
| 2237 |
{ |
| 2238 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2239 |
test_array [0] = 0 |
| 2240 |
|
| 2241 |
; |
| 2242 |
return 0; |
| 2243 |
} |
| 2244 |
_ACEOF |
| 2245 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2246 |
ac_hi=$ac_mid; break |
| 2247 |
else |
| 2248 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2249 |
if test $ac_lo -le $ac_mid; then |
| 2250 |
ac_lo= ac_hi= |
| 2251 |
break |
| 2252 |
fi |
| 2253 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2254 |
fi |
| 2255 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2256 |
done |
| 2257 |
else |
| 2258 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2259 |
/* end confdefs.h. */ |
| 2260 |
$4 |
| 2261 |
int |
| 2262 |
main () |
| 2263 |
{ |
| 2264 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2265 |
test_array [0] = 0 |
| 2266 |
|
| 2267 |
; |
| 2268 |
return 0; |
| 2269 |
} |
| 2270 |
_ACEOF |
| 2271 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2272 |
ac_hi=-1 ac_mid=-1 |
| 2273 |
while :; do |
| 2274 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2275 |
/* end confdefs.h. */ |
| 2276 |
$4 |
| 2277 |
int |
| 2278 |
main () |
| 2279 |
{ |
| 2280 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2281 |
test_array [0] = 0 |
| 2282 |
|
| 2283 |
; |
| 2284 |
return 0; |
| 2285 |
} |
| 2286 |
_ACEOF |
| 2287 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2288 |
ac_lo=$ac_mid; break |
| 2289 |
else |
| 2290 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2291 |
if test $ac_mid -le $ac_hi; then |
| 2292 |
ac_lo= ac_hi= |
| 2293 |
break |
| 2294 |
fi |
| 2295 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2296 |
fi |
| 2297 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2298 |
done |
| 2299 |
else |
| 2300 |
ac_lo= ac_hi= |
| 2301 |
fi |
| 2302 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2303 |
fi |
| 2304 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2305 |
# Binary search between lo and hi bounds. |
| 2306 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2307 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2308 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2309 |
/* end confdefs.h. */ |
| 2310 |
$4 |
| 2311 |
int |
| 2312 |
main () |
| 2313 |
{ |
| 2314 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2315 |
test_array [0] = 0 |
| 2316 |
|
| 2317 |
; |
| 2318 |
return 0; |
| 2319 |
} |
| 2320 |
_ACEOF |
| 2321 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2322 |
ac_hi=$ac_mid |
| 2323 |
else |
| 2324 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2325 |
fi |
| 2326 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2327 |
done |
| 2328 |
case $ac_lo in #(( |
| 2329 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2330 |
'') ac_retval=1 ;; |
| 2331 |
esac |
| 2332 |
else |
| 2333 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2334 |
/* end confdefs.h. */ |
| 2335 |
$4 |
| 2336 |
static long int longval () { return $2; } |
| 2337 |
static unsigned long int ulongval () { return $2; } |
| 2338 |
#include <stdio.h> |
| 2339 |
#include <stdlib.h> |
| 2340 |
int |
| 2341 |
main () |
| 2342 |
{ |
| 2343 |
|
| 2344 |
FILE *f = fopen ("conftest.val", "w"); |
| 2345 |
if (! f) |
| 2346 |
return 1; |
| 2347 |
if (($2) < 0) |
| 2348 |
{ |
| 2349 |
long int i = longval (); |
| 2350 |
if (i != ($2)) |
| 2351 |
return 1; |
| 2352 |
fprintf (f, "%ld", i); |
| 2353 |
} |
| 2354 |
else |
| 2355 |
{ |
| 2356 |
unsigned long int i = ulongval (); |
| 2357 |
if (i != ($2)) |
| 2358 |
return 1; |
| 2359 |
fprintf (f, "%lu", i); |
| 2360 |
} |
| 2361 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2362 |
on some platforms. */ |
| 2363 |
return ferror (f) || fclose (f) != 0; |
| 2364 |
|
| 2365 |
; |
| 2366 |
return 0; |
| 2367 |
} |
| 2368 |
_ACEOF |
| 2369 |
if ac_fn_c_try_run "$LINENO"; then : |
| 2370 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2371 |
else |
| 2372 |
ac_retval=1 |
| 2373 |
fi |
| 2374 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2375 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2376 |
rm -f conftest.val |
| 2377 |
|
| 2378 |
fi |
| 2379 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2380 |
as_fn_set_status $ac_retval |
| 2381 |
|
| 2382 |
} # ac_fn_c_compute_int |
| 2383 |
|
| 2384 |
# ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2385 |
# ------------------------------------ |
| 2386 |
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2387 |
ac_fn_c_check_decl () |
| 2388 |
{ |
| 2389 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2390 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2391 |
$as_echo_n "checking whether $2 is declared... " >&6; } |
| 2392 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2393 |
$as_echo_n "(cached) " >&6 |
| 2394 |
else |
| 2395 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2396 |
/* end confdefs.h. */ |
| 2397 |
$4 |
| 2398 |
int |
| 2399 |
main () |
| 2400 |
{ |
| 2401 |
#ifndef $2 |
| 2402 |
(void) $2; |
| 2403 |
#endif |
| 2404 |
|
| 2405 |
; |
| 2406 |
return 0; |
| 2407 |
} |
| 2408 |
_ACEOF |
| 2409 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2410 |
eval "$3=yes" |
| 2411 |
else |
| 2412 |
eval "$3=no" |
| 2413 |
fi |
| 2414 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2415 |
fi |
| 2416 |
eval ac_res=\$$3 |
| 2417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2418 |
$as_echo "$ac_res" >&6; } |
| 2419 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2420 |
|
| 2421 |
} # ac_fn_c_check_decl |
| 2422 |
|
| 2423 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2424 |
# ------------------------------------------- |
| 2425 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2426 |
# variable VAR accordingly. |
| 2427 |
ac_fn_c_check_type () |
| 2428 |
{ |
| 2429 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2430 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2431 |
$as_echo_n "checking for $2... " >&6; } |
| 2432 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2433 |
$as_echo_n "(cached) " >&6 |
| 2434 |
else |
| 2435 |
eval "$3=no" |
| 2436 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2437 |
/* end confdefs.h. */ |
| 2438 |
$4 |
| 2439 |
int |
| 2440 |
main () |
| 2441 |
{ |
| 2442 |
if (sizeof ($2)) |
| 2443 |
return 0; |
| 2444 |
; |
| 2445 |
return 0; |
| 2446 |
} |
| 2447 |
_ACEOF |
| 2448 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2449 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2450 |
/* end confdefs.h. */ |
| 2451 |
$4 |
| 2452 |
int |
| 2453 |
main () |
| 2454 |
{ |
| 2455 |
if (sizeof (($2))) |
| 2456 |
return 0; |
| 2457 |
; |
| 2458 |
return 0; |
| 2459 |
} |
| 2460 |
_ACEOF |
| 2461 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2462 |
|
| 2463 |
else |
| 2464 |
eval "$3=yes" |
| 2465 |
fi |
| 2466 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2467 |
fi |
| 2468 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2469 |
fi |
| 2470 |
eval ac_res=\$$3 |
| 2471 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2472 |
$as_echo "$ac_res" >&6; } |
| 2473 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2474 |
|
| 2475 |
} # ac_fn_c_check_type |
| 2476 |
|
| 2477 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2478 |
# ---------------------------------------------------- |
| 2479 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 2480 |
# INCLUDES, setting cache variable VAR accordingly. |
| 2481 |
ac_fn_c_check_member () |
| 2482 |
{ |
| 2483 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2485 |
$as_echo_n "checking for $2.$3... " >&6; } |
| 2486 |
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2487 |
$as_echo_n "(cached) " >&6 |
| 2488 |
else |
| 2489 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2490 |
/* end confdefs.h. */ |
| 2491 |
$5 |
| 2492 |
int |
| 2493 |
main () |
| 2494 |
{ |
| 2495 |
static $2 ac_aggr; |
| 2496 |
if (ac_aggr.$3) |
| 2497 |
return 0; |
| 2498 |
; |
| 2499 |
return 0; |
| 2500 |
} |
| 2501 |
_ACEOF |
| 2502 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2503 |
eval "$4=yes" |
| 2504 |
else |
| 2505 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2506 |
/* end confdefs.h. */ |
| 2507 |
$5 |
| 2508 |
int |
| 2509 |
main () |
| 2510 |
{ |
| 2511 |
static $2 ac_aggr; |
| 2512 |
if (sizeof ac_aggr.$3) |
| 2513 |
return 0; |
| 2514 |
; |
| 2515 |
return 0; |
| 2516 |
} |
| 2517 |
_ACEOF |
| 2518 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2519 |
eval "$4=yes" |
| 2520 |
else |
| 2521 |
eval "$4=no" |
| 2522 |
fi |
| 2523 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2524 |
fi |
| 2525 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2526 |
fi |
| 2527 |
eval ac_res=\$$4 |
| 2528 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2529 |
$as_echo "$ac_res" >&6; } |
| 2530 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2531 |
|
| 2532 |
} # ac_fn_c_check_member |
| 2533 |
cat >config.log <<_ACEOF |
| 2534 |
This file contains any messages produced by compilers while |
| 2535 |
running configure, to aid debugging if configure makes a mistake. |
| 2536 |
|
| 2537 |
It was created by $as_me, which was |
| 2538 |
generated by GNU Autoconf 2.65. Invocation command line was |
| 2539 |
|
| 2540 |
$ $0 $@ |
| 2541 |
|
| 2542 |
_ACEOF |
| 2543 |
exec 5>>config.log |
| 2544 |
{ |
| 2545 |
cat <<_ASUNAME |
| 2546 |
## --------- ## |
| 2547 |
## Platform. ## |
| 2548 |
## --------- ## |
| 2549 |
|
| 2550 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2551 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2552 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2553 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2554 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2555 |
|
| 2556 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2557 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2558 |
|
| 2559 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2560 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2561 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2562 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2563 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2564 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2565 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2566 |
|
| 2567 |
_ASUNAME |
| 2568 |
|
| 2569 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2570 |
for as_dir in $PATH |
| 2571 |
do |
| 2572 |
IFS=$as_save_IFS |
| 2573 |
test -z "$as_dir" && as_dir=. |
| 2574 |
$as_echo "PATH: $as_dir" |
| 2575 |
done |
| 2576 |
IFS=$as_save_IFS |
| 2577 |
|
| 2578 |
} >&5 |
| 2579 |
|
| 2580 |
cat >&5 <<_ACEOF |
| 2581 |
|
| 2582 |
|
| 2583 |
## ----------- ## |
| 2584 |
## Core tests. ## |
| 2585 |
## ----------- ## |
| 2586 |
|
| 2587 |
_ACEOF |
| 2588 |
|
| 2589 |
|
| 2590 |
# Keep a trace of the command line. |
| 2591 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2592 |
# Strip out --silent because we don't want to record it for future runs. |
| 2593 |
# Also quote any args containing shell meta-characters. |
| 2594 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2595 |
ac_configure_args= |
| 2596 |
ac_configure_args0= |
| 2597 |
ac_configure_args1= |
| 2598 |
ac_must_keep_next=false |
| 2599 |
for ac_pass in 1 2 |
| 2600 |
do |
| 2601 |
for ac_arg |
| 2602 |
do |
| 2603 |
case $ac_arg in |
| 2604 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2605 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2606 |
| -silent | --silent | --silen | --sile | --sil) |
| 2607 |
continue ;; |
| 2608 |
*\'*) |
| 2609 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2610 |
esac |
| 2611 |
case $ac_pass in |
| 2612 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2613 |
2) |
| 2614 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2615 |
if test $ac_must_keep_next = true; then |
| 2616 |
ac_must_keep_next=false # Got value, back to normal. |
| 2617 |
else |
| 2618 |
case $ac_arg in |
| 2619 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2620 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2621 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2622 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2623 |
case "$ac_configure_args0 " in |
| 2624 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2625 |
esac |
| 2626 |
;; |
| 2627 |
-* ) ac_must_keep_next=true ;; |
| 2628 |
esac |
| 2629 |
fi |
| 2630 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2631 |
;; |
| 2632 |
esac |
| 2633 |
done |
| 2634 |
done |
| 2635 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2636 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2637 |
|
| 2638 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2639 |
# config.log. We remove comments because anyway the quotes in there |
| 2640 |
# would cause problems or look ugly. |
| 2641 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2642 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2643 |
trap 'exit_status=$? |
| 2644 |
# Save into config.log some information that might help in debugging. |
| 2645 |
{ |
| 2646 |
echo |
| 2647 |
|
| 2648 |
cat <<\_ASBOX |
| 2649 |
## ---------------- ## |
| 2650 |
## Cache variables. ## |
| 2651 |
## ---------------- ## |
| 2652 |
_ASBOX |
| 2653 |
echo |
| 2654 |
# The following way of writing the cache mishandles newlines in values, |
| 2655 |
( |
| 2656 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2657 |
eval ac_val=\$$ac_var |
| 2658 |
case $ac_val in #( |
| 2659 |
*${as_nl}*) |
| 2660 |
case $ac_var in #( |
| 2661 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2662 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2663 |
esac |
| 2664 |
case $ac_var in #( |
| 2665 |
_ | IFS | as_nl) ;; #( |
| 2666 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2667 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2668 |
esac ;; |
| 2669 |
esac |
| 2670 |
done |
| 2671 |
(set) 2>&1 | |
| 2672 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2673 |
*${as_nl}ac_space=\ *) |
| 2674 |
sed -n \ |
| 2675 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2676 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2677 |
;; #( |
| 2678 |
*) |
| 2679 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2680 |
;; |
| 2681 |
esac | |
| 2682 |
sort |
| 2683 |
) |
| 2684 |
echo |
| 2685 |
|
| 2686 |
cat <<\_ASBOX |
| 2687 |
## ----------------- ## |
| 2688 |
## Output variables. ## |
| 2689 |
## ----------------- ## |
| 2690 |
_ASBOX |
| 2691 |
echo |
| 2692 |
for ac_var in $ac_subst_vars |
| 2693 |
do |
| 2694 |
eval ac_val=\$$ac_var |
| 2695 |
case $ac_val in |
| 2696 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2697 |
esac |
| 2698 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2699 |
done | sort |
| 2700 |
echo |
| 2701 |
|
| 2702 |
if test -n "$ac_subst_files"; then |
| 2703 |
cat <<\_ASBOX |
| 2704 |
## ------------------- ## |
| 2705 |
## File substitutions. ## |
| 2706 |
## ------------------- ## |
| 2707 |
_ASBOX |
| 2708 |
echo |
| 2709 |
for ac_var in $ac_subst_files |
| 2710 |
do |
| 2711 |
eval ac_val=\$$ac_var |
| 2712 |
case $ac_val in |
| 2713 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2714 |
esac |
| 2715 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2716 |
done | sort |
| 2717 |
echo |
| 2718 |
fi |
| 2719 |
|
| 2720 |
if test -s confdefs.h; then |
| 2721 |
cat <<\_ASBOX |
| 2722 |
## ----------- ## |
| 2723 |
## confdefs.h. ## |
| 2724 |
## ----------- ## |
| 2725 |
_ASBOX |
| 2726 |
echo |
| 2727 |
cat confdefs.h |
| 2728 |
echo |
| 2729 |
fi |
| 2730 |
test "$ac_signal" != 0 && |
| 2731 |
$as_echo "$as_me: caught signal $ac_signal" |
| 2732 |
$as_echo "$as_me: exit $exit_status" |
| 2733 |
} >&5 |
| 2734 |
rm -f core *.core core.conftest.* && |
| 2735 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2736 |
exit $exit_status |
| 2737 |
' 0 |
| 2738 |
for ac_signal in 1 2 13 15; do |
| 2739 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2740 |
done |
| 2741 |
ac_signal=0 |
| 2742 |
|
| 2743 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2744 |
rm -f -r conftest* confdefs.h |
| 2745 |
|
| 2746 |
$as_echo "/* confdefs.h */" > confdefs.h |
| 2747 |
|
| 2748 |
# Predefined preprocessor variables. |
| 2749 |
|
| 2750 |
cat >>confdefs.h <<_ACEOF |
| 2751 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 2752 |
_ACEOF |
| 2753 |
|
| 2754 |
cat >>confdefs.h <<_ACEOF |
| 2755 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2756 |
_ACEOF |
| 2757 |
|
| 2758 |
cat >>confdefs.h <<_ACEOF |
| 2759 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2760 |
_ACEOF |
| 2761 |
|
| 2762 |
cat >>confdefs.h <<_ACEOF |
| 2763 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 2764 |
_ACEOF |
| 2765 |
|
| 2766 |
cat >>confdefs.h <<_ACEOF |
| 2767 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2768 |
_ACEOF |
| 2769 |
|
| 2770 |
cat >>confdefs.h <<_ACEOF |
| 2771 |
#define PACKAGE_URL "$PACKAGE_URL" |
| 2772 |
_ACEOF |
| 2773 |
|
| 2774 |
|
| 2775 |
# Let the site file select an alternate cache file if it wants to. |
| 2776 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2777 |
ac_site_file1=NONE |
| 2778 |
ac_site_file2=NONE |
| 2779 |
if test -n "$CONFIG_SITE"; then |
| 2780 |
ac_site_file1=$CONFIG_SITE |
| 2781 |
elif test "x$prefix" != xNONE; then |
| 2782 |
ac_site_file1=$prefix/share/config.site |
| 2783 |
ac_site_file2=$prefix/etc/config.site |
| 2784 |
else |
| 2785 |
ac_site_file1=$ac_default_prefix/share/config.site |
| 2786 |
ac_site_file2=$ac_default_prefix/etc/config.site |
| 2787 |
fi |
| 2788 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2789 |
do |
| 2790 |
test "x$ac_site_file" = xNONE && continue |
| 2791 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2792 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2793 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2794 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2795 |
. "$ac_site_file" |
| 2796 |
fi |
| 2797 |
done |
| 2798 |
|
| 2799 |
if test -r "$cache_file"; then |
| 2800 |
# Some versions of bash will fail to source /dev/null (special files |
| 2801 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2802 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2804 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2805 |
case $cache_file in |
| 2806 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2807 |
*) . "./$cache_file";; |
| 2808 |
esac |
| 2809 |
fi |
| 2810 |
else |
| 2811 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2812 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2813 |
>$cache_file |
| 2814 |
fi |
| 2815 |
|
| 2816 |
gl_func_list="$gl_func_list canonicalize_file_name" |
| 2817 |
gl_func_list="$gl_func_list getcwd" |
| 2818 |
gl_func_list="$gl_func_list readlink" |
| 2819 |
gl_func_list="$gl_func_list realpath" |
| 2820 |
gl_header_list="$gl_header_list sys/param.h" |
| 2821 |
gl_getopt_required=GNU |
| 2822 |
gl_header_list="$gl_header_list getopt.h" |
| 2823 |
gl_header_list="$gl_header_list sys/time.h" |
| 2824 |
gl_func_list="$gl_func_list gettimeofday" |
| 2825 |
gl_header_list="$gl_header_list wchar.h" |
| 2826 |
gl_header_list="$gl_header_list stdint.h" |
| 2827 |
gl_header_list="$gl_header_list inttypes.h" |
| 2828 |
gl_func_list="$gl_func_list lstat" |
| 2829 |
gl_func_list="$gl_func_list mkstemp" |
| 2830 |
gl_func_list="$gl_func_list pathconf" |
| 2831 |
gl_header_list="$gl_header_list sys/stat.h" |
| 2832 |
gl_header_list="$gl_header_list unistd.h" |
| 2833 |
# Check that the precious variables saved in the cache have kept the same |
| 2834 |
# value. |
| 2835 |
ac_cache_corrupted=false |
| 2836 |
for ac_var in $ac_precious_vars; do |
| 2837 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2838 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2839 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2840 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2841 |
case $ac_old_set,$ac_new_set in |
| 2842 |
set,) |
| 2843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2844 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2845 |
ac_cache_corrupted=: ;; |
| 2846 |
,set) |
| 2847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2848 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2849 |
ac_cache_corrupted=: ;; |
| 2850 |
,);; |
| 2851 |
*) |
| 2852 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2853 |
# differences in whitespace do not lead to failure. |
| 2854 |
ac_old_val_w=`echo x $ac_old_val` |
| 2855 |
ac_new_val_w=`echo x $ac_new_val` |
| 2856 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2858 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2859 |
ac_cache_corrupted=: |
| 2860 |
else |
| 2861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2862 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2863 |
eval $ac_var=\$ac_old_val |
| 2864 |
fi |
| 2865 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2866 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2868 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2869 |
fi;; |
| 2870 |
esac |
| 2871 |
# Pass precious variables to config.status. |
| 2872 |
if test "$ac_new_set" = set; then |
| 2873 |
case $ac_new_val in |
| 2874 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2875 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2876 |
esac |
| 2877 |
case " $ac_configure_args " in |
| 2878 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2879 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2880 |
esac |
| 2881 |
fi |
| 2882 |
done |
| 2883 |
if $ac_cache_corrupted; then |
| 2884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2885 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2887 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2888 |
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2889 |
fi |
| 2890 |
## -------------------- ## |
| 2891 |
## Main body of script. ## |
| 2892 |
## -------------------- ## |
| 2893 |
|
| 2894 |
ac_ext=c |
| 2895 |
ac_cpp='$CPP $CPPFLAGS' |
| 2896 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2897 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2898 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2899 |
|
| 2900 |
|
| 2901 |
am__api_version='1.11' |
| 2902 |
|
| 2903 |
ac_aux_dir= |
| 2904 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2905 |
for ac_t in install-sh install.sh shtool; do |
| 2906 |
if test -f "$ac_dir/$ac_t"; then |
| 2907 |
ac_aux_dir=$ac_dir |
| 2908 |
ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2909 |
break 2 |
| 2910 |
fi |
| 2911 |
done |
| 2912 |
done |
| 2913 |
if test -z "$ac_aux_dir"; then |
| 2914 |
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2915 |
fi |
| 2916 |
|
| 2917 |
# These three variables are undocumented and unsupported, |
| 2918 |
# and are intended to be withdrawn in a future Autoconf release. |
| 2919 |
# They can cause serious problems if a builder's source tree is in a directory |
| 2920 |
# whose full name contains unusual characters. |
| 2921 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2922 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2923 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2924 |
|
| 2925 |
|
| 2926 |
# Find a good install program. We prefer a C program (faster), |
| 2927 |
# so one script is as good as another. But avoid the broken or |
| 2928 |
# incompatible versions: |
| 2929 |
# SysV /etc/install, /usr/sbin/install |
| 2930 |
# SunOS /usr/etc/install |
| 2931 |
# IRIX /sbin/install |
| 2932 |
# AIX /bin/install |
| 2933 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2934 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2935 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2936 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2937 |
# OS/2's system install, which has a completely different semantic |
| 2938 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 2939 |
# Reject install programs that cannot install multiple files. |
| 2940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2941 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2942 |
if test -z "$INSTALL"; then |
| 2943 |
if test "${ac_cv_path_install+set}" = set; then : |
| 2944 |
$as_echo_n "(cached) " >&6 |
| 2945 |
else |
| 2946 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2947 |
for as_dir in $PATH |
| 2948 |
do |
| 2949 |
IFS=$as_save_IFS |
| 2950 |
test -z "$as_dir" && as_dir=. |
| 2951 |
# Account for people who put trailing slashes in PATH elements. |
| 2952 |
case $as_dir/ in #(( |
| 2953 |
./ | .// | /[cC]/* | \ |
| 2954 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2955 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2956 |
/usr/ucb/* ) ;; |
| 2957 |
*) |
| 2958 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 2959 |
# Don't use installbsd from OSF since it installs stuff as root |
| 2960 |
# by default. |
| 2961 |
for ac_prog in ginstall scoinst install; do |
| 2962 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2963 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 2964 |
if test $ac_prog = install && |
| 2965 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2966 |
# AIX install. It has an incompatible calling convention. |
| 2967 |
: |
| 2968 |
elif test $ac_prog = install && |
| 2969 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2970 |
# program-specific install script used by HP pwplus--don't use. |
| 2971 |
: |
| 2972 |
else |
| 2973 |
rm -rf conftest.one conftest.two conftest.dir |
| 2974 |
echo one > conftest.one |
| 2975 |
echo two > conftest.two |
| 2976 |
mkdir conftest.dir |
| 2977 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2978 |
test -s conftest.one && test -s conftest.two && |
| 2979 |
test -s conftest.dir/conftest.one && |
| 2980 |
test -s conftest.dir/conftest.two |
| 2981 |
then |
| 2982 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2983 |
break 3 |
| 2984 |
fi |
| 2985 |
fi |
| 2986 |
fi |
| 2987 |
done |
| 2988 |
done |
| 2989 |
;; |
| 2990 |
esac |
| 2991 |
|
| 2992 |
done |
| 2993 |
IFS=$as_save_IFS |
| 2994 |
|
| 2995 |
rm -rf conftest.one conftest.two conftest.dir |
| 2996 |
|
| 2997 |
fi |
| 2998 |
if test "${ac_cv_path_install+set}" = set; then |
| 2999 |
INSTALL=$ac_cv_path_install |
| 3000 |
else |
| 3001 |
# As a last resort, use the slow shell script. Don't cache a |
| 3002 |
# value for INSTALL within a source directory, because that will |
| 3003 |
# break other packages using the cache if that directory is |
| 3004 |
# removed, or if the value is a relative name. |
| 3005 |
INSTALL=$ac_install_sh |
| 3006 |
fi |
| 3007 |
fi |
| 3008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3009 |
$as_echo "$INSTALL" >&6; } |
| 3010 |
|
| 3011 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3012 |
# It thinks the first close brace ends the variable substitution. |
| 3013 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3014 |
|
| 3015 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3016 |
|
| 3017 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3018 |
|
| 3019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3020 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
| 3021 |
# Just in case |
| 3022 |
sleep 1 |
| 3023 |
echo timestamp > conftest.file |
| 3024 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 3025 |
# name. Accept space and tab only in the latter. |
| 3026 |
am_lf=' |
| 3027 |
' |
| 3028 |
case `pwd` in |
| 3029 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 3030 |
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 3031 |
esac |
| 3032 |
case $srcdir in |
| 3033 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3034 |
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 3035 |
esac |
| 3036 |
|
| 3037 |
# Do `set' in a subshell so we don't clobber the current shell's |
| 3038 |
# arguments. Must try -L first in case configure is actually a |
| 3039 |
# symlink; some systems play weird games with the mod time of symlinks |
| 3040 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 3041 |
# directory). |
| 3042 |
if ( |
| 3043 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3044 |
if test "$*" = "X"; then |
| 3045 |
# -L didn't work. |
| 3046 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 3047 |
fi |
| 3048 |
rm -f conftest.file |
| 3049 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3050 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 3051 |
|
| 3052 |
# If neither matched, then we have a broken ls. This can happen |
| 3053 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3054 |
# broken ls alias from the environment. This has actually |
| 3055 |
# happened. Such a system could not be considered "sane". |
| 3056 |
as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 3057 |
alias in your environment" "$LINENO" 5 |
| 3058 |
fi |
| 3059 |
|
| 3060 |
test "$2" = conftest.file |
| 3061 |
) |
| 3062 |
then |
| 3063 |
# Ok. |
| 3064 |
: |
| 3065 |
else |
| 3066 |
as_fn_error "newly created file is older than distributed files! |
| 3067 |
Check your system clock" "$LINENO" 5 |
| 3068 |
fi |
| 3069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3070 |
$as_echo "yes" >&6; } |
| 3071 |
test "$program_prefix" != NONE && |
| 3072 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3073 |
# Use a double $ so make ignores it. |
| 3074 |
test "$program_suffix" != NONE && |
| 3075 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3076 |
# Double any \ or $. |
| 3077 |
# By default was `s,x,x', remove it if useless. |
| 3078 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3079 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3080 |
|
| 3081 |
# expand $ac_aux_dir to an absolute path |
| 3082 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3083 |
|
| 3084 |
if test x"${MISSING+set}" != xset; then |
| 3085 |
case $am_aux_dir in |
| 3086 |
*\ * | *\ *) |
| 3087 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3088 |
*) |
| 3089 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3090 |
esac |
| 3091 |
fi |
| 3092 |
# Use eval to expand $SHELL |
| 3093 |
if eval "$MISSING --run true"; then |
| 3094 |
am_missing_run="$MISSING --run " |
| 3095 |
else |
| 3096 |
am_missing_run= |
| 3097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 3098 |
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3099 |
fi |
| 3100 |
|
| 3101 |
if test x"${install_sh}" != xset; then |
| 3102 |
case $am_aux_dir in |
| 3103 |
*\ * | *\ *) |
| 3104 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3105 |
*) |
| 3106 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3107 |
esac |
| 3108 |
fi |
| 3109 |
|
| 3110 |
# Installed binaries are usually stripped using `strip' when the user |
| 3111 |
# run `make install-strip'. However `strip' might not be the right |
| 3112 |
# tool to use in cross-compilation environments, therefore Automake |
| 3113 |
# will honor the `STRIP' environment variable to overrule this program. |
| 3114 |
if test "$cross_compiling" != no; then |
| 3115 |
if test -n "$ac_tool_prefix"; then |
| 3116 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3117 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3118 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3119 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3120 |
if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 3121 |
$as_echo_n "(cached) " >&6 |
| 3122 |
else |
| 3123 |
if test -n "$STRIP"; then |
| 3124 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3125 |
else |
| 3126 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3127 |
for as_dir in $PATH |
| 3128 |
do |
| 3129 |
IFS=$as_save_IFS |
| 3130 |
test -z "$as_dir" && as_dir=. |
| 3131 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3132 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3133 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3134 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3135 |
break 2 |
| 3136 |
fi |
| 3137 |
done |
| 3138 |
done |
| 3139 |
IFS=$as_save_IFS |
| 3140 |
|
| 3141 |
fi |
| 3142 |
fi |
| 3143 |
STRIP=$ac_cv_prog_STRIP |
| 3144 |
if test -n "$STRIP"; then |
| 3145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3146 |
$as_echo "$STRIP" >&6; } |
| 3147 |
else |
| 3148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3149 |
$as_echo "no" >&6; } |
| 3150 |
fi |
| 3151 |
|
| 3152 |
|
| 3153 |
fi |
| 3154 |
if test -z "$ac_cv_prog_STRIP"; then |
| 3155 |
ac_ct_STRIP=$STRIP |
| 3156 |
# Extract the first word of "strip", so it can be a program name with args. |
| 3157 |
set dummy strip; ac_word=$2 |
| 3158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3159 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3160 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 3161 |
$as_echo_n "(cached) " >&6 |
| 3162 |
else |
| 3163 |
if test -n "$ac_ct_STRIP"; then |
| 3164 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3165 |
else |
| 3166 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3167 |
for as_dir in $PATH |
| 3168 |
do |
| 3169 |
IFS=$as_save_IFS |
| 3170 |
test -z "$as_dir" && as_dir=. |
| 3171 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3172 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3173 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 3174 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3175 |
break 2 |
| 3176 |
fi |
| 3177 |
done |
| 3178 |
done |
| 3179 |
IFS=$as_save_IFS |
| 3180 |
|
| 3181 |
fi |
| 3182 |
fi |
| 3183 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3184 |
if test -n "$ac_ct_STRIP"; then |
| 3185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3186 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 3187 |
else |
| 3188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3189 |
$as_echo "no" >&6; } |
| 3190 |
fi |
| 3191 |
|
| 3192 |
if test "x$ac_ct_STRIP" = x; then |
| 3193 |
STRIP=":" |
| 3194 |
else |
| 3195 |
case $cross_compiling:$ac_tool_warned in |
| 3196 |
yes:) |
| 3197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3198 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3199 |
ac_tool_warned=yes ;; |
| 3200 |
esac |
| 3201 |
STRIP=$ac_ct_STRIP |
| 3202 |
fi |
| 3203 |
else |
| 3204 |
STRIP="$ac_cv_prog_STRIP" |
| 3205 |
fi |
| 3206 |
|
| 3207 |
fi |
| 3208 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3209 |
|
| 3210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3211 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3212 |
if test -z "$MKDIR_P"; then |
| 3213 |
if test "${ac_cv_path_mkdir+set}" = set; then : |
| 3214 |
$as_echo_n "(cached) " >&6 |
| 3215 |
else |
| 3216 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3217 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3218 |
do |
| 3219 |
IFS=$as_save_IFS |
| 3220 |
test -z "$as_dir" && as_dir=. |
| 3221 |
for ac_prog in mkdir gmkdir; do |
| 3222 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3223 |
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3224 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3225 |
'mkdir (GNU coreutils) '* | \ |
| 3226 |
'mkdir (coreutils) '* | \ |
| 3227 |
'mkdir (fileutils) '4.1*) |
| 3228 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3229 |
break 3;; |
| 3230 |
esac |
| 3231 |
done |
| 3232 |
done |
| 3233 |
done |
| 3234 |
IFS=$as_save_IFS |
| 3235 |
|
| 3236 |
fi |
| 3237 |
|
| 3238 |
test -d ./--version && rmdir ./--version |
| 3239 |
if test "${ac_cv_path_mkdir+set}" = set; then |
| 3240 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 3241 |
else |
| 3242 |
# As a last resort, use the slow shell script. Don't cache a |
| 3243 |
# value for MKDIR_P within a source directory, because that will |
| 3244 |
# break other packages using the cache if that directory is |
| 3245 |
# removed, or if the value is a relative name. |
| 3246 |
MKDIR_P="$ac_install_sh -d" |
| 3247 |
fi |
| 3248 |
fi |
| 3249 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3250 |
$as_echo "$MKDIR_P" >&6; } |
| 3251 |
|
| 3252 |
|
| 3253 |
mkdir_p="$MKDIR_P" |
| 3254 |
case $mkdir_p in |
| 3255 |
[\\/$]* | ?:[\\/]*) ;; |
| 3256 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3257 |
esac |
| 3258 |
|
| 3259 |
for ac_prog in gawk mawk nawk awk |
| 3260 |
do |
| 3261 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3262 |
set dummy $ac_prog; ac_word=$2 |
| 3263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3264 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3265 |
if test "${ac_cv_prog_AWK+set}" = set; then : |
| 3266 |
$as_echo_n "(cached) " >&6 |
| 3267 |
else |
| 3268 |
if test -n "$AWK"; then |
| 3269 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3270 |
else |
| 3271 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3272 |
for as_dir in $PATH |
| 3273 |
do |
| 3274 |
IFS=$as_save_IFS |
| 3275 |
test -z "$as_dir" && as_dir=. |
| 3276 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3277 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3278 |
ac_cv_prog_AWK="$ac_prog" |
| 3279 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3280 |
break 2 |
| 3281 |
fi |
| 3282 |
done |
| 3283 |
done |
| 3284 |
IFS=$as_save_IFS |
| 3285 |
|
| 3286 |
fi |
| 3287 |
fi |
| 3288 |
AWK=$ac_cv_prog_AWK |
| 3289 |
if test -n "$AWK"; then |
| 3290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3291 |
$as_echo "$AWK" >&6; } |
| 3292 |
else |
| 3293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3294 |
$as_echo "no" >&6; } |
| 3295 |
fi |
| 3296 |
|
| 3297 |
|
| 3298 |
test -n "$AWK" && break |
| 3299 |
done |
| 3300 |
|
| 3301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3302 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3303 |
set x ${MAKE-make} |
| 3304 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3305 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 3306 |
$as_echo_n "(cached) " >&6 |
| 3307 |
else |
| 3308 |
cat >conftest.make <<\_ACEOF |
| 3309 |
SHELL = /bin/sh |
| 3310 |
all: |
| 3311 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3312 |
_ACEOF |
| 3313 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3314 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3315 |
*@@@%%%=?*=@@@%%%*) |
| 3316 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3317 |
*) |
| 3318 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3319 |
esac |
| 3320 |
rm -f conftest.make |
| 3321 |
fi |
| 3322 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3324 |
$as_echo "yes" >&6; } |
| 3325 |
SET_MAKE= |
| 3326 |
else |
| 3327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3328 |
$as_echo "no" >&6; } |
| 3329 |
SET_MAKE="MAKE=${MAKE-make}" |
| 3330 |
fi |
| 3331 |
|
| 3332 |
rm -rf .tst 2>/dev/null |
| 3333 |
mkdir .tst 2>/dev/null |
| 3334 |
if test -d .tst; then |
| 3335 |
am__leading_dot=. |
| 3336 |
else |
| 3337 |
am__leading_dot=_ |
| 3338 |
fi |
| 3339 |
rmdir .tst 2>/dev/null |
| 3340 |
|
| 3341 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3342 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3343 |
# is not polluted with repeated "-I." |
| 3344 |
am__isrc=' -I$(srcdir)' |
| 3345 |
# test to see if srcdir already configured |
| 3346 |
if test -f $srcdir/config.status; then |
| 3347 |
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3348 |
fi |
| 3349 |
fi |
| 3350 |
|
| 3351 |
# test whether we have cygpath |
| 3352 |
if test -z "$CYGPATH_W"; then |
| 3353 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3354 |
CYGPATH_W='cygpath -w' |
| 3355 |
else |
| 3356 |
CYGPATH_W=echo |
| 3357 |
fi |
| 3358 |
fi |
| 3359 |
|
| 3360 |
|
| 3361 |
# Define the identity of the package. |
| 3362 |
PACKAGE=gv |
| 3363 |
VERSION=3.7.4 |
| 3364 |
|
| 3365 |
|
| 3366 |
cat >>confdefs.h <<_ACEOF |
| 3367 |
#define PACKAGE "$PACKAGE" |
| 3368 |
_ACEOF |
| 3369 |
|
| 3370 |
|
| 3371 |
cat >>confdefs.h <<_ACEOF |
| 3372 |
#define VERSION "$VERSION" |
| 3373 |
_ACEOF |
| 3374 |
|
| 3375 |
# Some tools Automake needs. |
| 3376 |
|
| 3377 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3378 |
|
| 3379 |
|
| 3380 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3381 |
|
| 3382 |
|
| 3383 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3384 |
|
| 3385 |
|
| 3386 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3387 |
|
| 3388 |
|
| 3389 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3390 |
|
| 3391 |
# We need awk for the "check" target. The system "awk" is bad on |
| 3392 |
# some platforms. |
| 3393 |
# Always define AMTAR for backward compatibility. |
| 3394 |
|
| 3395 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3396 |
|
| 3397 |
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3398 |
|
| 3399 |
|
| 3400 |
|
| 3401 |
|
| 3402 |
|
| 3403 |
ac_config_headers="$ac_config_headers src/ac_config.h" |
| 3404 |
|
| 3405 |
|
| 3406 |
|
| 3407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3408 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3409 |
# Check whether --enable-maintainer-mode was given. |
| 3410 |
if test "${enable_maintainer_mode+set}" = set; then : |
| 3411 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3412 |
else |
| 3413 |
USE_MAINTAINER_MODE=no |
| 3414 |
fi |
| 3415 |
|
| 3416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3417 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3418 |
if test $USE_MAINTAINER_MODE = yes; then |
| 3419 |
MAINTAINER_MODE_TRUE= |
| 3420 |
MAINTAINER_MODE_FALSE='#' |
| 3421 |
else |
| 3422 |
MAINTAINER_MODE_TRUE='#' |
| 3423 |
MAINTAINER_MODE_FALSE= |
| 3424 |
fi |
| 3425 |
|
| 3426 |
MAINT=$MAINTAINER_MODE_TRUE |
| 3427 |
|
| 3428 |
|
| 3429 |
|
| 3430 |
VERSION=3.7.4 |
| 3431 |
MANUALEDITION=First |
| 3432 |
|
| 3433 |
|
| 3434 |
|
| 3435 |
|
| 3436 |
|
| 3437 |
|
| 3438 |
|
| 3439 |
|
| 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 |
if test -n "$ac_tool_prefix"; then |
| 3448 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3449 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3451 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3452 |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 3453 |
$as_echo_n "(cached) " >&6 |
| 3454 |
else |
| 3455 |
if test -n "$CC"; then |
| 3456 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3457 |
else |
| 3458 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3459 |
for as_dir in $PATH |
| 3460 |
do |
| 3461 |
IFS=$as_save_IFS |
| 3462 |
test -z "$as_dir" && as_dir=. |
| 3463 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3464 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3465 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3466 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3467 |
break 2 |
| 3468 |
fi |
| 3469 |
done |
| 3470 |
done |
| 3471 |
IFS=$as_save_IFS |
| 3472 |
|
| 3473 |
fi |
| 3474 |
fi |
| 3475 |
CC=$ac_cv_prog_CC |
| 3476 |
if test -n "$CC"; then |
| 3477 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3478 |
$as_echo "$CC" >&6; } |
| 3479 |
else |
| 3480 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3481 |
$as_echo "no" >&6; } |
| 3482 |
fi |
| 3483 |
|
| 3484 |
|
| 3485 |
fi |
| 3486 |
if test -z "$ac_cv_prog_CC"; then |
| 3487 |
ac_ct_CC=$CC |
| 3488 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3489 |
set dummy gcc; ac_word=$2 |
| 3490 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3491 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3492 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3493 |
$as_echo_n "(cached) " >&6 |
| 3494 |
else |
| 3495 |
if test -n "$ac_ct_CC"; then |
| 3496 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3497 |
else |
| 3498 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3499 |
for as_dir in $PATH |
| 3500 |
do |
| 3501 |
IFS=$as_save_IFS |
| 3502 |
test -z "$as_dir" && as_dir=. |
| 3503 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3504 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3505 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3506 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3507 |
break 2 |
| 3508 |
fi |
| 3509 |
done |
| 3510 |
done |
| 3511 |
IFS=$as_save_IFS |
| 3512 |
|
| 3513 |
fi |
| 3514 |
fi |
| 3515 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3516 |
if test -n "$ac_ct_CC"; then |
| 3517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3518 |
$as_echo "$ac_ct_CC" >&6; } |
| 3519 |
else |
| 3520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3521 |
$as_echo "no" >&6; } |
| 3522 |
fi |
| 3523 |
|
| 3524 |
if test "x$ac_ct_CC" = x; then |
| 3525 |
CC="" |
| 3526 |
else |
| 3527 |
case $cross_compiling:$ac_tool_warned in |
| 3528 |
yes:) |
| 3529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3530 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3531 |
ac_tool_warned=yes ;; |
| 3532 |
esac |
| 3533 |
CC=$ac_ct_CC |
| 3534 |
fi |
| 3535 |
else |
| 3536 |
CC="$ac_cv_prog_CC" |
| 3537 |
fi |
| 3538 |
|
| 3539 |
if test -z "$CC"; then |
| 3540 |
if test -n "$ac_tool_prefix"; then |
| 3541 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3542 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3543 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3544 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3545 |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 3546 |
$as_echo_n "(cached) " >&6 |
| 3547 |
else |
| 3548 |
if test -n "$CC"; then |
| 3549 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3550 |
else |
| 3551 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3552 |
for as_dir in $PATH |
| 3553 |
do |
| 3554 |
IFS=$as_save_IFS |
| 3555 |
test -z "$as_dir" && as_dir=. |
| 3556 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3557 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3558 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3559 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3560 |
break 2 |
| 3561 |
fi |
| 3562 |
done |
| 3563 |
done |
| 3564 |
IFS=$as_save_IFS |
| 3565 |
|
| 3566 |
fi |
| 3567 |
fi |
| 3568 |
CC=$ac_cv_prog_CC |
| 3569 |
if test -n "$CC"; then |
| 3570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3571 |
$as_echo "$CC" >&6; } |
| 3572 |
else |
| 3573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3574 |
$as_echo "no" >&6; } |
| 3575 |
fi |
| 3576 |
|
| 3577 |
|
| 3578 |
fi |
| 3579 |
fi |
| 3580 |
if test -z "$CC"; then |
| 3581 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3582 |
set dummy cc; ac_word=$2 |
| 3583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3584 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3585 |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 3586 |
$as_echo_n "(cached) " >&6 |
| 3587 |
else |
| 3588 |
if test -n "$CC"; then |
| 3589 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3590 |
else |
| 3591 |
ac_prog_rejected=no |
| 3592 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3593 |
for as_dir in $PATH |
| 3594 |
do |
| 3595 |
IFS=$as_save_IFS |
| 3596 |
test -z "$as_dir" && as_dir=. |
| 3597 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3598 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3599 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3600 |
ac_prog_rejected=yes |
| 3601 |
continue |
| 3602 |
fi |
| 3603 |
ac_cv_prog_CC="cc" |
| 3604 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3605 |
break 2 |
| 3606 |
fi |
| 3607 |
done |
| 3608 |
done |
| 3609 |
IFS=$as_save_IFS |
| 3610 |
|
| 3611 |
if test $ac_prog_rejected = yes; then |
| 3612 |
# We found a bogon in the path, so make sure we never use it. |
| 3613 |
set dummy $ac_cv_prog_CC |
| 3614 |
shift |
| 3615 |
if test $# != 0; then |
| 3616 |
# We chose a different compiler from the bogus one. |
| 3617 |
# However, it has the same basename, so the bogon will be chosen |
| 3618 |
# first if we set CC to just the basename; use the full file name. |
| 3619 |
shift |
| 3620 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3621 |
fi |
| 3622 |
fi |
| 3623 |
fi |
| 3624 |
fi |
| 3625 |
CC=$ac_cv_prog_CC |
| 3626 |
if test -n "$CC"; then |
| 3627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3628 |
$as_echo "$CC" >&6; } |
| 3629 |
else |
| 3630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3631 |
$as_echo "no" >&6; } |
| 3632 |
fi |
| 3633 |
|
| 3634 |
|
| 3635 |
fi |
| 3636 |
if test -z "$CC"; then |
| 3637 |
if test -n "$ac_tool_prefix"; then |
| 3638 |
for ac_prog in cl.exe |
| 3639 |
do |
| 3640 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3641 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3643 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3644 |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 3645 |
$as_echo_n "(cached) " >&6 |
| 3646 |
else |
| 3647 |
if test -n "$CC"; then |
| 3648 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3649 |
else |
| 3650 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3651 |
for as_dir in $PATH |
| 3652 |
do |
| 3653 |
IFS=$as_save_IFS |
| 3654 |
test -z "$as_dir" && as_dir=. |
| 3655 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3656 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3657 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3658 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3659 |
break 2 |
| 3660 |
fi |
| 3661 |
done |
| 3662 |
done |
| 3663 |
IFS=$as_save_IFS |
| 3664 |
|
| 3665 |
fi |
| 3666 |
fi |
| 3667 |
CC=$ac_cv_prog_CC |
| 3668 |
if test -n "$CC"; then |
| 3669 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3670 |
$as_echo "$CC" >&6; } |
| 3671 |
else |
| 3672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3673 |
$as_echo "no" >&6; } |
| 3674 |
fi |
| 3675 |
|
| 3676 |
|
| 3677 |
test -n "$CC" && break |
| 3678 |
done |
| 3679 |
fi |
| 3680 |
if test -z "$CC"; then |
| 3681 |
ac_ct_CC=$CC |
| 3682 |
for ac_prog in cl.exe |
| 3683 |
do |
| 3684 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3685 |
set dummy $ac_prog; ac_word=$2 |
| 3686 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3687 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3688 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3689 |
$as_echo_n "(cached) " >&6 |
| 3690 |
else |
| 3691 |
if test -n "$ac_ct_CC"; then |
| 3692 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3693 |
else |
| 3694 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3695 |
for as_dir in $PATH |
| 3696 |
do |
| 3697 |
IFS=$as_save_IFS |
| 3698 |
test -z "$as_dir" && as_dir=. |
| 3699 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3700 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3701 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3702 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3703 |
break 2 |
| 3704 |
fi |
| 3705 |
done |
| 3706 |
done |
| 3707 |
IFS=$as_save_IFS |
| 3708 |
|
| 3709 |
fi |
| 3710 |
fi |
| 3711 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3712 |
if test -n "$ac_ct_CC"; then |
| 3713 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3714 |
$as_echo "$ac_ct_CC" >&6; } |
| 3715 |
else |
| 3716 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3717 |
$as_echo "no" >&6; } |
| 3718 |
fi |
| 3719 |
|
| 3720 |
|
| 3721 |
test -n "$ac_ct_CC" && break |
| 3722 |
done |
| 3723 |
|
| 3724 |
if test "x$ac_ct_CC" = x; then |
| 3725 |
CC="" |
| 3726 |
else |
| 3727 |
case $cross_compiling:$ac_tool_warned in |
| 3728 |
yes:) |
| 3729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3730 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3731 |
ac_tool_warned=yes ;; |
| 3732 |
esac |
| 3733 |
CC=$ac_ct_CC |
| 3734 |
fi |
| 3735 |
fi |
| 3736 |
|
| 3737 |
fi |
| 3738 |
|
| 3739 |
|
| 3740 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3741 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3742 |
as_fn_error "no acceptable C compiler found in \$PATH |
| 3743 |
See \`config.log' for more details." "$LINENO" 5; } |
| 3744 |
|
| 3745 |
# Provide some information about the compiler. |
| 3746 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3747 |
set X $ac_compile |
| 3748 |
ac_compiler=$2 |
| 3749 |
for ac_option in --version -v -V -qversion; do |
| 3750 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 3751 |
case "(($ac_try" in |
| 3752 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3753 |
*) ac_try_echo=$ac_try;; |
| 3754 |
esac |
| 3755 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3756 |
$as_echo "$ac_try_echo"; } >&5 |
| 3757 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3758 |
ac_status=$? |
| 3759 |
if test -s conftest.err; then |
| 3760 |
sed '10a\ |
| 3761 |
... rest of stderr output deleted ... |
| 3762 |
10q' conftest.err >conftest.er1 |
| 3763 |
cat conftest.er1 >&5 |
| 3764 |
fi |
| 3765 |
rm -f conftest.er1 conftest.err |
| 3766 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3767 |
test $ac_status = 0; } |
| 3768 |
done |
| 3769 |
|
| 3770 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3771 |
/* end confdefs.h. */ |
| 3772 |
|
| 3773 |
int |
| 3774 |
main () |
| 3775 |
{ |
| 3776 |
|
| 3777 |
; |
| 3778 |
return 0; |
| 3779 |
} |
| 3780 |
_ACEOF |
| 3781 |
ac_clean_files_save=$ac_clean_files |
| 3782 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3783 |
# Try to create an executable without -o first, disregard a.out. |
| 3784 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 3785 |
# of exeext. |
| 3786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3787 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 3788 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3789 |
|
| 3790 |
# The possible output files: |
| 3791 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3792 |
|
| 3793 |
ac_rmfiles= |
| 3794 |
for ac_file in $ac_files |
| 3795 |
do |
| 3796 |
case $ac_file in |
| 3797 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3798 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3799 |
esac |
| 3800 |
done |
| 3801 |
rm -f $ac_rmfiles |
| 3802 |
|
| 3803 |
if { { ac_try="$ac_link_default" |
| 3804 |
case "(($ac_try" in |
| 3805 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3806 |
*) ac_try_echo=$ac_try;; |
| 3807 |
esac |
| 3808 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3809 |
$as_echo "$ac_try_echo"; } >&5 |
| 3810 |
(eval "$ac_link_default") 2>&5 |
| 3811 |
ac_status=$? |
| 3812 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3813 |
test $ac_status = 0; }; then : |
| 3814 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3815 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3816 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3817 |
# so that the user can short-circuit this test for compilers unknown to |
| 3818 |
# Autoconf. |
| 3819 |
for ac_file in $ac_files '' |
| 3820 |
do |
| 3821 |
test -f "$ac_file" || continue |
| 3822 |
case $ac_file in |
| 3823 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3824 |
;; |
| 3825 |
[ab].out ) |
| 3826 |
# We found the default executable, but exeext='' is most |
| 3827 |
# certainly right. |
| 3828 |
break;; |
| 3829 |
*.* ) |
| 3830 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3831 |
then :; else |
| 3832 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3833 |
fi |
| 3834 |
# We set ac_cv_exeext here because the later test for it is not |
| 3835 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 3836 |
# argument, so we may need to know it at that point already. |
| 3837 |
# Even if this section looks crufty: it has the advantage of |
| 3838 |
# actually working. |
| 3839 |
break;; |
| 3840 |
* ) |
| 3841 |
break;; |
| 3842 |
esac |
| 3843 |
done |
| 3844 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3845 |
|
| 3846 |
else |
| 3847 |
ac_file='' |
| 3848 |
fi |
| 3849 |
if test -z "$ac_file"; then : |
| 3850 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3851 |
$as_echo "no" >&6; } |
| 3852 |
$as_echo "$as_me: failed program was:" >&5 |
| 3853 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3854 |
|
| 3855 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3856 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3857 |
{ as_fn_set_status 77 |
| 3858 |
as_fn_error "C compiler cannot create executables |
| 3859 |
See \`config.log' for more details." "$LINENO" 5; }; } |
| 3860 |
else |
| 3861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3862 |
$as_echo "yes" >&6; } |
| 3863 |
fi |
| 3864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3865 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3867 |
$as_echo "$ac_file" >&6; } |
| 3868 |
ac_exeext=$ac_cv_exeext |
| 3869 |
|
| 3870 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3871 |
ac_clean_files=$ac_clean_files_save |
| 3872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3873 |
$as_echo_n "checking for suffix of executables... " >&6; } |
| 3874 |
if { { ac_try="$ac_link" |
| 3875 |
case "(($ac_try" in |
| 3876 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3877 |
*) ac_try_echo=$ac_try;; |
| 3878 |
esac |
| 3879 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3880 |
$as_echo "$ac_try_echo"; } >&5 |
| 3881 |
(eval "$ac_link") 2>&5 |
| 3882 |
ac_status=$? |
| 3883 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3884 |
test $ac_status = 0; }; then : |
| 3885 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3886 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3887 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3888 |
# `rm'. |
| 3889 |
for ac_file in conftest.exe conftest conftest.*; do |
| 3890 |
test -f "$ac_file" || continue |
| 3891 |
case $ac_file in |
| 3892 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3893 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3894 |
break;; |
| 3895 |
* ) break;; |
| 3896 |
esac |
| 3897 |
done |
| 3898 |
else |
| 3899 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3900 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3901 |
as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3902 |
See \`config.log' for more details." "$LINENO" 5; } |
| 3903 |
fi |
| 3904 |
rm -f conftest conftest$ac_cv_exeext |
| 3905 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3906 |
$as_echo "$ac_cv_exeext" >&6; } |
| 3907 |
|
| 3908 |
rm -f conftest.$ac_ext |
| 3909 |
EXEEXT=$ac_cv_exeext |
| 3910 |
ac_exeext=$EXEEXT |
| 3911 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3912 |
/* end confdefs.h. */ |
| 3913 |
#include <stdio.h> |
| 3914 |
int |
| 3915 |
main () |
| 3916 |
{ |
| 3917 |
FILE *f = fopen ("conftest.out", "w"); |
| 3918 |
return ferror (f) || fclose (f) != 0; |
| 3919 |
|
| 3920 |
; |
| 3921 |
return 0; |
| 3922 |
} |
| 3923 |
_ACEOF |
| 3924 |
ac_clean_files="$ac_clean_files conftest.out" |
| 3925 |
# Check that the compiler produces executables we can run. If not, either |
| 3926 |
# the compiler is broken, or we cross compile. |
| 3927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3928 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3929 |
if test "$cross_compiling" != yes; then |
| 3930 |
{ { ac_try="$ac_link" |
| 3931 |
case "(($ac_try" in |
| 3932 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3933 |
*) ac_try_echo=$ac_try;; |
| 3934 |
esac |
| 3935 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3936 |
$as_echo "$ac_try_echo"; } >&5 |
| 3937 |
(eval "$ac_link") 2>&5 |
| 3938 |
ac_status=$? |
| 3939 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3940 |
test $ac_status = 0; } |
| 3941 |
if { ac_try='./conftest$ac_cv_exeext' |
| 3942 |
{ { case "(($ac_try" in |
| 3943 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3944 |
*) ac_try_echo=$ac_try;; |
| 3945 |
esac |
| 3946 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3947 |
$as_echo "$ac_try_echo"; } >&5 |
| 3948 |
(eval "$ac_try") 2>&5 |
| 3949 |
ac_status=$? |
| 3950 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3951 |
test $ac_status = 0; }; }; then |
| 3952 |
cross_compiling=no |
| 3953 |
else |
| 3954 |
if test "$cross_compiling" = maybe; then |
| 3955 |
cross_compiling=yes |
| 3956 |
else |
| 3957 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3958 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3959 |
as_fn_error "cannot run C compiled programs. |
| 3960 |
If you meant to cross compile, use \`--host'. |
| 3961 |
See \`config.log' for more details." "$LINENO" 5; } |
| 3962 |
fi |
| 3963 |
fi |
| 3964 |
fi |
| 3965 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3966 |
$as_echo "$cross_compiling" >&6; } |
| 3967 |
|
| 3968 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3969 |
ac_clean_files=$ac_clean_files_save |
| 3970 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3971 |
$as_echo_n "checking for suffix of object files... " >&6; } |
| 3972 |
if test "${ac_cv_objext+set}" = set; then : |
| 3973 |
$as_echo_n "(cached) " >&6 |
| 3974 |
else |
| 3975 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3976 |
/* end confdefs.h. */ |
| 3977 |
|
| 3978 |
int |
| 3979 |
main () |
| 3980 |
{ |
| 3981 |
|
| 3982 |
; |
| 3983 |
return 0; |
| 3984 |
} |
| 3985 |
_ACEOF |
| 3986 |
rm -f conftest.o conftest.obj |
| 3987 |
if { { ac_try="$ac_compile" |
| 3988 |
case "(($ac_try" in |
| 3989 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3990 |
*) ac_try_echo=$ac_try;; |
| 3991 |
esac |
| 3992 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3993 |
$as_echo "$ac_try_echo"; } >&5 |
| 3994 |
(eval "$ac_compile") 2>&5 |
| 3995 |
ac_status=$? |
| 3996 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3997 |
test $ac_status = 0; }; then : |
| 3998 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 3999 |
test -f "$ac_file" || continue; |
| 4000 |
case $ac_file in |
| 4001 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4002 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4003 |
break;; |
| 4004 |
esac |
| 4005 |
done |
| 4006 |
else |
| 4007 |
$as_echo "$as_me: failed program was:" >&5 |
| 4008 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4009 |
|
| 4010 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4011 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4012 |
as_fn_error "cannot compute suffix of object files: cannot compile |
| 4013 |
See \`config.log' for more details." "$LINENO" 5; } |
| 4014 |
fi |
| 4015 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4016 |
fi |
| 4017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4018 |
$as_echo "$ac_cv_objext" >&6; } |
| 4019 |
OBJEXT=$ac_cv_objext |
| 4020 |
ac_objext=$OBJEXT |
| 4021 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4022 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4023 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 4024 |
$as_echo_n "(cached) " >&6 |
| 4025 |
else |
| 4026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4027 |
/* end confdefs.h. */ |
| 4028 |
|
| 4029 |
int |
| 4030 |
main () |
| 4031 |
{ |
| 4032 |
#ifndef __GNUC__ |
| 4033 |
choke me |
| 4034 |
#endif |
| 4035 |
|
| 4036 |
; |
| 4037 |
return 0; |
| 4038 |
} |
| 4039 |
_ACEOF |
| 4040 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4041 |
ac_compiler_gnu=yes |
| 4042 |
else |
| 4043 |
ac_compiler_gnu=no |
| 4044 |
fi |
| 4045 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4046 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4047 |
|
| 4048 |
fi |
| 4049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4050 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4051 |
if test $ac_compiler_gnu = yes; then |
| 4052 |
GCC=yes |
| 4053 |
else |
| 4054 |
GCC= |
| 4055 |
fi |
| 4056 |
ac_test_CFLAGS=${CFLAGS+set} |
| 4057 |
ac_save_CFLAGS=$CFLAGS |
| 4058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4059 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4060 |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4061 |
$as_echo_n "(cached) " >&6 |
| 4062 |
else |
| 4063 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 4064 |
ac_c_werror_flag=yes |
| 4065 |
ac_cv_prog_cc_g=no |
| 4066 |
CFLAGS="-g" |
| 4067 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4068 |
/* end confdefs.h. */ |
| 4069 |
|
| 4070 |
int |
| 4071 |
main () |
| 4072 |
{ |
| 4073 |
|
| 4074 |
; |
| 4075 |
return 0; |
| 4076 |
} |
| 4077 |
_ACEOF |
| 4078 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4079 |
ac_cv_prog_cc_g=yes |
| 4080 |
else |
| 4081 |
CFLAGS="" |
| 4082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4083 |
/* end confdefs.h. */ |
| 4084 |
|
| 4085 |
int |
| 4086 |
main () |
| 4087 |
{ |
| 4088 |
|
| 4089 |
; |
| 4090 |
return 0; |
| 4091 |
} |
| 4092 |
_ACEOF |
| 4093 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4094 |
|
| 4095 |
else |
| 4096 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4097 |
CFLAGS="-g" |
| 4098 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4099 |
/* end confdefs.h. */ |
| 4100 |
|
| 4101 |
int |
| 4102 |
main () |
| 4103 |
{ |
| 4104 |
|
| 4105 |
; |
| 4106 |
return 0; |
| 4107 |
} |
| 4108 |
_ACEOF |
| 4109 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4110 |
ac_cv_prog_cc_g=yes |
| 4111 |
fi |
| 4112 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4113 |
fi |
| 4114 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4115 |
fi |
| 4116 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4117 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4118 |
fi |
| 4119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4120 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4121 |
if test "$ac_test_CFLAGS" = set; then |
| 4122 |
CFLAGS=$ac_save_CFLAGS |
| 4123 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4124 |
if test "$GCC" = yes; then |
| 4125 |
CFLAGS="-g -O2" |
| 4126 |
else |
| 4127 |
CFLAGS="-g" |
| 4128 |
fi |
| 4129 |
else |
| 4130 |
if test "$GCC" = yes; then |
| 4131 |
CFLAGS="-O2" |
| 4132 |
else |
| 4133 |
CFLAGS= |
| 4134 |
fi |
| 4135 |
fi |
| 4136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4137 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4138 |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4139 |
$as_echo_n "(cached) " >&6 |
| 4140 |
else |
| 4141 |
ac_cv_prog_cc_c89=no |
| 4142 |
ac_save_CC=$CC |
| 4143 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4144 |
/* end confdefs.h. */ |
| 4145 |
#include <stdarg.h> |
| 4146 |
#include <stdio.h> |
| 4147 |
#include <sys/types.h> |
| 4148 |
#include <sys/stat.h> |
| 4149 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4150 |
struct buf { int x; }; |
| 4151 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4152 |
static char *e (p, i) |
| 4153 |
char **p; |
| 4154 |
int i; |
| 4155 |
{ |
| 4156 |
return p[i]; |
| 4157 |
} |
| 4158 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 4159 |
{ |
| 4160 |
char *s; |
| 4161 |
va_list v; |
| 4162 |
va_start (v,p); |
| 4163 |
s = g (p, va_arg (v,int)); |
| 4164 |
va_end (v); |
| 4165 |
return s; |
| 4166 |
} |
| 4167 |
|
| 4168 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4169 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 4170 |
These don't provoke an error unfortunately, instead are silently treated |
| 4171 |
as 'x'. The following induces an error, until -std is added to get |
| 4172 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4173 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 4174 |
that's true only with -std. */ |
| 4175 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4176 |
|
| 4177 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4178 |
inside strings and character constants. */ |
| 4179 |
#define FOO(x) 'x' |
| 4180 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4181 |
|
| 4182 |
int test (int i, double x); |
| 4183 |
struct s1 {int (*f) (int a);}; |
| 4184 |
struct s2 {int (*f) (double a);}; |
| 4185 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4186 |
int argc; |
| 4187 |
char **argv; |
| 4188 |
int |
| 4189 |
main () |
| 4190 |
{ |
| 4191 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4192 |
; |
| 4193 |
return 0; |
| 4194 |
} |
| 4195 |
_ACEOF |
| 4196 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4197 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4198 |
do |
| 4199 |
CC="$ac_save_CC $ac_arg" |
| 4200 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4201 |
ac_cv_prog_cc_c89=$ac_arg |
| 4202 |
fi |
| 4203 |
rm -f core conftest.err conftest.$ac_objext |
| 4204 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4205 |
done |
| 4206 |
rm -f conftest.$ac_ext |
| 4207 |
CC=$ac_save_CC |
| 4208 |
|
| 4209 |
fi |
| 4210 |
# AC_CACHE_VAL |
| 4211 |
case "x$ac_cv_prog_cc_c89" in |
| 4212 |
x) |
| 4213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4214 |
$as_echo "none needed" >&6; } ;; |
| 4215 |
xno) |
| 4216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4217 |
$as_echo "unsupported" >&6; } ;; |
| 4218 |
*) |
| 4219 |
CC="$CC $ac_cv_prog_cc_c89" |
| 4220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4221 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4222 |
esac |
| 4223 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4224 |
|
| 4225 |
fi |
| 4226 |
|
| 4227 |
ac_ext=c |
| 4228 |
ac_cpp='$CPP $CPPFLAGS' |
| 4229 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4230 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4231 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4232 |
DEPDIR="${am__leading_dot}deps" |
| 4233 |
|
| 4234 |
ac_config_commands="$ac_config_commands depfiles" |
| 4235 |
|
| 4236 |
|
| 4237 |
am_make=${MAKE-make} |
| 4238 |
cat > confinc << 'END' |
| 4239 |
am__doit: |
| 4240 |
@echo this is the am__doit target |
| 4241 |
.PHONY: am__doit |
| 4242 |
END |
| 4243 |
# If we don't find an include directive, just comment out the code. |
| 4244 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4245 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4246 |
am__include="#" |
| 4247 |
am__quote= |
| 4248 |
_am_result=none |
| 4249 |
# First try GNU make style include. |
| 4250 |
echo "include confinc" > confmf |
| 4251 |
# Ignore all kinds of additional output from `make'. |
| 4252 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4253 |
*the\ am__doit\ target*) |
| 4254 |
am__include=include |
| 4255 |
am__quote= |
| 4256 |
_am_result=GNU |
| 4257 |
;; |
| 4258 |
esac |
| 4259 |
# Now try BSD make style include. |
| 4260 |
if test "$am__include" = "#"; then |
| 4261 |
echo '.include "confinc"' > confmf |
| 4262 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4263 |
*the\ am__doit\ target*) |
| 4264 |
am__include=.include |
| 4265 |
am__quote="\"" |
| 4266 |
_am_result=BSD |
| 4267 |
;; |
| 4268 |
esac |
| 4269 |
fi |
| 4270 |
|
| 4271 |
|
| 4272 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4273 |
$as_echo "$_am_result" >&6; } |
| 4274 |
rm -f confinc confmf |
| 4275 |
|
| 4276 |
# Check whether --enable-dependency-tracking was given. |
| 4277 |
if test "${enable_dependency_tracking+set}" = set; then : |
| 4278 |
enableval=$enable_dependency_tracking; |
| 4279 |
fi |
| 4280 |
|
| 4281 |
if test "x$enable_dependency_tracking" != xno; then |
| 4282 |
am_depcomp="$ac_aux_dir/depcomp" |
| 4283 |
AMDEPBACKSLASH='\' |
| 4284 |
fi |
| 4285 |
if test "x$enable_dependency_tracking" != xno; then |
| 4286 |
AMDEP_TRUE= |
| 4287 |
AMDEP_FALSE='#' |
| 4288 |
else |
| 4289 |
AMDEP_TRUE='#' |
| 4290 |
AMDEP_FALSE= |
| 4291 |
fi |
| 4292 |
|
| 4293 |
|
| 4294 |
|
| 4295 |
depcc="$CC" am_compiler_list= |
| 4296 |
|
| 4297 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4298 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4299 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 4300 |
$as_echo_n "(cached) " >&6 |
| 4301 |
else |
| 4302 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4303 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 4304 |
# making bogus files that we don't know about and never remove. For |
| 4305 |
# instance it was reported that on HP-UX the gcc test will end up |
| 4306 |
# making a dummy file named `D' -- because `-MD' means `put the output |
| 4307 |
# in D'. |
| 4308 |
mkdir conftest.dir |
| 4309 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 4310 |
# using a relative directory. |
| 4311 |
cp "$am_depcomp" conftest.dir |
| 4312 |
cd conftest.dir |
| 4313 |
# We will build objects and dependencies in a subdirectory because |
| 4314 |
# it helps to detect inapplicable dependency modes. For instance |
| 4315 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 4316 |
# side effect of compilation, but ICC will put the dependencies in |
| 4317 |
# the current directory while Tru64 will put them in the object |
| 4318 |
# directory. |
| 4319 |
mkdir sub |
| 4320 |
|
| 4321 |
am_cv_CC_dependencies_compiler_type=none |
| 4322 |
if test "$am_compiler_list" = ""; then |
| 4323 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4324 |
fi |
| 4325 |
am__universal=false |
| 4326 |
case " $depcc " in #( |
| 4327 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4328 |
esac |
| 4329 |
|
| 4330 |
for depmode in $am_compiler_list; do |
| 4331 |
# Setup a source with many dependencies, because some compilers |
| 4332 |
# like to wrap large dependency lists on column 80 (with \), and |
| 4333 |
# we should not choose a depcomp mode which is confused by this. |
| 4334 |
# |
| 4335 |
# We need to recreate these files for each test, as the compiler may |
| 4336 |
# overwrite some of them when testing with obscure command lines. |
| 4337 |
# This happens at least with the AIX C compiler. |
| 4338 |
: > sub/conftest.c |
| 4339 |
for i in 1 2 3 4 5 6; do |
| 4340 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4341 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4342 |
# Solaris 8's {/usr,}/bin/sh. |
| 4343 |
touch sub/conftst$i.h |
| 4344 |
done |
| 4345 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4346 |
|
| 4347 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4348 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 4349 |
# handle `-M -o', and we need to detect this. Also, some Intel |
| 4350 |
# versions had trouble with output in subdirs |
| 4351 |
am__obj=sub/conftest.${OBJEXT-o} |
| 4352 |
am__minus_obj="-o $am__obj" |
| 4353 |
case $depmode in |
| 4354 |
gcc) |
| 4355 |
# This depmode causes a compiler race in universal mode. |
| 4356 |
test "$am__universal" = false || continue |
| 4357 |
;; |
| 4358 |
nosideeffect) |
| 4359 |
# after this tag, mechanisms are not by side-effect, so they'll |
| 4360 |
# only be used when explicitly requested |
| 4361 |
if test "x$enable_dependency_tracking" = xyes; then |
| 4362 |
continue |
| 4363 |
else |
| 4364 |
break |
| 4365 |
fi |
| 4366 |
;; |
| 4367 |
msvisualcpp | msvcmsys) |
| 4368 |
# This compiler won't grok `-c -o', but also, the minuso test has |
| 4369 |
# not run yet. These depmodes are late enough in the game, and |
| 4370 |
# so weak that their functioning should not be impacted. |
| 4371 |
am__obj=conftest.${OBJEXT-o} |
| 4372 |
am__minus_obj= |
| 4373 |
;; |
| 4374 |
none) break ;; |
| 4375 |
esac |
| 4376 |
if depmode=$depmode \ |
| 4377 |
source=sub/conftest.c object=$am__obj \ |
| 4378 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4379 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4380 |
>/dev/null 2>conftest.err && |
| 4381 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4382 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4383 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4384 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4385 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 4386 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 4387 |
# that says an option was ignored or not supported. |
| 4388 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4389 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 4390 |
# The diagnosis changed in icc 8.0: |
| 4391 |
# icc: Command line remark: option '-MP' not supported |
| 4392 |
if (grep 'ignoring option' conftest.err || |
| 4393 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4394 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 4395 |
break |
| 4396 |
fi |
| 4397 |
fi |
| 4398 |
done |
| 4399 |
|
| 4400 |
cd .. |
| 4401 |
rm -rf conftest.dir |
| 4402 |
else |
| 4403 |
am_cv_CC_dependencies_compiler_type=none |
| 4404 |
fi |
| 4405 |
|
| 4406 |
fi |
| 4407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4408 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4409 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4410 |
|
| 4411 |
if |
| 4412 |
test "x$enable_dependency_tracking" != xno \ |
| 4413 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4414 |
am__fastdepCC_TRUE= |
| 4415 |
am__fastdepCC_FALSE='#' |
| 4416 |
else |
| 4417 |
am__fastdepCC_TRUE='#' |
| 4418 |
am__fastdepCC_FALSE= |
| 4419 |
fi |
| 4420 |
|
| 4421 |
|
| 4422 |
if test -n "$ac_tool_prefix"; then |
| 4423 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4424 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4426 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4427 |
if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 4428 |
$as_echo_n "(cached) " >&6 |
| 4429 |
else |
| 4430 |
if test -n "$RANLIB"; then |
| 4431 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4432 |
else |
| 4433 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4434 |
for as_dir in $PATH |
| 4435 |
do |
| 4436 |
IFS=$as_save_IFS |
| 4437 |
test -z "$as_dir" && as_dir=. |
| 4438 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4439 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4440 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4441 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4442 |
break 2 |
| 4443 |
fi |
| 4444 |
done |
| 4445 |
done |
| 4446 |
IFS=$as_save_IFS |
| 4447 |
|
| 4448 |
fi |
| 4449 |
fi |
| 4450 |
RANLIB=$ac_cv_prog_RANLIB |
| 4451 |
if test -n "$RANLIB"; then |
| 4452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4453 |
$as_echo "$RANLIB" >&6; } |
| 4454 |
else |
| 4455 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4456 |
$as_echo "no" >&6; } |
| 4457 |
fi |
| 4458 |
|
| 4459 |
|
| 4460 |
fi |
| 4461 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 4462 |
ac_ct_RANLIB=$RANLIB |
| 4463 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 4464 |
set dummy ranlib; ac_word=$2 |
| 4465 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4466 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4467 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 4468 |
$as_echo_n "(cached) " >&6 |
| 4469 |
else |
| 4470 |
if test -n "$ac_ct_RANLIB"; then |
| 4471 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4472 |
else |
| 4473 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4474 |
for as_dir in $PATH |
| 4475 |
do |
| 4476 |
IFS=$as_save_IFS |
| 4477 |
test -z "$as_dir" && as_dir=. |
| 4478 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4479 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4480 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4481 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4482 |
break 2 |
| 4483 |
fi |
| 4484 |
done |
| 4485 |
done |
| 4486 |
IFS=$as_save_IFS |
| 4487 |
|
| 4488 |
fi |
| 4489 |
fi |
| 4490 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4491 |
if test -n "$ac_ct_RANLIB"; then |
| 4492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4493 |
$as_echo "$ac_ct_RANLIB" >&6; } |
| 4494 |
else |
| 4495 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4496 |
$as_echo "no" >&6; } |
| 4497 |
fi |
| 4498 |
|
| 4499 |
if test "x$ac_ct_RANLIB" = x; then |
| 4500 |
RANLIB=":" |
| 4501 |
else |
| 4502 |
case $cross_compiling:$ac_tool_warned in |
| 4503 |
yes:) |
| 4504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4505 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4506 |
ac_tool_warned=yes ;; |
| 4507 |
esac |
| 4508 |
RANLIB=$ac_ct_RANLIB |
| 4509 |
fi |
| 4510 |
else |
| 4511 |
RANLIB="$ac_cv_prog_RANLIB" |
| 4512 |
fi |
| 4513 |
|
| 4514 |
# Make sure we can run config.sub. |
| 4515 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4516 |
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4517 |
|
| 4518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4519 |
$as_echo_n "checking build system type... " >&6; } |
| 4520 |
if test "${ac_cv_build+set}" = set; then : |
| 4521 |
$as_echo_n "(cached) " >&6 |
| 4522 |
else |
| 4523 |
ac_build_alias=$build_alias |
| 4524 |
test "x$ac_build_alias" = x && |
| 4525 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4526 |
test "x$ac_build_alias" = x && |
| 4527 |
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4528 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4529 |
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4530 |
|
| 4531 |
fi |
| 4532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4533 |
$as_echo "$ac_cv_build" >&6; } |
| 4534 |
case $ac_cv_build in |
| 4535 |
*-*-*) ;; |
| 4536 |
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 4537 |
esac |
| 4538 |
build=$ac_cv_build |
| 4539 |
ac_save_IFS=$IFS; IFS='-' |
| 4540 |
set x $ac_cv_build |
| 4541 |
shift |
| 4542 |
build_cpu=$1 |
| 4543 |
build_vendor=$2 |
| 4544 |
shift; shift |
| 4545 |
# Remember, the first character of IFS is used to create $*, |
| 4546 |
# except with old shells: |
| 4547 |
build_os=$* |
| 4548 |
IFS=$ac_save_IFS |
| 4549 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4550 |
|
| 4551 |
|
| 4552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4553 |
$as_echo_n "checking host system type... " >&6; } |
| 4554 |
if test "${ac_cv_host+set}" = set; then : |
| 4555 |
$as_echo_n "(cached) " >&6 |
| 4556 |
else |
| 4557 |
if test "x$host_alias" = x; then |
| 4558 |
ac_cv_host=$ac_cv_build |
| 4559 |
else |
| 4560 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4561 |
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4562 |
fi |
| 4563 |
|
| 4564 |
fi |
| 4565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4566 |
$as_echo "$ac_cv_host" >&6; } |
| 4567 |
case $ac_cv_host in |
| 4568 |
*-*-*) ;; |
| 4569 |
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 4570 |
esac |
| 4571 |
host=$ac_cv_host |
| 4572 |
ac_save_IFS=$IFS; IFS='-' |
| 4573 |
set x $ac_cv_host |
| 4574 |
shift |
| 4575 |
host_cpu=$1 |
| 4576 |
host_vendor=$2 |
| 4577 |
shift; shift |
| 4578 |
# Remember, the first character of IFS is used to create $*, |
| 4579 |
# except with old shells: |
| 4580 |
host_os=$* |
| 4581 |
IFS=$ac_save_IFS |
| 4582 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4583 |
|
| 4584 |
|
| 4585 |
|
| 4586 |
ac_ext=c |
| 4587 |
ac_cpp='$CPP $CPPFLAGS' |
| 4588 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4589 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4590 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4592 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4593 |
# On Suns, sometimes $CPP names a directory. |
| 4594 |
if test -n "$CPP" && test -d "$CPP"; then |
| 4595 |
CPP= |
| 4596 |
fi |
| 4597 |
if test -z "$CPP"; then |
| 4598 |
if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4599 |
$as_echo_n "(cached) " >&6 |
| 4600 |
else |
| 4601 |
# Double quotes because CPP needs to be expanded |
| 4602 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4603 |
do |
| 4604 |
ac_preproc_ok=false |
| 4605 |
for ac_c_preproc_warn_flag in '' yes |
| 4606 |
do |
| 4607 |
# Use a header file that comes with gcc, so configuring glibc |
| 4608 |
# with a fresh cross-compiler works. |
| 4609 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4610 |
# <limits.h> exists even on freestanding compilers. |
| 4611 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4612 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4613 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4614 |
/* end confdefs.h. */ |
| 4615 |
#ifdef __STDC__ |
| 4616 |
# include <limits.h> |
| 4617 |
#else |
| 4618 |
# include <assert.h> |
| 4619 |
#endif |
| 4620 |
Syntax error |
| 4621 |
_ACEOF |
| 4622 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4623 |
|
| 4624 |
else |
| 4625 |
# Broken: fails on valid input. |
| 4626 |
continue |
| 4627 |
fi |
| 4628 |
rm -f conftest.err conftest.$ac_ext |
| 4629 |
|
| 4630 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4631 |
# can be detected and how. |
| 4632 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4633 |
/* end confdefs.h. */ |
| 4634 |
#include <ac_nonexistent.h> |
| 4635 |
_ACEOF |
| 4636 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4637 |
# Broken: success on invalid input. |
| 4638 |
continue |
| 4639 |
else |
| 4640 |
# Passes both tests. |
| 4641 |
ac_preproc_ok=: |
| 4642 |
break |
| 4643 |
fi |
| 4644 |
rm -f conftest.err conftest.$ac_ext |
| 4645 |
|
| 4646 |
done |
| 4647 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4648 |
rm -f conftest.err conftest.$ac_ext |
| 4649 |
if $ac_preproc_ok; then : |
| 4650 |
break |
| 4651 |
fi |
| 4652 |
|
| 4653 |
done |
| 4654 |
ac_cv_prog_CPP=$CPP |
| 4655 |
|
| 4656 |
fi |
| 4657 |
CPP=$ac_cv_prog_CPP |
| 4658 |
else |
| 4659 |
ac_cv_prog_CPP=$CPP |
| 4660 |
fi |
| 4661 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4662 |
$as_echo "$CPP" >&6; } |
| 4663 |
ac_preproc_ok=false |
| 4664 |
for ac_c_preproc_warn_flag in '' yes |
| 4665 |
do |
| 4666 |
# Use a header file that comes with gcc, so configuring glibc |
| 4667 |
# with a fresh cross-compiler works. |
| 4668 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4669 |
# <limits.h> exists even on freestanding compilers. |
| 4670 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4671 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4672 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4673 |
/* end confdefs.h. */ |
| 4674 |
#ifdef __STDC__ |
| 4675 |
# include <limits.h> |
| 4676 |
#else |
| 4677 |
# include <assert.h> |
| 4678 |
#endif |
| 4679 |
Syntax error |
| 4680 |
_ACEOF |
| 4681 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4682 |
|
| 4683 |
else |
| 4684 |
# Broken: fails on valid input. |
| 4685 |
continue |
| 4686 |
fi |
| 4687 |
rm -f conftest.err conftest.$ac_ext |
| 4688 |
|
| 4689 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4690 |
# can be detected and how. |
| 4691 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4692 |
/* end confdefs.h. */ |
| 4693 |
#include <ac_nonexistent.h> |
| 4694 |
_ACEOF |
| 4695 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4696 |
# Broken: success on invalid input. |
| 4697 |
continue |
| 4698 |
else |
| 4699 |
# Passes both tests. |
| 4700 |
ac_preproc_ok=: |
| 4701 |
break |
| 4702 |
fi |
| 4703 |
rm -f conftest.err conftest.$ac_ext |
| 4704 |
|
| 4705 |
done |
| 4706 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4707 |
rm -f conftest.err conftest.$ac_ext |
| 4708 |
if $ac_preproc_ok; then : |
| 4709 |
|
| 4710 |
else |
| 4711 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4712 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4713 |
as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4714 |
See \`config.log' for more details." "$LINENO" 5; } |
| 4715 |
fi |
| 4716 |
|
| 4717 |
ac_ext=c |
| 4718 |
ac_cpp='$CPP $CPPFLAGS' |
| 4719 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4720 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4721 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4722 |
|
| 4723 |
|
| 4724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4725 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4726 |
if test "${ac_cv_path_GREP+set}" = set; then : |
| 4727 |
$as_echo_n "(cached) " >&6 |
| 4728 |
else |
| 4729 |
if test -z "$GREP"; then |
| 4730 |
ac_path_GREP_found=false |
| 4731 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4732 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4733 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4734 |
do |
| 4735 |
IFS=$as_save_IFS |
| 4736 |
test -z "$as_dir" && as_dir=. |
| 4737 |
for ac_prog in grep ggrep; do |
| 4738 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4739 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4740 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4741 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 4742 |
# Check for GNU $ac_path_GREP |
| 4743 |
case `"$ac_path_GREP" --version 2>&1` in |
| 4744 |
*GNU*) |
| 4745 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4746 |
*) |
| 4747 |
ac_count=0 |
| 4748 |
$as_echo_n 0123456789 >"conftest.in" |
| 4749 |
while : |
| 4750 |
do |
| 4751 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4752 |
mv "conftest.tmp" "conftest.in" |
| 4753 |
cp "conftest.in" "conftest.nl" |
| 4754 |
$as_echo 'GREP' >> "conftest.nl" |
| 4755 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4756 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4757 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4758 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4759 |
# Best one so far, save it but keep looking for a better one |
| 4760 |
ac_cv_path_GREP="$ac_path_GREP" |
| 4761 |
ac_path_GREP_max=$ac_count |
| 4762 |
fi |
| 4763 |
# 10*(2^10) chars as input seems more than enough |
| 4764 |
test $ac_count -gt 10 && break |
| 4765 |
done |
| 4766 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4767 |
esac |
| 4768 |
|
| 4769 |
$ac_path_GREP_found && break 3 |
| 4770 |
done |
| 4771 |
done |
| 4772 |
done |
| 4773 |
IFS=$as_save_IFS |
| 4774 |
if test -z "$ac_cv_path_GREP"; then |
| 4775 |
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4776 |
fi |
| 4777 |
else |
| 4778 |
ac_cv_path_GREP=$GREP |
| 4779 |
fi |
| 4780 |
|
| 4781 |
fi |
| 4782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4783 |
$as_echo "$ac_cv_path_GREP" >&6; } |
| 4784 |
GREP="$ac_cv_path_GREP" |
| 4785 |
|
| 4786 |
|
| 4787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4788 |
$as_echo_n "checking for egrep... " >&6; } |
| 4789 |
if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4790 |
$as_echo_n "(cached) " >&6 |
| 4791 |
else |
| 4792 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4793 |
then ac_cv_path_EGREP="$GREP -E" |
| 4794 |
else |
| 4795 |
if test -z "$EGREP"; then |
| 4796 |
ac_path_EGREP_found=false |
| 4797 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4798 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4799 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4800 |
do |
| 4801 |
IFS=$as_save_IFS |
| 4802 |
test -z "$as_dir" && as_dir=. |
| 4803 |
for ac_prog in egrep; do |
| 4804 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4805 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4806 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4807 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 4808 |
# Check for GNU $ac_path_EGREP |
| 4809 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 4810 |
*GNU*) |
| 4811 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4812 |
*) |
| 4813 |
ac_count=0 |
| 4814 |
$as_echo_n 0123456789 >"conftest.in" |
| 4815 |
while : |
| 4816 |
do |
| 4817 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4818 |
mv "conftest.tmp" "conftest.in" |
| 4819 |
cp "conftest.in" "conftest.nl" |
| 4820 |
$as_echo 'EGREP' >> "conftest.nl" |
| 4821 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4822 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4823 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4824 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4825 |
# Best one so far, save it but keep looking for a better one |
| 4826 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 4827 |
ac_path_EGREP_max=$ac_count |
| 4828 |
fi |
| 4829 |
# 10*(2^10) chars as input seems more than enough |
| 4830 |
test $ac_count -gt 10 && break |
| 4831 |
done |
| 4832 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4833 |
esac |
| 4834 |
|
| 4835 |
$ac_path_EGREP_found && break 3 |
| 4836 |
done |
| 4837 |
done |
| 4838 |
done |
| 4839 |
IFS=$as_save_IFS |
| 4840 |
if test -z "$ac_cv_path_EGREP"; then |
| 4841 |
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4842 |
fi |
| 4843 |
else |
| 4844 |
ac_cv_path_EGREP=$EGREP |
| 4845 |
fi |
| 4846 |
|
| 4847 |
fi |
| 4848 |
fi |
| 4849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4850 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
| 4851 |
EGREP="$ac_cv_path_EGREP" |
| 4852 |
|
| 4853 |
|
| 4854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4855 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 4856 |
if test "${ac_cv_header_stdc+set}" = set; then : |
| 4857 |
$as_echo_n "(cached) " >&6 |
| 4858 |
else |
| 4859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4860 |
/* end confdefs.h. */ |
| 4861 |
#include <stdlib.h> |
| 4862 |
#include <stdarg.h> |
| 4863 |
#include <string.h> |
| 4864 |
#include <float.h> |
| 4865 |
|
| 4866 |
int |
| 4867 |
main () |
| 4868 |
{ |
| 4869 |
|
| 4870 |
; |
| 4871 |
return 0; |
| 4872 |
} |
| 4873 |
_ACEOF |
| 4874 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4875 |
ac_cv_header_stdc=yes |
| 4876 |
else |
| 4877 |
ac_cv_header_stdc=no |
| 4878 |
fi |
| 4879 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4880 |
|
| 4881 |
if test $ac_cv_header_stdc = yes; then |
| 4882 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4883 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4884 |
/* end confdefs.h. */ |
| 4885 |
#include <string.h> |
| 4886 |
|
| 4887 |
_ACEOF |
| 4888 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4889 |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 4890 |
|
| 4891 |
else |
| 4892 |
ac_cv_header_stdc=no |
| 4893 |
fi |
| 4894 |
rm -f conftest* |
| 4895 |
|
| 4896 |
fi |
| 4897 |
|
| 4898 |
if test $ac_cv_header_stdc = yes; then |
| 4899 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4900 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4901 |
/* end confdefs.h. */ |
| 4902 |
#include <stdlib.h> |
| 4903 |
|
| 4904 |
_ACEOF |
| 4905 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4906 |
$EGREP "free" >/dev/null 2>&1; then : |
| 4907 |
|
| 4908 |
else |
| 4909 |
ac_cv_header_stdc=no |
| 4910 |
fi |
| 4911 |
rm -f conftest* |
| 4912 |
|
| 4913 |
fi |
| 4914 |
|
| 4915 |
if test $ac_cv_header_stdc = yes; then |
| 4916 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4917 |
if test "$cross_compiling" = yes; then : |
| 4918 |
: |
| 4919 |
else |
| 4920 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4921 |
/* end confdefs.h. */ |
| 4922 |
#include <ctype.h> |
| 4923 |
#include <stdlib.h> |
| 4924 |
#if ((' ' & 0x0FF) == 0x020) |
| 4925 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4926 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4927 |
#else |
| 4928 |
# define ISLOWER(c) \ |
| 4929 |
(('a' <= (c) && (c) <= 'i') \ |
| 4930 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 4931 |
|| ('s' <= (c) && (c) <= 'z')) |
| 4932 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4933 |
#endif |
| 4934 |
|
| 4935 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4936 |
int |
| 4937 |
main () |
| 4938 |
{ |
| 4939 |
int i; |
| 4940 |
for (i = 0; i < 256; i++) |
| 4941 |
if (XOR (islower (i), ISLOWER (i)) |
| 4942 |
|| toupper (i) != TOUPPER (i)) |
| 4943 |
return 2; |
| 4944 |
return 0; |
| 4945 |
} |
| 4946 |
_ACEOF |
| 4947 |
if ac_fn_c_try_run "$LINENO"; then : |
| 4948 |
|
| 4949 |
else |
| 4950 |
ac_cv_header_stdc=no |
| 4951 |
fi |
| 4952 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4953 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4954 |
fi |
| 4955 |
|
| 4956 |
fi |
| 4957 |
fi |
| 4958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4959 |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 4960 |
if test $ac_cv_header_stdc = yes; then |
| 4961 |
|
| 4962 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4963 |
|
| 4964 |
fi |
| 4965 |
|
| 4966 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4967 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4968 |
inttypes.h stdint.h unistd.h |
| 4969 |
do : |
| 4970 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4971 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4972 |
" |
| 4973 |
eval as_val=\$$as_ac_Header |
| 4974 |
if test "x$as_val" = x""yes; then : |
| 4975 |
cat >>confdefs.h <<_ACEOF |
| 4976 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4977 |
_ACEOF |
| 4978 |
|
| 4979 |
fi |
| 4980 |
|
| 4981 |
done |
| 4982 |
|
| 4983 |
|
| 4984 |
|
| 4985 |
|
| 4986 |
|
| 4987 |
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4988 |
if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 4989 |
MINIX=yes |
| 4990 |
else |
| 4991 |
MINIX= |
| 4992 |
fi |
| 4993 |
|
| 4994 |
|
| 4995 |
if test "$MINIX" = yes; then |
| 4996 |
|
| 4997 |
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4998 |
|
| 4999 |
|
| 5000 |
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5001 |
|
| 5002 |
|
| 5003 |
$as_echo "#define _MINIX 1" >>confdefs.h |
| 5004 |
|
| 5005 |
fi |
| 5006 |
|
| 5007 |
case "$host_os" in |
| 5008 |
hpux*) |
| 5009 |
|
| 5010 |
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 5011 |
|
| 5012 |
;; |
| 5013 |
esac |
| 5014 |
|
| 5015 |
|
| 5016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5017 |
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5018 |
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 5019 |
$as_echo_n "(cached) " >&6 |
| 5020 |
else |
| 5021 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5022 |
/* end confdefs.h. */ |
| 5023 |
|
| 5024 |
# define __EXTENSIONS__ 1 |
| 5025 |
$ac_includes_default |
| 5026 |
int |
| 5027 |
main () |
| 5028 |
{ |
| 5029 |
|
| 5030 |
; |
| 5031 |
return 0; |
| 5032 |
} |
| 5033 |
_ACEOF |
| 5034 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5035 |
ac_cv_safe_to_define___extensions__=yes |
| 5036 |
else |
| 5037 |
ac_cv_safe_to_define___extensions__=no |
| 5038 |
fi |
| 5039 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5040 |
fi |
| 5041 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5042 |
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5043 |
test $ac_cv_safe_to_define___extensions__ = yes && |
| 5044 |
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5045 |
|
| 5046 |
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5047 |
|
| 5048 |
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5049 |
|
| 5050 |
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5051 |
|
| 5052 |
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5053 |
|
| 5054 |
|
| 5055 |
|
| 5056 |
|
| 5057 |
|
| 5058 |
|
| 5059 |
|
| 5060 |
|
| 5061 |
|
| 5062 |
|
| 5063 |
# Code from module alloca-opt: |
| 5064 |
# Code from module arg-nonnull: |
| 5065 |
# Code from module c++defs: |
| 5066 |
# Code from module canonicalize-lgpl: |
| 5067 |
# Code from module dosname: |
| 5068 |
# Code from module errno: |
| 5069 |
# Code from module extensions: |
| 5070 |
|
| 5071 |
# Code from module getopt-gnu: |
| 5072 |
# Code from module getopt-posix: |
| 5073 |
# Code from module gettext-h: |
| 5074 |
# Code from module gettimeofday: |
| 5075 |
# Code from module include_next: |
| 5076 |
# Code from module inttypes: |
| 5077 |
# Code from module inttypes-incomplete: |
| 5078 |
# Code from module lstat: |
| 5079 |
# Code from module malloca: |
| 5080 |
# Code from module mkdtemp: |
| 5081 |
# Code from module mkstemp: |
| 5082 |
# Code from module multiarch: |
| 5083 |
# Code from module pathmax: |
| 5084 |
# Code from module readlink: |
| 5085 |
# Code from module signal: |
| 5086 |
# Code from module stat: |
| 5087 |
# Code from module stdbool: |
| 5088 |
# Code from module stddef: |
| 5089 |
# Code from module stdint: |
| 5090 |
# Code from module stdlib: |
| 5091 |
# Code from module sys_stat: |
| 5092 |
# Code from module sys_time: |
| 5093 |
# Code from module tempname: |
| 5094 |
# Code from module time: |
| 5095 |
# Code from module unistd: |
| 5096 |
# Code from module verify: |
| 5097 |
# Code from module warn-on-use: |
| 5098 |
|
| 5099 |
|
| 5100 |
|
| 5101 |
|
| 5102 |
|
| 5103 |
LIBC_FATAL_STDERR_=1 |
| 5104 |
export LIBC_FATAL_STDERR_ |
| 5105 |
|
| 5106 |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5107 |
# for constant arguments. Useless! |
| 5108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 5109 |
$as_echo_n "checking for working alloca.h... " >&6; } |
| 5110 |
if test "${ac_cv_working_alloca_h+set}" = set; then : |
| 5111 |
$as_echo_n "(cached) " >&6 |
| 5112 |
else |
| 5113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5114 |
/* end confdefs.h. */ |
| 5115 |
#include <alloca.h> |
| 5116 |
int |
| 5117 |
main () |
| 5118 |
{ |
| 5119 |
char *p = (char *) alloca (2 * sizeof (int)); |
| 5120 |
if (p) return 0; |
| 5121 |
; |
| 5122 |
return 0; |
| 5123 |
} |
| 5124 |
_ACEOF |
| 5125 |
if ac_fn_c_try_link "$LINENO"; then : |
| 5126 |
ac_cv_working_alloca_h=yes |
| 5127 |
else |
| 5128 |
ac_cv_working_alloca_h=no |
| 5129 |
fi |
| 5130 |
rm -f core conftest.err conftest.$ac_objext \ |
| 5131 |
conftest$ac_exeext conftest.$ac_ext |
| 5132 |
fi |
| 5133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 5134 |
$as_echo "$ac_cv_working_alloca_h" >&6; } |
| 5135 |
if test $ac_cv_working_alloca_h = yes; then |
| 5136 |
|
| 5137 |
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 5138 |
|
| 5139 |
fi |
| 5140 |
|
| 5141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 5142 |
$as_echo_n "checking for alloca... " >&6; } |
| 5143 |
if test "${ac_cv_func_alloca_works+set}" = set; then : |
| 5144 |
$as_echo_n "(cached) " >&6 |
| 5145 |
else |
| 5146 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5147 |
/* end confdefs.h. */ |
| 5148 |
#ifdef __GNUC__ |
| 5149 |
# define alloca __builtin_alloca |
| 5150 |
#else |
| 5151 |
# ifdef _MSC_VER |
| 5152 |
# include <malloc.h> |
| 5153 |
# define alloca _alloca |
| 5154 |
# else |
| 5155 |
# ifdef HAVE_ALLOCA_H |
| 5156 |
# include <alloca.h> |
| 5157 |
# else |
| 5158 |
# ifdef _AIX |
| 5159 |
#pragma alloca |
| 5160 |
# else |
| 5161 |
# ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5162 |
char *alloca (); |
| 5163 |
# endif |
| 5164 |
# endif |
| 5165 |
# endif |
| 5166 |
# endif |
| 5167 |
#endif |
| 5168 |
|
| 5169 |
int |
| 5170 |
main () |
| 5171 |
{ |
| 5172 |
char *p = (char *) alloca (1); |
| 5173 |
if (p) return 0; |
| 5174 |
; |
| 5175 |
return 0; |
| 5176 |
} |
| 5177 |
_ACEOF |
| 5178 |
if ac_fn_c_try_link "$LINENO"; then : |
| 5179 |
ac_cv_func_alloca_works=yes |
| 5180 |
else |
| 5181 |
ac_cv_func_alloca_works=no |
| 5182 |
fi |
| 5183 |
rm -f core conftest.err conftest.$ac_objext \ |
| 5184 |
conftest$ac_exeext conftest.$ac_ext |
| 5185 |
fi |
| 5186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 5187 |
$as_echo "$ac_cv_func_alloca_works" >&6; } |
| 5188 |
|
| 5189 |
if test $ac_cv_func_alloca_works = yes; then |
| 5190 |
|
| 5191 |
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 5192 |
|
| 5193 |
else |
| 5194 |
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5195 |
# that cause trouble. Some versions do not even contain alloca or |
| 5196 |
# contain a buggy version. If you still want to use their alloca, |
| 5197 |
# use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5198 |
|
| 5199 |
|
| 5200 |
|
| 5201 |
|
| 5202 |
|
| 5203 |
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 5204 |
|
| 5205 |
$as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 5206 |
|
| 5207 |
|
| 5208 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5209 |
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
| 5210 |
if test "${ac_cv_os_cray+set}" = set; then : |
| 5211 |
$as_echo_n "(cached) " >&6 |
| 5212 |
else |
| 5213 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5214 |
/* end confdefs.h. */ |
| 5215 |
#if defined CRAY && ! defined CRAY2 |
| 5216 |
webecray |
| 5217 |
#else |
| 5218 |
wenotbecray |
| 5219 |
#endif |
| 5220 |
|
| 5221 |
_ACEOF |
| 5222 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5223 |
$EGREP "webecray" >/dev/null 2>&1; then : |
| 5224 |
ac_cv_os_cray=yes |
| 5225 |
else |
| 5226 |
ac_cv_os_cray=no |
| 5227 |
fi |
| 5228 |
rm -f conftest* |
| 5229 |
|
| 5230 |
fi |
| 5231 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 5232 |
$as_echo "$ac_cv_os_cray" >&6; } |
| 5233 |
if test $ac_cv_os_cray = yes; then |
| 5234 |
for ac_func in _getb67 GETB67 getb67; do |
| 5235 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5236 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5237 |
eval as_val=\$$as_ac_var |
| 5238 |
if test "x$as_val" = x""yes; then : |
| 5239 |
|
| 5240 |
cat >>confdefs.h <<_ACEOF |
| 5241 |
#define CRAY_STACKSEG_END $ac_func |
| 5242 |
_ACEOF |
| 5243 |
|
| 5244 |
break |
| 5245 |
fi |
| 5246 |
|
| 5247 |
done |
| 5248 |
fi |
| 5249 |
|
| 5250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 5251 |
$as_echo_n "checking stack direction for C alloca... " >&6; } |
| 5252 |
if test "${ac_cv_c_stack_direction+set}" = set; then : |
| 5253 |
$as_echo_n "(cached) " >&6 |
| 5254 |
else |
| 5255 |
if test "$cross_compiling" = yes; then : |
| 5256 |
ac_cv_c_stack_direction=0 |
| 5257 |
else |
| 5258 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5259 |
/* end confdefs.h. */ |
| 5260 |
$ac_includes_default |
| 5261 |
int |
| 5262 |
find_stack_direction () |
| 5263 |
{ |
| 5264 |
static char *addr = 0; |
| 5265 |
auto char dummy; |
| 5266 |
if (addr == 0) |
| 5267 |
{ |
| 5268 |
addr = &dummy; |
| 5269 |
return find_stack_direction (); |
| 5270 |
} |
| 5271 |
else |
| 5272 |
return (&dummy > addr) ? 1 : -1; |
| 5273 |
} |
| 5274 |
|
| 5275 |
int |
| 5276 |
main () |
| 5277 |
{ |
| 5278 |
return find_stack_direction () < 0; |
| 5279 |
} |
| 5280 |
_ACEOF |
| 5281 |
if ac_fn_c_try_run "$LINENO"; then : |
| 5282 |
ac_cv_c_stack_direction=1 |
| 5283 |
else |
| 5284 |
ac_cv_c_stack_direction=-1 |
| 5285 |
fi |
| 5286 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5287 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5288 |
fi |
| 5289 |
|
| 5290 |
fi |
| 5291 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 5292 |
$as_echo "$ac_cv_c_stack_direction" >&6; } |
| 5293 |
cat >>confdefs.h <<_ACEOF |
| 5294 |
#define STACK_DIRECTION $ac_cv_c_stack_direction |
| 5295 |
_ACEOF |
| 5296 |
|
| 5297 |
|
| 5298 |
fi |
| 5299 |
|
| 5300 |
|
| 5301 |
|
| 5302 |
|
| 5303 |
|
| 5304 |
for ac_func in $gl_func_list |
| 5305 |
do : |
| 5306 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5307 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5308 |
eval as_val=\$$as_ac_var |
| 5309 |
if test "x$as_val" = x""yes; then : |
| 5310 |
cat >>confdefs.h <<_ACEOF |
| 5311 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5312 |
_ACEOF |
| 5313 |
|
| 5314 |
fi |
| 5315 |
done |
| 5316 |
|
| 5317 |
|
| 5318 |
|
| 5319 |
|
| 5320 |
|
| 5321 |
|
| 5322 |
|
| 5323 |
|
| 5324 |
|
| 5325 |
|
| 5326 |
|
| 5327 |
|
| 5328 |
|
| 5329 |
|
| 5330 |
|
| 5331 |
|
| 5332 |
|
| 5333 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 |
| 5334 |
$as_echo_n "checking whether // is distinct from /... " >&6; } |
| 5335 |
if test "${gl_cv_double_slash_root+set}" = set; then : |
| 5336 |
$as_echo_n "(cached) " >&6 |
| 5337 |
else |
| 5338 |
if test x"$cross_compiling" = xyes ; then |
| 5339 |
# When cross-compiling, there is no way to tell whether // is special |
| 5340 |
# short of a list of hosts. However, the only known hosts to date |
| 5341 |
# that have a distinct // are Apollo DomainOS (too old to port to), |
| 5342 |
# Cygwin, and z/OS. If anyone knows of another system for which // has |
| 5343 |
# special semantics and is distinct from /, please report it to |
| 5344 |
# <[email protected]>. |
| 5345 |
case $host in |
| 5346 |
*-cygwin | i370-ibm-openedition) |
| 5347 |
gl_cv_double_slash_root=yes ;; |
| 5348 |
*) |
| 5349 |
# Be optimistic and assume that / and // are the same when we |
| 5350 |
# don't know. |
| 5351 |
gl_cv_double_slash_root='unknown, assuming no' ;; |
| 5352 |
esac |
| 5353 |
else |
| 5354 |
set x `ls -di / // 2>/dev/null` |
| 5355 |
if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then |
| 5356 |
gl_cv_double_slash_root=no |
| 5357 |
else |
| 5358 |
gl_cv_double_slash_root=yes |
| 5359 |
fi |
| 5360 |
fi |
| 5361 |
fi |
| 5362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 |
| 5363 |
$as_echo "$gl_cv_double_slash_root" >&6; } |
| 5364 |
if test "$gl_cv_double_slash_root" = yes; then |
| 5365 |
|
| 5366 |
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h |
| 5367 |
|
| 5368 |
fi |
| 5369 |
|
| 5370 |
|
| 5371 |
|
| 5372 |
|
| 5373 |
|
| 5374 |
|
| 5375 |
|
| 5376 |
|
| 5377 |
: |
| 5378 |
|
| 5379 |
|
| 5380 |
|
| 5381 |
|
| 5382 |
|
| 5383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5 |
| 5384 |
$as_echo_n "checking whether realpath works... " >&6; } |
| 5385 |
if test "${gl_cv_func_realpath_works+set}" = set; then : |
| 5386 |
$as_echo_n "(cached) " >&6 |
| 5387 |
else |
| 5388 |
|
| 5389 |
touch conftest.a |
| 5390 |
if test "$cross_compiling" = yes; then : |
| 5391 |
gl_cv_func_realpath_works="guessing no" |
| 5392 |
else |
| 5393 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5394 |
/* end confdefs.h. */ |
| 5395 |
|
| 5396 |
|
| 5397 |
#include <stdlib.h> |
| 5398 |
|
| 5399 |
int |
| 5400 |
main () |
| 5401 |
{ |
| 5402 |
|
| 5403 |
int result = 0; |
| 5404 |
{ |
| 5405 |
char *name = realpath ("conftest.a", NULL); |
| 5406 |
if (!(name && *name == '/')) |
| 5407 |
result |= 1; |
| 5408 |
} |
| 5409 |
{ |
| 5410 |
char *name = realpath ("conftest.b/../conftest.a", NULL); |
| 5411 |
if (name != NULL) |
| 5412 |
result |= 2; |
| 5413 |
} |
| 5414 |
{ |
| 5415 |
char *name = realpath ("conftest.a/", NULL); |
| 5416 |
if (name != NULL) |
| 5417 |
result |= 4; |
| 5418 |
} |
| 5419 |
return result; |
| 5420 |
|
| 5421 |
; |
| 5422 |
return 0; |
| 5423 |
} |
| 5424 |
|
| 5425 |
_ACEOF |
| 5426 |
if ac_fn_c_try_run "$LINENO"; then : |
| 5427 |
gl_cv_func_realpath_works=yes |
| 5428 |
else |
| 5429 |
gl_cv_func_realpath_works=no |
| 5430 |
fi |
| 5431 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5432 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5433 |
fi |
| 5434 |
|
| 5435 |
|
| 5436 |
fi |
| 5437 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5 |
| 5438 |
$as_echo "$gl_cv_func_realpath_works" >&6; } |
| 5439 |
if test "$gl_cv_func_realpath_works" = yes; then |
| 5440 |
|
| 5441 |
$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h |
| 5442 |
|
| 5443 |
fi |
| 5444 |
|
| 5445 |
|
| 5446 |
|
| 5447 |
|
| 5448 |
|
| 5449 |
for ac_header in $gl_header_list |
| 5450 |
do : |
| 5451 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5452 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5453 |
eval as_val=\$$as_ac_Header |
| 5454 |
if test "x$as_val" = x""yes; then : |
| 5455 |
cat >>confdefs.h <<_ACEOF |
| 5456 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5457 |
_ACEOF |
| 5458 |
|
| 5459 |
fi |
| 5460 |
|
| 5461 |
done |
| 5462 |
|
| 5463 |
|
| 5464 |
|
| 5465 |
|
| 5466 |
|
| 5467 |
|
| 5468 |
|
| 5469 |
|
| 5470 |
: |
| 5471 |
|
| 5472 |
|
| 5473 |
|
| 5474 |
|
| 5475 |
|
| 5476 |
|
| 5477 |
|
| 5478 |
|
| 5479 |
|
| 5480 |
|
| 5481 |
|
| 5482 |
|
| 5483 |
|
| 5484 |
|
| 5485 |
: |
| 5486 |
|
| 5487 |
|
| 5488 |
|
| 5489 |
|
| 5490 |
|
| 5491 |
|
| 5492 |
|
| 5493 |
GNULIB__EXIT=0; |
| 5494 |
GNULIB_ATOLL=0; |
| 5495 |
GNULIB_CALLOC_POSIX=0; |
| 5496 |
GNULIB_CANONICALIZE_FILE_NAME=0; |
| 5497 |
GNULIB_GETLOADAVG=0; |
| 5498 |
GNULIB_GETSUBOPT=0; |
| 5499 |
GNULIB_GRANTPT=0; |
| 5500 |
GNULIB_MALLOC_POSIX=0; |
| 5501 |
GNULIB_MBTOWC=0; |
| 5502 |
GNULIB_MKDTEMP=0; |
| 5503 |
GNULIB_MKOSTEMP=0; |
| 5504 |
GNULIB_MKOSTEMPS=0; |
| 5505 |
GNULIB_MKSTEMP=0; |
| 5506 |
GNULIB_MKSTEMPS=0; |
| 5507 |
GNULIB_PTSNAME=0; |
| 5508 |
GNULIB_PUTENV=0; |
| 5509 |
GNULIB_RANDOM_R=0; |
| 5510 |
GNULIB_REALLOC_POSIX=0; |
| 5511 |
GNULIB_REALPATH=0; |
| 5512 |
GNULIB_RPMATCH=0; |
| 5513 |
GNULIB_SETENV=0; |
| 5514 |
GNULIB_STRTOD=0; |
| 5515 |
GNULIB_STRTOLL=0; |
| 5516 |
GNULIB_STRTOULL=0; |
| 5517 |
GNULIB_SYSTEM_POSIX=0; |
| 5518 |
GNULIB_UNLOCKPT=0; |
| 5519 |
GNULIB_UNSETENV=0; |
| 5520 |
GNULIB_WCTOMB=0; |
| 5521 |
HAVE__EXIT=1; |
| 5522 |
HAVE_ATOLL=1; |
| 5523 |
HAVE_CANONICALIZE_FILE_NAME=1; |
| 5524 |
HAVE_DECL_GETLOADAVG=1; |
| 5525 |
HAVE_GETSUBOPT=1; |
| 5526 |
HAVE_GRANTPT=1; |
| 5527 |
HAVE_MKDTEMP=1; |
| 5528 |
HAVE_MKOSTEMP=1; |
| 5529 |
HAVE_MKOSTEMPS=1; |
| 5530 |
HAVE_MKSTEMP=1; |
| 5531 |
HAVE_MKSTEMPS=1; |
| 5532 |
HAVE_PTSNAME=1; |
| 5533 |
HAVE_RANDOM_H=1; |
| 5534 |
HAVE_RANDOM_R=1; |
| 5535 |
HAVE_REALPATH=1; |
| 5536 |
HAVE_RPMATCH=1; |
| 5537 |
HAVE_SETENV=1; |
| 5538 |
HAVE_DECL_SETENV=1; |
| 5539 |
HAVE_STRTOD=1; |
| 5540 |
HAVE_STRTOLL=1; |
| 5541 |
HAVE_STRTOULL=1; |
| 5542 |
HAVE_STRUCT_RANDOM_DATA=1; |
| 5543 |
HAVE_SYS_LOADAVG_H=0; |
| 5544 |
HAVE_UNLOCKPT=1; |
| 5545 |
HAVE_DECL_UNSETENV=1; |
| 5546 |
REPLACE_CALLOC=0; |
| 5547 |
REPLACE_CANONICALIZE_FILE_NAME=0; |
| 5548 |
REPLACE_MALLOC=0; |
| 5549 |
REPLACE_MBTOWC=0; |
| 5550 |
REPLACE_MKSTEMP=0; |
| 5551 |
REPLACE_PUTENV=0; |
| 5552 |
REPLACE_REALLOC=0; |
| 5553 |
REPLACE_REALPATH=0; |
| 5554 |
REPLACE_SETENV=0; |
| 5555 |
REPLACE_STRTOD=0; |
| 5556 |
REPLACE_UNSETENV=0; |
| 5557 |
REPLACE_WCTOMB=0; |
| 5558 |
|
| 5559 |
|
| 5560 |
|
| 5561 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
| 5562 |
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
| 5563 |
if test "${gl_cv_have_include_next+set}" = set; then : |
| 5564 |
$as_echo_n "(cached) " >&6 |
| 5565 |
else |
| 5566 |
rm -rf conftestd1a conftestd1b conftestd2 |
| 5567 |
mkdir conftestd1a conftestd1b conftestd2 |
| 5568 |
cat <<EOF > conftestd1a/conftest.h |
| 5569 |
#define DEFINED_IN_CONFTESTD1 |
| 5570 |
#include_next <conftest.h> |
| 5571 |
#ifdef DEFINED_IN_CONFTESTD2 |
| 5572 |
int foo; |
| 5573 |
#else |
| 5574 |
#error "include_next doesn't work" |
| 5575 |
#endif |
| 5576 |
EOF |
| 5577 |
cat <<EOF > conftestd1b/conftest.h |
| 5578 |
#define DEFINED_IN_CONFTESTD1 |
| 5579 |
#include <stdio.h> |
| 5580 |
#include_next <conftest.h> |
| 5581 |
#ifdef DEFINED_IN_CONFTESTD2 |
| 5582 |
int foo; |
| 5583 |
#else |
| 5584 |
#error "include_next doesn't work" |
| 5585 |
#endif |
| 5586 |
EOF |
| 5587 |
cat <<EOF > conftestd2/conftest.h |
| 5588 |
#ifndef DEFINED_IN_CONFTESTD1 |
| 5589 |
#error "include_next test doesn't work" |
| 5590 |
#endif |
| 5591 |
#define DEFINED_IN_CONFTESTD2 |
| 5592 |
EOF |
| 5593 |
gl_save_CPPFLAGS="$CPPFLAGS" |
| 5594 |
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" |
| 5595 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5596 |
/* end confdefs.h. */ |
| 5597 |
#include <conftest.h> |
| 5598 |
_ACEOF |
| 5599 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5600 |
gl_cv_have_include_next=yes |
| 5601 |
else |
| 5602 |
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" |
| 5603 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5604 |
/* end confdefs.h. */ |
| 5605 |
#include <conftest.h> |
| 5606 |
_ACEOF |
| 5607 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5608 |
gl_cv_have_include_next=buggy |
| 5609 |
else |
| 5610 |
gl_cv_have_include_next=no |
| 5611 |
fi |
| 5612 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5613 |
|
| 5614 |
fi |
| 5615 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5616 |
CPPFLAGS="$gl_save_CPPFLAGS" |
| 5617 |
rm -rf conftestd1a conftestd1b conftestd2 |
| 5618 |
|
| 5619 |
fi |
| 5620 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 |
| 5621 |
$as_echo "$gl_cv_have_include_next" >&6; } |
| 5622 |
PRAGMA_SYSTEM_HEADER= |
| 5623 |
if test $gl_cv_have_include_next = yes; then |
| 5624 |
INCLUDE_NEXT=include_next |
| 5625 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 5626 |
if test -n "$GCC"; then |
| 5627 |
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' |
| 5628 |
fi |
| 5629 |
else |
| 5630 |
if test $gl_cv_have_include_next = buggy; then |
| 5631 |
INCLUDE_NEXT=include |
| 5632 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 5633 |
else |
| 5634 |
INCLUDE_NEXT=include |
| 5635 |
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include |
| 5636 |
fi |
| 5637 |
fi |
| 5638 |
|
| 5639 |
|
| 5640 |
|
| 5641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 |
| 5642 |
$as_echo_n "checking whether system header files limit the line length... " >&6; } |
| 5643 |
if test "${gl_cv_pragma_columns+set}" = set; then : |
| 5644 |
$as_echo_n "(cached) " >&6 |
| 5645 |
else |
| 5646 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5647 |
/* end confdefs.h. */ |
| 5648 |
|
| 5649 |
#ifdef __TANDEM |
| 5650 |
choke me |
| 5651 |
#endif |
| 5652 |
|
| 5653 |
_ACEOF |
| 5654 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5655 |
$EGREP "choke me" >/dev/null 2>&1; then : |
| 5656 |
gl_cv_pragma_columns=yes |
| 5657 |
else |
| 5658 |
gl_cv_pragma_columns=no |
| 5659 |
fi |
| 5660 |
rm -f conftest* |
| 5661 |
|
| 5662 |
|
| 5663 |
fi |
| 5664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 |
| 5665 |
$as_echo "$gl_cv_pragma_columns" >&6; } |
| 5666 |
if test $gl_cv_pragma_columns = yes; then |
| 5667 |
PRAGMA_COLUMNS="#pragma COLUMNS 10000" |
| 5668 |
else |
| 5669 |
PRAGMA_COLUMNS= |
| 5670 |
fi |
| 5671 |
|
| 5672 |
|
| 5673 |
|
| 5674 |
|
| 5675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 |
| 5676 |
$as_echo_n "checking for complete errno.h... " >&6; } |
| 5677 |
if test "${gl_cv_header_errno_h_complete+set}" = set; then : |
| 5678 |
$as_echo_n "(cached) " >&6 |
| 5679 |
else |
| 5680 |
|
| 5681 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5682 |
/* end confdefs.h. */ |
| 5683 |
|
| 5684 |
#include <errno.h> |
| 5685 |
#if !defined ENOMSG |
| 5686 |
booboo |
| 5687 |
#endif |
| 5688 |
#if !defined EIDRM |
| 5689 |
booboo |
| 5690 |
#endif |
| 5691 |
#if !defined ENOLINK |
| 5692 |
booboo |
| 5693 |
#endif |
| 5694 |
#if !defined EPROTO |
| 5695 |
booboo |
| 5696 |
#endif |
| 5697 |
#if !defined EMULTIHOP |
| 5698 |
booboo |
| 5699 |
#endif |
| 5700 |
#if !defined EBADMSG |
| 5701 |
booboo |
| 5702 |
#endif |
| 5703 |
#if !defined EOVERFLOW |
| 5704 |
booboo |
| 5705 |
#endif |
| 5706 |
#if !defined ENOTSUP |
| 5707 |
booboo |
| 5708 |
#endif |
| 5709 |
#if !defined ESTALE |
| 5710 |
booboo |
| 5711 |
#endif |
| 5712 |
#if !defined EDQUOT |
| 5713 |
booboo |
| 5714 |
#endif |
| 5715 |
#if !defined ECANCELED |
| 5716 |
booboo |
| 5717 |
#endif |
| 5718 |
|
| 5719 |
_ACEOF |
| 5720 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5721 |
$EGREP "booboo" >/dev/null 2>&1; then : |
| 5722 |
gl_cv_header_errno_h_complete=no |
| 5723 |
else |
| 5724 |
gl_cv_header_errno_h_complete=yes |
| 5725 |
fi |
| 5726 |
rm -f conftest* |
| 5727 |
|
| 5728 |
|
| 5729 |
fi |
| 5730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 |
| 5731 |
$as_echo "$gl_cv_header_errno_h_complete" >&6; } |
| 5732 |
if test $gl_cv_header_errno_h_complete = yes; then |
| 5733 |
ERRNO_H='' |
| 5734 |
else |
| 5735 |
|
| 5736 |
|
| 5737 |
|
| 5738 |
|
| 5739 |
|
| 5740 |
|
| 5741 |
|
| 5742 |
|
| 5743 |
if test $gl_cv_have_include_next = yes; then |
| 5744 |
gl_cv_next_errno_h='<'errno.h'>' |
| 5745 |
else |
| 5746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 |
| 5747 |
$as_echo_n "checking absolute name of <errno.h>... " >&6; } |
| 5748 |
if test "${gl_cv_next_errno_h+set}" = set; then : |
| 5749 |
$as_echo_n "(cached) " >&6 |
| 5750 |
else |
| 5751 |
|
| 5752 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5753 |
/* end confdefs.h. */ |
| 5754 |
#include <errno.h> |
| 5755 |
|
| 5756 |
_ACEOF |
| 5757 |
case "$host_os" in |
| 5758 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 5759 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 5760 |
esac |
| 5761 |
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 5762 |
sed -n '\#/errno.h#{ |
| 5763 |
s#.*"\(.*/errno.h\)".*#\1# |
| 5764 |
s#^/[^/]#//&# |
| 5765 |
p |
| 5766 |
q |
| 5767 |
}'`'"' |
| 5768 |
|
| 5769 |
|
| 5770 |
fi |
| 5771 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 |
| 5772 |
$as_echo "$gl_cv_next_errno_h" >&6; } |
| 5773 |
fi |
| 5774 |
NEXT_ERRNO_H=$gl_cv_next_errno_h |
| 5775 |
|
| 5776 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 5777 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 5778 |
gl_next_as_first_directive='<'errno.h'>' |
| 5779 |
else |
| 5780 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 5781 |
gl_next_as_first_directive=$gl_cv_next_errno_h |
| 5782 |
fi |
| 5783 |
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive |
| 5784 |
|
| 5785 |
|
| 5786 |
|
| 5787 |
|
| 5788 |
ERRNO_H='errno.h' |
| 5789 |
fi |
| 5790 |
|
| 5791 |
if test -n "$ERRNO_H"; then |
| 5792 |
GL_GENERATE_ERRNO_H_TRUE= |
| 5793 |
GL_GENERATE_ERRNO_H_FALSE='#' |
| 5794 |
else |
| 5795 |
GL_GENERATE_ERRNO_H_TRUE='#' |
| 5796 |
GL_GENERATE_ERRNO_H_FALSE= |
| 5797 |
fi |
| 5798 |
|
| 5799 |
|
| 5800 |
if test -n "$ERRNO_H"; then |
| 5801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 |
| 5802 |
$as_echo_n "checking for EMULTIHOP value... " >&6; } |
| 5803 |
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then : |
| 5804 |
$as_echo_n "(cached) " >&6 |
| 5805 |
else |
| 5806 |
|
| 5807 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5808 |
/* end confdefs.h. */ |
| 5809 |
|
| 5810 |
#include <errno.h> |
| 5811 |
#ifdef EMULTIHOP |
| 5812 |
yes |
| 5813 |
#endif |
| 5814 |
|
| 5815 |
_ACEOF |
| 5816 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5817 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 5818 |
gl_cv_header_errno_h_EMULTIHOP=yes |
| 5819 |
else |
| 5820 |
gl_cv_header_errno_h_EMULTIHOP=no |
| 5821 |
fi |
| 5822 |
rm -f conftest* |
| 5823 |
|
| 5824 |
if test $gl_cv_header_errno_h_EMULTIHOP = no; then |
| 5825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5826 |
/* end confdefs.h. */ |
| 5827 |
|
| 5828 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 5829 |
#include <errno.h> |
| 5830 |
#ifdef EMULTIHOP |
| 5831 |
yes |
| 5832 |
#endif |
| 5833 |
|
| 5834 |
_ACEOF |
| 5835 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5836 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 5837 |
gl_cv_header_errno_h_EMULTIHOP=hidden |
| 5838 |
fi |
| 5839 |
rm -f conftest* |
| 5840 |
|
| 5841 |
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then |
| 5842 |
if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " |
| 5843 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 5844 |
#include <errno.h> |
| 5845 |
/* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 5846 |
#include <stdio.h> |
| 5847 |
#include <stdlib.h> |
| 5848 |
"; then : |
| 5849 |
|
| 5850 |
fi |
| 5851 |
|
| 5852 |
fi |
| 5853 |
fi |
| 5854 |
|
| 5855 |
fi |
| 5856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 |
| 5857 |
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } |
| 5858 |
case $gl_cv_header_errno_h_EMULTIHOP in |
| 5859 |
yes | no) |
| 5860 |
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= |
| 5861 |
;; |
| 5862 |
*) |
| 5863 |
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" |
| 5864 |
;; |
| 5865 |
esac |
| 5866 |
|
| 5867 |
|
| 5868 |
fi |
| 5869 |
|
| 5870 |
|
| 5871 |
if test -n "$ERRNO_H"; then |
| 5872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 |
| 5873 |
$as_echo_n "checking for ENOLINK value... " >&6; } |
| 5874 |
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then : |
| 5875 |
$as_echo_n "(cached) " >&6 |
| 5876 |
else |
| 5877 |
|
| 5878 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5879 |
/* end confdefs.h. */ |
| 5880 |
|
| 5881 |
#include <errno.h> |
| 5882 |
#ifdef ENOLINK |
| 5883 |
yes |
| 5884 |
#endif |
| 5885 |
|
| 5886 |
_ACEOF |
| 5887 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5888 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 5889 |
gl_cv_header_errno_h_ENOLINK=yes |
| 5890 |
else |
| 5891 |
gl_cv_header_errno_h_ENOLINK=no |
| 5892 |
fi |
| 5893 |
rm -f conftest* |
| 5894 |
|
| 5895 |
if test $gl_cv_header_errno_h_ENOLINK = no; then |
| 5896 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5897 |
/* end confdefs.h. */ |
| 5898 |
|
| 5899 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 5900 |
#include <errno.h> |
| 5901 |
#ifdef ENOLINK |
| 5902 |
yes |
| 5903 |
#endif |
| 5904 |
|
| 5905 |
_ACEOF |
| 5906 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5907 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 5908 |
gl_cv_header_errno_h_ENOLINK=hidden |
| 5909 |
fi |
| 5910 |
rm -f conftest* |
| 5911 |
|
| 5912 |
if test $gl_cv_header_errno_h_ENOLINK = hidden; then |
| 5913 |
if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " |
| 5914 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 5915 |
#include <errno.h> |
| 5916 |
/* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 5917 |
#include <stdio.h> |
| 5918 |
#include <stdlib.h> |
| 5919 |
"; then : |
| 5920 |
|
| 5921 |
fi |
| 5922 |
|
| 5923 |
fi |
| 5924 |
fi |
| 5925 |
|
| 5926 |
fi |
| 5927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 |
| 5928 |
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } |
| 5929 |
case $gl_cv_header_errno_h_ENOLINK in |
| 5930 |
yes | no) |
| 5931 |
ENOLINK_HIDDEN=0; ENOLINK_VALUE= |
| 5932 |
;; |
| 5933 |
*) |
| 5934 |
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" |
| 5935 |
;; |
| 5936 |
esac |
| 5937 |
|
| 5938 |
|
| 5939 |
fi |
| 5940 |
|
| 5941 |
|
| 5942 |
if test -n "$ERRNO_H"; then |
| 5943 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 |
| 5944 |
$as_echo_n "checking for EOVERFLOW value... " >&6; } |
| 5945 |
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then : |
| 5946 |
$as_echo_n "(cached) " >&6 |
| 5947 |
else |
| 5948 |
|
| 5949 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5950 |
/* end confdefs.h. */ |
| 5951 |
|
| 5952 |
#include <errno.h> |
| 5953 |
#ifdef EOVERFLOW |
| 5954 |
yes |
| 5955 |
#endif |
| 5956 |
|
| 5957 |
_ACEOF |
| 5958 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5959 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 5960 |
gl_cv_header_errno_h_EOVERFLOW=yes |
| 5961 |
else |
| 5962 |
gl_cv_header_errno_h_EOVERFLOW=no |
| 5963 |
fi |
| 5964 |
rm -f conftest* |
| 5965 |
|
| 5966 |
if test $gl_cv_header_errno_h_EOVERFLOW = no; then |
| 5967 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5968 |
/* end confdefs.h. */ |
| 5969 |
|
| 5970 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 5971 |
#include <errno.h> |
| 5972 |
#ifdef EOVERFLOW |
| 5973 |
yes |
| 5974 |
#endif |
| 5975 |
|
| 5976 |
_ACEOF |
| 5977 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5978 |
$EGREP "yes" >/dev/null 2>&1; then : |
| 5979 |
gl_cv_header_errno_h_EOVERFLOW=hidden |
| 5980 |
fi |
| 5981 |
rm -f conftest* |
| 5982 |
|
| 5983 |
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then |
| 5984 |
if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " |
| 5985 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 5986 |
#include <errno.h> |
| 5987 |
/* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 5988 |
#include <stdio.h> |
| 5989 |
#include <stdlib.h> |
| 5990 |
"; then : |
| 5991 |
|
| 5992 |
fi |
| 5993 |
|
| 5994 |
fi |
| 5995 |
fi |
| 5996 |
|
| 5997 |
fi |
| 5998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 |
| 5999 |
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } |
| 6000 |
case $gl_cv_header_errno_h_EOVERFLOW in |
| 6001 |
yes | no) |
| 6002 |
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= |
| 6003 |
;; |
| 6004 |
*) |
| 6005 |
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" |
| 6006 |
;; |
| 6007 |
esac |
| 6008 |
|
| 6009 |
|
| 6010 |
fi |
| 6011 |
|
| 6012 |
|
| 6013 |
|
| 6014 |
GNULIB_CHOWN=0; |
| 6015 |
GNULIB_CLOSE=0; |
| 6016 |
GNULIB_DUP2=0; |
| 6017 |
GNULIB_DUP3=0; |
| 6018 |
GNULIB_ENVIRON=0; |
| 6019 |
GNULIB_EUIDACCESS=0; |
| 6020 |
GNULIB_FACCESSAT=0; |
| 6021 |
GNULIB_FCHDIR=0; |
| 6022 |
GNULIB_FCHOWNAT=0; |
| 6023 |
GNULIB_FSYNC=0; |
| 6024 |
GNULIB_FTRUNCATE=0; |
| 6025 |
GNULIB_GETCWD=0; |
| 6026 |
GNULIB_GETDOMAINNAME=0; |
| 6027 |
GNULIB_GETDTABLESIZE=0; |
| 6028 |
GNULIB_GETGROUPS=0; |
| 6029 |
GNULIB_GETHOSTNAME=0; |
| 6030 |
GNULIB_GETLOGIN=0; |
| 6031 |
GNULIB_GETLOGIN_R=0; |
| 6032 |
GNULIB_GETPAGESIZE=0; |
| 6033 |
GNULIB_GETUSERSHELL=0; |
| 6034 |
GNULIB_LCHOWN=0; |
| 6035 |
GNULIB_LINK=0; |
| 6036 |
GNULIB_LINKAT=0; |
| 6037 |
GNULIB_LSEEK=0; |
| 6038 |
GNULIB_PIPE=0; |
| 6039 |
GNULIB_PIPE2=0; |
| 6040 |
GNULIB_PREAD=0; |
| 6041 |
GNULIB_PWRITE=0; |
| 6042 |
GNULIB_READ=0; |
| 6043 |
GNULIB_READLINK=0; |
| 6044 |
GNULIB_READLINKAT=0; |
| 6045 |
GNULIB_RMDIR=0; |
| 6046 |
GNULIB_SLEEP=0; |
| 6047 |
GNULIB_SYMLINK=0; |
| 6048 |
GNULIB_SYMLINKAT=0; |
| 6049 |
GNULIB_TTYNAME_R=0; |
| 6050 |
GNULIB_UNISTD_H_GETOPT=0; |
| 6051 |
GNULIB_UNISTD_H_NONBLOCKING=0; |
| 6052 |
GNULIB_UNISTD_H_SIGPIPE=0; |
| 6053 |
GNULIB_UNLINK=0; |
| 6054 |
GNULIB_UNLINKAT=0; |
| 6055 |
GNULIB_USLEEP=0; |
| 6056 |
GNULIB_WRITE=0; |
| 6057 |
HAVE_CHOWN=1; |
| 6058 |
HAVE_DUP2=1; |
| 6059 |
HAVE_DUP3=1; |
| 6060 |
HAVE_EUIDACCESS=1; |
| 6061 |
HAVE_FACCESSAT=1; |
| 6062 |
HAVE_FCHDIR=1; |
| 6063 |
HAVE_FCHOWNAT=1; |
| 6064 |
HAVE_FSYNC=1; |
| 6065 |
HAVE_FTRUNCATE=1; |
| 6066 |
HAVE_GETDTABLESIZE=1; |
| 6067 |
HAVE_GETGROUPS=1; |
| 6068 |
HAVE_GETHOSTNAME=1; |
| 6069 |
HAVE_GETLOGIN=1; |
| 6070 |
HAVE_GETPAGESIZE=1; |
| 6071 |
HAVE_LCHOWN=1; |
| 6072 |
HAVE_LINK=1; |
| 6073 |
HAVE_LINKAT=1; |
| 6074 |
HAVE_PIPE=1; |
| 6075 |
HAVE_PIPE2=1; |
| 6076 |
HAVE_PREAD=1; |
| 6077 |
HAVE_PWRITE=1; |
| 6078 |
HAVE_READLINK=1; |
| 6079 |
HAVE_READLINKAT=1; |
| 6080 |
HAVE_SLEEP=1; |
| 6081 |
HAVE_SYMLINK=1; |
| 6082 |
HAVE_SYMLINKAT=1; |
| 6083 |
HAVE_UNLINKAT=1; |
| 6084 |
HAVE_USLEEP=1; |
| 6085 |
HAVE_DECL_ENVIRON=1; |
| 6086 |
HAVE_DECL_FCHDIR=1; |
| 6087 |
HAVE_DECL_GETDOMAINNAME=1; |
| 6088 |
HAVE_DECL_GETLOGIN_R=1; |
| 6089 |
HAVE_DECL_GETPAGESIZE=1; |
| 6090 |
HAVE_DECL_GETUSERSHELL=1; |
| 6091 |
HAVE_DECL_TTYNAME_R=1; |
| 6092 |
HAVE_OS_H=0; |
| 6093 |
HAVE_SYS_PARAM_H=0; |
| 6094 |
REPLACE_CHOWN=0; |
| 6095 |
REPLACE_CLOSE=0; |
| 6096 |
REPLACE_DUP=0; |
| 6097 |
REPLACE_DUP2=0; |
| 6098 |
REPLACE_FCHOWNAT=0; |
| 6099 |
REPLACE_GETCWD=0; |
| 6100 |
REPLACE_GETDOMAINNAME=0; |
| 6101 |
REPLACE_GETLOGIN_R=0; |
| 6102 |
REPLACE_GETGROUPS=0; |
| 6103 |
REPLACE_GETPAGESIZE=0; |
| 6104 |
REPLACE_LCHOWN=0; |
| 6105 |
REPLACE_LINK=0; |
| 6106 |
REPLACE_LINKAT=0; |
| 6107 |
REPLACE_LSEEK=0; |
| 6108 |
REPLACE_PREAD=0; |
| 6109 |
REPLACE_PWRITE=0; |
| 6110 |
REPLACE_READ=0; |
| 6111 |
REPLACE_READLINK=0; |
| 6112 |
REPLACE_RMDIR=0; |
| 6113 |
REPLACE_SLEEP=0; |
| 6114 |
REPLACE_SYMLINK=0; |
| 6115 |
REPLACE_TTYNAME_R=0; |
| 6116 |
REPLACE_UNLINK=0; |
| 6117 |
REPLACE_UNLINKAT=0; |
| 6118 |
REPLACE_USLEEP=0; |
| 6119 |
REPLACE_WRITE=0; |
| 6120 |
UNISTD_H_HAVE_WINSOCK2_H=0; |
| 6121 |
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; |
| 6122 |
|
| 6123 |
|
| 6124 |
|
| 6125 |
|
| 6126 |
|
| 6127 |
|
| 6128 |
|
| 6129 |
|
| 6130 |
|
| 6131 |
|
| 6132 |
|
| 6133 |
|
| 6134 |
|
| 6135 |
|
| 6136 |
|
| 6137 |
|
| 6138 |
|
| 6139 |
: |
| 6140 |
|
| 6141 |
|
| 6142 |
|
| 6143 |
|
| 6144 |
|
| 6145 |
|
| 6146 |
|
| 6147 |
|
| 6148 |
if test $gl_cv_have_include_next = yes; then |
| 6149 |
gl_cv_next_getopt_h='<'getopt.h'>' |
| 6150 |
else |
| 6151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 |
| 6152 |
$as_echo_n "checking absolute name of <getopt.h>... " >&6; } |
| 6153 |
if test "${gl_cv_next_getopt_h+set}" = set; then : |
| 6154 |
$as_echo_n "(cached) " >&6 |
| 6155 |
else |
| 6156 |
|
| 6157 |
if test $ac_cv_header_getopt_h = yes; then |
| 6158 |
|
| 6159 |
|
| 6160 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6161 |
/* end confdefs.h. */ |
| 6162 |
#include <getopt.h> |
| 6163 |
|
| 6164 |
_ACEOF |
| 6165 |
case "$host_os" in |
| 6166 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 6167 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 6168 |
esac |
| 6169 |
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 6170 |
sed -n '\#/getopt.h#{ |
| 6171 |
s#.*"\(.*/getopt.h\)".*#\1# |
| 6172 |
s#^/[^/]#//&# |
| 6173 |
p |
| 6174 |
q |
| 6175 |
}'`'"' |
| 6176 |
else |
| 6177 |
gl_cv_next_getopt_h='<'getopt.h'>' |
| 6178 |
fi |
| 6179 |
|
| 6180 |
|
| 6181 |
fi |
| 6182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 |
| 6183 |
$as_echo "$gl_cv_next_getopt_h" >&6; } |
| 6184 |
fi |
| 6185 |
NEXT_GETOPT_H=$gl_cv_next_getopt_h |
| 6186 |
|
| 6187 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 6188 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 6189 |
gl_next_as_first_directive='<'getopt.h'>' |
| 6190 |
else |
| 6191 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 6192 |
gl_next_as_first_directive=$gl_cv_next_getopt_h |
| 6193 |
fi |
| 6194 |
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive |
| 6195 |
|
| 6196 |
|
| 6197 |
|
| 6198 |
|
| 6199 |
if test $ac_cv_header_getopt_h = yes; then |
| 6200 |
HAVE_GETOPT_H=1 |
| 6201 |
else |
| 6202 |
HAVE_GETOPT_H=0 |
| 6203 |
fi |
| 6204 |
|
| 6205 |
|
| 6206 |
gl_replace_getopt= |
| 6207 |
|
| 6208 |
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 6209 |
for ac_header in getopt.h |
| 6210 |
do : |
| 6211 |
ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 6212 |
if test "x$ac_cv_header_getopt_h" = x""yes; then : |
| 6213 |
cat >>confdefs.h <<_ACEOF |
| 6214 |
#define HAVE_GETOPT_H 1 |
| 6215 |
_ACEOF |
| 6216 |
|
| 6217 |
else |
| 6218 |
gl_replace_getopt=yes |
| 6219 |
fi |
| 6220 |
|
| 6221 |
done |
| 6222 |
|
| 6223 |
fi |
| 6224 |
|
| 6225 |
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 6226 |
for ac_func in getopt_long_only |
| 6227 |
do : |
| 6228 |
ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" |
| 6229 |
if test "x$ac_cv_func_getopt_long_only" = x""yes; then : |
| 6230 |
cat >>confdefs.h <<_ACEOF |
| 6231 |
#define HAVE_GETOPT_LONG_ONLY 1 |
| 6232 |
_ACEOF |
| 6233 |
|
| 6234 |
else |
| 6235 |
gl_replace_getopt=yes |
| 6236 |
fi |
| 6237 |
done |
| 6238 |
|
| 6239 |
fi |
| 6240 |
|
| 6241 |
if test -z "$gl_replace_getopt"; then |
| 6242 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 |
| 6243 |
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } |
| 6244 |
if test "${gl_cv_func_getopt_posix+set}" = set; then : |
| 6245 |
$as_echo_n "(cached) " >&6 |
| 6246 |
else |
| 6247 |
|
| 6248 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6249 |
/* end confdefs.h. */ |
| 6250 |
#include <unistd.h> |
| 6251 |
int |
| 6252 |
main () |
| 6253 |
{ |
| 6254 |
int *p = &optreset; return optreset; |
| 6255 |
; |
| 6256 |
return 0; |
| 6257 |
} |
| 6258 |
_ACEOF |
| 6259 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6260 |
gl_optind_min=1 |
| 6261 |
else |
| 6262 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6263 |
/* end confdefs.h. */ |
| 6264 |
#include <getopt.h> |
| 6265 |
int |
| 6266 |
main () |
| 6267 |
{ |
| 6268 |
return !getopt_clip; |
| 6269 |
; |
| 6270 |
return 0; |
| 6271 |
} |
| 6272 |
_ACEOF |
| 6273 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6274 |
gl_optind_min=1 |
| 6275 |
else |
| 6276 |
gl_optind_min=0 |
| 6277 |
fi |
| 6278 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6279 |
fi |
| 6280 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6281 |
|
| 6282 |
gl_save_CPPFLAGS=$CPPFLAGS |
| 6283 |
CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min" |
| 6284 |
if test "$cross_compiling" = yes; then : |
| 6285 |
case "$host_os" in |
| 6286 |
mingw*) gl_cv_func_getopt_posix="guessing no";; |
| 6287 |
darwin* | aix*) gl_cv_func_getopt_posix="guessing no";; |
| 6288 |
*) gl_cv_func_getopt_posix="guessing yes";; |
| 6289 |
esac |
| 6290 |
|
| 6291 |
else |
| 6292 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6293 |
/* end confdefs.h. */ |
| 6294 |
|
| 6295 |
#include <unistd.h> |
| 6296 |
#include <stdlib.h> |
| 6297 |
#include <string.h> |
| 6298 |
|
| 6299 |
int |
| 6300 |
main () |
| 6301 |
{ |
| 6302 |
{ |
| 6303 |
int argc = 0; |
| 6304 |
char *argv[10]; |
| 6305 |
int c; |
| 6306 |
|
| 6307 |
argv[argc++] = "program"; |
| 6308 |
argv[argc++] = "-a"; |
| 6309 |
argv[argc++] = "foo"; |
| 6310 |
argv[argc++] = "bar"; |
| 6311 |
argv[argc] = NULL; |
| 6312 |
optind = OPTIND_MIN; |
| 6313 |
opterr = 0; |
| 6314 |
|
| 6315 |
c = getopt (argc, argv, "ab"); |
| 6316 |
if (!(c == 'a')) |
| 6317 |
return 1; |
| 6318 |
c = getopt (argc, argv, "ab"); |
| 6319 |
if (!(c == -1)) |
| 6320 |
return 2; |
| 6321 |
if (!(optind == 2)) |
| 6322 |
return 3; |
| 6323 |
} |
| 6324 |
/* Some internal state exists at this point. */ |
| 6325 |
{ |
| 6326 |
int argc = 0; |
| 6327 |
char *argv[10]; |
| 6328 |
int c; |
| 6329 |
|
| 6330 |
argv[argc++] = "program"; |
| 6331 |
argv[argc++] = "donald"; |
| 6332 |
argv[argc++] = "-p"; |
| 6333 |
argv[argc++] = "billy"; |
| 6334 |
argv[argc++] = "duck"; |
| 6335 |
argv[argc++] = "-a"; |
| 6336 |
argv[argc++] = "bar"; |
| 6337 |
argv[argc] = NULL; |
| 6338 |
optind = OPTIND_MIN; |
| 6339 |
opterr = 0; |
| 6340 |
|
| 6341 |
c = getopt (argc, argv, "+abp:q:"); |
| 6342 |
if (!(c == -1)) |
| 6343 |
return 4; |
| 6344 |
if (!(strcmp (argv[0], "program") == 0)) |
| 6345 |
return 5; |
| 6346 |
if (!(strcmp (argv[1], "donald") == 0)) |
| 6347 |
return 6; |
| 6348 |
if (!(strcmp (argv[2], "-p") == 0)) |
| 6349 |
return 7; |
| 6350 |
if (!(strcmp (argv[3], "billy") == 0)) |
| 6351 |
return 8; |
| 6352 |
if (!(strcmp (argv[4], "duck") == 0)) |
| 6353 |
return 9; |
| 6354 |
if (!(strcmp (argv[5], "-a") == 0)) |
| 6355 |
return 10; |
| 6356 |
if (!(strcmp (argv[6], "bar") == 0)) |
| 6357 |
return 11; |
| 6358 |
if (!(optind == 1)) |
| 6359 |
return 12; |
| 6360 |
} |
| 6361 |
/* Detect MacOS 10.5, AIX 7.1 bug. */ |
| 6362 |
{ |
| 6363 |
char *argv[3] = { "program", "-ab", NULL }; |
| 6364 |
optind = OPTIND_MIN; |
| 6365 |
opterr = 0; |
| 6366 |
if (getopt (2, argv, "ab:") != 'a') |
| 6367 |
return 13; |
| 6368 |
if (getopt (2, argv, "ab:") != '?') |
| 6369 |
return 14; |
| 6370 |
if (optopt != 'b') |
| 6371 |
return 15; |
| 6372 |
if (optind != 2) |
| 6373 |
return 16; |
| 6374 |
} |
| 6375 |
|
| 6376 |
return 0; |
| 6377 |
} |
| 6378 |
|
| 6379 |
_ACEOF |
| 6380 |
if ac_fn_c_try_run "$LINENO"; then : |
| 6381 |
gl_cv_func_getopt_posix=yes |
| 6382 |
else |
| 6383 |
gl_cv_func_getopt_posix=no |
| 6384 |
fi |
| 6385 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6386 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6387 |
fi |
| 6388 |
|
| 6389 |
CPPFLAGS=$gl_save_CPPFLAGS |
| 6390 |
|
| 6391 |
fi |
| 6392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 |
| 6393 |
$as_echo "$gl_cv_func_getopt_posix" >&6; } |
| 6394 |
case "$gl_cv_func_getopt_posix" in |
| 6395 |
*no) gl_replace_getopt=yes ;; |
| 6396 |
esac |
| 6397 |
fi |
| 6398 |
|
| 6399 |
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 6400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 |
| 6401 |
$as_echo_n "checking for working GNU getopt function... " >&6; } |
| 6402 |
if test "${gl_cv_func_getopt_gnu+set}" = set; then : |
| 6403 |
$as_echo_n "(cached) " >&6 |
| 6404 |
else |
| 6405 |
# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the |
| 6406 |
# optstring is necessary for programs like m4 that have POSIX-mandated |
| 6407 |
# semantics for supporting options interspersed with files. |
| 6408 |
# Also, since getopt_long is a GNU extension, we require optind=0. |
| 6409 |
# Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; |
| 6410 |
# so take care to revert to the correct (non-)export state. |
| 6411 |
gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' |
| 6412 |
case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in |
| 6413 |
xx) gl_had_POSIXLY_CORRECT=exported ;; |
| 6414 |
x) gl_had_POSIXLY_CORRECT=yes ;; |
| 6415 |
*) gl_had_POSIXLY_CORRECT= ;; |
| 6416 |
esac |
| 6417 |
POSIXLY_CORRECT=1 |
| 6418 |
export POSIXLY_CORRECT |
| 6419 |
if test "$cross_compiling" = yes; then : |
| 6420 |
case $host_os:$ac_cv_have_decl_optreset in |
| 6421 |
*-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; |
| 6422 |
*:yes) gl_cv_func_getopt_gnu=no;; |
| 6423 |
*) gl_cv_func_getopt_gnu=yes;; |
| 6424 |
esac |
| 6425 |
|
| 6426 |
else |
| 6427 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6428 |
/* end confdefs.h. */ |
| 6429 |
#include <getopt.h> |
| 6430 |
#include <stddef.h> |
| 6431 |
#include <string.h> |
| 6432 |
|
| 6433 |
int |
| 6434 |
main () |
| 6435 |
{ |
| 6436 |
|
| 6437 |
int result = 0; |
| 6438 |
/* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, |
| 6439 |
and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, |
| 6440 |
OSF/1 5.1, Solaris 10. */ |
| 6441 |
{ |
| 6442 |
char *myargv[3]; |
| 6443 |
myargv[0] = "conftest"; |
| 6444 |
myargv[1] = "-+"; |
| 6445 |
myargv[2] = 0; |
| 6446 |
opterr = 0; |
| 6447 |
if (getopt (2, myargv, "+a") != '?') |
| 6448 |
result |= 1; |
| 6449 |
} |
| 6450 |
/* This code succeeds on glibc 2.8, mingw, |
| 6451 |
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, |
| 6452 |
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ |
| 6453 |
{ |
| 6454 |
char *argv[] = { "program", "-p", "foo", "bar", NULL }; |
| 6455 |
|
| 6456 |
optind = 1; |
| 6457 |
if (getopt (4, argv, "p::") != 'p') |
| 6458 |
result |= 2; |
| 6459 |
else if (optarg != NULL) |
| 6460 |
result |= 4; |
| 6461 |
else if (getopt (4, argv, "p::") != -1) |
| 6462 |
result |= 6; |
| 6463 |
else if (optind != 2) |
| 6464 |
result |= 8; |
| 6465 |
} |
| 6466 |
/* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ |
| 6467 |
{ |
| 6468 |
char *argv[] = { "program", "foo", "-p", NULL }; |
| 6469 |
optind = 0; |
| 6470 |
if (getopt (3, argv, "-p") != 1) |
| 6471 |
result |= 16; |
| 6472 |
else if (getopt (3, argv, "-p") != 'p') |
| 6473 |
result |= 32; |
| 6474 |
} |
| 6475 |
/* This code fails on glibc 2.11. */ |
| 6476 |
{ |
| 6477 |
char *argv[] = { "program", "-b", "-a", NULL }; |
| 6478 |
optind = opterr = 0; |
| 6479 |
if (getopt (3, argv, "+:a:b") != 'b') |
| 6480 |
result |= 64; |
| 6481 |
else if (getopt (3, argv, "+:a:b") != ':') |
| 6482 |
result |= 64; |
| 6483 |
} |
| 6484 |
return result; |
| 6485 |
|
| 6486 |
; |
| 6487 |
return 0; |
| 6488 |
} |
| 6489 |
_ACEOF |
| 6490 |
if ac_fn_c_try_run "$LINENO"; then : |
| 6491 |
gl_cv_func_getopt_gnu=yes |
| 6492 |
else |
| 6493 |
gl_cv_func_getopt_gnu=no |
| 6494 |
fi |
| 6495 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6496 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6497 |
fi |
| 6498 |
|
| 6499 |
case $gl_had_POSIXLY_CORRECT in |
| 6500 |
exported) ;; |
| 6501 |
yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; |
| 6502 |
*) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; |
| 6503 |
esac |
| 6504 |
|
| 6505 |
fi |
| 6506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 |
| 6507 |
$as_echo "$gl_cv_func_getopt_gnu" >&6; } |
| 6508 |
if test "$gl_cv_func_getopt_gnu" = "no"; then |
| 6509 |
gl_replace_getopt=yes |
| 6510 |
fi |
| 6511 |
fi |
| 6512 |
|
| 6513 |
|
| 6514 |
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" |
| 6515 |
if test "x$ac_cv_have_decl_getenv" = x""yes; then : |
| 6516 |
ac_have_decl=1 |
| 6517 |
else |
| 6518 |
ac_have_decl=0 |
| 6519 |
fi |
| 6520 |
|
| 6521 |
cat >>confdefs.h <<_ACEOF |
| 6522 |
#define HAVE_DECL_GETENV $ac_have_decl |
| 6523 |
_ACEOF |
| 6524 |
|
| 6525 |
|
| 6526 |
|
| 6527 |
|
| 6528 |
|
| 6529 |
|
| 6530 |
|
| 6531 |
if test -n "$gl_replace_getopt"; then : |
| 6532 |
|
| 6533 |
|
| 6534 |
|
| 6535 |
GETOPT_H=getopt.h |
| 6536 |
|
| 6537 |
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 6538 |
|
| 6539 |
|
| 6540 |
|
| 6541 |
GNULIB_UNISTD_H_GETOPT=1 |
| 6542 |
|
| 6543 |
|
| 6544 |
|
| 6545 |
|
| 6546 |
|
| 6547 |
|
| 6548 |
|
| 6549 |
|
| 6550 |
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 6551 |
|
| 6552 |
|
| 6553 |
|
| 6554 |
|
| 6555 |
|
| 6556 |
|
| 6557 |
|
| 6558 |
|
| 6559 |
|
| 6560 |
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 6561 |
|
| 6562 |
|
| 6563 |
|
| 6564 |
: |
| 6565 |
|
| 6566 |
|
| 6567 |
|
| 6568 |
|
| 6569 |
|
| 6570 |
|
| 6571 |
|
| 6572 |
|
| 6573 |
fi |
| 6574 |
|
| 6575 |
|
| 6576 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 6577 |
$as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 6578 |
if test "${ac_cv_c_restrict+set}" = set; then : |
| 6579 |
$as_echo_n "(cached) " >&6 |
| 6580 |
else |
| 6581 |
ac_cv_c_restrict=no |
| 6582 |
# The order here caters to the fact that C++ does not require restrict. |
| 6583 |
for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 6584 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6585 |
/* end confdefs.h. */ |
| 6586 |
typedef int * int_ptr; |
| 6587 |
int foo (int_ptr $ac_kw ip) { |
| 6588 |
return ip[0]; |
| 6589 |
} |
| 6590 |
int |
| 6591 |
main () |
| 6592 |
{ |
| 6593 |
int s[1]; |
| 6594 |
int * $ac_kw t = s; |
| 6595 |
t[0] = 0; |
| 6596 |
return foo(t) |
| 6597 |
; |
| 6598 |
return 0; |
| 6599 |
} |
| 6600 |
_ACEOF |
| 6601 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6602 |
ac_cv_c_restrict=$ac_kw |
| 6603 |
fi |
| 6604 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6605 |
test "$ac_cv_c_restrict" != no && break |
| 6606 |
done |
| 6607 |
|
| 6608 |
fi |
| 6609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 6610 |
$as_echo "$ac_cv_c_restrict" >&6; } |
| 6611 |
|
| 6612 |
case $ac_cv_c_restrict in |
| 6613 |
restrict) ;; |
| 6614 |
no) $as_echo "#define restrict /**/" >>confdefs.h |
| 6615 |
;; |
| 6616 |
*) cat >>confdefs.h <<_ACEOF |
| 6617 |
#define restrict $ac_cv_c_restrict |
| 6618 |
_ACEOF |
| 6619 |
;; |
| 6620 |
esac |
| 6621 |
|
| 6622 |
|
| 6623 |
GNULIB_GETTIMEOFDAY=0; |
| 6624 |
HAVE_GETTIMEOFDAY=1; |
| 6625 |
HAVE_STRUCT_TIMEVAL=1; |
| 6626 |
HAVE_SYS_TIME_H=1; |
| 6627 |
REPLACE_GETTIMEOFDAY=0; |
| 6628 |
|
| 6629 |
|
| 6630 |
|
| 6631 |
|
| 6632 |
|
| 6633 |
|
| 6634 |
|
| 6635 |
|
| 6636 |
|
| 6637 |
|
| 6638 |
: |
| 6639 |
|
| 6640 |
|
| 6641 |
|
| 6642 |
|
| 6643 |
|
| 6644 |
|
| 6645 |
|
| 6646 |
|
| 6647 |
|
| 6648 |
|
| 6649 |
|
| 6650 |
: |
| 6651 |
|
| 6652 |
|
| 6653 |
|
| 6654 |
|
| 6655 |
|
| 6656 |
|
| 6657 |
|
| 6658 |
|
| 6659 |
if test $gl_cv_have_include_next = yes; then |
| 6660 |
gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 6661 |
else |
| 6662 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 |
| 6663 |
$as_echo_n "checking absolute name of <sys/time.h>... " >&6; } |
| 6664 |
if test "${gl_cv_next_sys_time_h+set}" = set; then : |
| 6665 |
$as_echo_n "(cached) " >&6 |
| 6666 |
else |
| 6667 |
|
| 6668 |
if test $ac_cv_header_sys_time_h = yes; then |
| 6669 |
|
| 6670 |
|
| 6671 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6672 |
/* end confdefs.h. */ |
| 6673 |
#include <sys/time.h> |
| 6674 |
|
| 6675 |
_ACEOF |
| 6676 |
case "$host_os" in |
| 6677 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 6678 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 6679 |
esac |
| 6680 |
gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 6681 |
sed -n '\#/sys/time.h#{ |
| 6682 |
s#.*"\(.*/sys/time.h\)".*#\1# |
| 6683 |
s#^/[^/]#//&# |
| 6684 |
p |
| 6685 |
q |
| 6686 |
}'`'"' |
| 6687 |
else |
| 6688 |
gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 6689 |
fi |
| 6690 |
|
| 6691 |
|
| 6692 |
fi |
| 6693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 |
| 6694 |
$as_echo "$gl_cv_next_sys_time_h" >&6; } |
| 6695 |
fi |
| 6696 |
NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h |
| 6697 |
|
| 6698 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 6699 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 6700 |
gl_next_as_first_directive='<'sys/time.h'>' |
| 6701 |
else |
| 6702 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 6703 |
gl_next_as_first_directive=$gl_cv_next_sys_time_h |
| 6704 |
fi |
| 6705 |
NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive |
| 6706 |
|
| 6707 |
|
| 6708 |
|
| 6709 |
|
| 6710 |
|
| 6711 |
if test $ac_cv_header_sys_time_h != yes; then |
| 6712 |
HAVE_SYS_TIME_H=0 |
| 6713 |
fi |
| 6714 |
|
| 6715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 6716 |
$as_echo_n "checking for struct timeval... " >&6; } |
| 6717 |
if test "${gl_cv_sys_struct_timeval+set}" = set; then : |
| 6718 |
$as_echo_n "(cached) " >&6 |
| 6719 |
else |
| 6720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6721 |
/* end confdefs.h. */ |
| 6722 |
#if HAVE_SYS_TIME_H |
| 6723 |
#include <sys/time.h> |
| 6724 |
#endif |
| 6725 |
#include <time.h> |
| 6726 |
|
| 6727 |
int |
| 6728 |
main () |
| 6729 |
{ |
| 6730 |
static struct timeval x; x.tv_sec = x.tv_usec; |
| 6731 |
; |
| 6732 |
return 0; |
| 6733 |
} |
| 6734 |
_ACEOF |
| 6735 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6736 |
gl_cv_sys_struct_timeval=yes |
| 6737 |
else |
| 6738 |
gl_cv_sys_struct_timeval=no |
| 6739 |
fi |
| 6740 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6741 |
fi |
| 6742 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 |
| 6743 |
$as_echo "$gl_cv_sys_struct_timeval" >&6; } |
| 6744 |
if test $gl_cv_sys_struct_timeval != yes; then |
| 6745 |
HAVE_STRUCT_TIMEVAL=0 |
| 6746 |
fi |
| 6747 |
|
| 6748 |
|
| 6749 |
for gl_func in gettimeofday; do |
| 6750 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 6751 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 6752 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 6753 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 6754 |
$as_echo_n "(cached) " >&6 |
| 6755 |
else |
| 6756 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6757 |
/* end confdefs.h. */ |
| 6758 |
|
| 6759 |
#if HAVE_SYS_TIME_H |
| 6760 |
# include <sys/time.h> |
| 6761 |
#endif |
| 6762 |
#include <time.h> |
| 6763 |
|
| 6764 |
int |
| 6765 |
main () |
| 6766 |
{ |
| 6767 |
#undef $gl_func |
| 6768 |
(void) $gl_func; |
| 6769 |
; |
| 6770 |
return 0; |
| 6771 |
} |
| 6772 |
_ACEOF |
| 6773 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6774 |
eval "$as_gl_Symbol=yes" |
| 6775 |
else |
| 6776 |
eval "$as_gl_Symbol=no" |
| 6777 |
fi |
| 6778 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6779 |
fi |
| 6780 |
eval ac_res=\$$as_gl_Symbol |
| 6781 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6782 |
$as_echo "$ac_res" >&6; } |
| 6783 |
eval as_val=\$$as_gl_Symbol |
| 6784 |
if test "x$as_val" = x""yes; then : |
| 6785 |
cat >>confdefs.h <<_ACEOF |
| 6786 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 6787 |
_ACEOF |
| 6788 |
|
| 6789 |
eval ac_cv_have_decl_$gl_func=yes |
| 6790 |
fi |
| 6791 |
done |
| 6792 |
|
| 6793 |
|
| 6794 |
|
| 6795 |
|
| 6796 |
|
| 6797 |
|
| 6798 |
|
| 6799 |
|
| 6800 |
|
| 6801 |
|
| 6802 |
|
| 6803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 6804 |
$as_echo_n "checking for unsigned long long int... " >&6; } |
| 6805 |
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : |
| 6806 |
$as_echo_n "(cached) " >&6 |
| 6807 |
else |
| 6808 |
ac_cv_type_unsigned_long_long_int=yes |
| 6809 |
if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 6810 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6811 |
/* end confdefs.h. */ |
| 6812 |
|
| 6813 |
/* For now, do not test the preprocessor; as of 2007 there are too many |
| 6814 |
implementations with broken preprocessors. Perhaps this can |
| 6815 |
be revisited in 2012. In the meantime, code should not expect |
| 6816 |
#if to work with literals wider than 32 bits. */ |
| 6817 |
/* Test literals. */ |
| 6818 |
long long int ll = 9223372036854775807ll; |
| 6819 |
long long int nll = -9223372036854775807LL; |
| 6820 |
unsigned long long int ull = 18446744073709551615ULL; |
| 6821 |
/* Test constant expressions. */ |
| 6822 |
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 6823 |
? 1 : -1)]; |
| 6824 |
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 6825 |
? 1 : -1)]; |
| 6826 |
int i = 63; |
| 6827 |
int |
| 6828 |
main () |
| 6829 |
{ |
| 6830 |
/* Test availability of runtime routines for shift and division. */ |
| 6831 |
long long int llmax = 9223372036854775807ll; |
| 6832 |
unsigned long long int ullmax = 18446744073709551615ull; |
| 6833 |
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 6834 |
| (llmax / ll) | (llmax % ll) |
| 6835 |
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 6836 |
| (ullmax / ull) | (ullmax % ull)); |
| 6837 |
; |
| 6838 |
return 0; |
| 6839 |
} |
| 6840 |
|
| 6841 |
_ACEOF |
| 6842 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6843 |
|
| 6844 |
else |
| 6845 |
ac_cv_type_unsigned_long_long_int=no |
| 6846 |
fi |
| 6847 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6848 |
conftest$ac_exeext conftest.$ac_ext |
| 6849 |
fi |
| 6850 |
fi |
| 6851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 6852 |
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 6853 |
if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 6854 |
|
| 6855 |
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 6856 |
|
| 6857 |
fi |
| 6858 |
|
| 6859 |
|
| 6860 |
|
| 6861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 6862 |
$as_echo_n "checking for long long int... " >&6; } |
| 6863 |
if test "${ac_cv_type_long_long_int+set}" = set; then : |
| 6864 |
$as_echo_n "(cached) " >&6 |
| 6865 |
else |
| 6866 |
ac_cv_type_long_long_int=yes |
| 6867 |
if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 6868 |
ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 6869 |
if test $ac_cv_type_long_long_int = yes; then |
| 6870 |
if test "$cross_compiling" = yes; then : |
| 6871 |
: |
| 6872 |
else |
| 6873 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6874 |
/* end confdefs.h. */ |
| 6875 |
#include <limits.h> |
| 6876 |
#ifndef LLONG_MAX |
| 6877 |
# define HALF \ |
| 6878 |
(1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 6879 |
# define LLONG_MAX (HALF - 1 + HALF) |
| 6880 |
#endif |
| 6881 |
int |
| 6882 |
main () |
| 6883 |
{ |
| 6884 |
long long int n = 1; |
| 6885 |
int i; |
| 6886 |
for (i = 0; ; i++) |
| 6887 |
{ |
| 6888 |
long long int m = n << i; |
| 6889 |
if (m >> i != n) |
| 6890 |
return 1; |
| 6891 |
if (LLONG_MAX / 2 < m) |
| 6892 |
break; |
| 6893 |
} |
| 6894 |
return 0; |
| 6895 |
; |
| 6896 |
return 0; |
| 6897 |
} |
| 6898 |
_ACEOF |
| 6899 |
if ac_fn_c_try_run "$LINENO"; then : |
| 6900 |
|
| 6901 |
else |
| 6902 |
ac_cv_type_long_long_int=no |
| 6903 |
fi |
| 6904 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6905 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6906 |
fi |
| 6907 |
|
| 6908 |
fi |
| 6909 |
fi |
| 6910 |
fi |
| 6911 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 6912 |
$as_echo "$ac_cv_type_long_long_int" >&6; } |
| 6913 |
if test $ac_cv_type_long_long_int = yes; then |
| 6914 |
|
| 6915 |
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 6916 |
|
| 6917 |
fi |
| 6918 |
|
| 6919 |
|
| 6920 |
|
| 6921 |
|
| 6922 |
|
| 6923 |
|
| 6924 |
|
| 6925 |
|
| 6926 |
|
| 6927 |
|
| 6928 |
|
| 6929 |
|
| 6930 |
gl_cv_c_multiarch=no |
| 6931 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6932 |
/* end confdefs.h. */ |
| 6933 |
#ifndef __APPLE_CC__ |
| 6934 |
not a universal capable compiler |
| 6935 |
#endif |
| 6936 |
typedef int dummy; |
| 6937 |
|
| 6938 |
_ACEOF |
| 6939 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6940 |
|
| 6941 |
arch= |
| 6942 |
prev= |
| 6943 |
for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do |
| 6944 |
if test -n "$prev"; then |
| 6945 |
case $word in |
| 6946 |
i?86 | x86_64 | ppc | ppc64) |
| 6947 |
if test -z "$arch" || test "$arch" = "$word"; then |
| 6948 |
arch="$word" |
| 6949 |
else |
| 6950 |
gl_cv_c_multiarch=yes |
| 6951 |
fi |
| 6952 |
;; |
| 6953 |
esac |
| 6954 |
prev= |
| 6955 |
else |
| 6956 |
if test "x$word" = "x-arch"; then |
| 6957 |
prev=arch |
| 6958 |
fi |
| 6959 |
fi |
| 6960 |
done |
| 6961 |
|
| 6962 |
fi |
| 6963 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6964 |
if test $gl_cv_c_multiarch = yes; then |
| 6965 |
APPLE_UNIVERSAL_BUILD=1 |
| 6966 |
else |
| 6967 |
APPLE_UNIVERSAL_BUILD=0 |
| 6968 |
fi |
| 6969 |
|
| 6970 |
|
| 6971 |
|
| 6972 |
|
| 6973 |
|
| 6974 |
if test $ac_cv_type_long_long_int = yes; then |
| 6975 |
HAVE_LONG_LONG_INT=1 |
| 6976 |
else |
| 6977 |
HAVE_LONG_LONG_INT=0 |
| 6978 |
fi |
| 6979 |
|
| 6980 |
|
| 6981 |
if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 6982 |
HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 6983 |
else |
| 6984 |
HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 6985 |
fi |
| 6986 |
|
| 6987 |
|
| 6988 |
|
| 6989 |
: |
| 6990 |
|
| 6991 |
|
| 6992 |
|
| 6993 |
|
| 6994 |
|
| 6995 |
if test $ac_cv_header_wchar_h = yes; then |
| 6996 |
HAVE_WCHAR_H=1 |
| 6997 |
else |
| 6998 |
HAVE_WCHAR_H=0 |
| 6999 |
fi |
| 7000 |
|
| 7001 |
|
| 7002 |
if test $ac_cv_header_inttypes_h = yes; then |
| 7003 |
HAVE_INTTYPES_H=1 |
| 7004 |
else |
| 7005 |
HAVE_INTTYPES_H=0 |
| 7006 |
fi |
| 7007 |
|
| 7008 |
|
| 7009 |
if test $ac_cv_header_sys_types_h = yes; then |
| 7010 |
HAVE_SYS_TYPES_H=1 |
| 7011 |
else |
| 7012 |
HAVE_SYS_TYPES_H=0 |
| 7013 |
fi |
| 7014 |
|
| 7015 |
|
| 7016 |
|
| 7017 |
|
| 7018 |
|
| 7019 |
|
| 7020 |
|
| 7021 |
|
| 7022 |
: |
| 7023 |
|
| 7024 |
|
| 7025 |
|
| 7026 |
|
| 7027 |
|
| 7028 |
|
| 7029 |
|
| 7030 |
|
| 7031 |
if test $gl_cv_have_include_next = yes; then |
| 7032 |
gl_cv_next_stdint_h='<'stdint.h'>' |
| 7033 |
else |
| 7034 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 |
| 7035 |
$as_echo_n "checking absolute name of <stdint.h>... " >&6; } |
| 7036 |
if test "${gl_cv_next_stdint_h+set}" = set; then : |
| 7037 |
$as_echo_n "(cached) " >&6 |
| 7038 |
else |
| 7039 |
|
| 7040 |
if test $ac_cv_header_stdint_h = yes; then |
| 7041 |
|
| 7042 |
|
| 7043 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7044 |
/* end confdefs.h. */ |
| 7045 |
#include <stdint.h> |
| 7046 |
|
| 7047 |
_ACEOF |
| 7048 |
case "$host_os" in |
| 7049 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 7050 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 7051 |
esac |
| 7052 |
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 7053 |
sed -n '\#/stdint.h#{ |
| 7054 |
s#.*"\(.*/stdint.h\)".*#\1# |
| 7055 |
s#^/[^/]#//&# |
| 7056 |
p |
| 7057 |
q |
| 7058 |
}'`'"' |
| 7059 |
else |
| 7060 |
gl_cv_next_stdint_h='<'stdint.h'>' |
| 7061 |
fi |
| 7062 |
|
| 7063 |
|
| 7064 |
fi |
| 7065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
| 7066 |
$as_echo "$gl_cv_next_stdint_h" >&6; } |
| 7067 |
fi |
| 7068 |
NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 7069 |
|
| 7070 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 7071 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 7072 |
gl_next_as_first_directive='<'stdint.h'>' |
| 7073 |
else |
| 7074 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 7075 |
gl_next_as_first_directive=$gl_cv_next_stdint_h |
| 7076 |
fi |
| 7077 |
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
| 7078 |
|
| 7079 |
|
| 7080 |
|
| 7081 |
|
| 7082 |
if test $ac_cv_header_stdint_h = yes; then |
| 7083 |
HAVE_STDINT_H=1 |
| 7084 |
else |
| 7085 |
HAVE_STDINT_H=0 |
| 7086 |
fi |
| 7087 |
|
| 7088 |
|
| 7089 |
if test $ac_cv_header_stdint_h = yes; then |
| 7090 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 |
| 7091 |
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } |
| 7092 |
if test "${gl_cv_header_working_stdint_h+set}" = set; then : |
| 7093 |
$as_echo_n "(cached) " >&6 |
| 7094 |
else |
| 7095 |
gl_cv_header_working_stdint_h=no |
| 7096 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7097 |
/* end confdefs.h. */ |
| 7098 |
|
| 7099 |
|
| 7100 |
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ |
| 7101 |
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ |
| 7102 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 7103 |
#include <stdint.h> |
| 7104 |
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 7105 |
#if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 7106 |
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 7107 |
#endif |
| 7108 |
|
| 7109 |
|
| 7110 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7111 |
included before <wchar.h>. */ |
| 7112 |
#include <stddef.h> |
| 7113 |
#include <signal.h> |
| 7114 |
#if HAVE_WCHAR_H |
| 7115 |
# include <stdio.h> |
| 7116 |
# include <time.h> |
| 7117 |
# include <wchar.h> |
| 7118 |
#endif |
| 7119 |
|
| 7120 |
|
| 7121 |
#ifdef INT8_MAX |
| 7122 |
int8_t a1 = INT8_MAX; |
| 7123 |
int8_t a1min = INT8_MIN; |
| 7124 |
#endif |
| 7125 |
#ifdef INT16_MAX |
| 7126 |
int16_t a2 = INT16_MAX; |
| 7127 |
int16_t a2min = INT16_MIN; |
| 7128 |
#endif |
| 7129 |
#ifdef INT32_MAX |
| 7130 |
int32_t a3 = INT32_MAX; |
| 7131 |
int32_t a3min = INT32_MIN; |
| 7132 |
#endif |
| 7133 |
#ifdef INT64_MAX |
| 7134 |
int64_t a4 = INT64_MAX; |
| 7135 |
int64_t a4min = INT64_MIN; |
| 7136 |
#endif |
| 7137 |
#ifdef UINT8_MAX |
| 7138 |
uint8_t b1 = UINT8_MAX; |
| 7139 |
#else |
| 7140 |
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 7141 |
#endif |
| 7142 |
#ifdef UINT16_MAX |
| 7143 |
uint16_t b2 = UINT16_MAX; |
| 7144 |
#endif |
| 7145 |
#ifdef UINT32_MAX |
| 7146 |
uint32_t b3 = UINT32_MAX; |
| 7147 |
#endif |
| 7148 |
#ifdef UINT64_MAX |
| 7149 |
uint64_t b4 = UINT64_MAX; |
| 7150 |
#endif |
| 7151 |
int_least8_t c1 = INT8_C (0x7f); |
| 7152 |
int_least8_t c1max = INT_LEAST8_MAX; |
| 7153 |
int_least8_t c1min = INT_LEAST8_MIN; |
| 7154 |
int_least16_t c2 = INT16_C (0x7fff); |
| 7155 |
int_least16_t c2max = INT_LEAST16_MAX; |
| 7156 |
int_least16_t c2min = INT_LEAST16_MIN; |
| 7157 |
int_least32_t c3 = INT32_C (0x7fffffff); |
| 7158 |
int_least32_t c3max = INT_LEAST32_MAX; |
| 7159 |
int_least32_t c3min = INT_LEAST32_MIN; |
| 7160 |
int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 7161 |
int_least64_t c4max = INT_LEAST64_MAX; |
| 7162 |
int_least64_t c4min = INT_LEAST64_MIN; |
| 7163 |
uint_least8_t d1 = UINT8_C (0xff); |
| 7164 |
uint_least8_t d1max = UINT_LEAST8_MAX; |
| 7165 |
uint_least16_t d2 = UINT16_C (0xffff); |
| 7166 |
uint_least16_t d2max = UINT_LEAST16_MAX; |
| 7167 |
uint_least32_t d3 = UINT32_C (0xffffffff); |
| 7168 |
uint_least32_t d3max = UINT_LEAST32_MAX; |
| 7169 |
uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 7170 |
uint_least64_t d4max = UINT_LEAST64_MAX; |
| 7171 |
int_fast8_t e1 = INT_FAST8_MAX; |
| 7172 |
int_fast8_t e1min = INT_FAST8_MIN; |
| 7173 |
int_fast16_t e2 = INT_FAST16_MAX; |
| 7174 |
int_fast16_t e2min = INT_FAST16_MIN; |
| 7175 |
int_fast32_t e3 = INT_FAST32_MAX; |
| 7176 |
int_fast32_t e3min = INT_FAST32_MIN; |
| 7177 |
int_fast64_t e4 = INT_FAST64_MAX; |
| 7178 |
int_fast64_t e4min = INT_FAST64_MIN; |
| 7179 |
uint_fast8_t f1 = UINT_FAST8_MAX; |
| 7180 |
uint_fast16_t f2 = UINT_FAST16_MAX; |
| 7181 |
uint_fast32_t f3 = UINT_FAST32_MAX; |
| 7182 |
uint_fast64_t f4 = UINT_FAST64_MAX; |
| 7183 |
#ifdef INTPTR_MAX |
| 7184 |
intptr_t g = INTPTR_MAX; |
| 7185 |
intptr_t gmin = INTPTR_MIN; |
| 7186 |
#endif |
| 7187 |
#ifdef UINTPTR_MAX |
| 7188 |
uintptr_t h = UINTPTR_MAX; |
| 7189 |
#endif |
| 7190 |
intmax_t i = INTMAX_MAX; |
| 7191 |
uintmax_t j = UINTMAX_MAX; |
| 7192 |
|
| 7193 |
#include <limits.h> /* for CHAR_BIT */ |
| 7194 |
#define TYPE_MINIMUM(t) \ |
| 7195 |
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
| 7196 |
#define TYPE_MAXIMUM(t) \ |
| 7197 |
((t) ((t) 0 < (t) -1 \ |
| 7198 |
? (t) -1 \ |
| 7199 |
: ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
| 7200 |
struct s { |
| 7201 |
int check_PTRDIFF: |
| 7202 |
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 7203 |
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 7204 |
? 1 : -1; |
| 7205 |
/* Detect bug in FreeBSD 6.0 / ia64. */ |
| 7206 |
int check_SIG_ATOMIC: |
| 7207 |
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 7208 |
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 7209 |
? 1 : -1; |
| 7210 |
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 7211 |
int check_WCHAR: |
| 7212 |
WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 7213 |
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 7214 |
? 1 : -1; |
| 7215 |
/* Detect bug in mingw. */ |
| 7216 |
int check_WINT: |
| 7217 |
WINT_MIN == TYPE_MINIMUM (wint_t) |
| 7218 |
&& WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 7219 |
? 1 : -1; |
| 7220 |
|
| 7221 |
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 7222 |
int check_UINT8_C: |
| 7223 |
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 7224 |
int check_UINT16_C: |
| 7225 |
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 7226 |
|
| 7227 |
/* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 7228 |
#ifdef UINT8_MAX |
| 7229 |
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 7230 |
#endif |
| 7231 |
#ifdef UINT16_MAX |
| 7232 |
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 7233 |
#endif |
| 7234 |
#ifdef UINT32_MAX |
| 7235 |
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 7236 |
#endif |
| 7237 |
#ifdef UINT64_MAX |
| 7238 |
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 7239 |
#endif |
| 7240 |
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 7241 |
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 7242 |
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 7243 |
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 7244 |
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 7245 |
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 7246 |
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 7247 |
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 7248 |
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 7249 |
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 7250 |
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 7251 |
}; |
| 7252 |
|
| 7253 |
int |
| 7254 |
main () |
| 7255 |
{ |
| 7256 |
|
| 7257 |
; |
| 7258 |
return 0; |
| 7259 |
} |
| 7260 |
_ACEOF |
| 7261 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7262 |
if test "$cross_compiling" = yes; then : |
| 7263 |
gl_cv_header_working_stdint_h=yes |
| 7264 |
|
| 7265 |
else |
| 7266 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7267 |
/* end confdefs.h. */ |
| 7268 |
|
| 7269 |
|
| 7270 |
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ |
| 7271 |
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ |
| 7272 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 7273 |
#include <stdint.h> |
| 7274 |
|
| 7275 |
|
| 7276 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7277 |
included before <wchar.h>. */ |
| 7278 |
#include <stddef.h> |
| 7279 |
#include <signal.h> |
| 7280 |
#if HAVE_WCHAR_H |
| 7281 |
# include <stdio.h> |
| 7282 |
# include <time.h> |
| 7283 |
# include <wchar.h> |
| 7284 |
#endif |
| 7285 |
|
| 7286 |
|
| 7287 |
#include <stdio.h> |
| 7288 |
#include <string.h> |
| 7289 |
#define MVAL(macro) MVAL1(macro) |
| 7290 |
#define MVAL1(expression) #expression |
| 7291 |
static const char *macro_values[] = |
| 7292 |
{ |
| 7293 |
#ifdef INT8_MAX |
| 7294 |
MVAL (INT8_MAX), |
| 7295 |
#endif |
| 7296 |
#ifdef INT16_MAX |
| 7297 |
MVAL (INT16_MAX), |
| 7298 |
#endif |
| 7299 |
#ifdef INT32_MAX |
| 7300 |
MVAL (INT32_MAX), |
| 7301 |
#endif |
| 7302 |
#ifdef INT64_MAX |
| 7303 |
MVAL (INT64_MAX), |
| 7304 |
#endif |
| 7305 |
#ifdef UINT8_MAX |
| 7306 |
MVAL (UINT8_MAX), |
| 7307 |
#endif |
| 7308 |
#ifdef UINT16_MAX |
| 7309 |
MVAL (UINT16_MAX), |
| 7310 |
#endif |
| 7311 |
#ifdef UINT32_MAX |
| 7312 |
MVAL (UINT32_MAX), |
| 7313 |
#endif |
| 7314 |
#ifdef UINT64_MAX |
| 7315 |
MVAL (UINT64_MAX), |
| 7316 |
#endif |
| 7317 |
NULL |
| 7318 |
}; |
| 7319 |
|
| 7320 |
int |
| 7321 |
main () |
| 7322 |
{ |
| 7323 |
|
| 7324 |
const char **mv; |
| 7325 |
for (mv = macro_values; *mv != NULL; mv++) |
| 7326 |
{ |
| 7327 |
const char *value = *mv; |
| 7328 |
/* Test whether it looks like a cast expression. */ |
| 7329 |
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
| 7330 |
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
| 7331 |
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
| 7332 |
|| strncmp (value, "((int)"/*)*/, 6) == 0 |
| 7333 |
|| strncmp (value, "((signed short)"/*)*/, 15) == 0 |
| 7334 |
|| strncmp (value, "((signed char)"/*)*/, 14) == 0) |
| 7335 |
return mv - macro_values + 1; |
| 7336 |
} |
| 7337 |
return 0; |
| 7338 |
|
| 7339 |
; |
| 7340 |
return 0; |
| 7341 |
} |
| 7342 |
_ACEOF |
| 7343 |
if ac_fn_c_try_run "$LINENO"; then : |
| 7344 |
gl_cv_header_working_stdint_h=yes |
| 7345 |
fi |
| 7346 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7347 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7348 |
fi |
| 7349 |
|
| 7350 |
|
| 7351 |
fi |
| 7352 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7353 |
|
| 7354 |
fi |
| 7355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 |
| 7356 |
$as_echo "$gl_cv_header_working_stdint_h" >&6; } |
| 7357 |
fi |
| 7358 |
if test "$gl_cv_header_working_stdint_h" = yes; then |
| 7359 |
STDINT_H= |
| 7360 |
else |
| 7361 |
for ac_header in sys/inttypes.h sys/bitypes.h |
| 7362 |
do : |
| 7363 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7364 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7365 |
eval as_val=\$$as_ac_Header |
| 7366 |
if test "x$as_val" = x""yes; then : |
| 7367 |
cat >>confdefs.h <<_ACEOF |
| 7368 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7369 |
_ACEOF |
| 7370 |
|
| 7371 |
fi |
| 7372 |
|
| 7373 |
done |
| 7374 |
|
| 7375 |
if test $ac_cv_header_sys_inttypes_h = yes; then |
| 7376 |
HAVE_SYS_INTTYPES_H=1 |
| 7377 |
else |
| 7378 |
HAVE_SYS_INTTYPES_H=0 |
| 7379 |
fi |
| 7380 |
|
| 7381 |
if test $ac_cv_header_sys_bitypes_h = yes; then |
| 7382 |
HAVE_SYS_BITYPES_H=1 |
| 7383 |
else |
| 7384 |
HAVE_SYS_BITYPES_H=0 |
| 7385 |
fi |
| 7386 |
|
| 7387 |
|
| 7388 |
|
| 7389 |
|
| 7390 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 7391 |
|
| 7392 |
|
| 7393 |
for gltype in ptrdiff_t size_t ; do |
| 7394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 7395 |
$as_echo_n "checking for bit size of $gltype... " >&6; } |
| 7396 |
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7397 |
$as_echo_n "(cached) " >&6 |
| 7398 |
else |
| 7399 |
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 7400 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7401 |
included before <wchar.h>. */ |
| 7402 |
#include <stddef.h> |
| 7403 |
#include <signal.h> |
| 7404 |
#if HAVE_WCHAR_H |
| 7405 |
# include <stdio.h> |
| 7406 |
# include <time.h> |
| 7407 |
# include <wchar.h> |
| 7408 |
#endif |
| 7409 |
|
| 7410 |
#include <limits.h>"; then : |
| 7411 |
|
| 7412 |
else |
| 7413 |
result=unknown |
| 7414 |
fi |
| 7415 |
|
| 7416 |
eval gl_cv_bitsizeof_${gltype}=\$result |
| 7417 |
|
| 7418 |
fi |
| 7419 |
eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 7420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7421 |
$as_echo "$ac_res" >&6; } |
| 7422 |
eval result=\$gl_cv_bitsizeof_${gltype} |
| 7423 |
if test $result = unknown; then |
| 7424 |
result=0 |
| 7425 |
fi |
| 7426 |
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 7427 |
cat >>confdefs.h <<_ACEOF |
| 7428 |
#define BITSIZEOF_${GLTYPE} $result |
| 7429 |
_ACEOF |
| 7430 |
|
| 7431 |
eval BITSIZEOF_${GLTYPE}=\$result |
| 7432 |
done |
| 7433 |
|
| 7434 |
|
| 7435 |
fi |
| 7436 |
|
| 7437 |
|
| 7438 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 7439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 7440 |
$as_echo_n "checking for bit size of $gltype... " >&6; } |
| 7441 |
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7442 |
$as_echo_n "(cached) " >&6 |
| 7443 |
else |
| 7444 |
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 7445 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7446 |
included before <wchar.h>. */ |
| 7447 |
#include <stddef.h> |
| 7448 |
#include <signal.h> |
| 7449 |
#if HAVE_WCHAR_H |
| 7450 |
# include <stdio.h> |
| 7451 |
# include <time.h> |
| 7452 |
# include <wchar.h> |
| 7453 |
#endif |
| 7454 |
|
| 7455 |
#include <limits.h>"; then : |
| 7456 |
|
| 7457 |
else |
| 7458 |
result=unknown |
| 7459 |
fi |
| 7460 |
|
| 7461 |
eval gl_cv_bitsizeof_${gltype}=\$result |
| 7462 |
|
| 7463 |
fi |
| 7464 |
eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 7465 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7466 |
$as_echo "$ac_res" >&6; } |
| 7467 |
eval result=\$gl_cv_bitsizeof_${gltype} |
| 7468 |
if test $result = unknown; then |
| 7469 |
result=0 |
| 7470 |
fi |
| 7471 |
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 7472 |
cat >>confdefs.h <<_ACEOF |
| 7473 |
#define BITSIZEOF_${GLTYPE} $result |
| 7474 |
_ACEOF |
| 7475 |
|
| 7476 |
eval BITSIZEOF_${GLTYPE}=\$result |
| 7477 |
done |
| 7478 |
|
| 7479 |
|
| 7480 |
|
| 7481 |
|
| 7482 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 7483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 |
| 7484 |
$as_echo_n "checking whether $gltype is signed... " >&6; } |
| 7485 |
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7486 |
$as_echo_n "(cached) " >&6 |
| 7487 |
else |
| 7488 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7489 |
/* end confdefs.h. */ |
| 7490 |
|
| 7491 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7492 |
included before <wchar.h>. */ |
| 7493 |
#include <stddef.h> |
| 7494 |
#include <signal.h> |
| 7495 |
#if HAVE_WCHAR_H |
| 7496 |
# include <stdio.h> |
| 7497 |
# include <time.h> |
| 7498 |
# include <wchar.h> |
| 7499 |
#endif |
| 7500 |
|
| 7501 |
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 7502 |
int |
| 7503 |
main () |
| 7504 |
{ |
| 7505 |
|
| 7506 |
; |
| 7507 |
return 0; |
| 7508 |
} |
| 7509 |
_ACEOF |
| 7510 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7511 |
result=yes |
| 7512 |
else |
| 7513 |
result=no |
| 7514 |
fi |
| 7515 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7516 |
eval gl_cv_type_${gltype}_signed=\$result |
| 7517 |
|
| 7518 |
fi |
| 7519 |
eval ac_res=\$gl_cv_type_${gltype}_signed |
| 7520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7521 |
$as_echo "$ac_res" >&6; } |
| 7522 |
eval result=\$gl_cv_type_${gltype}_signed |
| 7523 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 7524 |
if test "$result" = yes; then |
| 7525 |
cat >>confdefs.h <<_ACEOF |
| 7526 |
#define HAVE_SIGNED_${GLTYPE} 1 |
| 7527 |
_ACEOF |
| 7528 |
|
| 7529 |
eval HAVE_SIGNED_${GLTYPE}=1 |
| 7530 |
else |
| 7531 |
eval HAVE_SIGNED_${GLTYPE}=0 |
| 7532 |
fi |
| 7533 |
done |
| 7534 |
|
| 7535 |
|
| 7536 |
gl_cv_type_ptrdiff_t_signed=yes |
| 7537 |
gl_cv_type_size_t_signed=no |
| 7538 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 7539 |
|
| 7540 |
|
| 7541 |
for gltype in ptrdiff_t size_t ; do |
| 7542 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 7543 |
$as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 7544 |
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7545 |
$as_echo_n "(cached) " >&6 |
| 7546 |
else |
| 7547 |
eval gl_cv_type_${gltype}_suffix=no |
| 7548 |
eval result=\$gl_cv_type_${gltype}_signed |
| 7549 |
if test "$result" = yes; then |
| 7550 |
glsufu= |
| 7551 |
else |
| 7552 |
glsufu=u |
| 7553 |
fi |
| 7554 |
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 7555 |
case $glsuf in |
| 7556 |
'') gltype1='int';; |
| 7557 |
l) gltype1='long int';; |
| 7558 |
ll) gltype1='long long int';; |
| 7559 |
i64) gltype1='__int64';; |
| 7560 |
u) gltype1='unsigned int';; |
| 7561 |
ul) gltype1='unsigned long int';; |
| 7562 |
ull) gltype1='unsigned long long int';; |
| 7563 |
ui64)gltype1='unsigned __int64';; |
| 7564 |
esac |
| 7565 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7566 |
/* end confdefs.h. */ |
| 7567 |
|
| 7568 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7569 |
included before <wchar.h>. */ |
| 7570 |
#include <stddef.h> |
| 7571 |
#include <signal.h> |
| 7572 |
#if HAVE_WCHAR_H |
| 7573 |
# include <stdio.h> |
| 7574 |
# include <time.h> |
| 7575 |
# include <wchar.h> |
| 7576 |
#endif |
| 7577 |
|
| 7578 |
extern $gltype foo; |
| 7579 |
extern $gltype1 foo; |
| 7580 |
int |
| 7581 |
main () |
| 7582 |
{ |
| 7583 |
|
| 7584 |
; |
| 7585 |
return 0; |
| 7586 |
} |
| 7587 |
_ACEOF |
| 7588 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7589 |
eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 7590 |
fi |
| 7591 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7592 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 7593 |
test "$result" != no && break |
| 7594 |
done |
| 7595 |
fi |
| 7596 |
eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 7597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7598 |
$as_echo "$ac_res" >&6; } |
| 7599 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 7600 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 7601 |
test "$result" = no && result= |
| 7602 |
eval ${GLTYPE}_SUFFIX=\$result |
| 7603 |
cat >>confdefs.h <<_ACEOF |
| 7604 |
#define ${GLTYPE}_SUFFIX $result |
| 7605 |
_ACEOF |
| 7606 |
|
| 7607 |
done |
| 7608 |
|
| 7609 |
|
| 7610 |
fi |
| 7611 |
|
| 7612 |
|
| 7613 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 7614 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 7615 |
$as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 7616 |
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7617 |
$as_echo_n "(cached) " >&6 |
| 7618 |
else |
| 7619 |
eval gl_cv_type_${gltype}_suffix=no |
| 7620 |
eval result=\$gl_cv_type_${gltype}_signed |
| 7621 |
if test "$result" = yes; then |
| 7622 |
glsufu= |
| 7623 |
else |
| 7624 |
glsufu=u |
| 7625 |
fi |
| 7626 |
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 7627 |
case $glsuf in |
| 7628 |
'') gltype1='int';; |
| 7629 |
l) gltype1='long int';; |
| 7630 |
ll) gltype1='long long int';; |
| 7631 |
i64) gltype1='__int64';; |
| 7632 |
u) gltype1='unsigned int';; |
| 7633 |
ul) gltype1='unsigned long int';; |
| 7634 |
ull) gltype1='unsigned long long int';; |
| 7635 |
ui64)gltype1='unsigned __int64';; |
| 7636 |
esac |
| 7637 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7638 |
/* end confdefs.h. */ |
| 7639 |
|
| 7640 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 7641 |
included before <wchar.h>. */ |
| 7642 |
#include <stddef.h> |
| 7643 |
#include <signal.h> |
| 7644 |
#if HAVE_WCHAR_H |
| 7645 |
# include <stdio.h> |
| 7646 |
# include <time.h> |
| 7647 |
# include <wchar.h> |
| 7648 |
#endif |
| 7649 |
|
| 7650 |
extern $gltype foo; |
| 7651 |
extern $gltype1 foo; |
| 7652 |
int |
| 7653 |
main () |
| 7654 |
{ |
| 7655 |
|
| 7656 |
; |
| 7657 |
return 0; |
| 7658 |
} |
| 7659 |
_ACEOF |
| 7660 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7661 |
eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 7662 |
fi |
| 7663 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7664 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 7665 |
test "$result" != no && break |
| 7666 |
done |
| 7667 |
fi |
| 7668 |
eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 7669 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7670 |
$as_echo "$ac_res" >&6; } |
| 7671 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 7672 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 7673 |
test "$result" = no && result= |
| 7674 |
eval ${GLTYPE}_SUFFIX=\$result |
| 7675 |
cat >>confdefs.h <<_ACEOF |
| 7676 |
#define ${GLTYPE}_SUFFIX $result |
| 7677 |
_ACEOF |
| 7678 |
|
| 7679 |
done |
| 7680 |
|
| 7681 |
|
| 7682 |
|
| 7683 |
STDINT_H=stdint.h |
| 7684 |
fi |
| 7685 |
|
| 7686 |
if test -n "$STDINT_H"; then |
| 7687 |
GL_GENERATE_STDINT_H_TRUE= |
| 7688 |
GL_GENERATE_STDINT_H_FALSE='#' |
| 7689 |
else |
| 7690 |
GL_GENERATE_STDINT_H_TRUE='#' |
| 7691 |
GL_GENERATE_STDINT_H_FALSE= |
| 7692 |
fi |
| 7693 |
|
| 7694 |
|
| 7695 |
|
| 7696 |
|
| 7697 |
|
| 7698 |
|
| 7699 |
|
| 7700 |
|
| 7701 |
GNULIB_IMAXABS=0; |
| 7702 |
GNULIB_IMAXDIV=0; |
| 7703 |
GNULIB_STRTOIMAX=0; |
| 7704 |
GNULIB_STRTOUMAX=0; |
| 7705 |
HAVE_DECL_IMAXABS=1; |
| 7706 |
HAVE_DECL_IMAXDIV=1; |
| 7707 |
HAVE_DECL_STRTOIMAX=1; |
| 7708 |
HAVE_DECL_STRTOUMAX=1; |
| 7709 |
INT32_MAX_LT_INTMAX_MAX=1; |
| 7710 |
INT64_MAX_EQ_LONG_MAX='defined _LP64'; |
| 7711 |
PRI_MACROS_BROKEN=0; |
| 7712 |
PRIPTR_PREFIX=__PRIPTR_PREFIX; |
| 7713 |
UINT32_MAX_LT_UINTMAX_MAX=1; |
| 7714 |
UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; |
| 7715 |
|
| 7716 |
|
| 7717 |
|
| 7718 |
|
| 7719 |
: |
| 7720 |
|
| 7721 |
|
| 7722 |
|
| 7723 |
|
| 7724 |
|
| 7725 |
|
| 7726 |
|
| 7727 |
|
| 7728 |
|
| 7729 |
|
| 7730 |
|
| 7731 |
|
| 7732 |
|
| 7733 |
: |
| 7734 |
|
| 7735 |
|
| 7736 |
|
| 7737 |
|
| 7738 |
|
| 7739 |
|
| 7740 |
|
| 7741 |
|
| 7742 |
if test $gl_cv_have_include_next = yes; then |
| 7743 |
gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 7744 |
else |
| 7745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 |
| 7746 |
$as_echo_n "checking absolute name of <inttypes.h>... " >&6; } |
| 7747 |
if test "${gl_cv_next_inttypes_h+set}" = set; then : |
| 7748 |
$as_echo_n "(cached) " >&6 |
| 7749 |
else |
| 7750 |
|
| 7751 |
if test $ac_cv_header_inttypes_h = yes; then |
| 7752 |
|
| 7753 |
|
| 7754 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7755 |
/* end confdefs.h. */ |
| 7756 |
#include <inttypes.h> |
| 7757 |
|
| 7758 |
_ACEOF |
| 7759 |
case "$host_os" in |
| 7760 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 7761 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 7762 |
esac |
| 7763 |
gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 7764 |
sed -n '\#/inttypes.h#{ |
| 7765 |
s#.*"\(.*/inttypes.h\)".*#\1# |
| 7766 |
s#^/[^/]#//&# |
| 7767 |
p |
| 7768 |
q |
| 7769 |
}'`'"' |
| 7770 |
else |
| 7771 |
gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 7772 |
fi |
| 7773 |
|
| 7774 |
|
| 7775 |
fi |
| 7776 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 |
| 7777 |
$as_echo "$gl_cv_next_inttypes_h" >&6; } |
| 7778 |
fi |
| 7779 |
NEXT_INTTYPES_H=$gl_cv_next_inttypes_h |
| 7780 |
|
| 7781 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 7782 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 7783 |
gl_next_as_first_directive='<'inttypes.h'>' |
| 7784 |
else |
| 7785 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 7786 |
gl_next_as_first_directive=$gl_cv_next_inttypes_h |
| 7787 |
fi |
| 7788 |
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive |
| 7789 |
|
| 7790 |
|
| 7791 |
|
| 7792 |
|
| 7793 |
|
| 7794 |
|
| 7795 |
|
| 7796 |
|
| 7797 |
$as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h |
| 7798 |
|
| 7799 |
|
| 7800 |
|
| 7801 |
|
| 7802 |
for gl_func in imaxabs imaxdiv strtoimax strtoumax; do |
| 7803 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 7804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 7805 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 7806 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7807 |
$as_echo_n "(cached) " >&6 |
| 7808 |
else |
| 7809 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7810 |
/* end confdefs.h. */ |
| 7811 |
#include <inttypes.h> |
| 7812 |
|
| 7813 |
int |
| 7814 |
main () |
| 7815 |
{ |
| 7816 |
#undef $gl_func |
| 7817 |
(void) $gl_func; |
| 7818 |
; |
| 7819 |
return 0; |
| 7820 |
} |
| 7821 |
_ACEOF |
| 7822 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7823 |
eval "$as_gl_Symbol=yes" |
| 7824 |
else |
| 7825 |
eval "$as_gl_Symbol=no" |
| 7826 |
fi |
| 7827 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7828 |
fi |
| 7829 |
eval ac_res=\$$as_gl_Symbol |
| 7830 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7831 |
$as_echo "$ac_res" >&6; } |
| 7832 |
eval as_val=\$$as_gl_Symbol |
| 7833 |
if test "x$as_val" = x""yes; then : |
| 7834 |
cat >>confdefs.h <<_ACEOF |
| 7835 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 7836 |
_ACEOF |
| 7837 |
|
| 7838 |
eval ac_cv_have_decl_$gl_func=yes |
| 7839 |
fi |
| 7840 |
done |
| 7841 |
|
| 7842 |
|
| 7843 |
|
| 7844 |
for ac_header in inttypes.h |
| 7845 |
do : |
| 7846 |
ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7847 |
if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
| 7848 |
cat >>confdefs.h <<_ACEOF |
| 7849 |
#define HAVE_INTTYPES_H 1 |
| 7850 |
_ACEOF |
| 7851 |
|
| 7852 |
fi |
| 7853 |
|
| 7854 |
done |
| 7855 |
|
| 7856 |
if test $ac_cv_header_inttypes_h = yes; then |
| 7857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7858 |
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
| 7859 |
if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
| 7860 |
$as_echo_n "(cached) " >&6 |
| 7861 |
else |
| 7862 |
|
| 7863 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7864 |
/* end confdefs.h. */ |
| 7865 |
|
| 7866 |
#include <inttypes.h> |
| 7867 |
#ifdef PRId32 |
| 7868 |
char *p = PRId32; |
| 7869 |
#endif |
| 7870 |
|
| 7871 |
int |
| 7872 |
main () |
| 7873 |
{ |
| 7874 |
|
| 7875 |
; |
| 7876 |
return 0; |
| 7877 |
} |
| 7878 |
_ACEOF |
| 7879 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7880 |
gt_cv_inttypes_pri_broken=no |
| 7881 |
else |
| 7882 |
gt_cv_inttypes_pri_broken=yes |
| 7883 |
fi |
| 7884 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7885 |
|
| 7886 |
fi |
| 7887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7888 |
$as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
| 7889 |
fi |
| 7890 |
if test "$gt_cv_inttypes_pri_broken" = yes; then |
| 7891 |
|
| 7892 |
cat >>confdefs.h <<_ACEOF |
| 7893 |
#define PRI_MACROS_BROKEN 1 |
| 7894 |
_ACEOF |
| 7895 |
|
| 7896 |
PRI_MACROS_BROKEN=1 |
| 7897 |
else |
| 7898 |
PRI_MACROS_BROKEN=0 |
| 7899 |
fi |
| 7900 |
|
| 7901 |
|
| 7902 |
|
| 7903 |
GNULIB_FCHMODAT=0; |
| 7904 |
GNULIB_FSTATAT=0; |
| 7905 |
GNULIB_FUTIMENS=0; |
| 7906 |
GNULIB_LCHMOD=0; |
| 7907 |
GNULIB_LSTAT=0; |
| 7908 |
GNULIB_MKDIRAT=0; |
| 7909 |
GNULIB_MKFIFO=0; |
| 7910 |
GNULIB_MKFIFOAT=0; |
| 7911 |
GNULIB_MKNOD=0; |
| 7912 |
GNULIB_MKNODAT=0; |
| 7913 |
GNULIB_STAT=0; |
| 7914 |
GNULIB_UTIMENSAT=0; |
| 7915 |
HAVE_FCHMODAT=1; |
| 7916 |
HAVE_FSTATAT=1; |
| 7917 |
HAVE_FUTIMENS=1; |
| 7918 |
HAVE_LCHMOD=1; |
| 7919 |
HAVE_LSTAT=1; |
| 7920 |
HAVE_MKDIRAT=1; |
| 7921 |
HAVE_MKFIFO=1; |
| 7922 |
HAVE_MKFIFOAT=1; |
| 7923 |
HAVE_MKNOD=1; |
| 7924 |
HAVE_MKNODAT=1; |
| 7925 |
HAVE_UTIMENSAT=1; |
| 7926 |
REPLACE_FSTAT=0; |
| 7927 |
REPLACE_FSTATAT=0; |
| 7928 |
REPLACE_FUTIMENS=0; |
| 7929 |
REPLACE_LSTAT=0; |
| 7930 |
REPLACE_MKDIR=0; |
| 7931 |
REPLACE_MKFIFO=0; |
| 7932 |
REPLACE_MKNOD=0; |
| 7933 |
REPLACE_STAT=0; |
| 7934 |
REPLACE_UTIMENSAT=0; |
| 7935 |
|
| 7936 |
|
| 7937 |
|
| 7938 |
|
| 7939 |
|
| 7940 |
|
| 7941 |
|
| 7942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
| 7943 |
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } |
| 7944 |
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : |
| 7945 |
$as_echo_n "(cached) " >&6 |
| 7946 |
else |
| 7947 |
rm -f conftest.sym conftest.file |
| 7948 |
echo >conftest.file |
| 7949 |
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
| 7950 |
if test "$cross_compiling" = yes; then : |
| 7951 |
# When cross-compiling, be pessimistic so we will end up using the |
| 7952 |
# replacement version of lstat that checks for trailing slashes and |
| 7953 |
# calls lstat a second time when necessary. |
| 7954 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
| 7955 |
|
| 7956 |
else |
| 7957 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7958 |
/* end confdefs.h. */ |
| 7959 |
$ac_includes_default |
| 7960 |
int |
| 7961 |
main () |
| 7962 |
{ |
| 7963 |
struct stat sbuf; |
| 7964 |
/* Linux will dereference the symlink and fail, as required by |
| 7965 |
POSIX. That is better in the sense that it means we will not |
| 7966 |
have to compile and use the lstat wrapper. */ |
| 7967 |
return lstat ("conftest.sym/", &sbuf) == 0; |
| 7968 |
|
| 7969 |
; |
| 7970 |
return 0; |
| 7971 |
} |
| 7972 |
_ACEOF |
| 7973 |
if ac_fn_c_try_run "$LINENO"; then : |
| 7974 |
ac_cv_func_lstat_dereferences_slashed_symlink=yes |
| 7975 |
else |
| 7976 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
| 7977 |
fi |
| 7978 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7979 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7980 |
fi |
| 7981 |
|
| 7982 |
else |
| 7983 |
# If the 'ln -s' command failed, then we probably don't even |
| 7984 |
# have an lstat function. |
| 7985 |
ac_cv_func_lstat_dereferences_slashed_symlink=no |
| 7986 |
fi |
| 7987 |
rm -f conftest.sym conftest.file |
| 7988 |
|
| 7989 |
fi |
| 7990 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
| 7991 |
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
| 7992 |
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
| 7993 |
|
| 7994 |
cat >>confdefs.h <<_ACEOF |
| 7995 |
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
| 7996 |
_ACEOF |
| 7997 |
|
| 7998 |
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
| 7999 |
|
| 8000 |
|
| 8001 |
|
| 8002 |
|
| 8003 |
|
| 8004 |
|
| 8005 |
|
| 8006 |
|
| 8007 |
gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" |
| 8008 |
|
| 8009 |
fi |
| 8010 |
|
| 8011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 8012 |
$as_echo_n "checking for inline... " >&6; } |
| 8013 |
if test "${ac_cv_c_inline+set}" = set; then : |
| 8014 |
$as_echo_n "(cached) " >&6 |
| 8015 |
else |
| 8016 |
ac_cv_c_inline=no |
| 8017 |
for ac_kw in inline __inline__ __inline; do |
| 8018 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8019 |
/* end confdefs.h. */ |
| 8020 |
#ifndef __cplusplus |
| 8021 |
typedef int foo_t; |
| 8022 |
static $ac_kw foo_t static_foo () {return 0; } |
| 8023 |
$ac_kw foo_t foo () {return 0; } |
| 8024 |
#endif |
| 8025 |
|
| 8026 |
_ACEOF |
| 8027 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8028 |
ac_cv_c_inline=$ac_kw |
| 8029 |
fi |
| 8030 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8031 |
test "$ac_cv_c_inline" != no && break |
| 8032 |
done |
| 8033 |
|
| 8034 |
fi |
| 8035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 8036 |
$as_echo "$ac_cv_c_inline" >&6; } |
| 8037 |
|
| 8038 |
case $ac_cv_c_inline in |
| 8039 |
inline | yes) ;; |
| 8040 |
*) |
| 8041 |
case $ac_cv_c_inline in |
| 8042 |
no) ac_val=;; |
| 8043 |
*) ac_val=$ac_cv_c_inline;; |
| 8044 |
esac |
| 8045 |
cat >>confdefs.h <<_ACEOF |
| 8046 |
#ifndef __cplusplus |
| 8047 |
#define inline $ac_val |
| 8048 |
#endif |
| 8049 |
_ACEOF |
| 8050 |
;; |
| 8051 |
esac |
| 8052 |
|
| 8053 |
|
| 8054 |
for ac_header in stdlib.h |
| 8055 |
do : |
| 8056 |
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 8057 |
if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
| 8058 |
cat >>confdefs.h <<_ACEOF |
| 8059 |
#define HAVE_STDLIB_H 1 |
| 8060 |
_ACEOF |
| 8061 |
|
| 8062 |
fi |
| 8063 |
|
| 8064 |
done |
| 8065 |
|
| 8066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
| 8067 |
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
| 8068 |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : |
| 8069 |
$as_echo_n "(cached) " >&6 |
| 8070 |
else |
| 8071 |
if test "$cross_compiling" = yes; then : |
| 8072 |
ac_cv_func_malloc_0_nonnull=no |
| 8073 |
else |
| 8074 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8075 |
/* end confdefs.h. */ |
| 8076 |
#if defined STDC_HEADERS || defined HAVE_STDLIB_H |
| 8077 |
# include <stdlib.h> |
| 8078 |
#else |
| 8079 |
char *malloc (); |
| 8080 |
#endif |
| 8081 |
|
| 8082 |
int |
| 8083 |
main () |
| 8084 |
{ |
| 8085 |
return ! malloc (0); |
| 8086 |
; |
| 8087 |
return 0; |
| 8088 |
} |
| 8089 |
_ACEOF |
| 8090 |
if ac_fn_c_try_run "$LINENO"; then : |
| 8091 |
ac_cv_func_malloc_0_nonnull=yes |
| 8092 |
else |
| 8093 |
ac_cv_func_malloc_0_nonnull=no |
| 8094 |
fi |
| 8095 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8096 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8097 |
fi |
| 8098 |
|
| 8099 |
fi |
| 8100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 8101 |
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
| 8102 |
if test $ac_cv_func_malloc_0_nonnull = yes; then : |
| 8103 |
gl_cv_func_malloc_0_nonnull=1 |
| 8104 |
else |
| 8105 |
gl_cv_func_malloc_0_nonnull=0 |
| 8106 |
fi |
| 8107 |
|
| 8108 |
|
| 8109 |
cat >>confdefs.h <<_ACEOF |
| 8110 |
#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull |
| 8111 |
_ACEOF |
| 8112 |
|
| 8113 |
|
| 8114 |
# Check whether --enable-largefile was given. |
| 8115 |
if test "${enable_largefile+set}" = set; then : |
| 8116 |
enableval=$enable_largefile; |
| 8117 |
fi |
| 8118 |
|
| 8119 |
if test "$enable_largefile" != no; then |
| 8120 |
|
| 8121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 8122 |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 8123 |
if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 8124 |
$as_echo_n "(cached) " >&6 |
| 8125 |
else |
| 8126 |
ac_cv_sys_largefile_CC=no |
| 8127 |
if test "$GCC" != yes; then |
| 8128 |
ac_save_CC=$CC |
| 8129 |
while :; do |
| 8130 |
# IRIX 6.2 and later do not support large files by default, |
| 8131 |
# so use the C compiler's -n32 option if that helps. |
| 8132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8133 |
/* end confdefs.h. */ |
| 8134 |
#include <sys/types.h> |
| 8135 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 8136 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8137 |
since some C++ compilers masquerading as C compilers |
| 8138 |
incorrectly reject 9223372036854775807. */ |
| 8139 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8140 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8141 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 8142 |
? 1 : -1]; |
| 8143 |
int |
| 8144 |
main () |
| 8145 |
{ |
| 8146 |
|
| 8147 |
; |
| 8148 |
return 0; |
| 8149 |
} |
| 8150 |
_ACEOF |
| 8151 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8152 |
break |
| 8153 |
fi |
| 8154 |
rm -f core conftest.err conftest.$ac_objext |
| 8155 |
CC="$CC -n32" |
| 8156 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8157 |
ac_cv_sys_largefile_CC=' -n32'; break |
| 8158 |
fi |
| 8159 |
rm -f core conftest.err conftest.$ac_objext |
| 8160 |
break |
| 8161 |
done |
| 8162 |
CC=$ac_save_CC |
| 8163 |
rm -f conftest.$ac_ext |
| 8164 |
fi |
| 8165 |
fi |
| 8166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 8167 |
$as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 8168 |
if test "$ac_cv_sys_largefile_CC" != no; then |
| 8169 |
CC=$CC$ac_cv_sys_largefile_CC |
| 8170 |
fi |
| 8171 |
|
| 8172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 8173 |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 8174 |
if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 8175 |
$as_echo_n "(cached) " >&6 |
| 8176 |
else |
| 8177 |
while :; do |
| 8178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8179 |
/* end confdefs.h. */ |
| 8180 |
#include <sys/types.h> |
| 8181 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 8182 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8183 |
since some C++ compilers masquerading as C compilers |
| 8184 |
incorrectly reject 9223372036854775807. */ |
| 8185 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8186 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8187 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 8188 |
? 1 : -1]; |
| 8189 |
int |
| 8190 |
main () |
| 8191 |
{ |
| 8192 |
|
| 8193 |
; |
| 8194 |
return 0; |
| 8195 |
} |
| 8196 |
_ACEOF |
| 8197 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8198 |
ac_cv_sys_file_offset_bits=no; break |
| 8199 |
fi |
| 8200 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8201 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8202 |
/* end confdefs.h. */ |
| 8203 |
#define _FILE_OFFSET_BITS 64 |
| 8204 |
#include <sys/types.h> |
| 8205 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 8206 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8207 |
since some C++ compilers masquerading as C compilers |
| 8208 |
incorrectly reject 9223372036854775807. */ |
| 8209 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8210 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8211 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 8212 |
? 1 : -1]; |
| 8213 |
int |
| 8214 |
main () |
| 8215 |
{ |
| 8216 |
|
| 8217 |
; |
| 8218 |
return 0; |
| 8219 |
} |
| 8220 |
_ACEOF |
| 8221 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8222 |
ac_cv_sys_file_offset_bits=64; break |
| 8223 |
fi |
| 8224 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8225 |
ac_cv_sys_file_offset_bits=unknown |
| 8226 |
break |
| 8227 |
done |
| 8228 |
fi |
| 8229 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 8230 |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 8231 |
case $ac_cv_sys_file_offset_bits in #( |
| 8232 |
no | unknown) ;; |
| 8233 |
*) |
| 8234 |
cat >>confdefs.h <<_ACEOF |
| 8235 |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 8236 |
_ACEOF |
| 8237 |
;; |
| 8238 |
esac |
| 8239 |
rm -rf conftest* |
| 8240 |
if test $ac_cv_sys_file_offset_bits = unknown; then |
| 8241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 8242 |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 8243 |
if test "${ac_cv_sys_large_files+set}" = set; then : |
| 8244 |
$as_echo_n "(cached) " >&6 |
| 8245 |
else |
| 8246 |
while :; do |
| 8247 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8248 |
/* end confdefs.h. */ |
| 8249 |
#include <sys/types.h> |
| 8250 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 8251 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8252 |
since some C++ compilers masquerading as C compilers |
| 8253 |
incorrectly reject 9223372036854775807. */ |
| 8254 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8255 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8256 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 8257 |
? 1 : -1]; |
| 8258 |
int |
| 8259 |
main () |
| 8260 |
{ |
| 8261 |
|
| 8262 |
; |
| 8263 |
return 0; |
| 8264 |
} |
| 8265 |
_ACEOF |
| 8266 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8267 |
ac_cv_sys_large_files=no; break |
| 8268 |
fi |
| 8269 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8270 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8271 |
/* end confdefs.h. */ |
| 8272 |
#define _LARGE_FILES 1 |
| 8273 |
#include <sys/types.h> |
| 8274 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 8275 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8276 |
since some C++ compilers masquerading as C compilers |
| 8277 |
incorrectly reject 9223372036854775807. */ |
| 8278 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8279 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8280 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 8281 |
? 1 : -1]; |
| 8282 |
int |
| 8283 |
main () |
| 8284 |
{ |
| 8285 |
|
| 8286 |
; |
| 8287 |
return 0; |
| 8288 |
} |
| 8289 |
_ACEOF |
| 8290 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8291 |
ac_cv_sys_large_files=1; break |
| 8292 |
fi |
| 8293 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8294 |
ac_cv_sys_large_files=unknown |
| 8295 |
break |
| 8296 |
done |
| 8297 |
fi |
| 8298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 8299 |
$as_echo "$ac_cv_sys_large_files" >&6; } |
| 8300 |
case $ac_cv_sys_large_files in #( |
| 8301 |
no | unknown) ;; |
| 8302 |
*) |
| 8303 |
cat >>confdefs.h <<_ACEOF |
| 8304 |
#define _LARGE_FILES $ac_cv_sys_large_files |
| 8305 |
_ACEOF |
| 8306 |
;; |
| 8307 |
esac |
| 8308 |
rm -rf conftest* |
| 8309 |
fi |
| 8310 |
fi |
| 8311 |
|
| 8312 |
|
| 8313 |
|
| 8314 |
|
| 8315 |
|
| 8316 |
|
| 8317 |
|
| 8318 |
|
| 8319 |
|
| 8320 |
|
| 8321 |
|
| 8322 |
|
| 8323 |
GNULIB_SIGNAL_H_SIGPIPE=0; |
| 8324 |
GNULIB_SIGPROCMASK=0; |
| 8325 |
GNULIB_SIGACTION=0; |
| 8326 |
HAVE_POSIX_SIGNALBLOCKING=1; |
| 8327 |
HAVE_SIGSET_T=1; |
| 8328 |
HAVE_SIGINFO_T=1; |
| 8329 |
HAVE_SIGACTION=1; |
| 8330 |
HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; |
| 8331 |
|
| 8332 |
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; |
| 8333 |
|
| 8334 |
HAVE_SIGHANDLER_T=1; |
| 8335 |
|
| 8336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 8337 |
$as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 8338 |
if test "${ac_cv_type_uid_t+set}" = set; then : |
| 8339 |
$as_echo_n "(cached) " >&6 |
| 8340 |
else |
| 8341 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8342 |
/* end confdefs.h. */ |
| 8343 |
#include <sys/types.h> |
| 8344 |
|
| 8345 |
_ACEOF |
| 8346 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8347 |
$EGREP "uid_t" >/dev/null 2>&1; then : |
| 8348 |
ac_cv_type_uid_t=yes |
| 8349 |
else |
| 8350 |
ac_cv_type_uid_t=no |
| 8351 |
fi |
| 8352 |
rm -f conftest* |
| 8353 |
|
| 8354 |
fi |
| 8355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 8356 |
$as_echo "$ac_cv_type_uid_t" >&6; } |
| 8357 |
if test $ac_cv_type_uid_t = no; then |
| 8358 |
|
| 8359 |
$as_echo "#define uid_t int" >>confdefs.h |
| 8360 |
|
| 8361 |
|
| 8362 |
$as_echo "#define gid_t int" >>confdefs.h |
| 8363 |
|
| 8364 |
fi |
| 8365 |
|
| 8366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 8367 |
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 8368 |
if test "${ac_cv_header_stdbool_h+set}" = set; then : |
| 8369 |
$as_echo_n "(cached) " >&6 |
| 8370 |
else |
| 8371 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8372 |
/* end confdefs.h. */ |
| 8373 |
|
| 8374 |
#include <stdbool.h> |
| 8375 |
#ifndef bool |
| 8376 |
"error: bool is not defined" |
| 8377 |
#endif |
| 8378 |
#ifndef false |
| 8379 |
"error: false is not defined" |
| 8380 |
#endif |
| 8381 |
#if false |
| 8382 |
"error: false is not 0" |
| 8383 |
#endif |
| 8384 |
#ifndef true |
| 8385 |
"error: true is not defined" |
| 8386 |
#endif |
| 8387 |
#if true != 1 |
| 8388 |
"error: true is not 1" |
| 8389 |
#endif |
| 8390 |
#ifndef __bool_true_false_are_defined |
| 8391 |
"error: __bool_true_false_are_defined is not defined" |
| 8392 |
#endif |
| 8393 |
|
| 8394 |
struct s { _Bool s: 1; _Bool t; } s; |
| 8395 |
|
| 8396 |
char a[true == 1 ? 1 : -1]; |
| 8397 |
char b[false == 0 ? 1 : -1]; |
| 8398 |
char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 8399 |
char d[(bool) 0.5 == true ? 1 : -1]; |
| 8400 |
/* See body of main program for 'e'. */ |
| 8401 |
char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 8402 |
char g[true]; |
| 8403 |
char h[sizeof (_Bool)]; |
| 8404 |
char i[sizeof s.t]; |
| 8405 |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 8406 |
/* The following fails for |
| 8407 |
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 8408 |
_Bool n[m]; |
| 8409 |
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 8410 |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 8411 |
/* Catch a bug in an HP-UX C compiler. See |
| 8412 |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 8413 |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 8414 |
*/ |
| 8415 |
_Bool q = true; |
| 8416 |
_Bool *pq = &q; |
| 8417 |
|
| 8418 |
int |
| 8419 |
main () |
| 8420 |
{ |
| 8421 |
|
| 8422 |
bool e = &s; |
| 8423 |
*pq |= q; |
| 8424 |
*pq |= ! q; |
| 8425 |
/* Refer to every declared value, to avoid compiler optimizations. */ |
| 8426 |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 8427 |
+ !m + !n + !o + !p + !q + !pq); |
| 8428 |
|
| 8429 |
; |
| 8430 |
return 0; |
| 8431 |
} |
| 8432 |
_ACEOF |
| 8433 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8434 |
ac_cv_header_stdbool_h=yes |
| 8435 |
else |
| 8436 |
ac_cv_header_stdbool_h=no |
| 8437 |
fi |
| 8438 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8439 |
fi |
| 8440 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 8441 |
$as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 8442 |
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 8443 |
if test "x$ac_cv_type__Bool" = x""yes; then : |
| 8444 |
|
| 8445 |
cat >>confdefs.h <<_ACEOF |
| 8446 |
#define HAVE__BOOL 1 |
| 8447 |
_ACEOF |
| 8448 |
|
| 8449 |
|
| 8450 |
fi |
| 8451 |
|
| 8452 |
|
| 8453 |
|
| 8454 |
REPLACE_NULL=0; |
| 8455 |
HAVE_WCHAR_T=1; |
| 8456 |
|
| 8457 |
|
| 8458 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 8459 |
$as_echo_n "checking for wchar_t... " >&6; } |
| 8460 |
if test "${gt_cv_c_wchar_t+set}" = set; then : |
| 8461 |
$as_echo_n "(cached) " >&6 |
| 8462 |
else |
| 8463 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8464 |
/* end confdefs.h. */ |
| 8465 |
#include <stddef.h> |
| 8466 |
wchar_t foo = (wchar_t)'\0'; |
| 8467 |
int |
| 8468 |
main () |
| 8469 |
{ |
| 8470 |
|
| 8471 |
; |
| 8472 |
return 0; |
| 8473 |
} |
| 8474 |
_ACEOF |
| 8475 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8476 |
gt_cv_c_wchar_t=yes |
| 8477 |
else |
| 8478 |
gt_cv_c_wchar_t=no |
| 8479 |
fi |
| 8480 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8481 |
fi |
| 8482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 8483 |
$as_echo "$gt_cv_c_wchar_t" >&6; } |
| 8484 |
if test $gt_cv_c_wchar_t = yes; then |
| 8485 |
|
| 8486 |
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 8487 |
|
| 8488 |
fi |
| 8489 |
|
| 8490 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| 8491 |
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| 8492 |
if test "${ac_cv_header_stat_broken+set}" = set; then : |
| 8493 |
$as_echo_n "(cached) " >&6 |
| 8494 |
else |
| 8495 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8496 |
/* end confdefs.h. */ |
| 8497 |
#include <sys/types.h> |
| 8498 |
#include <sys/stat.h> |
| 8499 |
|
| 8500 |
#if defined S_ISBLK && defined S_IFDIR |
| 8501 |
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 8502 |
#endif |
| 8503 |
|
| 8504 |
#if defined S_ISBLK && defined S_IFCHR |
| 8505 |
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 8506 |
#endif |
| 8507 |
|
| 8508 |
#if defined S_ISLNK && defined S_IFREG |
| 8509 |
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 8510 |
#endif |
| 8511 |
|
| 8512 |
#if defined S_ISSOCK && defined S_IFREG |
| 8513 |
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 8514 |
#endif |
| 8515 |
|
| 8516 |
_ACEOF |
| 8517 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8518 |
ac_cv_header_stat_broken=no |
| 8519 |
else |
| 8520 |
ac_cv_header_stat_broken=yes |
| 8521 |
fi |
| 8522 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8523 |
fi |
| 8524 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| 8525 |
$as_echo "$ac_cv_header_stat_broken" >&6; } |
| 8526 |
if test $ac_cv_header_stat_broken = yes; then |
| 8527 |
|
| 8528 |
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| 8529 |
|
| 8530 |
fi |
| 8531 |
|
| 8532 |
|
| 8533 |
|
| 8534 |
|
| 8535 |
|
| 8536 |
|
| 8537 |
|
| 8538 |
GNULIB_MKTIME=0; |
| 8539 |
GNULIB_NANOSLEEP=0; |
| 8540 |
GNULIB_STRPTIME=0; |
| 8541 |
GNULIB_TIMEGM=0; |
| 8542 |
GNULIB_TIME_R=0; |
| 8543 |
HAVE_DECL_LOCALTIME_R=1; |
| 8544 |
HAVE_NANOSLEEP=1; |
| 8545 |
HAVE_STRPTIME=1; |
| 8546 |
HAVE_TIMEGM=1; |
| 8547 |
REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; |
| 8548 |
REPLACE_MKTIME=GNULIB_PORTCHECK; |
| 8549 |
REPLACE_NANOSLEEP=GNULIB_PORTCHECK; |
| 8550 |
REPLACE_TIMEGM=GNULIB_PORTCHECK; |
| 8551 |
|
| 8552 |
|
| 8553 |
|
| 8554 |
: |
| 8555 |
|
| 8556 |
|
| 8557 |
|
| 8558 |
|
| 8559 |
|
| 8560 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 |
| 8561 |
$as_echo_n "checking for struct timespec in <time.h>... " >&6; } |
| 8562 |
if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : |
| 8563 |
$as_echo_n "(cached) " >&6 |
| 8564 |
else |
| 8565 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8566 |
/* end confdefs.h. */ |
| 8567 |
#include <time.h> |
| 8568 |
|
| 8569 |
int |
| 8570 |
main () |
| 8571 |
{ |
| 8572 |
static struct timespec x; x.tv_sec = x.tv_nsec; |
| 8573 |
; |
| 8574 |
return 0; |
| 8575 |
} |
| 8576 |
_ACEOF |
| 8577 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8578 |
gl_cv_sys_struct_timespec_in_time_h=yes |
| 8579 |
else |
| 8580 |
gl_cv_sys_struct_timespec_in_time_h=no |
| 8581 |
fi |
| 8582 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8583 |
fi |
| 8584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 |
| 8585 |
$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } |
| 8586 |
|
| 8587 |
TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 8588 |
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 8589 |
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 8590 |
if test $gl_cv_sys_struct_timespec_in_time_h = yes; then |
| 8591 |
TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 8592 |
else |
| 8593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 |
| 8594 |
$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } |
| 8595 |
if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : |
| 8596 |
$as_echo_n "(cached) " >&6 |
| 8597 |
else |
| 8598 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8599 |
/* end confdefs.h. */ |
| 8600 |
#include <sys/time.h> |
| 8601 |
|
| 8602 |
int |
| 8603 |
main () |
| 8604 |
{ |
| 8605 |
static struct timespec x; x.tv_sec = x.tv_nsec; |
| 8606 |
; |
| 8607 |
return 0; |
| 8608 |
} |
| 8609 |
_ACEOF |
| 8610 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8611 |
gl_cv_sys_struct_timespec_in_sys_time_h=yes |
| 8612 |
else |
| 8613 |
gl_cv_sys_struct_timespec_in_sys_time_h=no |
| 8614 |
fi |
| 8615 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8616 |
fi |
| 8617 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 |
| 8618 |
$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } |
| 8619 |
if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then |
| 8620 |
SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 8621 |
else |
| 8622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 |
| 8623 |
$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } |
| 8624 |
if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : |
| 8625 |
$as_echo_n "(cached) " >&6 |
| 8626 |
else |
| 8627 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8628 |
/* end confdefs.h. */ |
| 8629 |
#include <pthread.h> |
| 8630 |
|
| 8631 |
int |
| 8632 |
main () |
| 8633 |
{ |
| 8634 |
static struct timespec x; x.tv_sec = x.tv_nsec; |
| 8635 |
; |
| 8636 |
return 0; |
| 8637 |
} |
| 8638 |
_ACEOF |
| 8639 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 8640 |
gl_cv_sys_struct_timespec_in_pthread_h=yes |
| 8641 |
else |
| 8642 |
gl_cv_sys_struct_timespec_in_pthread_h=no |
| 8643 |
fi |
| 8644 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8645 |
fi |
| 8646 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 |
| 8647 |
$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } |
| 8648 |
if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then |
| 8649 |
PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 8650 |
fi |
| 8651 |
fi |
| 8652 |
fi |
| 8653 |
|
| 8654 |
|
| 8655 |
|
| 8656 |
|
| 8657 |
|
| 8658 |
|
| 8659 |
|
| 8660 |
|
| 8661 |
|
| 8662 |
|
| 8663 |
|
| 8664 |
|
| 8665 |
|
| 8666 |
|
| 8667 |
|
| 8668 |
if test $gl_cv_have_include_next = yes; then |
| 8669 |
gl_cv_next_time_h='<'time.h'>' |
| 8670 |
else |
| 8671 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 |
| 8672 |
$as_echo_n "checking absolute name of <time.h>... " >&6; } |
| 8673 |
if test "${gl_cv_next_time_h+set}" = set; then : |
| 8674 |
$as_echo_n "(cached) " >&6 |
| 8675 |
else |
| 8676 |
|
| 8677 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8678 |
/* end confdefs.h. */ |
| 8679 |
#include <time.h> |
| 8680 |
|
| 8681 |
_ACEOF |
| 8682 |
case "$host_os" in |
| 8683 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 8684 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 8685 |
esac |
| 8686 |
gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 8687 |
sed -n '\#/time.h#{ |
| 8688 |
s#.*"\(.*/time.h\)".*#\1# |
| 8689 |
s#^/[^/]#//&# |
| 8690 |
p |
| 8691 |
q |
| 8692 |
}'`'"' |
| 8693 |
|
| 8694 |
|
| 8695 |
fi |
| 8696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 |
| 8697 |
$as_echo "$gl_cv_next_time_h" >&6; } |
| 8698 |
fi |
| 8699 |
NEXT_TIME_H=$gl_cv_next_time_h |
| 8700 |
|
| 8701 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 8702 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 8703 |
gl_next_as_first_directive='<'time.h'>' |
| 8704 |
else |
| 8705 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 8706 |
gl_next_as_first_directive=$gl_cv_next_time_h |
| 8707 |
fi |
| 8708 |
NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive |
| 8709 |
|
| 8710 |
|
| 8711 |
|
| 8712 |
|
| 8713 |
|
| 8714 |
|
| 8715 |
|
| 8716 |
|
| 8717 |
|
| 8718 |
|
| 8719 |
|
| 8720 |
|
| 8721 |
if false; then |
| 8722 |
GL_COND_LIBTOOL_TRUE= |
| 8723 |
GL_COND_LIBTOOL_FALSE='#' |
| 8724 |
else |
| 8725 |
GL_COND_LIBTOOL_TRUE='#' |
| 8726 |
GL_COND_LIBTOOL_FALSE= |
| 8727 |
fi |
| 8728 |
|
| 8729 |
gl_cond_libtool=false |
| 8730 |
gl_libdeps= |
| 8731 |
gl_ltlibdeps= |
| 8732 |
gl_m4_base='m4' |
| 8733 |
|
| 8734 |
|
| 8735 |
|
| 8736 |
|
| 8737 |
|
| 8738 |
|
| 8739 |
|
| 8740 |
|
| 8741 |
|
| 8742 |
gl_source_base='lib' |
| 8743 |
|
| 8744 |
|
| 8745 |
if test $ac_cv_func_alloca_works = no; then |
| 8746 |
: |
| 8747 |
fi |
| 8748 |
|
| 8749 |
# Define an additional variable used in the Makefile substitution. |
| 8750 |
if test $ac_cv_working_alloca_h = yes; then |
| 8751 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 |
| 8752 |
$as_echo_n "checking for alloca as a compiler built-in... " >&6; } |
| 8753 |
if test "${gl_cv_rpl_alloca+set}" = set; then : |
| 8754 |
$as_echo_n "(cached) " >&6 |
| 8755 |
else |
| 8756 |
|
| 8757 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8758 |
/* end confdefs.h. */ |
| 8759 |
|
| 8760 |
#if defined __GNUC__ || defined _AIX || defined _MSC_VER |
| 8761 |
Need own alloca |
| 8762 |
#endif |
| 8763 |
|
| 8764 |
_ACEOF |
| 8765 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8766 |
$EGREP "Need own alloca" >/dev/null 2>&1; then : |
| 8767 |
gl_cv_rpl_alloca=yes |
| 8768 |
else |
| 8769 |
gl_cv_rpl_alloca=no |
| 8770 |
fi |
| 8771 |
rm -f conftest* |
| 8772 |
|
| 8773 |
|
| 8774 |
fi |
| 8775 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 |
| 8776 |
$as_echo "$gl_cv_rpl_alloca" >&6; } |
| 8777 |
if test $gl_cv_rpl_alloca = yes; then |
| 8778 |
|
| 8779 |
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 8780 |
|
| 8781 |
ALLOCA_H=alloca.h |
| 8782 |
else |
| 8783 |
ALLOCA_H= |
| 8784 |
fi |
| 8785 |
else |
| 8786 |
ALLOCA_H=alloca.h |
| 8787 |
fi |
| 8788 |
|
| 8789 |
if test -n "$ALLOCA_H"; then |
| 8790 |
GL_GENERATE_ALLOCA_H_TRUE= |
| 8791 |
GL_GENERATE_ALLOCA_H_FALSE='#' |
| 8792 |
else |
| 8793 |
GL_GENERATE_ALLOCA_H_TRUE='#' |
| 8794 |
GL_GENERATE_ALLOCA_H_FALSE= |
| 8795 |
fi |
| 8796 |
|
| 8797 |
|
| 8798 |
|
| 8799 |
|
| 8800 |
if test $ac_cv_func_canonicalize_file_name = no; then |
| 8801 |
HAVE_CANONICALIZE_FILE_NAME=0 |
| 8802 |
|
| 8803 |
|
| 8804 |
|
| 8805 |
|
| 8806 |
|
| 8807 |
|
| 8808 |
|
| 8809 |
|
| 8810 |
gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" |
| 8811 |
|
| 8812 |
if test $ac_cv_func_realpath = no; then |
| 8813 |
HAVE_REALPATH=0 |
| 8814 |
elif test "$gl_cv_func_realpath_works" != yes; then |
| 8815 |
REPLACE_REALPATH=1 |
| 8816 |
fi |
| 8817 |
elif test "$gl_cv_func_realpath_works" != yes; then |
| 8818 |
|
| 8819 |
|
| 8820 |
|
| 8821 |
|
| 8822 |
|
| 8823 |
|
| 8824 |
|
| 8825 |
|
| 8826 |
gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" |
| 8827 |
|
| 8828 |
REPLACE_REALPATH=1 |
| 8829 |
REPLACE_CANONICALIZE_FILE_NAME=1 |
| 8830 |
fi |
| 8831 |
|
| 8832 |
|
| 8833 |
|
| 8834 |
cat >>confdefs.h <<_ACEOF |
| 8835 |
#define GNULIB_CANONICALIZE_LGPL 1 |
| 8836 |
_ACEOF |
| 8837 |
|
| 8838 |
|
| 8839 |
|
| 8840 |
|
| 8841 |
|
| 8842 |
GNULIB_CANONICALIZE_FILE_NAME=1 |
| 8843 |
|
| 8844 |
|
| 8845 |
|
| 8846 |
$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h |
| 8847 |
|
| 8848 |
|
| 8849 |
|
| 8850 |
|
| 8851 |
|
| 8852 |
|
| 8853 |
GNULIB_REALPATH=1 |
| 8854 |
|
| 8855 |
|
| 8856 |
|
| 8857 |
$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h |
| 8858 |
|
| 8859 |
|
| 8860 |
|
| 8861 |
|
| 8862 |
|
| 8863 |
|
| 8864 |
|
| 8865 |
|
| 8866 |
|
| 8867 |
|
| 8868 |
|
| 8869 |
$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h |
| 8870 |
|
| 8871 |
|
| 8872 |
|
| 8873 |
|
| 8874 |
|
| 8875 |
|
| 8876 |
|
| 8877 |
if test -n "$gl_replace_getopt"; then : |
| 8878 |
|
| 8879 |
|
| 8880 |
|
| 8881 |
GETOPT_H=getopt.h |
| 8882 |
|
| 8883 |
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 8884 |
|
| 8885 |
|
| 8886 |
|
| 8887 |
GNULIB_UNISTD_H_GETOPT=1 |
| 8888 |
|
| 8889 |
|
| 8890 |
|
| 8891 |
|
| 8892 |
|
| 8893 |
|
| 8894 |
|
| 8895 |
|
| 8896 |
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 8897 |
|
| 8898 |
|
| 8899 |
|
| 8900 |
|
| 8901 |
|
| 8902 |
|
| 8903 |
|
| 8904 |
|
| 8905 |
|
| 8906 |
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 8907 |
|
| 8908 |
|
| 8909 |
|
| 8910 |
: |
| 8911 |
|
| 8912 |
|
| 8913 |
|
| 8914 |
|
| 8915 |
|
| 8916 |
|
| 8917 |
|
| 8918 |
|
| 8919 |
fi |
| 8920 |
|
| 8921 |
|
| 8922 |
|
| 8923 |
|
| 8924 |
|
| 8925 |
|
| 8926 |
|
| 8927 |
|
| 8928 |
|
| 8929 |
: |
| 8930 |
|
| 8931 |
|
| 8932 |
|
| 8933 |
|
| 8934 |
|
| 8935 |
|
| 8936 |
gl_gettimeofday_timezone=void |
| 8937 |
if test $ac_cv_func_gettimeofday != yes; then |
| 8938 |
HAVE_GETTIMEOFDAY=0 |
| 8939 |
|
| 8940 |
|
| 8941 |
|
| 8942 |
|
| 8943 |
|
| 8944 |
|
| 8945 |
|
| 8946 |
|
| 8947 |
gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" |
| 8948 |
|
| 8949 |
|
| 8950 |
for ac_header in sys/timeb.h |
| 8951 |
do : |
| 8952 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 8953 |
if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 8954 |
cat >>confdefs.h <<_ACEOF |
| 8955 |
#define HAVE_SYS_TIMEB_H 1 |
| 8956 |
_ACEOF |
| 8957 |
|
| 8958 |
fi |
| 8959 |
|
| 8960 |
done |
| 8961 |
|
| 8962 |
for ac_func in _ftime |
| 8963 |
do : |
| 8964 |
ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" |
| 8965 |
if test "x$ac_cv_func__ftime" = x""yes; then : |
| 8966 |
cat >>confdefs.h <<_ACEOF |
| 8967 |
#define HAVE__FTIME 1 |
| 8968 |
_ACEOF |
| 8969 |
|
| 8970 |
fi |
| 8971 |
done |
| 8972 |
|
| 8973 |
|
| 8974 |
else |
| 8975 |
|
| 8976 |
|
| 8977 |
|
| 8978 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 |
| 8979 |
$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } |
| 8980 |
if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then : |
| 8981 |
$as_echo_n "(cached) " >&6 |
| 8982 |
else |
| 8983 |
if test "$cross_compiling" = yes; then : |
| 8984 |
gl_cv_func_gettimeofday_clobber=yes |
| 8985 |
else |
| 8986 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8987 |
/* end confdefs.h. */ |
| 8988 |
#include <string.h> |
| 8989 |
#include <sys/time.h> |
| 8990 |
#include <time.h> |
| 8991 |
#include <stdlib.h> |
| 8992 |
|
| 8993 |
int |
| 8994 |
main () |
| 8995 |
{ |
| 8996 |
|
| 8997 |
time_t t = 0; |
| 8998 |
struct tm *lt; |
| 8999 |
struct tm saved_lt; |
| 9000 |
struct timeval tv; |
| 9001 |
lt = localtime (&t); |
| 9002 |
saved_lt = *lt; |
| 9003 |
gettimeofday (&tv, NULL); |
| 9004 |
return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; |
| 9005 |
|
| 9006 |
; |
| 9007 |
return 0; |
| 9008 |
} |
| 9009 |
_ACEOF |
| 9010 |
if ac_fn_c_try_run "$LINENO"; then : |
| 9011 |
gl_cv_func_gettimeofday_clobber=no |
| 9012 |
else |
| 9013 |
gl_cv_func_gettimeofday_clobber=yes |
| 9014 |
fi |
| 9015 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9016 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9017 |
fi |
| 9018 |
|
| 9019 |
fi |
| 9020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 |
| 9021 |
$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } |
| 9022 |
|
| 9023 |
if test $gl_cv_func_gettimeofday_clobber = yes; then |
| 9024 |
REPLACE_GETTIMEOFDAY=1 |
| 9025 |
|
| 9026 |
|
| 9027 |
|
| 9028 |
|
| 9029 |
|
| 9030 |
|
| 9031 |
|
| 9032 |
|
| 9033 |
|
| 9034 |
gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" |
| 9035 |
|
| 9036 |
|
| 9037 |
for ac_header in sys/timeb.h |
| 9038 |
do : |
| 9039 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 9040 |
if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 9041 |
cat >>confdefs.h <<_ACEOF |
| 9042 |
#define HAVE_SYS_TIMEB_H 1 |
| 9043 |
_ACEOF |
| 9044 |
|
| 9045 |
fi |
| 9046 |
|
| 9047 |
done |
| 9048 |
|
| 9049 |
for ac_func in _ftime |
| 9050 |
do : |
| 9051 |
ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" |
| 9052 |
if test "x$ac_cv_func__ftime" = x""yes; then : |
| 9053 |
cat >>confdefs.h <<_ACEOF |
| 9054 |
#define HAVE__FTIME 1 |
| 9055 |
_ACEOF |
| 9056 |
|
| 9057 |
fi |
| 9058 |
done |
| 9059 |
|
| 9060 |
|
| 9061 |
|
| 9062 |
$as_echo "#define gmtime rpl_gmtime" >>confdefs.h |
| 9063 |
|
| 9064 |
|
| 9065 |
$as_echo "#define localtime rpl_localtime" >>confdefs.h |
| 9066 |
|
| 9067 |
|
| 9068 |
|
| 9069 |
$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h |
| 9070 |
|
| 9071 |
fi |
| 9072 |
|
| 9073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 |
| 9074 |
$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } |
| 9075 |
if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then : |
| 9076 |
$as_echo_n "(cached) " >&6 |
| 9077 |
else |
| 9078 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9079 |
/* end confdefs.h. */ |
| 9080 |
#include <sys/time.h> |
| 9081 |
struct timeval c; |
| 9082 |
int gettimeofday (struct timeval *restrict, void *restrict); |
| 9083 |
|
| 9084 |
int |
| 9085 |
main () |
| 9086 |
{ |
| 9087 |
/* glibc uses struct timezone * rather than the POSIX void * |
| 9088 |
if _GNU_SOURCE is defined. However, since the only portable |
| 9089 |
use of gettimeofday uses NULL as the second parameter, and |
| 9090 |
since the glibc definition is actually more typesafe, it is |
| 9091 |
not worth wrapping this to get a compliant signature. */ |
| 9092 |
int (*f) (struct timeval *restrict, void *restrict) |
| 9093 |
= gettimeofday; |
| 9094 |
int x = f (&c, 0); |
| 9095 |
return !(x | c.tv_sec | c.tv_usec); |
| 9096 |
|
| 9097 |
; |
| 9098 |
return 0; |
| 9099 |
} |
| 9100 |
_ACEOF |
| 9101 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9102 |
gl_cv_func_gettimeofday_posix_signature=yes |
| 9103 |
else |
| 9104 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9105 |
/* end confdefs.h. */ |
| 9106 |
#include <sys/time.h> |
| 9107 |
int gettimeofday (struct timeval *restrict, struct timezone *restrict); |
| 9108 |
|
| 9109 |
int |
| 9110 |
main () |
| 9111 |
{ |
| 9112 |
|
| 9113 |
; |
| 9114 |
return 0; |
| 9115 |
} |
| 9116 |
_ACEOF |
| 9117 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9118 |
gl_cv_func_gettimeofday_posix_signature=almost |
| 9119 |
else |
| 9120 |
gl_cv_func_gettimeofday_posix_signature=no |
| 9121 |
fi |
| 9122 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9123 |
fi |
| 9124 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9125 |
fi |
| 9126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 |
| 9127 |
$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } |
| 9128 |
if test $gl_cv_func_gettimeofday_posix_signature = almost; then |
| 9129 |
gl_gettimeofday_timezone='struct timezone' |
| 9130 |
elif test $gl_cv_func_gettimeofday_posix_signature != yes; then |
| 9131 |
REPLACE_GETTIMEOFDAY=1 |
| 9132 |
|
| 9133 |
|
| 9134 |
|
| 9135 |
|
| 9136 |
|
| 9137 |
|
| 9138 |
|
| 9139 |
|
| 9140 |
gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" |
| 9141 |
|
| 9142 |
|
| 9143 |
for ac_header in sys/timeb.h |
| 9144 |
do : |
| 9145 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 9146 |
if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 9147 |
cat >>confdefs.h <<_ACEOF |
| 9148 |
#define HAVE_SYS_TIMEB_H 1 |
| 9149 |
_ACEOF |
| 9150 |
|
| 9151 |
fi |
| 9152 |
|
| 9153 |
done |
| 9154 |
|
| 9155 |
for ac_func in _ftime |
| 9156 |
do : |
| 9157 |
ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" |
| 9158 |
if test "x$ac_cv_func__ftime" = x""yes; then : |
| 9159 |
cat >>confdefs.h <<_ACEOF |
| 9160 |
#define HAVE__FTIME 1 |
| 9161 |
_ACEOF |
| 9162 |
|
| 9163 |
fi |
| 9164 |
done |
| 9165 |
|
| 9166 |
|
| 9167 |
fi |
| 9168 |
fi |
| 9169 |
|
| 9170 |
cat >>confdefs.h <<_ACEOF |
| 9171 |
#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone |
| 9172 |
_ACEOF |
| 9173 |
|
| 9174 |
|
| 9175 |
|
| 9176 |
|
| 9177 |
|
| 9178 |
GNULIB_GETTIMEOFDAY=1 |
| 9179 |
|
| 9180 |
|
| 9181 |
|
| 9182 |
$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h |
| 9183 |
|
| 9184 |
|
| 9185 |
|
| 9186 |
|
| 9187 |
|
| 9188 |
|
| 9189 |
|
| 9190 |
|
| 9191 |
PRIPTR_PREFIX= |
| 9192 |
if test -n "$STDINT_H"; then |
| 9193 |
PRIPTR_PREFIX='"l"' |
| 9194 |
else |
| 9195 |
for glpfx in '' l ll I64; do |
| 9196 |
case $glpfx in |
| 9197 |
'') gltype1='int';; |
| 9198 |
l) gltype1='long int';; |
| 9199 |
ll) gltype1='long long int';; |
| 9200 |
I64) gltype1='__int64';; |
| 9201 |
esac |
| 9202 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9203 |
/* end confdefs.h. */ |
| 9204 |
#include <stdint.h> |
| 9205 |
extern intptr_t foo; |
| 9206 |
extern $gltype1 foo; |
| 9207 |
int |
| 9208 |
main () |
| 9209 |
{ |
| 9210 |
|
| 9211 |
; |
| 9212 |
return 0; |
| 9213 |
} |
| 9214 |
_ACEOF |
| 9215 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9216 |
PRIPTR_PREFIX='"'$glpfx'"' |
| 9217 |
fi |
| 9218 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9219 |
test -n "$PRIPTR_PREFIX" && break |
| 9220 |
done |
| 9221 |
fi |
| 9222 |
|
| 9223 |
|
| 9224 |
|
| 9225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 |
| 9226 |
$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; } |
| 9227 |
if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then : |
| 9228 |
$as_echo_n "(cached) " >&6 |
| 9229 |
else |
| 9230 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9231 |
/* end confdefs.h. */ |
| 9232 |
/* Work also in C++ mode. */ |
| 9233 |
#define __STDC_LIMIT_MACROS 1 |
| 9234 |
|
| 9235 |
/* Work if build is not clean. */ |
| 9236 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 9237 |
|
| 9238 |
#include <limits.h> |
| 9239 |
#if HAVE_STDINT_H |
| 9240 |
#include <stdint.h> |
| 9241 |
#endif |
| 9242 |
|
| 9243 |
#if defined INT32_MAX && defined INTMAX_MAX |
| 9244 |
#define CONDITION (INT32_MAX < INTMAX_MAX) |
| 9245 |
#elif HAVE_LONG_LONG_INT |
| 9246 |
#define CONDITION (sizeof (int) < sizeof (long long int)) |
| 9247 |
#else |
| 9248 |
#define CONDITION 0 |
| 9249 |
#endif |
| 9250 |
int test[CONDITION ? 1 : -1]; |
| 9251 |
int |
| 9252 |
main () |
| 9253 |
{ |
| 9254 |
|
| 9255 |
; |
| 9256 |
return 0; |
| 9257 |
} |
| 9258 |
_ACEOF |
| 9259 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9260 |
gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes |
| 9261 |
else |
| 9262 |
gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no |
| 9263 |
fi |
| 9264 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9265 |
fi |
| 9266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 |
| 9267 |
$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } |
| 9268 |
if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then |
| 9269 |
INT32_MAX_LT_INTMAX_MAX=1; |
| 9270 |
else |
| 9271 |
INT32_MAX_LT_INTMAX_MAX=0; |
| 9272 |
fi |
| 9273 |
|
| 9274 |
|
| 9275 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 9276 |
|
| 9277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 |
| 9278 |
$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; } |
| 9279 |
if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then : |
| 9280 |
$as_echo_n "(cached) " >&6 |
| 9281 |
else |
| 9282 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9283 |
/* end confdefs.h. */ |
| 9284 |
/* Work also in C++ mode. */ |
| 9285 |
#define __STDC_LIMIT_MACROS 1 |
| 9286 |
|
| 9287 |
/* Work if build is not clean. */ |
| 9288 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 9289 |
|
| 9290 |
#include <limits.h> |
| 9291 |
#if HAVE_STDINT_H |
| 9292 |
#include <stdint.h> |
| 9293 |
#endif |
| 9294 |
|
| 9295 |
#if defined INT64_MAX |
| 9296 |
#define CONDITION (INT64_MAX == LONG_MAX) |
| 9297 |
#elif HAVE_LONG_LONG_INT |
| 9298 |
#define CONDITION (sizeof (long long int) == sizeof (long int)) |
| 9299 |
#else |
| 9300 |
#define CONDITION 0 |
| 9301 |
#endif |
| 9302 |
int test[CONDITION ? 1 : -1]; |
| 9303 |
int |
| 9304 |
main () |
| 9305 |
{ |
| 9306 |
|
| 9307 |
; |
| 9308 |
return 0; |
| 9309 |
} |
| 9310 |
_ACEOF |
| 9311 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9312 |
gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes |
| 9313 |
else |
| 9314 |
gl_cv_test_INT64_MAX_EQ_LONG_MAX=no |
| 9315 |
fi |
| 9316 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9317 |
fi |
| 9318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 |
| 9319 |
$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } |
| 9320 |
if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then |
| 9321 |
INT64_MAX_EQ_LONG_MAX=1; |
| 9322 |
else |
| 9323 |
INT64_MAX_EQ_LONG_MAX=0; |
| 9324 |
fi |
| 9325 |
|
| 9326 |
|
| 9327 |
else |
| 9328 |
INT64_MAX_EQ_LONG_MAX=-1 |
| 9329 |
fi |
| 9330 |
|
| 9331 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 |
| 9332 |
$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } |
| 9333 |
if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then : |
| 9334 |
$as_echo_n "(cached) " >&6 |
| 9335 |
else |
| 9336 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9337 |
/* end confdefs.h. */ |
| 9338 |
/* Work also in C++ mode. */ |
| 9339 |
#define __STDC_LIMIT_MACROS 1 |
| 9340 |
|
| 9341 |
/* Work if build is not clean. */ |
| 9342 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 9343 |
|
| 9344 |
#include <limits.h> |
| 9345 |
#if HAVE_STDINT_H |
| 9346 |
#include <stdint.h> |
| 9347 |
#endif |
| 9348 |
|
| 9349 |
#if defined UINT32_MAX && defined UINTMAX_MAX |
| 9350 |
#define CONDITION (UINT32_MAX < UINTMAX_MAX) |
| 9351 |
#elif HAVE_LONG_LONG_INT |
| 9352 |
#define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) |
| 9353 |
#else |
| 9354 |
#define CONDITION 0 |
| 9355 |
#endif |
| 9356 |
int test[CONDITION ? 1 : -1]; |
| 9357 |
int |
| 9358 |
main () |
| 9359 |
{ |
| 9360 |
|
| 9361 |
; |
| 9362 |
return 0; |
| 9363 |
} |
| 9364 |
_ACEOF |
| 9365 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9366 |
gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes |
| 9367 |
else |
| 9368 |
gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no |
| 9369 |
fi |
| 9370 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9371 |
fi |
| 9372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 |
| 9373 |
$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } |
| 9374 |
if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then |
| 9375 |
UINT32_MAX_LT_UINTMAX_MAX=1; |
| 9376 |
else |
| 9377 |
UINT32_MAX_LT_UINTMAX_MAX=0; |
| 9378 |
fi |
| 9379 |
|
| 9380 |
|
| 9381 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 9382 |
|
| 9383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 |
| 9384 |
$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; } |
| 9385 |
if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then : |
| 9386 |
$as_echo_n "(cached) " >&6 |
| 9387 |
else |
| 9388 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9389 |
/* end confdefs.h. */ |
| 9390 |
/* Work also in C++ mode. */ |
| 9391 |
#define __STDC_LIMIT_MACROS 1 |
| 9392 |
|
| 9393 |
/* Work if build is not clean. */ |
| 9394 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H |
| 9395 |
|
| 9396 |
#include <limits.h> |
| 9397 |
#if HAVE_STDINT_H |
| 9398 |
#include <stdint.h> |
| 9399 |
#endif |
| 9400 |
|
| 9401 |
#if defined UINT64_MAX |
| 9402 |
#define CONDITION (UINT64_MAX == ULONG_MAX) |
| 9403 |
#elif HAVE_LONG_LONG_INT |
| 9404 |
#define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) |
| 9405 |
#else |
| 9406 |
#define CONDITION 0 |
| 9407 |
#endif |
| 9408 |
int test[CONDITION ? 1 : -1]; |
| 9409 |
int |
| 9410 |
main () |
| 9411 |
{ |
| 9412 |
|
| 9413 |
; |
| 9414 |
return 0; |
| 9415 |
} |
| 9416 |
_ACEOF |
| 9417 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9418 |
gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes |
| 9419 |
else |
| 9420 |
gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no |
| 9421 |
fi |
| 9422 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9423 |
fi |
| 9424 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 |
| 9425 |
$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } |
| 9426 |
if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then |
| 9427 |
UINT64_MAX_EQ_ULONG_MAX=1; |
| 9428 |
else |
| 9429 |
UINT64_MAX_EQ_ULONG_MAX=0; |
| 9430 |
fi |
| 9431 |
|
| 9432 |
|
| 9433 |
else |
| 9434 |
UINT64_MAX_EQ_ULONG_MAX=-1 |
| 9435 |
fi |
| 9436 |
|
| 9437 |
|
| 9438 |
|
| 9439 |
|
| 9440 |
|
| 9441 |
: |
| 9442 |
|
| 9443 |
|
| 9444 |
|
| 9445 |
|
| 9446 |
|
| 9447 |
|
| 9448 |
|
| 9449 |
|
| 9450 |
|
| 9451 |
|
| 9452 |
|
| 9453 |
|
| 9454 |
|
| 9455 |
: |
| 9456 |
|
| 9457 |
|
| 9458 |
|
| 9459 |
|
| 9460 |
|
| 9461 |
|
| 9462 |
|
| 9463 |
|
| 9464 |
if test $gl_cv_have_include_next = yes; then |
| 9465 |
gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 9466 |
else |
| 9467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 |
| 9468 |
$as_echo_n "checking absolute name of <inttypes.h>... " >&6; } |
| 9469 |
if test "${gl_cv_next_inttypes_h+set}" = set; then : |
| 9470 |
$as_echo_n "(cached) " >&6 |
| 9471 |
else |
| 9472 |
|
| 9473 |
if test $ac_cv_header_inttypes_h = yes; then |
| 9474 |
|
| 9475 |
|
| 9476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9477 |
/* end confdefs.h. */ |
| 9478 |
#include <inttypes.h> |
| 9479 |
|
| 9480 |
_ACEOF |
| 9481 |
case "$host_os" in |
| 9482 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 9483 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 9484 |
esac |
| 9485 |
gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 9486 |
sed -n '\#/inttypes.h#{ |
| 9487 |
s#.*"\(.*/inttypes.h\)".*#\1# |
| 9488 |
s#^/[^/]#//&# |
| 9489 |
p |
| 9490 |
q |
| 9491 |
}'`'"' |
| 9492 |
else |
| 9493 |
gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 9494 |
fi |
| 9495 |
|
| 9496 |
|
| 9497 |
fi |
| 9498 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 |
| 9499 |
$as_echo "$gl_cv_next_inttypes_h" >&6; } |
| 9500 |
fi |
| 9501 |
NEXT_INTTYPES_H=$gl_cv_next_inttypes_h |
| 9502 |
|
| 9503 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 9504 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 9505 |
gl_next_as_first_directive='<'inttypes.h'>' |
| 9506 |
else |
| 9507 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 9508 |
gl_next_as_first_directive=$gl_cv_next_inttypes_h |
| 9509 |
fi |
| 9510 |
NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive |
| 9511 |
|
| 9512 |
|
| 9513 |
|
| 9514 |
|
| 9515 |
|
| 9516 |
|
| 9517 |
|
| 9518 |
|
| 9519 |
$as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h |
| 9520 |
|
| 9521 |
|
| 9522 |
|
| 9523 |
|
| 9524 |
for gl_func in imaxabs imaxdiv strtoimax strtoumax; do |
| 9525 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 9526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 9527 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 9528 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 9529 |
$as_echo_n "(cached) " >&6 |
| 9530 |
else |
| 9531 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9532 |
/* end confdefs.h. */ |
| 9533 |
#include <inttypes.h> |
| 9534 |
|
| 9535 |
int |
| 9536 |
main () |
| 9537 |
{ |
| 9538 |
#undef $gl_func |
| 9539 |
(void) $gl_func; |
| 9540 |
; |
| 9541 |
return 0; |
| 9542 |
} |
| 9543 |
_ACEOF |
| 9544 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9545 |
eval "$as_gl_Symbol=yes" |
| 9546 |
else |
| 9547 |
eval "$as_gl_Symbol=no" |
| 9548 |
fi |
| 9549 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9550 |
fi |
| 9551 |
eval ac_res=\$$as_gl_Symbol |
| 9552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 9553 |
$as_echo "$ac_res" >&6; } |
| 9554 |
eval as_val=\$$as_gl_Symbol |
| 9555 |
if test "x$as_val" = x""yes; then : |
| 9556 |
cat >>confdefs.h <<_ACEOF |
| 9557 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 9558 |
_ACEOF |
| 9559 |
|
| 9560 |
eval ac_cv_have_decl_$gl_func=yes |
| 9561 |
fi |
| 9562 |
done |
| 9563 |
|
| 9564 |
|
| 9565 |
|
| 9566 |
|
| 9567 |
|
| 9568 |
: |
| 9569 |
|
| 9570 |
|
| 9571 |
|
| 9572 |
|
| 9573 |
|
| 9574 |
if test $ac_cv_func_lstat = yes; then |
| 9575 |
|
| 9576 |
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then |
| 9577 |
REPLACE_LSTAT=1 |
| 9578 |
fi |
| 9579 |
# Prerequisites of lib/lstat.c. |
| 9580 |
|
| 9581 |
else |
| 9582 |
HAVE_LSTAT=0 |
| 9583 |
fi |
| 9584 |
|
| 9585 |
|
| 9586 |
|
| 9587 |
|
| 9588 |
GNULIB_LSTAT=1 |
| 9589 |
|
| 9590 |
|
| 9591 |
|
| 9592 |
$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h |
| 9593 |
|
| 9594 |
|
| 9595 |
|
| 9596 |
|
| 9597 |
|
| 9598 |
|
| 9599 |
|
| 9600 |
|
| 9601 |
|
| 9602 |
|
| 9603 |
|
| 9604 |
|
| 9605 |
|
| 9606 |
|
| 9607 |
|
| 9608 |
|
| 9609 |
|
| 9610 |
for ac_func in mkdtemp |
| 9611 |
do : |
| 9612 |
ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" |
| 9613 |
if test "x$ac_cv_func_mkdtemp" = x""yes; then : |
| 9614 |
cat >>confdefs.h <<_ACEOF |
| 9615 |
#define HAVE_MKDTEMP 1 |
| 9616 |
_ACEOF |
| 9617 |
|
| 9618 |
else |
| 9619 |
|
| 9620 |
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 9621 |
|
| 9622 |
fi |
| 9623 |
done |
| 9624 |
|
| 9625 |
|
| 9626 |
if test $ac_cv_func_mkdtemp = no; then |
| 9627 |
HAVE_MKDTEMP=0 |
| 9628 |
: |
| 9629 |
|
| 9630 |
fi |
| 9631 |
|
| 9632 |
|
| 9633 |
|
| 9634 |
|
| 9635 |
GNULIB_MKDTEMP=1 |
| 9636 |
|
| 9637 |
|
| 9638 |
|
| 9639 |
$as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h |
| 9640 |
|
| 9641 |
|
| 9642 |
|
| 9643 |
|
| 9644 |
|
| 9645 |
|
| 9646 |
|
| 9647 |
|
| 9648 |
: |
| 9649 |
|
| 9650 |
|
| 9651 |
|
| 9652 |
|
| 9653 |
|
| 9654 |
if test $ac_cv_func_mkstemp = yes; then |
| 9655 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5 |
| 9656 |
$as_echo_n "checking for working mkstemp... " >&6; } |
| 9657 |
if test "${gl_cv_func_working_mkstemp+set}" = set; then : |
| 9658 |
$as_echo_n "(cached) " >&6 |
| 9659 |
else |
| 9660 |
|
| 9661 |
mkdir conftest.mkstemp |
| 9662 |
if test "$cross_compiling" = yes; then : |
| 9663 |
gl_cv_func_working_mkstemp="guessing no" |
| 9664 |
else |
| 9665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9666 |
/* end confdefs.h. */ |
| 9667 |
$ac_includes_default |
| 9668 |
int |
| 9669 |
main () |
| 9670 |
{ |
| 9671 |
int result = 0; |
| 9672 |
int i; |
| 9673 |
off_t large = (off_t) 4294967295u; |
| 9674 |
if (large < 0) |
| 9675 |
large = 2147483647; |
| 9676 |
umask (0); |
| 9677 |
for (i = 0; i < 70; i++) |
| 9678 |
{ |
| 9679 |
char templ[] = "conftest.mkstemp/coXXXXXX"; |
| 9680 |
int (*mkstemp_function) (char *) = mkstemp; |
| 9681 |
int fd = mkstemp_function (templ); |
| 9682 |
if (fd < 0) |
| 9683 |
result |= 1; |
| 9684 |
else |
| 9685 |
{ |
| 9686 |
struct stat st; |
| 9687 |
if (lseek (fd, large, SEEK_SET) != large) |
| 9688 |
result |= 2; |
| 9689 |
if (fstat (fd, &st) < 0) |
| 9690 |
result |= 4; |
| 9691 |
else if (st.st_mode & 0077) |
| 9692 |
result |= 8; |
| 9693 |
if (close (fd)) |
| 9694 |
result |= 16; |
| 9695 |
} |
| 9696 |
} |
| 9697 |
return result; |
| 9698 |
; |
| 9699 |
return 0; |
| 9700 |
} |
| 9701 |
_ACEOF |
| 9702 |
if ac_fn_c_try_run "$LINENO"; then : |
| 9703 |
gl_cv_func_working_mkstemp=yes |
| 9704 |
else |
| 9705 |
gl_cv_func_working_mkstemp=no |
| 9706 |
fi |
| 9707 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9708 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9709 |
fi |
| 9710 |
|
| 9711 |
rm -rf conftest.mkstemp |
| 9712 |
|
| 9713 |
fi |
| 9714 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5 |
| 9715 |
$as_echo "$gl_cv_func_working_mkstemp" >&6; } |
| 9716 |
if test "$gl_cv_func_working_mkstemp" != yes; then |
| 9717 |
REPLACE_MKSTEMP=1 |
| 9718 |
|
| 9719 |
|
| 9720 |
|
| 9721 |
|
| 9722 |
|
| 9723 |
|
| 9724 |
|
| 9725 |
|
| 9726 |
gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext" |
| 9727 |
|
| 9728 |
|
| 9729 |
|
| 9730 |
fi |
| 9731 |
else |
| 9732 |
HAVE_MKSTEMP=0 |
| 9733 |
|
| 9734 |
|
| 9735 |
|
| 9736 |
|
| 9737 |
|
| 9738 |
|
| 9739 |
|
| 9740 |
|
| 9741 |
gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext" |
| 9742 |
|
| 9743 |
|
| 9744 |
|
| 9745 |
fi |
| 9746 |
|
| 9747 |
|
| 9748 |
|
| 9749 |
|
| 9750 |
GNULIB_MKSTEMP=1 |
| 9751 |
|
| 9752 |
|
| 9753 |
|
| 9754 |
$as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h |
| 9755 |
|
| 9756 |
|
| 9757 |
|
| 9758 |
|
| 9759 |
|
| 9760 |
|
| 9761 |
: |
| 9762 |
|
| 9763 |
|
| 9764 |
|
| 9765 |
|
| 9766 |
|
| 9767 |
|
| 9768 |
: |
| 9769 |
|
| 9770 |
|
| 9771 |
|
| 9772 |
|
| 9773 |
|
| 9774 |
|
| 9775 |
|
| 9776 |
|
| 9777 |
|
| 9778 |
: |
| 9779 |
|
| 9780 |
|
| 9781 |
|
| 9782 |
|
| 9783 |
|
| 9784 |
if test $ac_cv_func_readlink = no; then |
| 9785 |
HAVE_READLINK=0 |
| 9786 |
|
| 9787 |
|
| 9788 |
|
| 9789 |
|
| 9790 |
|
| 9791 |
|
| 9792 |
|
| 9793 |
|
| 9794 |
gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" |
| 9795 |
|
| 9796 |
|
| 9797 |
: |
| 9798 |
|
| 9799 |
else |
| 9800 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 |
| 9801 |
$as_echo_n "checking whether readlink signature is correct... " >&6; } |
| 9802 |
if test "${gl_cv_decl_readlink_works+set}" = set; then : |
| 9803 |
$as_echo_n "(cached) " >&6 |
| 9804 |
else |
| 9805 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9806 |
/* end confdefs.h. */ |
| 9807 |
#include <unistd.h> |
| 9808 |
/* Cause compilation failure if original declaration has wrong type. */ |
| 9809 |
ssize_t readlink (const char *, char *, size_t); |
| 9810 |
int |
| 9811 |
main () |
| 9812 |
{ |
| 9813 |
|
| 9814 |
; |
| 9815 |
return 0; |
| 9816 |
} |
| 9817 |
_ACEOF |
| 9818 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9819 |
gl_cv_decl_readlink_works=yes |
| 9820 |
else |
| 9821 |
gl_cv_decl_readlink_works=no |
| 9822 |
fi |
| 9823 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9824 |
fi |
| 9825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 |
| 9826 |
$as_echo "$gl_cv_decl_readlink_works" >&6; } |
| 9827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 |
| 9828 |
$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } |
| 9829 |
if test "${gl_cv_func_readlink_works+set}" = set; then : |
| 9830 |
$as_echo_n "(cached) " >&6 |
| 9831 |
else |
| 9832 |
# We have readlink, so assume ln -s works. |
| 9833 |
ln -s conftest.no-such conftest.link |
| 9834 |
ln -s conftest.link conftest.lnk2 |
| 9835 |
if test "$cross_compiling" = yes; then : |
| 9836 |
gl_cv_func_readlink_works="guessing no" |
| 9837 |
else |
| 9838 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9839 |
/* end confdefs.h. */ |
| 9840 |
#include <unistd.h> |
| 9841 |
|
| 9842 |
int |
| 9843 |
main () |
| 9844 |
{ |
| 9845 |
char buf[20]; |
| 9846 |
return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; |
| 9847 |
; |
| 9848 |
return 0; |
| 9849 |
} |
| 9850 |
_ACEOF |
| 9851 |
if ac_fn_c_try_run "$LINENO"; then : |
| 9852 |
gl_cv_func_readlink_works=yes |
| 9853 |
else |
| 9854 |
gl_cv_func_readlink_works=no |
| 9855 |
fi |
| 9856 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9857 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9858 |
fi |
| 9859 |
|
| 9860 |
rm -f conftest.link conftest.lnk2 |
| 9861 |
fi |
| 9862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 |
| 9863 |
$as_echo "$gl_cv_func_readlink_works" >&6; } |
| 9864 |
if test "$gl_cv_func_readlink_works" != yes; then |
| 9865 |
|
| 9866 |
$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 9867 |
|
| 9868 |
REPLACE_READLINK=1 |
| 9869 |
|
| 9870 |
|
| 9871 |
|
| 9872 |
|
| 9873 |
|
| 9874 |
|
| 9875 |
|
| 9876 |
|
| 9877 |
gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" |
| 9878 |
|
| 9879 |
elif test "$gl_cv_decl_readlink_works" != yes; then |
| 9880 |
REPLACE_READLINK=1 |
| 9881 |
|
| 9882 |
|
| 9883 |
|
| 9884 |
|
| 9885 |
|
| 9886 |
|
| 9887 |
|
| 9888 |
|
| 9889 |
gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" |
| 9890 |
|
| 9891 |
fi |
| 9892 |
fi |
| 9893 |
|
| 9894 |
|
| 9895 |
|
| 9896 |
|
| 9897 |
GNULIB_READLINK=1 |
| 9898 |
|
| 9899 |
|
| 9900 |
|
| 9901 |
$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h |
| 9902 |
|
| 9903 |
|
| 9904 |
|
| 9905 |
|
| 9906 |
|
| 9907 |
|
| 9908 |
|
| 9909 |
|
| 9910 |
|
| 9911 |
|
| 9912 |
|
| 9913 |
|
| 9914 |
|
| 9915 |
if test $gl_cv_have_include_next = yes; then |
| 9916 |
gl_cv_next_signal_h='<'signal.h'>' |
| 9917 |
else |
| 9918 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 |
| 9919 |
$as_echo_n "checking absolute name of <signal.h>... " >&6; } |
| 9920 |
if test "${gl_cv_next_signal_h+set}" = set; then : |
| 9921 |
$as_echo_n "(cached) " >&6 |
| 9922 |
else |
| 9923 |
|
| 9924 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9925 |
/* end confdefs.h. */ |
| 9926 |
#include <signal.h> |
| 9927 |
|
| 9928 |
_ACEOF |
| 9929 |
case "$host_os" in |
| 9930 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 9931 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 9932 |
esac |
| 9933 |
gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 9934 |
sed -n '\#/signal.h#{ |
| 9935 |
s#.*"\(.*/signal.h\)".*#\1# |
| 9936 |
s#^/[^/]#//&# |
| 9937 |
p |
| 9938 |
q |
| 9939 |
}'`'"' |
| 9940 |
|
| 9941 |
|
| 9942 |
fi |
| 9943 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 |
| 9944 |
$as_echo "$gl_cv_next_signal_h" >&6; } |
| 9945 |
fi |
| 9946 |
NEXT_SIGNAL_H=$gl_cv_next_signal_h |
| 9947 |
|
| 9948 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 9949 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 9950 |
gl_next_as_first_directive='<'signal.h'>' |
| 9951 |
else |
| 9952 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 9953 |
gl_next_as_first_directive=$gl_cv_next_signal_h |
| 9954 |
fi |
| 9955 |
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive |
| 9956 |
|
| 9957 |
|
| 9958 |
|
| 9959 |
|
| 9960 |
|
| 9961 |
# AIX declares sig_atomic_t to already include volatile, and C89 compilers |
| 9962 |
# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. |
| 9963 |
ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " |
| 9964 |
#include <signal.h> |
| 9965 |
|
| 9966 |
" |
| 9967 |
if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : |
| 9968 |
|
| 9969 |
else |
| 9970 |
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 |
| 9971 |
fi |
| 9972 |
|
| 9973 |
|
| 9974 |
|
| 9975 |
|
| 9976 |
|
| 9977 |
ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " |
| 9978 |
#include <signal.h> |
| 9979 |
|
| 9980 |
" |
| 9981 |
if test "x$ac_cv_type_sighandler_t" = x""yes; then : |
| 9982 |
|
| 9983 |
else |
| 9984 |
HAVE_SIGHANDLER_T=0 |
| 9985 |
fi |
| 9986 |
|
| 9987 |
|
| 9988 |
|
| 9989 |
for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do |
| 9990 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 9991 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 9992 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 9993 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 9994 |
$as_echo_n "(cached) " >&6 |
| 9995 |
else |
| 9996 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9997 |
/* end confdefs.h. */ |
| 9998 |
#include <signal.h> |
| 9999 |
|
| 10000 |
int |
| 10001 |
main () |
| 10002 |
{ |
| 10003 |
#undef $gl_func |
| 10004 |
(void) $gl_func; |
| 10005 |
; |
| 10006 |
return 0; |
| 10007 |
} |
| 10008 |
_ACEOF |
| 10009 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10010 |
eval "$as_gl_Symbol=yes" |
| 10011 |
else |
| 10012 |
eval "$as_gl_Symbol=no" |
| 10013 |
fi |
| 10014 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10015 |
fi |
| 10016 |
eval ac_res=\$$as_gl_Symbol |
| 10017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10018 |
$as_echo "$ac_res" >&6; } |
| 10019 |
eval as_val=\$$as_gl_Symbol |
| 10020 |
if test "x$as_val" = x""yes; then : |
| 10021 |
cat >>confdefs.h <<_ACEOF |
| 10022 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 10023 |
_ACEOF |
| 10024 |
|
| 10025 |
eval ac_cv_have_decl_$gl_func=yes |
| 10026 |
fi |
| 10027 |
done |
| 10028 |
|
| 10029 |
|
| 10030 |
|
| 10031 |
|
| 10032 |
|
| 10033 |
: |
| 10034 |
|
| 10035 |
|
| 10036 |
|
| 10037 |
|
| 10038 |
|
| 10039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 |
| 10040 |
$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } |
| 10041 |
if test "${gl_cv_func_stat_dir_slash+set}" = set; then : |
| 10042 |
$as_echo_n "(cached) " >&6 |
| 10043 |
else |
| 10044 |
if test "$cross_compiling" = yes; then : |
| 10045 |
case $host_os in |
| 10046 |
mingw*) gl_cv_func_stat_dir_slash="guessing no";; |
| 10047 |
*) gl_cv_func_stat_dir_slash="guessing yes";; |
| 10048 |
esac |
| 10049 |
else |
| 10050 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10051 |
/* end confdefs.h. */ |
| 10052 |
#include <sys/stat.h> |
| 10053 |
|
| 10054 |
int |
| 10055 |
main () |
| 10056 |
{ |
| 10057 |
struct stat st; return stat (".", &st) != stat ("./", &st); |
| 10058 |
; |
| 10059 |
return 0; |
| 10060 |
} |
| 10061 |
_ACEOF |
| 10062 |
if ac_fn_c_try_run "$LINENO"; then : |
| 10063 |
gl_cv_func_stat_dir_slash=yes |
| 10064 |
else |
| 10065 |
gl_cv_func_stat_dir_slash=no |
| 10066 |
fi |
| 10067 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10068 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10069 |
fi |
| 10070 |
|
| 10071 |
fi |
| 10072 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 |
| 10073 |
$as_echo "$gl_cv_func_stat_dir_slash" >&6; } |
| 10074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 |
| 10075 |
$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } |
| 10076 |
if test "${gl_cv_func_stat_file_slash+set}" = set; then : |
| 10077 |
$as_echo_n "(cached) " >&6 |
| 10078 |
else |
| 10079 |
touch conftest.tmp |
| 10080 |
# Assume that if we have lstat, we can also check symlinks. |
| 10081 |
if test $ac_cv_func_lstat = yes; then |
| 10082 |
ln -s conftest.tmp conftest.lnk |
| 10083 |
fi |
| 10084 |
if test "$cross_compiling" = yes; then : |
| 10085 |
gl_cv_func_stat_file_slash="guessing no" |
| 10086 |
else |
| 10087 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10088 |
/* end confdefs.h. */ |
| 10089 |
#include <sys/stat.h> |
| 10090 |
|
| 10091 |
int |
| 10092 |
main () |
| 10093 |
{ |
| 10094 |
int result = 0; |
| 10095 |
struct stat st; |
| 10096 |
if (!stat ("conftest.tmp/", &st)) |
| 10097 |
result |= 1; |
| 10098 |
#if HAVE_LSTAT |
| 10099 |
if (!stat ("conftest.lnk/", &st)) |
| 10100 |
result |= 2; |
| 10101 |
#endif |
| 10102 |
return result; |
| 10103 |
|
| 10104 |
; |
| 10105 |
return 0; |
| 10106 |
} |
| 10107 |
_ACEOF |
| 10108 |
if ac_fn_c_try_run "$LINENO"; then : |
| 10109 |
gl_cv_func_stat_file_slash=yes |
| 10110 |
else |
| 10111 |
gl_cv_func_stat_file_slash=no |
| 10112 |
fi |
| 10113 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10114 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10115 |
fi |
| 10116 |
|
| 10117 |
rm -f conftest.tmp conftest.lnk |
| 10118 |
fi |
| 10119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 |
| 10120 |
$as_echo "$gl_cv_func_stat_file_slash" >&6; } |
| 10121 |
case $gl_cv_func_stat_dir_slash in |
| 10122 |
*no) REPLACE_STAT=1 |
| 10123 |
|
| 10124 |
$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h |
| 10125 |
;; |
| 10126 |
esac |
| 10127 |
case $gl_cv_func_stat_file_slash in |
| 10128 |
*no) REPLACE_STAT=1 |
| 10129 |
|
| 10130 |
$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h |
| 10131 |
;; |
| 10132 |
esac |
| 10133 |
if test $REPLACE_STAT = 1; then |
| 10134 |
|
| 10135 |
|
| 10136 |
|
| 10137 |
|
| 10138 |
|
| 10139 |
|
| 10140 |
|
| 10141 |
|
| 10142 |
gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" |
| 10143 |
|
| 10144 |
|
| 10145 |
fi |
| 10146 |
|
| 10147 |
|
| 10148 |
|
| 10149 |
|
| 10150 |
GNULIB_STAT=1 |
| 10151 |
|
| 10152 |
|
| 10153 |
|
| 10154 |
$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h |
| 10155 |
|
| 10156 |
|
| 10157 |
|
| 10158 |
|
| 10159 |
|
| 10160 |
|
| 10161 |
# Define two additional variables used in the Makefile substitution. |
| 10162 |
|
| 10163 |
if test "$ac_cv_header_stdbool_h" = yes; then |
| 10164 |
STDBOOL_H='' |
| 10165 |
else |
| 10166 |
STDBOOL_H='stdbool.h' |
| 10167 |
fi |
| 10168 |
|
| 10169 |
if test -n "$STDBOOL_H"; then |
| 10170 |
GL_GENERATE_STDBOOL_H_TRUE= |
| 10171 |
GL_GENERATE_STDBOOL_H_FALSE='#' |
| 10172 |
else |
| 10173 |
GL_GENERATE_STDBOOL_H_TRUE='#' |
| 10174 |
GL_GENERATE_STDBOOL_H_FALSE= |
| 10175 |
fi |
| 10176 |
|
| 10177 |
|
| 10178 |
if test "$ac_cv_type__Bool" = yes; then |
| 10179 |
HAVE__BOOL=1 |
| 10180 |
else |
| 10181 |
HAVE__BOOL=0 |
| 10182 |
fi |
| 10183 |
|
| 10184 |
|
| 10185 |
|
| 10186 |
|
| 10187 |
|
| 10188 |
STDDEF_H= |
| 10189 |
if test $gt_cv_c_wchar_t = no; then |
| 10190 |
HAVE_WCHAR_T=0 |
| 10191 |
STDDEF_H=stddef.h |
| 10192 |
fi |
| 10193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 |
| 10194 |
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } |
| 10195 |
if test "${gl_cv_decl_null_works+set}" = set; then : |
| 10196 |
$as_echo_n "(cached) " >&6 |
| 10197 |
else |
| 10198 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10199 |
/* end confdefs.h. */ |
| 10200 |
#include <stddef.h> |
| 10201 |
int test[2 * (sizeof NULL == sizeof (void *)) -1]; |
| 10202 |
|
| 10203 |
int |
| 10204 |
main () |
| 10205 |
{ |
| 10206 |
|
| 10207 |
; |
| 10208 |
return 0; |
| 10209 |
} |
| 10210 |
_ACEOF |
| 10211 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10212 |
gl_cv_decl_null_works=yes |
| 10213 |
else |
| 10214 |
gl_cv_decl_null_works=no |
| 10215 |
fi |
| 10216 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10217 |
fi |
| 10218 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
| 10219 |
$as_echo "$gl_cv_decl_null_works" >&6; } |
| 10220 |
if test $gl_cv_decl_null_works = no; then |
| 10221 |
REPLACE_NULL=1 |
| 10222 |
STDDEF_H=stddef.h |
| 10223 |
fi |
| 10224 |
|
| 10225 |
if test -n "$STDDEF_H"; then |
| 10226 |
GL_GENERATE_STDDEF_H_TRUE= |
| 10227 |
GL_GENERATE_STDDEF_H_FALSE='#' |
| 10228 |
else |
| 10229 |
GL_GENERATE_STDDEF_H_TRUE='#' |
| 10230 |
GL_GENERATE_STDDEF_H_FALSE= |
| 10231 |
fi |
| 10232 |
|
| 10233 |
if test -n "$STDDEF_H"; then |
| 10234 |
|
| 10235 |
|
| 10236 |
|
| 10237 |
|
| 10238 |
|
| 10239 |
|
| 10240 |
|
| 10241 |
|
| 10242 |
if test $gl_cv_have_include_next = yes; then |
| 10243 |
gl_cv_next_stddef_h='<'stddef.h'>' |
| 10244 |
else |
| 10245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 |
| 10246 |
$as_echo_n "checking absolute name of <stddef.h>... " >&6; } |
| 10247 |
if test "${gl_cv_next_stddef_h+set}" = set; then : |
| 10248 |
$as_echo_n "(cached) " >&6 |
| 10249 |
else |
| 10250 |
|
| 10251 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10252 |
/* end confdefs.h. */ |
| 10253 |
#include <stddef.h> |
| 10254 |
|
| 10255 |
_ACEOF |
| 10256 |
case "$host_os" in |
| 10257 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10258 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 10259 |
esac |
| 10260 |
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10261 |
sed -n '\#/stddef.h#{ |
| 10262 |
s#.*"\(.*/stddef.h\)".*#\1# |
| 10263 |
s#^/[^/]#//&# |
| 10264 |
p |
| 10265 |
q |
| 10266 |
}'`'"' |
| 10267 |
|
| 10268 |
|
| 10269 |
fi |
| 10270 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
| 10271 |
$as_echo "$gl_cv_next_stddef_h" >&6; } |
| 10272 |
fi |
| 10273 |
NEXT_STDDEF_H=$gl_cv_next_stddef_h |
| 10274 |
|
| 10275 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 10276 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10277 |
gl_next_as_first_directive='<'stddef.h'>' |
| 10278 |
else |
| 10279 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10280 |
gl_next_as_first_directive=$gl_cv_next_stddef_h |
| 10281 |
fi |
| 10282 |
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive |
| 10283 |
|
| 10284 |
|
| 10285 |
|
| 10286 |
|
| 10287 |
fi |
| 10288 |
|
| 10289 |
|
| 10290 |
|
| 10291 |
|
| 10292 |
if test $ac_cv_type_long_long_int = yes; then |
| 10293 |
HAVE_LONG_LONG_INT=1 |
| 10294 |
else |
| 10295 |
HAVE_LONG_LONG_INT=0 |
| 10296 |
fi |
| 10297 |
|
| 10298 |
|
| 10299 |
if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 10300 |
HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 10301 |
else |
| 10302 |
HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 10303 |
fi |
| 10304 |
|
| 10305 |
|
| 10306 |
|
| 10307 |
: |
| 10308 |
|
| 10309 |
|
| 10310 |
|
| 10311 |
|
| 10312 |
|
| 10313 |
if test $ac_cv_header_wchar_h = yes; then |
| 10314 |
HAVE_WCHAR_H=1 |
| 10315 |
else |
| 10316 |
HAVE_WCHAR_H=0 |
| 10317 |
fi |
| 10318 |
|
| 10319 |
|
| 10320 |
if test $ac_cv_header_inttypes_h = yes; then |
| 10321 |
HAVE_INTTYPES_H=1 |
| 10322 |
else |
| 10323 |
HAVE_INTTYPES_H=0 |
| 10324 |
fi |
| 10325 |
|
| 10326 |
|
| 10327 |
if test $ac_cv_header_sys_types_h = yes; then |
| 10328 |
HAVE_SYS_TYPES_H=1 |
| 10329 |
else |
| 10330 |
HAVE_SYS_TYPES_H=0 |
| 10331 |
fi |
| 10332 |
|
| 10333 |
|
| 10334 |
|
| 10335 |
|
| 10336 |
|
| 10337 |
|
| 10338 |
|
| 10339 |
|
| 10340 |
: |
| 10341 |
|
| 10342 |
|
| 10343 |
|
| 10344 |
|
| 10345 |
|
| 10346 |
|
| 10347 |
|
| 10348 |
|
| 10349 |
if test $gl_cv_have_include_next = yes; then |
| 10350 |
gl_cv_next_stdint_h='<'stdint.h'>' |
| 10351 |
else |
| 10352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 |
| 10353 |
$as_echo_n "checking absolute name of <stdint.h>... " >&6; } |
| 10354 |
if test "${gl_cv_next_stdint_h+set}" = set; then : |
| 10355 |
$as_echo_n "(cached) " >&6 |
| 10356 |
else |
| 10357 |
|
| 10358 |
if test $ac_cv_header_stdint_h = yes; then |
| 10359 |
|
| 10360 |
|
| 10361 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10362 |
/* end confdefs.h. */ |
| 10363 |
#include <stdint.h> |
| 10364 |
|
| 10365 |
_ACEOF |
| 10366 |
case "$host_os" in |
| 10367 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10368 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 10369 |
esac |
| 10370 |
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10371 |
sed -n '\#/stdint.h#{ |
| 10372 |
s#.*"\(.*/stdint.h\)".*#\1# |
| 10373 |
s#^/[^/]#//&# |
| 10374 |
p |
| 10375 |
q |
| 10376 |
}'`'"' |
| 10377 |
else |
| 10378 |
gl_cv_next_stdint_h='<'stdint.h'>' |
| 10379 |
fi |
| 10380 |
|
| 10381 |
|
| 10382 |
fi |
| 10383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
| 10384 |
$as_echo "$gl_cv_next_stdint_h" >&6; } |
| 10385 |
fi |
| 10386 |
NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 10387 |
|
| 10388 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 10389 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10390 |
gl_next_as_first_directive='<'stdint.h'>' |
| 10391 |
else |
| 10392 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10393 |
gl_next_as_first_directive=$gl_cv_next_stdint_h |
| 10394 |
fi |
| 10395 |
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
| 10396 |
|
| 10397 |
|
| 10398 |
|
| 10399 |
|
| 10400 |
if test $ac_cv_header_stdint_h = yes; then |
| 10401 |
HAVE_STDINT_H=1 |
| 10402 |
else |
| 10403 |
HAVE_STDINT_H=0 |
| 10404 |
fi |
| 10405 |
|
| 10406 |
|
| 10407 |
if test $ac_cv_header_stdint_h = yes; then |
| 10408 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 |
| 10409 |
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } |
| 10410 |
if test "${gl_cv_header_working_stdint_h+set}" = set; then : |
| 10411 |
$as_echo_n "(cached) " >&6 |
| 10412 |
else |
| 10413 |
gl_cv_header_working_stdint_h=no |
| 10414 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10415 |
/* end confdefs.h. */ |
| 10416 |
|
| 10417 |
|
| 10418 |
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ |
| 10419 |
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ |
| 10420 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 10421 |
#include <stdint.h> |
| 10422 |
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 10423 |
#if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 10424 |
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 10425 |
#endif |
| 10426 |
|
| 10427 |
|
| 10428 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10429 |
included before <wchar.h>. */ |
| 10430 |
#include <stddef.h> |
| 10431 |
#include <signal.h> |
| 10432 |
#if HAVE_WCHAR_H |
| 10433 |
# include <stdio.h> |
| 10434 |
# include <time.h> |
| 10435 |
# include <wchar.h> |
| 10436 |
#endif |
| 10437 |
|
| 10438 |
|
| 10439 |
#ifdef INT8_MAX |
| 10440 |
int8_t a1 = INT8_MAX; |
| 10441 |
int8_t a1min = INT8_MIN; |
| 10442 |
#endif |
| 10443 |
#ifdef INT16_MAX |
| 10444 |
int16_t a2 = INT16_MAX; |
| 10445 |
int16_t a2min = INT16_MIN; |
| 10446 |
#endif |
| 10447 |
#ifdef INT32_MAX |
| 10448 |
int32_t a3 = INT32_MAX; |
| 10449 |
int32_t a3min = INT32_MIN; |
| 10450 |
#endif |
| 10451 |
#ifdef INT64_MAX |
| 10452 |
int64_t a4 = INT64_MAX; |
| 10453 |
int64_t a4min = INT64_MIN; |
| 10454 |
#endif |
| 10455 |
#ifdef UINT8_MAX |
| 10456 |
uint8_t b1 = UINT8_MAX; |
| 10457 |
#else |
| 10458 |
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 10459 |
#endif |
| 10460 |
#ifdef UINT16_MAX |
| 10461 |
uint16_t b2 = UINT16_MAX; |
| 10462 |
#endif |
| 10463 |
#ifdef UINT32_MAX |
| 10464 |
uint32_t b3 = UINT32_MAX; |
| 10465 |
#endif |
| 10466 |
#ifdef UINT64_MAX |
| 10467 |
uint64_t b4 = UINT64_MAX; |
| 10468 |
#endif |
| 10469 |
int_least8_t c1 = INT8_C (0x7f); |
| 10470 |
int_least8_t c1max = INT_LEAST8_MAX; |
| 10471 |
int_least8_t c1min = INT_LEAST8_MIN; |
| 10472 |
int_least16_t c2 = INT16_C (0x7fff); |
| 10473 |
int_least16_t c2max = INT_LEAST16_MAX; |
| 10474 |
int_least16_t c2min = INT_LEAST16_MIN; |
| 10475 |
int_least32_t c3 = INT32_C (0x7fffffff); |
| 10476 |
int_least32_t c3max = INT_LEAST32_MAX; |
| 10477 |
int_least32_t c3min = INT_LEAST32_MIN; |
| 10478 |
int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 10479 |
int_least64_t c4max = INT_LEAST64_MAX; |
| 10480 |
int_least64_t c4min = INT_LEAST64_MIN; |
| 10481 |
uint_least8_t d1 = UINT8_C (0xff); |
| 10482 |
uint_least8_t d1max = UINT_LEAST8_MAX; |
| 10483 |
uint_least16_t d2 = UINT16_C (0xffff); |
| 10484 |
uint_least16_t d2max = UINT_LEAST16_MAX; |
| 10485 |
uint_least32_t d3 = UINT32_C (0xffffffff); |
| 10486 |
uint_least32_t d3max = UINT_LEAST32_MAX; |
| 10487 |
uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 10488 |
uint_least64_t d4max = UINT_LEAST64_MAX; |
| 10489 |
int_fast8_t e1 = INT_FAST8_MAX; |
| 10490 |
int_fast8_t e1min = INT_FAST8_MIN; |
| 10491 |
int_fast16_t e2 = INT_FAST16_MAX; |
| 10492 |
int_fast16_t e2min = INT_FAST16_MIN; |
| 10493 |
int_fast32_t e3 = INT_FAST32_MAX; |
| 10494 |
int_fast32_t e3min = INT_FAST32_MIN; |
| 10495 |
int_fast64_t e4 = INT_FAST64_MAX; |
| 10496 |
int_fast64_t e4min = INT_FAST64_MIN; |
| 10497 |
uint_fast8_t f1 = UINT_FAST8_MAX; |
| 10498 |
uint_fast16_t f2 = UINT_FAST16_MAX; |
| 10499 |
uint_fast32_t f3 = UINT_FAST32_MAX; |
| 10500 |
uint_fast64_t f4 = UINT_FAST64_MAX; |
| 10501 |
#ifdef INTPTR_MAX |
| 10502 |
intptr_t g = INTPTR_MAX; |
| 10503 |
intptr_t gmin = INTPTR_MIN; |
| 10504 |
#endif |
| 10505 |
#ifdef UINTPTR_MAX |
| 10506 |
uintptr_t h = UINTPTR_MAX; |
| 10507 |
#endif |
| 10508 |
intmax_t i = INTMAX_MAX; |
| 10509 |
uintmax_t j = UINTMAX_MAX; |
| 10510 |
|
| 10511 |
#include <limits.h> /* for CHAR_BIT */ |
| 10512 |
#define TYPE_MINIMUM(t) \ |
| 10513 |
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
| 10514 |
#define TYPE_MAXIMUM(t) \ |
| 10515 |
((t) ((t) 0 < (t) -1 \ |
| 10516 |
? (t) -1 \ |
| 10517 |
: ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
| 10518 |
struct s { |
| 10519 |
int check_PTRDIFF: |
| 10520 |
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 10521 |
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 10522 |
? 1 : -1; |
| 10523 |
/* Detect bug in FreeBSD 6.0 / ia64. */ |
| 10524 |
int check_SIG_ATOMIC: |
| 10525 |
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 10526 |
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 10527 |
? 1 : -1; |
| 10528 |
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 10529 |
int check_WCHAR: |
| 10530 |
WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 10531 |
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 10532 |
? 1 : -1; |
| 10533 |
/* Detect bug in mingw. */ |
| 10534 |
int check_WINT: |
| 10535 |
WINT_MIN == TYPE_MINIMUM (wint_t) |
| 10536 |
&& WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 10537 |
? 1 : -1; |
| 10538 |
|
| 10539 |
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 10540 |
int check_UINT8_C: |
| 10541 |
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 10542 |
int check_UINT16_C: |
| 10543 |
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 10544 |
|
| 10545 |
/* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 10546 |
#ifdef UINT8_MAX |
| 10547 |
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 10548 |
#endif |
| 10549 |
#ifdef UINT16_MAX |
| 10550 |
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 10551 |
#endif |
| 10552 |
#ifdef UINT32_MAX |
| 10553 |
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 10554 |
#endif |
| 10555 |
#ifdef UINT64_MAX |
| 10556 |
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 10557 |
#endif |
| 10558 |
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 10559 |
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 10560 |
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 10561 |
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 10562 |
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 10563 |
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 10564 |
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 10565 |
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 10566 |
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 10567 |
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 10568 |
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 10569 |
}; |
| 10570 |
|
| 10571 |
int |
| 10572 |
main () |
| 10573 |
{ |
| 10574 |
|
| 10575 |
; |
| 10576 |
return 0; |
| 10577 |
} |
| 10578 |
_ACEOF |
| 10579 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10580 |
if test "$cross_compiling" = yes; then : |
| 10581 |
gl_cv_header_working_stdint_h=yes |
| 10582 |
|
| 10583 |
else |
| 10584 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10585 |
/* end confdefs.h. */ |
| 10586 |
|
| 10587 |
|
| 10588 |
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ |
| 10589 |
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ |
| 10590 |
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 10591 |
#include <stdint.h> |
| 10592 |
|
| 10593 |
|
| 10594 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10595 |
included before <wchar.h>. */ |
| 10596 |
#include <stddef.h> |
| 10597 |
#include <signal.h> |
| 10598 |
#if HAVE_WCHAR_H |
| 10599 |
# include <stdio.h> |
| 10600 |
# include <time.h> |
| 10601 |
# include <wchar.h> |
| 10602 |
#endif |
| 10603 |
|
| 10604 |
|
| 10605 |
#include <stdio.h> |
| 10606 |
#include <string.h> |
| 10607 |
#define MVAL(macro) MVAL1(macro) |
| 10608 |
#define MVAL1(expression) #expression |
| 10609 |
static const char *macro_values[] = |
| 10610 |
{ |
| 10611 |
#ifdef INT8_MAX |
| 10612 |
MVAL (INT8_MAX), |
| 10613 |
#endif |
| 10614 |
#ifdef INT16_MAX |
| 10615 |
MVAL (INT16_MAX), |
| 10616 |
#endif |
| 10617 |
#ifdef INT32_MAX |
| 10618 |
MVAL (INT32_MAX), |
| 10619 |
#endif |
| 10620 |
#ifdef INT64_MAX |
| 10621 |
MVAL (INT64_MAX), |
| 10622 |
#endif |
| 10623 |
#ifdef UINT8_MAX |
| 10624 |
MVAL (UINT8_MAX), |
| 10625 |
#endif |
| 10626 |
#ifdef UINT16_MAX |
| 10627 |
MVAL (UINT16_MAX), |
| 10628 |
#endif |
| 10629 |
#ifdef UINT32_MAX |
| 10630 |
MVAL (UINT32_MAX), |
| 10631 |
#endif |
| 10632 |
#ifdef UINT64_MAX |
| 10633 |
MVAL (UINT64_MAX), |
| 10634 |
#endif |
| 10635 |
NULL |
| 10636 |
}; |
| 10637 |
|
| 10638 |
int |
| 10639 |
main () |
| 10640 |
{ |
| 10641 |
|
| 10642 |
const char **mv; |
| 10643 |
for (mv = macro_values; *mv != NULL; mv++) |
| 10644 |
{ |
| 10645 |
const char *value = *mv; |
| 10646 |
/* Test whether it looks like a cast expression. */ |
| 10647 |
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
| 10648 |
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
| 10649 |
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
| 10650 |
|| strncmp (value, "((int)"/*)*/, 6) == 0 |
| 10651 |
|| strncmp (value, "((signed short)"/*)*/, 15) == 0 |
| 10652 |
|| strncmp (value, "((signed char)"/*)*/, 14) == 0) |
| 10653 |
return mv - macro_values + 1; |
| 10654 |
} |
| 10655 |
return 0; |
| 10656 |
|
| 10657 |
; |
| 10658 |
return 0; |
| 10659 |
} |
| 10660 |
_ACEOF |
| 10661 |
if ac_fn_c_try_run "$LINENO"; then : |
| 10662 |
gl_cv_header_working_stdint_h=yes |
| 10663 |
fi |
| 10664 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10665 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10666 |
fi |
| 10667 |
|
| 10668 |
|
| 10669 |
fi |
| 10670 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10671 |
|
| 10672 |
fi |
| 10673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 |
| 10674 |
$as_echo "$gl_cv_header_working_stdint_h" >&6; } |
| 10675 |
fi |
| 10676 |
if test "$gl_cv_header_working_stdint_h" = yes; then |
| 10677 |
STDINT_H= |
| 10678 |
else |
| 10679 |
for ac_header in sys/inttypes.h sys/bitypes.h |
| 10680 |
do : |
| 10681 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10682 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10683 |
eval as_val=\$$as_ac_Header |
| 10684 |
if test "x$as_val" = x""yes; then : |
| 10685 |
cat >>confdefs.h <<_ACEOF |
| 10686 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10687 |
_ACEOF |
| 10688 |
|
| 10689 |
fi |
| 10690 |
|
| 10691 |
done |
| 10692 |
|
| 10693 |
if test $ac_cv_header_sys_inttypes_h = yes; then |
| 10694 |
HAVE_SYS_INTTYPES_H=1 |
| 10695 |
else |
| 10696 |
HAVE_SYS_INTTYPES_H=0 |
| 10697 |
fi |
| 10698 |
|
| 10699 |
if test $ac_cv_header_sys_bitypes_h = yes; then |
| 10700 |
HAVE_SYS_BITYPES_H=1 |
| 10701 |
else |
| 10702 |
HAVE_SYS_BITYPES_H=0 |
| 10703 |
fi |
| 10704 |
|
| 10705 |
|
| 10706 |
|
| 10707 |
|
| 10708 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 10709 |
|
| 10710 |
|
| 10711 |
for gltype in ptrdiff_t size_t ; do |
| 10712 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 10713 |
$as_echo_n "checking for bit size of $gltype... " >&6; } |
| 10714 |
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10715 |
$as_echo_n "(cached) " >&6 |
| 10716 |
else |
| 10717 |
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 10718 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10719 |
included before <wchar.h>. */ |
| 10720 |
#include <stddef.h> |
| 10721 |
#include <signal.h> |
| 10722 |
#if HAVE_WCHAR_H |
| 10723 |
# include <stdio.h> |
| 10724 |
# include <time.h> |
| 10725 |
# include <wchar.h> |
| 10726 |
#endif |
| 10727 |
|
| 10728 |
#include <limits.h>"; then : |
| 10729 |
|
| 10730 |
else |
| 10731 |
result=unknown |
| 10732 |
fi |
| 10733 |
|
| 10734 |
eval gl_cv_bitsizeof_${gltype}=\$result |
| 10735 |
|
| 10736 |
fi |
| 10737 |
eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 10738 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10739 |
$as_echo "$ac_res" >&6; } |
| 10740 |
eval result=\$gl_cv_bitsizeof_${gltype} |
| 10741 |
if test $result = unknown; then |
| 10742 |
result=0 |
| 10743 |
fi |
| 10744 |
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 10745 |
cat >>confdefs.h <<_ACEOF |
| 10746 |
#define BITSIZEOF_${GLTYPE} $result |
| 10747 |
_ACEOF |
| 10748 |
|
| 10749 |
eval BITSIZEOF_${GLTYPE}=\$result |
| 10750 |
done |
| 10751 |
|
| 10752 |
|
| 10753 |
fi |
| 10754 |
|
| 10755 |
|
| 10756 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 10757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 10758 |
$as_echo_n "checking for bit size of $gltype... " >&6; } |
| 10759 |
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10760 |
$as_echo_n "(cached) " >&6 |
| 10761 |
else |
| 10762 |
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 10763 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10764 |
included before <wchar.h>. */ |
| 10765 |
#include <stddef.h> |
| 10766 |
#include <signal.h> |
| 10767 |
#if HAVE_WCHAR_H |
| 10768 |
# include <stdio.h> |
| 10769 |
# include <time.h> |
| 10770 |
# include <wchar.h> |
| 10771 |
#endif |
| 10772 |
|
| 10773 |
#include <limits.h>"; then : |
| 10774 |
|
| 10775 |
else |
| 10776 |
result=unknown |
| 10777 |
fi |
| 10778 |
|
| 10779 |
eval gl_cv_bitsizeof_${gltype}=\$result |
| 10780 |
|
| 10781 |
fi |
| 10782 |
eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 10783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10784 |
$as_echo "$ac_res" >&6; } |
| 10785 |
eval result=\$gl_cv_bitsizeof_${gltype} |
| 10786 |
if test $result = unknown; then |
| 10787 |
result=0 |
| 10788 |
fi |
| 10789 |
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 10790 |
cat >>confdefs.h <<_ACEOF |
| 10791 |
#define BITSIZEOF_${GLTYPE} $result |
| 10792 |
_ACEOF |
| 10793 |
|
| 10794 |
eval BITSIZEOF_${GLTYPE}=\$result |
| 10795 |
done |
| 10796 |
|
| 10797 |
|
| 10798 |
|
| 10799 |
|
| 10800 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 10801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 |
| 10802 |
$as_echo_n "checking whether $gltype is signed... " >&6; } |
| 10803 |
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10804 |
$as_echo_n "(cached) " >&6 |
| 10805 |
else |
| 10806 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10807 |
/* end confdefs.h. */ |
| 10808 |
|
| 10809 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10810 |
included before <wchar.h>. */ |
| 10811 |
#include <stddef.h> |
| 10812 |
#include <signal.h> |
| 10813 |
#if HAVE_WCHAR_H |
| 10814 |
# include <stdio.h> |
| 10815 |
# include <time.h> |
| 10816 |
# include <wchar.h> |
| 10817 |
#endif |
| 10818 |
|
| 10819 |
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 10820 |
int |
| 10821 |
main () |
| 10822 |
{ |
| 10823 |
|
| 10824 |
; |
| 10825 |
return 0; |
| 10826 |
} |
| 10827 |
_ACEOF |
| 10828 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10829 |
result=yes |
| 10830 |
else |
| 10831 |
result=no |
| 10832 |
fi |
| 10833 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10834 |
eval gl_cv_type_${gltype}_signed=\$result |
| 10835 |
|
| 10836 |
fi |
| 10837 |
eval ac_res=\$gl_cv_type_${gltype}_signed |
| 10838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10839 |
$as_echo "$ac_res" >&6; } |
| 10840 |
eval result=\$gl_cv_type_${gltype}_signed |
| 10841 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 10842 |
if test "$result" = yes; then |
| 10843 |
cat >>confdefs.h <<_ACEOF |
| 10844 |
#define HAVE_SIGNED_${GLTYPE} 1 |
| 10845 |
_ACEOF |
| 10846 |
|
| 10847 |
eval HAVE_SIGNED_${GLTYPE}=1 |
| 10848 |
else |
| 10849 |
eval HAVE_SIGNED_${GLTYPE}=0 |
| 10850 |
fi |
| 10851 |
done |
| 10852 |
|
| 10853 |
|
| 10854 |
gl_cv_type_ptrdiff_t_signed=yes |
| 10855 |
gl_cv_type_size_t_signed=no |
| 10856 |
if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 10857 |
|
| 10858 |
|
| 10859 |
for gltype in ptrdiff_t size_t ; do |
| 10860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 10861 |
$as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 10862 |
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10863 |
$as_echo_n "(cached) " >&6 |
| 10864 |
else |
| 10865 |
eval gl_cv_type_${gltype}_suffix=no |
| 10866 |
eval result=\$gl_cv_type_${gltype}_signed |
| 10867 |
if test "$result" = yes; then |
| 10868 |
glsufu= |
| 10869 |
else |
| 10870 |
glsufu=u |
| 10871 |
fi |
| 10872 |
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 10873 |
case $glsuf in |
| 10874 |
'') gltype1='int';; |
| 10875 |
l) gltype1='long int';; |
| 10876 |
ll) gltype1='long long int';; |
| 10877 |
i64) gltype1='__int64';; |
| 10878 |
u) gltype1='unsigned int';; |
| 10879 |
ul) gltype1='unsigned long int';; |
| 10880 |
ull) gltype1='unsigned long long int';; |
| 10881 |
ui64)gltype1='unsigned __int64';; |
| 10882 |
esac |
| 10883 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10884 |
/* end confdefs.h. */ |
| 10885 |
|
| 10886 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10887 |
included before <wchar.h>. */ |
| 10888 |
#include <stddef.h> |
| 10889 |
#include <signal.h> |
| 10890 |
#if HAVE_WCHAR_H |
| 10891 |
# include <stdio.h> |
| 10892 |
# include <time.h> |
| 10893 |
# include <wchar.h> |
| 10894 |
#endif |
| 10895 |
|
| 10896 |
extern $gltype foo; |
| 10897 |
extern $gltype1 foo; |
| 10898 |
int |
| 10899 |
main () |
| 10900 |
{ |
| 10901 |
|
| 10902 |
; |
| 10903 |
return 0; |
| 10904 |
} |
| 10905 |
_ACEOF |
| 10906 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10907 |
eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 10908 |
fi |
| 10909 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10910 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 10911 |
test "$result" != no && break |
| 10912 |
done |
| 10913 |
fi |
| 10914 |
eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 10915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10916 |
$as_echo "$ac_res" >&6; } |
| 10917 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 10918 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 10919 |
test "$result" = no && result= |
| 10920 |
eval ${GLTYPE}_SUFFIX=\$result |
| 10921 |
cat >>confdefs.h <<_ACEOF |
| 10922 |
#define ${GLTYPE}_SUFFIX $result |
| 10923 |
_ACEOF |
| 10924 |
|
| 10925 |
done |
| 10926 |
|
| 10927 |
|
| 10928 |
fi |
| 10929 |
|
| 10930 |
|
| 10931 |
for gltype in sig_atomic_t wchar_t wint_t ; do |
| 10932 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 10933 |
$as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 10934 |
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10935 |
$as_echo_n "(cached) " >&6 |
| 10936 |
else |
| 10937 |
eval gl_cv_type_${gltype}_suffix=no |
| 10938 |
eval result=\$gl_cv_type_${gltype}_signed |
| 10939 |
if test "$result" = yes; then |
| 10940 |
glsufu= |
| 10941 |
else |
| 10942 |
glsufu=u |
| 10943 |
fi |
| 10944 |
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 10945 |
case $glsuf in |
| 10946 |
'') gltype1='int';; |
| 10947 |
l) gltype1='long int';; |
| 10948 |
ll) gltype1='long long int';; |
| 10949 |
i64) gltype1='__int64';; |
| 10950 |
u) gltype1='unsigned int';; |
| 10951 |
ul) gltype1='unsigned long int';; |
| 10952 |
ull) gltype1='unsigned long long int';; |
| 10953 |
ui64)gltype1='unsigned __int64';; |
| 10954 |
esac |
| 10955 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10956 |
/* end confdefs.h. */ |
| 10957 |
|
| 10958 |
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 10959 |
included before <wchar.h>. */ |
| 10960 |
#include <stddef.h> |
| 10961 |
#include <signal.h> |
| 10962 |
#if HAVE_WCHAR_H |
| 10963 |
# include <stdio.h> |
| 10964 |
# include <time.h> |
| 10965 |
# include <wchar.h> |
| 10966 |
#endif |
| 10967 |
|
| 10968 |
extern $gltype foo; |
| 10969 |
extern $gltype1 foo; |
| 10970 |
int |
| 10971 |
main () |
| 10972 |
{ |
| 10973 |
|
| 10974 |
; |
| 10975 |
return 0; |
| 10976 |
} |
| 10977 |
_ACEOF |
| 10978 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10979 |
eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 10980 |
fi |
| 10981 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10982 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 10983 |
test "$result" != no && break |
| 10984 |
done |
| 10985 |
fi |
| 10986 |
eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 10987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10988 |
$as_echo "$ac_res" >&6; } |
| 10989 |
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 10990 |
eval result=\$gl_cv_type_${gltype}_suffix |
| 10991 |
test "$result" = no && result= |
| 10992 |
eval ${GLTYPE}_SUFFIX=\$result |
| 10993 |
cat >>confdefs.h <<_ACEOF |
| 10994 |
#define ${GLTYPE}_SUFFIX $result |
| 10995 |
_ACEOF |
| 10996 |
|
| 10997 |
done |
| 10998 |
|
| 10999 |
|
| 11000 |
|
| 11001 |
STDINT_H=stdint.h |
| 11002 |
fi |
| 11003 |
|
| 11004 |
if test -n "$STDINT_H"; then |
| 11005 |
GL_GENERATE_STDINT_H_TRUE= |
| 11006 |
GL_GENERATE_STDINT_H_FALSE='#' |
| 11007 |
else |
| 11008 |
GL_GENERATE_STDINT_H_TRUE='#' |
| 11009 |
GL_GENERATE_STDINT_H_FALSE= |
| 11010 |
fi |
| 11011 |
|
| 11012 |
|
| 11013 |
|
| 11014 |
|
| 11015 |
|
| 11016 |
|
| 11017 |
|
| 11018 |
|
| 11019 |
|
| 11020 |
|
| 11021 |
|
| 11022 |
|
| 11023 |
if test $gl_cv_have_include_next = yes; then |
| 11024 |
gl_cv_next_stdlib_h='<'stdlib.h'>' |
| 11025 |
else |
| 11026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 |
| 11027 |
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } |
| 11028 |
if test "${gl_cv_next_stdlib_h+set}" = set; then : |
| 11029 |
$as_echo_n "(cached) " >&6 |
| 11030 |
else |
| 11031 |
|
| 11032 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11033 |
/* end confdefs.h. */ |
| 11034 |
#include <stdlib.h> |
| 11035 |
|
| 11036 |
_ACEOF |
| 11037 |
case "$host_os" in |
| 11038 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 11039 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 11040 |
esac |
| 11041 |
gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 11042 |
sed -n '\#/stdlib.h#{ |
| 11043 |
s#.*"\(.*/stdlib.h\)".*#\1# |
| 11044 |
s#^/[^/]#//&# |
| 11045 |
p |
| 11046 |
q |
| 11047 |
}'`'"' |
| 11048 |
|
| 11049 |
|
| 11050 |
fi |
| 11051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 |
| 11052 |
$as_echo "$gl_cv_next_stdlib_h" >&6; } |
| 11053 |
fi |
| 11054 |
NEXT_STDLIB_H=$gl_cv_next_stdlib_h |
| 11055 |
|
| 11056 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 11057 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 11058 |
gl_next_as_first_directive='<'stdlib.h'>' |
| 11059 |
else |
| 11060 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 11061 |
gl_next_as_first_directive=$gl_cv_next_stdlib_h |
| 11062 |
fi |
| 11063 |
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive |
| 11064 |
|
| 11065 |
|
| 11066 |
|
| 11067 |
|
| 11068 |
|
| 11069 |
|
| 11070 |
for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do |
| 11071 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 11072 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 11073 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 11074 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 11075 |
$as_echo_n "(cached) " >&6 |
| 11076 |
else |
| 11077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11078 |
/* end confdefs.h. */ |
| 11079 |
#include <stdlib.h> |
| 11080 |
#if HAVE_SYS_LOADAVG_H |
| 11081 |
# include <sys/loadavg.h> |
| 11082 |
#endif |
| 11083 |
#if HAVE_RANDOM_H |
| 11084 |
# include <random.h> |
| 11085 |
#endif |
| 11086 |
|
| 11087 |
int |
| 11088 |
main () |
| 11089 |
{ |
| 11090 |
#undef $gl_func |
| 11091 |
(void) $gl_func; |
| 11092 |
; |
| 11093 |
return 0; |
| 11094 |
} |
| 11095 |
_ACEOF |
| 11096 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11097 |
eval "$as_gl_Symbol=yes" |
| 11098 |
else |
| 11099 |
eval "$as_gl_Symbol=no" |
| 11100 |
fi |
| 11101 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11102 |
fi |
| 11103 |
eval ac_res=\$$as_gl_Symbol |
| 11104 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11105 |
$as_echo "$ac_res" >&6; } |
| 11106 |
eval as_val=\$$as_gl_Symbol |
| 11107 |
if test "x$as_val" = x""yes; then : |
| 11108 |
cat >>confdefs.h <<_ACEOF |
| 11109 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 11110 |
_ACEOF |
| 11111 |
|
| 11112 |
eval ac_cv_have_decl_$gl_func=yes |
| 11113 |
fi |
| 11114 |
done |
| 11115 |
|
| 11116 |
|
| 11117 |
|
| 11118 |
|
| 11119 |
|
| 11120 |
|
| 11121 |
|
| 11122 |
|
| 11123 |
|
| 11124 |
|
| 11125 |
|
| 11126 |
|
| 11127 |
|
| 11128 |
|
| 11129 |
|
| 11130 |
: |
| 11131 |
|
| 11132 |
|
| 11133 |
|
| 11134 |
|
| 11135 |
|
| 11136 |
|
| 11137 |
|
| 11138 |
|
| 11139 |
if test $gl_cv_have_include_next = yes; then |
| 11140 |
gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 11141 |
else |
| 11142 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 |
| 11143 |
$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } |
| 11144 |
if test "${gl_cv_next_sys_stat_h+set}" = set; then : |
| 11145 |
$as_echo_n "(cached) " >&6 |
| 11146 |
else |
| 11147 |
|
| 11148 |
if test $ac_cv_header_sys_stat_h = yes; then |
| 11149 |
|
| 11150 |
|
| 11151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11152 |
/* end confdefs.h. */ |
| 11153 |
#include <sys/stat.h> |
| 11154 |
|
| 11155 |
_ACEOF |
| 11156 |
case "$host_os" in |
| 11157 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 11158 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 11159 |
esac |
| 11160 |
gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 11161 |
sed -n '\#/sys/stat.h#{ |
| 11162 |
s#.*"\(.*/sys/stat.h\)".*#\1# |
| 11163 |
s#^/[^/]#//&# |
| 11164 |
p |
| 11165 |
q |
| 11166 |
}'`'"' |
| 11167 |
else |
| 11168 |
gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 11169 |
fi |
| 11170 |
|
| 11171 |
|
| 11172 |
fi |
| 11173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 |
| 11174 |
$as_echo "$gl_cv_next_sys_stat_h" >&6; } |
| 11175 |
fi |
| 11176 |
NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h |
| 11177 |
|
| 11178 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 11179 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 11180 |
gl_next_as_first_directive='<'sys/stat.h'>' |
| 11181 |
else |
| 11182 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 11183 |
gl_next_as_first_directive=$gl_cv_next_sys_stat_h |
| 11184 |
fi |
| 11185 |
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive |
| 11186 |
|
| 11187 |
|
| 11188 |
|
| 11189 |
|
| 11190 |
|
| 11191 |
ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> |
| 11192 |
#include <sys/stat.h> |
| 11193 |
" |
| 11194 |
if test "x$ac_cv_type_nlink_t" = x""yes; then : |
| 11195 |
|
| 11196 |
else |
| 11197 |
|
| 11198 |
$as_echo "#define nlink_t int" >>confdefs.h |
| 11199 |
|
| 11200 |
fi |
| 11201 |
|
| 11202 |
|
| 11203 |
|
| 11204 |
for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do |
| 11205 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 11206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 11207 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 11208 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 11209 |
$as_echo_n "(cached) " >&6 |
| 11210 |
else |
| 11211 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11212 |
/* end confdefs.h. */ |
| 11213 |
#include <sys/stat.h> |
| 11214 |
|
| 11215 |
int |
| 11216 |
main () |
| 11217 |
{ |
| 11218 |
#undef $gl_func |
| 11219 |
(void) $gl_func; |
| 11220 |
; |
| 11221 |
return 0; |
| 11222 |
} |
| 11223 |
_ACEOF |
| 11224 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11225 |
eval "$as_gl_Symbol=yes" |
| 11226 |
else |
| 11227 |
eval "$as_gl_Symbol=no" |
| 11228 |
fi |
| 11229 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11230 |
fi |
| 11231 |
eval ac_res=\$$as_gl_Symbol |
| 11232 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11233 |
$as_echo "$ac_res" >&6; } |
| 11234 |
eval as_val=\$$as_gl_Symbol |
| 11235 |
if test "x$as_val" = x""yes; then : |
| 11236 |
cat >>confdefs.h <<_ACEOF |
| 11237 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 11238 |
_ACEOF |
| 11239 |
|
| 11240 |
eval ac_cv_have_decl_$gl_func=yes |
| 11241 |
fi |
| 11242 |
done |
| 11243 |
|
| 11244 |
|
| 11245 |
|
| 11246 |
|
| 11247 |
|
| 11248 |
|
| 11249 |
|
| 11250 |
|
| 11251 |
|
| 11252 |
|
| 11253 |
|
| 11254 |
|
| 11255 |
|
| 11256 |
|
| 11257 |
|
| 11258 |
|
| 11259 |
|
| 11260 |
|
| 11261 |
gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext" |
| 11262 |
|
| 11263 |
|
| 11264 |
: |
| 11265 |
|
| 11266 |
|
| 11267 |
|
| 11268 |
|
| 11269 |
|
| 11270 |
|
| 11271 |
|
| 11272 |
|
| 11273 |
|
| 11274 |
|
| 11275 |
|
| 11276 |
|
| 11277 |
|
| 11278 |
|
| 11279 |
|
| 11280 |
: |
| 11281 |
|
| 11282 |
|
| 11283 |
|
| 11284 |
|
| 11285 |
|
| 11286 |
|
| 11287 |
|
| 11288 |
|
| 11289 |
if test $gl_cv_have_include_next = yes; then |
| 11290 |
gl_cv_next_unistd_h='<'unistd.h'>' |
| 11291 |
else |
| 11292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 |
| 11293 |
$as_echo_n "checking absolute name of <unistd.h>... " >&6; } |
| 11294 |
if test "${gl_cv_next_unistd_h+set}" = set; then : |
| 11295 |
$as_echo_n "(cached) " >&6 |
| 11296 |
else |
| 11297 |
|
| 11298 |
if test $ac_cv_header_unistd_h = yes; then |
| 11299 |
|
| 11300 |
|
| 11301 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11302 |
/* end confdefs.h. */ |
| 11303 |
#include <unistd.h> |
| 11304 |
|
| 11305 |
_ACEOF |
| 11306 |
case "$host_os" in |
| 11307 |
aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 11308 |
*) gl_absname_cpp="$ac_cpp" ;; |
| 11309 |
esac |
| 11310 |
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 11311 |
sed -n '\#/unistd.h#{ |
| 11312 |
s#.*"\(.*/unistd.h\)".*#\1# |
| 11313 |
s#^/[^/]#//&# |
| 11314 |
p |
| 11315 |
q |
| 11316 |
}'`'"' |
| 11317 |
else |
| 11318 |
gl_cv_next_unistd_h='<'unistd.h'>' |
| 11319 |
fi |
| 11320 |
|
| 11321 |
|
| 11322 |
fi |
| 11323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 |
| 11324 |
$as_echo "$gl_cv_next_unistd_h" >&6; } |
| 11325 |
fi |
| 11326 |
NEXT_UNISTD_H=$gl_cv_next_unistd_h |
| 11327 |
|
| 11328 |
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 11329 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 11330 |
gl_next_as_first_directive='<'unistd.h'>' |
| 11331 |
else |
| 11332 |
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 11333 |
gl_next_as_first_directive=$gl_cv_next_unistd_h |
| 11334 |
fi |
| 11335 |
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive |
| 11336 |
|
| 11337 |
|
| 11338 |
|
| 11339 |
|
| 11340 |
if test $ac_cv_header_unistd_h = yes; then |
| 11341 |
HAVE_UNISTD_H=1 |
| 11342 |
else |
| 11343 |
HAVE_UNISTD_H=0 |
| 11344 |
fi |
| 11345 |
|
| 11346 |
|
| 11347 |
|
| 11348 |
for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do |
| 11349 |
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` |
| 11350 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 |
| 11351 |
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } |
| 11352 |
if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 11353 |
$as_echo_n "(cached) " >&6 |
| 11354 |
else |
| 11355 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11356 |
/* end confdefs.h. */ |
| 11357 |
#include <unistd.h> |
| 11358 |
/* Some systems declare various items in the wrong headers. */ |
| 11359 |
#if !(defined __GLIBC__ && !defined __UCLIBC__) |
| 11360 |
# include <fcntl.h> |
| 11361 |
# include <stdio.h> |
| 11362 |
# include <stdlib.h> |
| 11363 |
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 11364 |
# include <io.h> |
| 11365 |
# endif |
| 11366 |
#endif |
| 11367 |
|
| 11368 |
int |
| 11369 |
main () |
| 11370 |
{ |
| 11371 |
#undef $gl_func |
| 11372 |
(void) $gl_func; |
| 11373 |
; |
| 11374 |
return 0; |
| 11375 |
} |
| 11376 |
_ACEOF |
| 11377 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11378 |
eval "$as_gl_Symbol=yes" |
| 11379 |
else |
| 11380 |
eval "$as_gl_Symbol=no" |
| 11381 |
fi |
| 11382 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11383 |
fi |
| 11384 |
eval ac_res=\$$as_gl_Symbol |
| 11385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11386 |
$as_echo "$ac_res" >&6; } |
| 11387 |
eval as_val=\$$as_gl_Symbol |
| 11388 |
if test "x$as_val" = x""yes; then : |
| 11389 |
cat >>confdefs.h <<_ACEOF |
| 11390 |
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 |
| 11391 |
_ACEOF |
| 11392 |
|
| 11393 |
eval ac_cv_have_decl_$gl_func=yes |
| 11394 |
fi |
| 11395 |
done |
| 11396 |
|
| 11397 |
|
| 11398 |
# End of code from modules |
| 11399 |
|
| 11400 |
|
| 11401 |
|
| 11402 |
|
| 11403 |
|
| 11404 |
|
| 11405 |
|
| 11406 |
|
| 11407 |
|
| 11408 |
gltests_libdeps= |
| 11409 |
gltests_ltlibdeps= |
| 11410 |
|
| 11411 |
|
| 11412 |
|
| 11413 |
|
| 11414 |
|
| 11415 |
|
| 11416 |
|
| 11417 |
|
| 11418 |
|
| 11419 |
gl_source_base='tests' |
| 11420 |
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 |
| 11421 |
|
| 11422 |
gl_module_indicator_condition=$gltests_WITNESS |
| 11423 |
|
| 11424 |
|
| 11425 |
|
| 11426 |
|
| 11427 |
|
| 11428 |
|
| 11429 |
|
| 11430 |
|
| 11431 |
|
| 11432 |
LIBGNU_LIBDEPS="$gl_libdeps" |
| 11433 |
|
| 11434 |
LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 11435 |
|
| 11436 |
|
| 11437 |
|
| 11438 |
|
| 11439 |
LIBS="$X_LIBS" |
| 11440 |
|
| 11441 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 11442 |
$as_echo_n "checking for sqrt in -lm... " >&6; } |
| 11443 |
if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
| 11444 |
$as_echo_n "(cached) " >&6 |
| 11445 |
else |
| 11446 |
ac_check_lib_save_LIBS=$LIBS |
| 11447 |
LIBS="-lm $LIBS" |
| 11448 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11449 |
/* end confdefs.h. */ |
| 11450 |
|
| 11451 |
/* Override any GCC internal prototype to avoid an error. |
| 11452 |
Use char because int might match the return type of a GCC |
| 11453 |
builtin and then its argument prototype would still apply. */ |
| 11454 |
#ifdef __cplusplus |
| 11455 |
extern "C" |
| 11456 |
#endif |
| 11457 |
char sqrt (); |
| 11458 |
int |
| 11459 |
main () |
| 11460 |
{ |
| 11461 |
return sqrt (); |
| 11462 |
; |
| 11463 |
return 0; |
| 11464 |
} |
| 11465 |
_ACEOF |
| 11466 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11467 |
ac_cv_lib_m_sqrt=yes |
| 11468 |
else |
| 11469 |
ac_cv_lib_m_sqrt=no |
| 11470 |
fi |
| 11471 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11472 |
conftest$ac_exeext conftest.$ac_ext |
| 11473 |
LIBS=$ac_check_lib_save_LIBS |
| 11474 |
fi |
| 11475 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 11476 |
$as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| 11477 |
if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
| 11478 |
cat >>confdefs.h <<_ACEOF |
| 11479 |
#define HAVE_LIBM 1 |
| 11480 |
_ACEOF |
| 11481 |
|
| 11482 |
LIBS="-lm $LIBS" |
| 11483 |
|
| 11484 |
fi |
| 11485 |
|
| 11486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yywrap in -lfl" >&5 |
| 11487 |
$as_echo_n "checking for yywrap in -lfl... " >&6; } |
| 11488 |
if test "${ac_cv_lib_fl_yywrap+set}" = set; then : |
| 11489 |
$as_echo_n "(cached) " >&6 |
| 11490 |
else |
| 11491 |
ac_check_lib_save_LIBS=$LIBS |
| 11492 |
LIBS="-lfl $LIBS" |
| 11493 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11494 |
/* end confdefs.h. */ |
| 11495 |
|
| 11496 |
/* Override any GCC internal prototype to avoid an error. |
| 11497 |
Use char because int might match the return type of a GCC |
| 11498 |
builtin and then its argument prototype would still apply. */ |
| 11499 |
#ifdef __cplusplus |
| 11500 |
extern "C" |
| 11501 |
#endif |
| 11502 |
char yywrap (); |
| 11503 |
int |
| 11504 |
main () |
| 11505 |
{ |
| 11506 |
return yywrap (); |
| 11507 |
; |
| 11508 |
return 0; |
| 11509 |
} |
| 11510 |
_ACEOF |
| 11511 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11512 |
ac_cv_lib_fl_yywrap=yes |
| 11513 |
else |
| 11514 |
ac_cv_lib_fl_yywrap=no |
| 11515 |
fi |
| 11516 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11517 |
conftest$ac_exeext conftest.$ac_ext |
| 11518 |
LIBS=$ac_check_lib_save_LIBS |
| 11519 |
fi |
| 11520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_yywrap" >&5 |
| 11521 |
$as_echo "$ac_cv_lib_fl_yywrap" >&6; } |
| 11522 |
if test "x$ac_cv_lib_fl_yywrap" = x""yes; then : |
| 11523 |
cat >>confdefs.h <<_ACEOF |
| 11524 |
#define HAVE_LIBFL 1 |
| 11525 |
_ACEOF |
| 11526 |
|
| 11527 |
LIBS="-lfl $LIBS" |
| 11528 |
|
| 11529 |
fi |
| 11530 |
|
| 11531 |
|
| 11532 |
# Needed e. g. on Mac OS |
| 11533 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 |
| 11534 |
$as_echo_n "checking for iconv_open in -liconv... " >&6; } |
| 11535 |
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then : |
| 11536 |
$as_echo_n "(cached) " >&6 |
| 11537 |
else |
| 11538 |
ac_check_lib_save_LIBS=$LIBS |
| 11539 |
LIBS="-liconv $LIBS" |
| 11540 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11541 |
/* end confdefs.h. */ |
| 11542 |
|
| 11543 |
/* Override any GCC internal prototype to avoid an error. |
| 11544 |
Use char because int might match the return type of a GCC |
| 11545 |
builtin and then its argument prototype would still apply. */ |
| 11546 |
#ifdef __cplusplus |
| 11547 |
extern "C" |
| 11548 |
#endif |
| 11549 |
char iconv_open (); |
| 11550 |
int |
| 11551 |
main () |
| 11552 |
{ |
| 11553 |
return iconv_open (); |
| 11554 |
; |
| 11555 |
return 0; |
| 11556 |
} |
| 11557 |
_ACEOF |
| 11558 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11559 |
ac_cv_lib_iconv_iconv_open=yes |
| 11560 |
else |
| 11561 |
ac_cv_lib_iconv_iconv_open=no |
| 11562 |
fi |
| 11563 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11564 |
conftest$ac_exeext conftest.$ac_ext |
| 11565 |
LIBS=$ac_check_lib_save_LIBS |
| 11566 |
fi |
| 11567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 |
| 11568 |
$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } |
| 11569 |
if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then : |
| 11570 |
cat >>confdefs.h <<_ACEOF |
| 11571 |
#define HAVE_LIBICONV 1 |
| 11572 |
_ACEOF |
| 11573 |
|
| 11574 |
LIBS="-liconv $LIBS" |
| 11575 |
|
| 11576 |
fi |
| 11577 |
|
| 11578 |
|
| 11579 |
|
| 11580 |
# Check whether --with-libzio was given. |
| 11581 |
if test "${with_libzio+set}" = set; then : |
| 11582 |
withval=$with_libzio; opt_zio=$withval |
| 11583 |
else |
| 11584 |
opt_zio=yes |
| 11585 |
fi |
| 11586 |
|
| 11587 |
|
| 11588 |
if test "$opt_zio" != "no" ; then |
| 11589 |
# |
| 11590 |
# Check for zlib and libbz2 libraries to use this together |
| 11591 |
# with SuSE's libzio to open compressed files. |
| 11592 |
# |
| 11593 |
savedLIBS=$LIBS |
| 11594 |
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 11595 |
if test "x$ac_cv_header_zlib_h" = x""yes; then : |
| 11596 |
|
| 11597 |
for lib in z gz |
| 11598 |
do |
| 11599 |
as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_gzopen" | $as_tr_sh` |
| 11600 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -l$lib" >&5 |
| 11601 |
$as_echo_n "checking for gzopen in -l$lib... " >&6; } |
| 11602 |
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 11603 |
$as_echo_n "(cached) " >&6 |
| 11604 |
else |
| 11605 |
ac_check_lib_save_LIBS=$LIBS |
| 11606 |
LIBS="-l$lib $LIBS" |
| 11607 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11608 |
/* end confdefs.h. */ |
| 11609 |
|
| 11610 |
/* Override any GCC internal prototype to avoid an error. |
| 11611 |
Use char because int might match the return type of a GCC |
| 11612 |
builtin and then its argument prototype would still apply. */ |
| 11613 |
#ifdef __cplusplus |
| 11614 |
extern "C" |
| 11615 |
#endif |
| 11616 |
char gzopen (); |
| 11617 |
int |
| 11618 |
main () |
| 11619 |
{ |
| 11620 |
return gzopen (); |
| 11621 |
; |
| 11622 |
return 0; |
| 11623 |
} |
| 11624 |
_ACEOF |
| 11625 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11626 |
eval "$as_ac_Lib=yes" |
| 11627 |
else |
| 11628 |
eval "$as_ac_Lib=no" |
| 11629 |
fi |
| 11630 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11631 |
conftest$ac_exeext conftest.$ac_ext |
| 11632 |
LIBS=$ac_check_lib_save_LIBS |
| 11633 |
fi |
| 11634 |
eval ac_res=\$$as_ac_Lib |
| 11635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11636 |
$as_echo "$ac_res" >&6; } |
| 11637 |
eval as_val=\$$as_ac_Lib |
| 11638 |
if test "x$as_val" = x""yes; then : |
| 11639 |
LIBS="$LIBS -l$lib" ; break |
| 11640 |
fi |
| 11641 |
|
| 11642 |
done |
| 11643 |
fi |
| 11644 |
|
| 11645 |
|
| 11646 |
ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
| 11647 |
if test "x$ac_cv_header_bzlib_h" = x""yes; then : |
| 11648 |
|
| 11649 |
for lib in bz2 bzip2 |
| 11650 |
do |
| 11651 |
as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_BZ2_bzopen" | $as_tr_sh` |
| 11652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -l$lib" >&5 |
| 11653 |
$as_echo_n "checking for BZ2_bzopen in -l$lib... " >&6; } |
| 11654 |
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 11655 |
$as_echo_n "(cached) " >&6 |
| 11656 |
else |
| 11657 |
ac_check_lib_save_LIBS=$LIBS |
| 11658 |
LIBS="-l$lib $LIBS" |
| 11659 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11660 |
/* end confdefs.h. */ |
| 11661 |
|
| 11662 |
/* Override any GCC internal prototype to avoid an error. |
| 11663 |
Use char because int might match the return type of a GCC |
| 11664 |
builtin and then its argument prototype would still apply. */ |
| 11665 |
#ifdef __cplusplus |
| 11666 |
extern "C" |
| 11667 |
#endif |
| 11668 |
char BZ2_bzopen (); |
| 11669 |
int |
| 11670 |
main () |
| 11671 |
{ |
| 11672 |
return BZ2_bzopen (); |
| 11673 |
; |
| 11674 |
return 0; |
| 11675 |
} |
| 11676 |
_ACEOF |
| 11677 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11678 |
eval "$as_ac_Lib=yes" |
| 11679 |
else |
| 11680 |
eval "$as_ac_Lib=no" |
| 11681 |
fi |
| 11682 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11683 |
conftest$ac_exeext conftest.$ac_ext |
| 11684 |
LIBS=$ac_check_lib_save_LIBS |
| 11685 |
fi |
| 11686 |
eval ac_res=\$$as_ac_Lib |
| 11687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11688 |
$as_echo "$ac_res" >&6; } |
| 11689 |
eval as_val=\$$as_ac_Lib |
| 11690 |
if test "x$as_val" = x""yes; then : |
| 11691 |
LIBS="$LIBS -l$lib" ; break |
| 11692 |
fi |
| 11693 |
|
| 11694 |
done |
| 11695 |
fi |
| 11696 |
|
| 11697 |
|
| 11698 |
ac_fn_c_check_header_mongrel "$LINENO" "zio.h" "ac_cv_header_zio_h" "$ac_includes_default" |
| 11699 |
if test "x$ac_cv_header_zio_h" = x""yes; then : |
| 11700 |
|
| 11701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fzopen in -lzio" >&5 |
| 11702 |
$as_echo_n "checking for fzopen in -lzio... " >&6; } |
| 11703 |
if test "${ac_cv_lib_zio_fzopen+set}" = set; then : |
| 11704 |
$as_echo_n "(cached) " >&6 |
| 11705 |
else |
| 11706 |
ac_check_lib_save_LIBS=$LIBS |
| 11707 |
LIBS="-lzio $LIBS" |
| 11708 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11709 |
/* end confdefs.h. */ |
| 11710 |
|
| 11711 |
/* Override any GCC internal prototype to avoid an error. |
| 11712 |
Use char because int might match the return type of a GCC |
| 11713 |
builtin and then its argument prototype would still apply. */ |
| 11714 |
#ifdef __cplusplus |
| 11715 |
extern "C" |
| 11716 |
#endif |
| 11717 |
char fzopen (); |
| 11718 |
int |
| 11719 |
main () |
| 11720 |
{ |
| 11721 |
return fzopen (); |
| 11722 |
; |
| 11723 |
return 0; |
| 11724 |
} |
| 11725 |
_ACEOF |
| 11726 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11727 |
ac_cv_lib_zio_fzopen=yes |
| 11728 |
else |
| 11729 |
ac_cv_lib_zio_fzopen=no |
| 11730 |
fi |
| 11731 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11732 |
conftest$ac_exeext conftest.$ac_ext |
| 11733 |
LIBS=$ac_check_lib_save_LIBS |
| 11734 |
fi |
| 11735 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zio_fzopen" >&5 |
| 11736 |
$as_echo "$ac_cv_lib_zio_fzopen" >&6; } |
| 11737 |
if test "x$ac_cv_lib_zio_fzopen" = x""yes; then : |
| 11738 |
LIBS="$LIBS -lzio" ; |
| 11739 |
$as_echo "#define HAVE_ZIO 1" >>confdefs.h |
| 11740 |
|
| 11741 |
else |
| 11742 |
LIBS=$savedLIBS |
| 11743 |
fi |
| 11744 |
|
| 11745 |
|
| 11746 |
else |
| 11747 |
LIBS=$savedLIBS |
| 11748 |
fi |
| 11749 |
|
| 11750 |
|
| 11751 |
fi |
| 11752 |
|
| 11753 |
|
| 11754 |
|
| 11755 |
|
| 11756 |
# Check whether --with-default-papersize was given. |
| 11757 |
if test "${with_default_papersize+set}" = set; then : |
| 11758 |
withval=$with_default_papersize; opt_default_papersize=$withval |
| 11759 |
else |
| 11760 |
opt_default_papersize=A4 |
| 11761 |
fi |
| 11762 |
|
| 11763 |
|
| 11764 |
test "$opt_default_papersize" = "yes" && { |
| 11765 |
|
| 11766 |
opt_default_papersize=A4 |
| 11767 |
|
| 11768 |
} |
| 11769 |
|
| 11770 |
PAPERSIZE=$opt_default_papersize |
| 11771 |
|
| 11772 |
|
| 11773 |
|
| 11774 |
# Check whether --with-print-command was given. |
| 11775 |
if test "${with_print_command+set}" = set; then : |
| 11776 |
withval=$with_print_command; opt_print_command=$withval |
| 11777 |
else |
| 11778 |
opt_print_command=lpr |
| 11779 |
fi |
| 11780 |
|
| 11781 |
|
| 11782 |
test "$opt_print_command" = "yes" && { |
| 11783 |
|
| 11784 |
opt_print_command=\"lpr\" |
| 11785 |
|
| 11786 |
} |
| 11787 |
|
| 11788 |
PRINT_COMMAND=$opt_print_command |
| 11789 |
|
| 11790 |
|
| 11791 |
|
| 11792 |
# Check whether --with-user-defaults-file was given. |
| 11793 |
if test "${with_user_defaults_file+set}" = set; then : |
| 11794 |
withval=$with_user_defaults_file; opt_user_defaults_file=$withval |
| 11795 |
else |
| 11796 |
opt_user_defaults_file="~/.gv" |
| 11797 |
fi |
| 11798 |
|
| 11799 |
|
| 11800 |
test "$opt_user_defaults_file" = "yes" && { |
| 11801 |
|
| 11802 |
opt_user_defaults_file="~/.gv" |
| 11803 |
|
| 11804 |
} |
| 11805 |
|
| 11806 |
|
| 11807 |
cat >>confdefs.h <<_ACEOF |
| 11808 |
#define USER_DEFAULTS "$opt_user_defaults_file" |
| 11809 |
_ACEOF |
| 11810 |
|
| 11811 |
|
| 11812 |
|
| 11813 |
# Check whether --with-scratch-dir was given. |
| 11814 |
if test "${with_scratch_dir+set}" = set; then : |
| 11815 |
withval=$with_scratch_dir; opt_scratch_dir=$withval |
| 11816 |
else |
| 11817 |
opt_scratch_dir="/tmp/" |
| 11818 |
fi |
| 11819 |
|
| 11820 |
|
| 11821 |
test "$opt_scratch_dir" = "yes" && { |
| 11822 |
|
| 11823 |
opt_scratch_dir="/tmp/" |
| 11824 |
|
| 11825 |
} |
| 11826 |
|
| 11827 |
SCRATCH_DIR=$opt_scratch_dir |
| 11828 |
|
| 11829 |
|
| 11830 |
|
| 11831 |
# Check whether --with-save-dir was given. |
| 11832 |
if test "${with_save_dir+set}" = set; then : |
| 11833 |
withval=$with_save_dir; opt_save_dir=$withval |
| 11834 |
else |
| 11835 |
opt_save_dir="~/" |
| 11836 |
fi |
| 11837 |
|
| 11838 |
|
| 11839 |
test "$opt_save_dir" = "yes" && { |
| 11840 |
|
| 11841 |
opt_save_dir="~/" |
| 11842 |
|
| 11843 |
} |
| 11844 |
|
| 11845 |
SAVE_DIR=$opt_save_dir |
| 11846 |
|
| 11847 |
|
| 11848 |
|
| 11849 |
|
| 11850 |
# Check whether --enable-ps-level-one was given. |
| 11851 |
if test "${enable_ps_level_one+set}" = set; then : |
| 11852 |
enableval=$enable_ps_level_one; opt_ps_level_one=$enableval |
| 11853 |
else |
| 11854 |
opt_ps_level_one=no |
| 11855 |
fi |
| 11856 |
|
| 11857 |
|
| 11858 |
test "$opt_ps_level_one" = "yes" && { |
| 11859 |
|
| 11860 |
|
| 11861 |
$as_echo "#define PSLevel1 /**/" >>confdefs.h |
| 11862 |
|
| 11863 |
|
| 11864 |
} |
| 11865 |
|
| 11866 |
# Check whether --enable-signal-handler was given. |
| 11867 |
if test "${enable_signal_handler+set}" = set; then : |
| 11868 |
enableval=$enable_signal_handler; opt_signal_handler=$enableval |
| 11869 |
else |
| 11870 |
opt_signal_handler=yes |
| 11871 |
fi |
| 11872 |
|
| 11873 |
|
| 11874 |
test "x$opt_signal_handler" = "xyes" && { |
| 11875 |
|
| 11876 |
|
| 11877 |
$as_echo "#define USE_SIGNAL_HANDLER /**/" >>confdefs.h |
| 11878 |
|
| 11879 |
|
| 11880 |
} |
| 11881 |
|
| 11882 |
# Check whether --enable-backing-pixmap was given. |
| 11883 |
if test "${enable_backing_pixmap+set}" = set; then : |
| 11884 |
enableval=$enable_backing_pixmap; opt_backing_pixmap=$enableval |
| 11885 |
else |
| 11886 |
opt_backing_pixmap=yes |
| 11887 |
fi |
| 11888 |
|
| 11889 |
|
| 11890 |
test "$opt_backing_pixmap" = "yes" && { |
| 11891 |
|
| 11892 |
USE_BACKING_PIXMAP=True |
| 11893 |
|
| 11894 |
} |
| 11895 |
|
| 11896 |
test "$opt_backing_pixmap" = "no" && { |
| 11897 |
|
| 11898 |
USE_BACKING_PIXMAP=False |
| 11899 |
|
| 11900 |
} |
| 11901 |
|
| 11902 |
|
| 11903 |
|
| 11904 |
# Check whether --enable-scrollbar-code was given. |
| 11905 |
if test "${enable_scrollbar_code+set}" = set; then : |
| 11906 |
enableval=$enable_scrollbar_code; case "${enableval}" in |
| 11907 |
yes) opt_scrollbar_code=true ;; |
| 11908 |
no) opt_scrollbar_code=false ;; |
| 11909 |
*) as_fn_error "bad value ${enableval} for --enable-scrollbar-code" "$LINENO" 5 ;; |
| 11910 |
esac |
| 11911 |
else |
| 11912 |
opt_scrollbar_code=true |
| 11913 |
fi |
| 11914 |
|
| 11915 |
|
| 11916 |
if test x$opt_scrollbar_code = xtrue; then |
| 11917 |
USE_SCROLLBAR_CODE_TRUE= |
| 11918 |
USE_SCROLLBAR_CODE_FALSE='#' |
| 11919 |
else |
| 11920 |
USE_SCROLLBAR_CODE_TRUE='#' |
| 11921 |
USE_SCROLLBAR_CODE_FALSE= |
| 11922 |
fi |
| 11923 |
|
| 11924 |
|
| 11925 |
# Check whether --enable-memmove-code was given. |
| 11926 |
if test "${enable_memmove_code+set}" = set; then : |
| 11927 |
enableval=$enable_memmove_code; opt_memmove_code=$enableval |
| 11928 |
else |
| 11929 |
opt_memmove_code=yes |
| 11930 |
fi |
| 11931 |
|
| 11932 |
|
| 11933 |
test "$opt_memmove_code" = "yes" && { |
| 11934 |
|
| 11935 |
|
| 11936 |
$as_echo "#define USE_MEMMOVE_CODE /**/" >>confdefs.h |
| 11937 |
|
| 11938 |
|
| 11939 |
} |
| 11940 |
|
| 11941 |
# Check whether --enable-runtime-messages was given. |
| 11942 |
if test "${enable_runtime_messages+set}" = set; then : |
| 11943 |
enableval=$enable_runtime_messages; opt_runtime_messages=$enableval |
| 11944 |
else |
| 11945 |
opt_runtime_messages=no |
| 11946 |
fi |
| 11947 |
|
| 11948 |
|
| 11949 |
test "$opt_runtime_messages" = "yes" && { |
| 11950 |
|
| 11951 |
|
| 11952 |
$as_echo "#define MESSAGES /**/" >>confdefs.h |
| 11953 |
|
| 11954 |
|
| 11955 |
$as_echo "#define MESSAGE_NO_ESC /**/" >>confdefs.h |
| 11956 |
|
| 11957 |
|
| 11958 |
} |
| 11959 |
|
| 11960 |
# Check whether --enable-fallback-styles was given. |
| 11961 |
if test "${enable_fallback_styles+set}" = set; then : |
| 11962 |
enableval=$enable_fallback_styles; opt_fallback_styles=$enableval |
| 11963 |
else |
| 11964 |
opt_fallback_styles=yes |
| 11965 |
fi |
| 11966 |
|
| 11967 |
|
| 11968 |
test "$opt_fallback_styles" = "yes" && { |
| 11969 |
|
| 11970 |
|
| 11971 |
$as_echo "#define USE_FALLBACK_STYLES /**/" >>confdefs.h |
| 11972 |
|
| 11973 |
|
| 11974 |
} |
| 11975 |
if test x$opt_fallback_styles = xyes; then |
| 11976 |
ENABLE_FALLBACK_STYLES_TRUE= |
| 11977 |
ENABLE_FALLBACK_STYLES_FALSE='#' |
| 11978 |
else |
| 11979 |
ENABLE_FALLBACK_STYLES_TRUE='#' |
| 11980 |
ENABLE_FALLBACK_STYLES_FALSE= |
| 11981 |
fi |
| 11982 |
|
| 11983 |
|
| 11984 |
# Check whether --enable-memmove-code was given. |
| 11985 |
if test "${enable_memmove_code+set}" = set; then : |
| 11986 |
enableval=$enable_memmove_code; opt_memmove_code=$enableval |
| 11987 |
else |
| 11988 |
opt_memmove_code=yes |
| 11989 |
fi |
| 11990 |
|
| 11991 |
|
| 11992 |
test "$opt_memmove_code" = "yes" && { |
| 11993 |
|
| 11994 |
|
| 11995 |
$as_echo "#define USE_MEMMOVE_CODE /**/" >>confdefs.h |
| 11996 |
|
| 11997 |
|
| 11998 |
} |
| 11999 |
|
| 12000 |
# Check whether --enable-international was given. |
| 12001 |
if test "${enable_international+set}" = set; then : |
| 12002 |
enableval=$enable_international; opt_international=$enableval |
| 12003 |
else |
| 12004 |
opt_international=no |
| 12005 |
fi |
| 12006 |
|
| 12007 |
if test x$opt_international = xyes; then |
| 12008 |
ENABLE_INTERNATIONAL_TRUE= |
| 12009 |
ENABLE_INTERNATIONAL_FALSE='#' |
| 12010 |
else |
| 12011 |
ENABLE_INTERNATIONAL_TRUE='#' |
| 12012 |
ENABLE_INTERNATIONAL_FALSE= |
| 12013 |
fi |
| 12014 |
|
| 12015 |
|
| 12016 |
|
| 12017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGCLD" >&5 |
| 12018 |
$as_echo_n "checking for SIGCLD... " >&6; } |
| 12019 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12020 |
/* end confdefs.h. */ |
| 12021 |
#include <signal.h> |
| 12022 |
#ifdef SIGCLD |
| 12023 |
we_have_sigcld |
| 12024 |
#endif |
| 12025 |
|
| 12026 |
_ACEOF |
| 12027 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12028 |
$EGREP "we_have_sigcld" >/dev/null 2>&1; then : |
| 12029 |
|
| 12030 |
$as_echo "#define HAVE_SIGCLD 1" >>confdefs.h |
| 12031 |
haveSIGCLD=yes |
| 12032 |
else |
| 12033 |
haveSIGCLD=no |
| 12034 |
fi |
| 12035 |
rm -f conftest* |
| 12036 |
|
| 12037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $haveSIGCLD" >&5 |
| 12038 |
$as_echo "$haveSIGCLD" >&6; } |
| 12039 |
|
| 12040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGCHLD" >&5 |
| 12041 |
$as_echo_n "checking for SIGCHLD... " >&6; } |
| 12042 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12043 |
/* end confdefs.h. */ |
| 12044 |
#include <signal.h> |
| 12045 |
#ifdef SIGCHLD |
| 12046 |
we_have_sigchld |
| 12047 |
#endif |
| 12048 |
|
| 12049 |
_ACEOF |
| 12050 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12051 |
$EGREP "we_have_sigchld" >/dev/null 2>&1; then : |
| 12052 |
|
| 12053 |
$as_echo "#define HAVE_SIGCHLD 1" >>confdefs.h |
| 12054 |
haveSIGCHLD=yes |
| 12055 |
else |
| 12056 |
haveSIGCHLD=no |
| 12057 |
fi |
| 12058 |
rm -f conftest* |
| 12059 |
|
| 12060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $haveSIGCHLD" >&5 |
| 12061 |
$as_echo "$haveSIGCHLD" >&6; } |
| 12062 |
|
| 12063 |
# Check whether --enable-SIGCHLD-fallback was given. |
| 12064 |
if test "${enable_SIGCHLD_fallback+set}" = set; then : |
| 12065 |
enableval=$enable_SIGCHLD_fallback; case "${enableval}" in |
| 12066 |
yes) opt_sigchld=true ;; |
| 12067 |
no) opt_sigchld=false ;; |
| 12068 |
*) as_fn_error "bad value ${enableval} for --enable-SIGCHLD-fallback" "$LINENO" 5 ;; |
| 12069 |
esac |
| 12070 |
else |
| 12071 |
opt_sigchld=false |
| 12072 |
fi |
| 12073 |
|
| 12074 |
|
| 12075 |
if test "x$haveSIGCLD" = "xno" |
| 12076 |
then |
| 12077 |
if test x$opt_sigchld = xfalse |
| 12078 |
then |
| 12079 |
as_fn_error "SIGCLD is needed. You can try --enable-SIGCHLD-fallback. It's secure on MacOS X, but on FreeBSD the fallback creates zombies." "$LINENO" 5 |
| 12080 |
else |
| 12081 |
|
| 12082 |
$as_echo "#define SIGCLD SIGCHLD" >>confdefs.h |
| 12083 |
|
| 12084 |
fi |
| 12085 |
fi |
| 12086 |
|
| 12087 |
|
| 12088 |
|
| 12089 |
opt_setenv_code=unknown |
| 12090 |
|
| 12091 |
# Check whether --enable-setenv-code was given. |
| 12092 |
if test "${enable_setenv_code+set}" = set; then : |
| 12093 |
enableval=$enable_setenv_code; case "${enableval}" in |
| 12094 |
yes) opt_setenv_code=true ;; |
| 12095 |
no) opt_setenv_code=false ;; |
| 12096 |
*) as_fn_error "bad value ${enableval} for --enable-setenv-code" "$LINENO" 5 ;; |
| 12097 |
esac |
| 12098 |
else |
| 12099 |
opt_setenv_code=unknown |
| 12100 |
fi |
| 12101 |
|
| 12102 |
|
| 12103 |
if test x$opt_setenv_code = xunknown |
| 12104 |
then |
| 12105 |
for ac_func in setenv unsetenv |
| 12106 |
do : |
| 12107 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12108 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12109 |
eval as_val=\$$as_ac_var |
| 12110 |
if test "x$as_val" = x""yes; then : |
| 12111 |
cat >>confdefs.h <<_ACEOF |
| 12112 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12113 |
_ACEOF |
| 12114 |
|
| 12115 |
else |
| 12116 |
as_fn_error "The configure option --disable-setenv-code or --enable-setenv-code should help." "$LINENO" 5 |
| 12117 |
fi |
| 12118 |
done |
| 12119 |
|
| 12120 |
fi |
| 12121 |
|
| 12122 |
if test x$opt_setenv_code = xtrue; then |
| 12123 |
USE_SETENV_CODE_TRUE= |
| 12124 |
USE_SETENV_CODE_FALSE='#' |
| 12125 |
else |
| 12126 |
USE_SETENV_CODE_TRUE='#' |
| 12127 |
USE_SETENV_CODE_FALSE= |
| 12128 |
fi |
| 12129 |
|
| 12130 |
|
| 12131 |
|
| 12132 |
|
| 12133 |
# Check whether --enable-off_t was given. |
| 12134 |
if test "${enable_off_t+set}" = set; then : |
| 12135 |
enableval=$enable_off_t; case "${enableval}" in |
| 12136 |
yes) opt_off_t=true ;; |
| 12137 |
no) opt_off_t=false ;; |
| 12138 |
*) as_fn_error "bad value ${enableval} for --enable-off_t" "$LINENO" 5 ;; |
| 12139 |
esac |
| 12140 |
else |
| 12141 |
|
| 12142 |
for ac_func in ftello fseeko |
| 12143 |
do : |
| 12144 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12145 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12146 |
eval as_val=\$$as_ac_var |
| 12147 |
if test "x$as_val" = x""yes; then : |
| 12148 |
cat >>confdefs.h <<_ACEOF |
| 12149 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12150 |
_ACEOF |
| 12151 |
opt_off_t=true |
| 12152 |
else |
| 12153 |
opt_off_t=false |
| 12154 |
fi |
| 12155 |
done |
| 12156 |
|
| 12157 |
|
| 12158 |
fi |
| 12159 |
|
| 12160 |
|
| 12161 |
|
| 12162 |
|
| 12163 |
|
| 12164 |
test "$opt_off_t" = "true" && { |
| 12165 |
# Check whether --enable-largefile was given. |
| 12166 |
if test "${enable_largefile+set}" = set; then : |
| 12167 |
enableval=$enable_largefile; |
| 12168 |
fi |
| 12169 |
|
| 12170 |
if test "$enable_largefile" != no; then |
| 12171 |
|
| 12172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 12173 |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 12174 |
if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 12175 |
$as_echo_n "(cached) " >&6 |
| 12176 |
else |
| 12177 |
ac_cv_sys_largefile_CC=no |
| 12178 |
if test "$GCC" != yes; then |
| 12179 |
ac_save_CC=$CC |
| 12180 |
while :; do |
| 12181 |
# IRIX 6.2 and later do not support large files by default, |
| 12182 |
# so use the C compiler's -n32 option if that helps. |
| 12183 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12184 |
/* end confdefs.h. */ |
| 12185 |
#include <sys/types.h> |
| 12186 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 12187 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 12188 |
since some C++ compilers masquerading as C compilers |
| 12189 |
incorrectly reject 9223372036854775807. */ |
| 12190 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 12191 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 12192 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 12193 |
? 1 : -1]; |
| 12194 |
int |
| 12195 |
main () |
| 12196 |
{ |
| 12197 |
|
| 12198 |
; |
| 12199 |
return 0; |
| 12200 |
} |
| 12201 |
_ACEOF |
| 12202 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12203 |
break |
| 12204 |
fi |
| 12205 |
rm -f core conftest.err conftest.$ac_objext |
| 12206 |
CC="$CC -n32" |
| 12207 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12208 |
ac_cv_sys_largefile_CC=' -n32'; break |
| 12209 |
fi |
| 12210 |
rm -f core conftest.err conftest.$ac_objext |
| 12211 |
break |
| 12212 |
done |
| 12213 |
CC=$ac_save_CC |
| 12214 |
rm -f conftest.$ac_ext |
| 12215 |
fi |
| 12216 |
fi |
| 12217 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 12218 |
$as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 12219 |
if test "$ac_cv_sys_largefile_CC" != no; then |
| 12220 |
CC=$CC$ac_cv_sys_largefile_CC |
| 12221 |
fi |
| 12222 |
|
| 12223 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 12224 |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 12225 |
if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 12226 |
$as_echo_n "(cached) " >&6 |
| 12227 |
else |
| 12228 |
while :; do |
| 12229 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12230 |
/* end confdefs.h. */ |
| 12231 |
#include <sys/types.h> |
| 12232 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 12233 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 12234 |
since some C++ compilers masquerading as C compilers |
| 12235 |
incorrectly reject 9223372036854775807. */ |
| 12236 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 12237 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 12238 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 12239 |
? 1 : -1]; |
| 12240 |
int |
| 12241 |
main () |
| 12242 |
{ |
| 12243 |
|
| 12244 |
; |
| 12245 |
return 0; |
| 12246 |
} |
| 12247 |
_ACEOF |
| 12248 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12249 |
ac_cv_sys_file_offset_bits=no; break |
| 12250 |
fi |
| 12251 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12252 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12253 |
/* end confdefs.h. */ |
| 12254 |
#define _FILE_OFFSET_BITS 64 |
| 12255 |
#include <sys/types.h> |
| 12256 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 12257 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 12258 |
since some C++ compilers masquerading as C compilers |
| 12259 |
incorrectly reject 9223372036854775807. */ |
| 12260 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 12261 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 12262 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 12263 |
? 1 : -1]; |
| 12264 |
int |
| 12265 |
main () |
| 12266 |
{ |
| 12267 |
|
| 12268 |
; |
| 12269 |
return 0; |
| 12270 |
} |
| 12271 |
_ACEOF |
| 12272 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12273 |
ac_cv_sys_file_offset_bits=64; break |
| 12274 |
fi |
| 12275 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12276 |
ac_cv_sys_file_offset_bits=unknown |
| 12277 |
break |
| 12278 |
done |
| 12279 |
fi |
| 12280 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 12281 |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 12282 |
case $ac_cv_sys_file_offset_bits in #( |
| 12283 |
no | unknown) ;; |
| 12284 |
*) |
| 12285 |
cat >>confdefs.h <<_ACEOF |
| 12286 |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 12287 |
_ACEOF |
| 12288 |
;; |
| 12289 |
esac |
| 12290 |
rm -rf conftest* |
| 12291 |
if test $ac_cv_sys_file_offset_bits = unknown; then |
| 12292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 12293 |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 12294 |
if test "${ac_cv_sys_large_files+set}" = set; then : |
| 12295 |
$as_echo_n "(cached) " >&6 |
| 12296 |
else |
| 12297 |
while :; do |
| 12298 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12299 |
/* end confdefs.h. */ |
| 12300 |
#include <sys/types.h> |
| 12301 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 12302 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 12303 |
since some C++ compilers masquerading as C compilers |
| 12304 |
incorrectly reject 9223372036854775807. */ |
| 12305 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 12306 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 12307 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 12308 |
? 1 : -1]; |
| 12309 |
int |
| 12310 |
main () |
| 12311 |
{ |
| 12312 |
|
| 12313 |
; |
| 12314 |
return 0; |
| 12315 |
} |
| 12316 |
_ACEOF |
| 12317 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12318 |
ac_cv_sys_large_files=no; break |
| 12319 |
fi |
| 12320 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12321 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12322 |
/* end confdefs.h. */ |
| 12323 |
#define _LARGE_FILES 1 |
| 12324 |
#include <sys/types.h> |
| 12325 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 12326 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 12327 |
since some C++ compilers masquerading as C compilers |
| 12328 |
incorrectly reject 9223372036854775807. */ |
| 12329 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 12330 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 12331 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 12332 |
? 1 : -1]; |
| 12333 |
int |
| 12334 |
main () |
| 12335 |
{ |
| 12336 |
|
| 12337 |
; |
| 12338 |
return 0; |
| 12339 |
} |
| 12340 |
_ACEOF |
| 12341 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12342 |
ac_cv_sys_large_files=1; break |
| 12343 |
fi |
| 12344 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12345 |
ac_cv_sys_large_files=unknown |
| 12346 |
break |
| 12347 |
done |
| 12348 |
fi |
| 12349 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 12350 |
$as_echo "$ac_cv_sys_large_files" >&6; } |
| 12351 |
case $ac_cv_sys_large_files in #( |
| 12352 |
no | unknown) ;; |
| 12353 |
*) |
| 12354 |
cat >>confdefs.h <<_ACEOF |
| 12355 |
#define _LARGE_FILES $ac_cv_sys_large_files |
| 12356 |
_ACEOF |
| 12357 |
;; |
| 12358 |
esac |
| 12359 |
rm -rf conftest* |
| 12360 |
fi |
| 12361 |
fi |
| 12362 |
|
| 12363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 12364 |
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 12365 |
if test "${ac_cv_sys_largefile_source+set}" = set; then : |
| 12366 |
$as_echo_n "(cached) " >&6 |
| 12367 |
else |
| 12368 |
while :; do |
| 12369 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12370 |
/* end confdefs.h. */ |
| 12371 |
#include <sys/types.h> /* for off_t */ |
| 12372 |
#include <stdio.h> |
| 12373 |
int |
| 12374 |
main () |
| 12375 |
{ |
| 12376 |
int (*fp) (FILE *, off_t, int) = fseeko; |
| 12377 |
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 12378 |
; |
| 12379 |
return 0; |
| 12380 |
} |
| 12381 |
_ACEOF |
| 12382 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12383 |
ac_cv_sys_largefile_source=no; break |
| 12384 |
fi |
| 12385 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12386 |
conftest$ac_exeext conftest.$ac_ext |
| 12387 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12388 |
/* end confdefs.h. */ |
| 12389 |
#define _LARGEFILE_SOURCE 1 |
| 12390 |
#include <sys/types.h> /* for off_t */ |
| 12391 |
#include <stdio.h> |
| 12392 |
int |
| 12393 |
main () |
| 12394 |
{ |
| 12395 |
int (*fp) (FILE *, off_t, int) = fseeko; |
| 12396 |
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 12397 |
; |
| 12398 |
return 0; |
| 12399 |
} |
| 12400 |
_ACEOF |
| 12401 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12402 |
ac_cv_sys_largefile_source=1; break |
| 12403 |
fi |
| 12404 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12405 |
conftest$ac_exeext conftest.$ac_ext |
| 12406 |
ac_cv_sys_largefile_source=unknown |
| 12407 |
break |
| 12408 |
done |
| 12409 |
fi |
| 12410 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
| 12411 |
$as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 12412 |
case $ac_cv_sys_largefile_source in #( |
| 12413 |
no | unknown) ;; |
| 12414 |
*) |
| 12415 |
cat >>confdefs.h <<_ACEOF |
| 12416 |
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 12417 |
_ACEOF |
| 12418 |
;; |
| 12419 |
esac |
| 12420 |
rm -rf conftest* |
| 12421 |
|
| 12422 |
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 12423 |
# in glibc 2.1.3, but that breaks too many other things. |
| 12424 |
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 12425 |
if test $ac_cv_sys_largefile_source != unknown; then |
| 12426 |
|
| 12427 |
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| 12428 |
|
| 12429 |
fi |
| 12430 |
|
| 12431 |
echo Enabling LFS. |
| 12432 |
|
| 12433 |
$as_echo "#define HAVE_OFF_T /**/" >>confdefs.h |
| 12434 |
|
| 12435 |
} |
| 12436 |
|
| 12437 |
if test x$opt_off_t = xtrue; then |
| 12438 |
USE_OFF_T_TRUE= |
| 12439 |
USE_OFF_T_FALSE='#' |
| 12440 |
else |
| 12441 |
USE_OFF_T_TRUE='#' |
| 12442 |
USE_OFF_T_FALSE= |
| 12443 |
fi |
| 12444 |
|
| 12445 |
|
| 12446 |
|
| 12447 |
#################### X11 related stuff ###################### |
| 12448 |
|
| 12449 |
|
| 12450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 12451 |
$as_echo_n "checking for X... " >&6; } |
| 12452 |
|
| 12453 |
|
| 12454 |
# Check whether --with-x was given. |
| 12455 |
if test "${with_x+set}" = set; then : |
| 12456 |
withval=$with_x; |
| 12457 |
fi |
| 12458 |
|
| 12459 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 12460 |
if test "x$with_x" = xno; then |
| 12461 |
# The user explicitly disabled X. |
| 12462 |
have_x=disabled |
| 12463 |
else |
| 12464 |
case $x_includes,$x_libraries in #( |
| 12465 |
*\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 12466 |
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| 12467 |
$as_echo_n "(cached) " >&6 |
| 12468 |
else |
| 12469 |
# One or both of the vars are not set, and there is no cached value. |
| 12470 |
ac_x_includes=no ac_x_libraries=no |
| 12471 |
rm -f -r conftest.dir |
| 12472 |
if mkdir conftest.dir; then |
| 12473 |
cd conftest.dir |
| 12474 |
cat >Imakefile <<'_ACEOF' |
| 12475 |
incroot: |
| 12476 |
@echo incroot='${INCROOT}' |
| 12477 |
usrlibdir: |
| 12478 |
@echo usrlibdir='${USRLIBDIR}' |
| 12479 |
libdir: |
| 12480 |
@echo libdir='${LIBDIR}' |
| 12481 |
_ACEOF |
| 12482 |
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 12483 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 12484 |
for ac_var in incroot usrlibdir libdir; do |
| 12485 |
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 12486 |
done |
| 12487 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 12488 |
for ac_extension in a so sl dylib la dll; do |
| 12489 |
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 12490 |
test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 12491 |
ac_im_usrlibdir=$ac_im_libdir; break |
| 12492 |
fi |
| 12493 |
done |
| 12494 |
# Screen out bogus values from the imake configuration. They are |
| 12495 |
# bogus both because they are the default anyway, and because |
| 12496 |
# using them would break gcc on systems where it needs fixed includes. |
| 12497 |
case $ac_im_incroot in |
| 12498 |
/usr/include) ac_x_includes= ;; |
| 12499 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 12500 |
esac |
| 12501 |
case $ac_im_usrlibdir in |
| 12502 |
/usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 12503 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 12504 |
esac |
| 12505 |
fi |
| 12506 |
cd .. |
| 12507 |
rm -f -r conftest.dir |
| 12508 |
fi |
| 12509 |
|
| 12510 |
# Standard set of common directories for X headers. |
| 12511 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
| 12512 |
ac_x_header_dirs=' |
| 12513 |
/usr/X11/include |
| 12514 |
/usr/X11R7/include |
| 12515 |
/usr/X11R6/include |
| 12516 |
/usr/X11R5/include |
| 12517 |
/usr/X11R4/include |
| 12518 |
|
| 12519 |
/usr/include/X11 |
| 12520 |
/usr/include/X11R7 |
| 12521 |
/usr/include/X11R6 |
| 12522 |
/usr/include/X11R5 |
| 12523 |
/usr/include/X11R4 |
| 12524 |
|
| 12525 |
/usr/local/X11/include |
| 12526 |
/usr/local/X11R7/include |
| 12527 |
/usr/local/X11R6/include |
| 12528 |
/usr/local/X11R5/include |
| 12529 |
/usr/local/X11R4/include |
| 12530 |
|
| 12531 |
/usr/local/include/X11 |
| 12532 |
/usr/local/include/X11R7 |
| 12533 |
/usr/local/include/X11R6 |
| 12534 |
/usr/local/include/X11R5 |
| 12535 |
/usr/local/include/X11R4 |
| 12536 |
|
| 12537 |
/usr/X386/include |
| 12538 |
/usr/x386/include |
| 12539 |
/usr/XFree86/include/X11 |
| 12540 |
|
| 12541 |
/usr/include |
| 12542 |
/usr/local/include |
| 12543 |
/usr/unsupported/include |
| 12544 |
/usr/athena/include |
| 12545 |
/usr/local/x11r5/include |
| 12546 |
/usr/lpp/Xamples/include |
| 12547 |
|
| 12548 |
/usr/openwin/include |
| 12549 |
/usr/openwin/share/include' |
| 12550 |
|
| 12551 |
if test "$ac_x_includes" = no; then |
| 12552 |
# Guess where to find include files, by looking for Xlib.h. |
| 12553 |
# First, try using that file with no special directory specified. |
| 12554 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12555 |
/* end confdefs.h. */ |
| 12556 |
#include <X11/Xlib.h> |
| 12557 |
_ACEOF |
| 12558 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 12559 |
# We can compile using X headers with no special include directory. |
| 12560 |
ac_x_includes= |
| 12561 |
else |
| 12562 |
for ac_dir in $ac_x_header_dirs; do |
| 12563 |
if test -r "$ac_dir/X11/Xlib.h"; then |
| 12564 |
ac_x_includes=$ac_dir |
| 12565 |
break |
| 12566 |
fi |
| 12567 |
done |
| 12568 |
fi |
| 12569 |
rm -f conftest.err conftest.$ac_ext |
| 12570 |
fi # $ac_x_includes = no |
| 12571 |
|
| 12572 |
if test "$ac_x_libraries" = no; then |
| 12573 |
# Check for the libraries. |
| 12574 |
# See if we find them without any special options. |
| 12575 |
# Don't add to $LIBS permanently. |
| 12576 |
ac_save_LIBS=$LIBS |
| 12577 |
LIBS="-lX11 $LIBS" |
| 12578 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12579 |
/* end confdefs.h. */ |
| 12580 |
#include <X11/Xlib.h> |
| 12581 |
int |
| 12582 |
main () |
| 12583 |
{ |
| 12584 |
XrmInitialize () |
| 12585 |
; |
| 12586 |
return 0; |
| 12587 |
} |
| 12588 |
_ACEOF |
| 12589 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12590 |
LIBS=$ac_save_LIBS |
| 12591 |
# We can link X programs with no special library path. |
| 12592 |
ac_x_libraries= |
| 12593 |
else |
| 12594 |
LIBS=$ac_save_LIBS |
| 12595 |
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 12596 |
do |
| 12597 |
# Don't even attempt the hair of trying to link an X program! |
| 12598 |
for ac_extension in a so sl dylib la dll; do |
| 12599 |
if test -r "$ac_dir/libX11.$ac_extension"; then |
| 12600 |
ac_x_libraries=$ac_dir |
| 12601 |
break 2 |
| 12602 |
fi |
| 12603 |
done |
| 12604 |
done |
| 12605 |
fi |
| 12606 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12607 |
conftest$ac_exeext conftest.$ac_ext |
| 12608 |
fi # $ac_x_libraries = no |
| 12609 |
|
| 12610 |
case $ac_x_includes,$ac_x_libraries in #( |
| 12611 |
no,* | *,no | *\'*) |
| 12612 |
# Didn't find X, or a directory has "'" in its name. |
| 12613 |
ac_cv_have_x="have_x=no";; #( |
| 12614 |
*) |
| 12615 |
# Record where we found X for the cache. |
| 12616 |
ac_cv_have_x="have_x=yes\ |
| 12617 |
ac_x_includes='$ac_x_includes'\ |
| 12618 |
ac_x_libraries='$ac_x_libraries'" |
| 12619 |
esac |
| 12620 |
fi |
| 12621 |
;; #( |
| 12622 |
*) have_x=yes;; |
| 12623 |
esac |
| 12624 |
eval "$ac_cv_have_x" |
| 12625 |
fi # $with_x != no |
| 12626 |
|
| 12627 |
if test "$have_x" != yes; then |
| 12628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 12629 |
$as_echo "$have_x" >&6; } |
| 12630 |
no_x=yes |
| 12631 |
else |
| 12632 |
# If each of the values was on the command line, it overrides each guess. |
| 12633 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 12634 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 12635 |
# Update the cache value to reflect the command line values. |
| 12636 |
ac_cv_have_x="have_x=yes\ |
| 12637 |
ac_x_includes='$x_includes'\ |
| 12638 |
ac_x_libraries='$x_libraries'" |
| 12639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 12640 |
$as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 12641 |
fi |
| 12642 |
|
| 12643 |
if test "$no_x" = yes; then |
| 12644 |
# Not all programs may use this symbol, but it does not hurt to define it. |
| 12645 |
|
| 12646 |
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| 12647 |
|
| 12648 |
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 12649 |
else |
| 12650 |
if test -n "$x_includes"; then |
| 12651 |
X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 12652 |
fi |
| 12653 |
|
| 12654 |
# It would also be nice to do this for all -L options, not just this one. |
| 12655 |
if test -n "$x_libraries"; then |
| 12656 |
X_LIBS="$X_LIBS -L$x_libraries" |
| 12657 |
# For Solaris; some versions of Sun CC require a space after -R and |
| 12658 |
# others require no space. Words are not sufficient . . . . |
| 12659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| 12660 |
$as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 12661 |
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 12662 |
ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 12663 |
ac_c_werror_flag=yes |
| 12664 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12665 |
/* end confdefs.h. */ |
| 12666 |
|
| 12667 |
int |
| 12668 |
main () |
| 12669 |
{ |
| 12670 |
|
| 12671 |
; |
| 12672 |
return 0; |
| 12673 |
} |
| 12674 |
_ACEOF |
| 12675 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12676 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12677 |
$as_echo "no" >&6; } |
| 12678 |
X_LIBS="$X_LIBS -R$x_libraries" |
| 12679 |
else |
| 12680 |
LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 12681 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12682 |
/* end confdefs.h. */ |
| 12683 |
|
| 12684 |
int |
| 12685 |
main () |
| 12686 |
{ |
| 12687 |
|
| 12688 |
; |
| 12689 |
return 0; |
| 12690 |
} |
| 12691 |
_ACEOF |
| 12692 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12694 |
$as_echo "yes" >&6; } |
| 12695 |
X_LIBS="$X_LIBS -R $x_libraries" |
| 12696 |
else |
| 12697 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| 12698 |
$as_echo "neither works" >&6; } |
| 12699 |
fi |
| 12700 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12701 |
conftest$ac_exeext conftest.$ac_ext |
| 12702 |
fi |
| 12703 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12704 |
conftest$ac_exeext conftest.$ac_ext |
| 12705 |
ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 12706 |
LIBS=$ac_xsave_LIBS |
| 12707 |
fi |
| 12708 |
|
| 12709 |
# Check for system-dependent libraries X programs must link with. |
| 12710 |
# Do this before checking for the system-independent R6 libraries |
| 12711 |
# (-lICE), since we may need -lsocket or whatever for X linking. |
| 12712 |
|
| 12713 |
if test "$ISC" = yes; then |
| 12714 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 12715 |
else |
| 12716 |
# Martyn Johnson says this is needed for Ultrix, if the X |
| 12717 |
# libraries were built with DECnet support. And Karl Berry says |
| 12718 |
# the Alpha needs dnet_stub (dnet does not exist). |
| 12719 |
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 12720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12721 |
/* end confdefs.h. */ |
| 12722 |
|
| 12723 |
/* Override any GCC internal prototype to avoid an error. |
| 12724 |
Use char because int might match the return type of a GCC |
| 12725 |
builtin and then its argument prototype would still apply. */ |
| 12726 |
#ifdef __cplusplus |
| 12727 |
extern "C" |
| 12728 |
#endif |
| 12729 |
char XOpenDisplay (); |
| 12730 |
int |
| 12731 |
main () |
| 12732 |
{ |
| 12733 |
return XOpenDisplay (); |
| 12734 |
; |
| 12735 |
return 0; |
| 12736 |
} |
| 12737 |
_ACEOF |
| 12738 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12739 |
|
| 12740 |
else |
| 12741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 12742 |
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| 12743 |
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
| 12744 |
$as_echo_n "(cached) " >&6 |
| 12745 |
else |
| 12746 |
ac_check_lib_save_LIBS=$LIBS |
| 12747 |
LIBS="-ldnet $LIBS" |
| 12748 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12749 |
/* end confdefs.h. */ |
| 12750 |
|
| 12751 |
/* Override any GCC internal prototype to avoid an error. |
| 12752 |
Use char because int might match the return type of a GCC |
| 12753 |
builtin and then its argument prototype would still apply. */ |
| 12754 |
#ifdef __cplusplus |
| 12755 |
extern "C" |
| 12756 |
#endif |
| 12757 |
char dnet_ntoa (); |
| 12758 |
int |
| 12759 |
main () |
| 12760 |
{ |
| 12761 |
return dnet_ntoa (); |
| 12762 |
; |
| 12763 |
return 0; |
| 12764 |
} |
| 12765 |
_ACEOF |
| 12766 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12767 |
ac_cv_lib_dnet_dnet_ntoa=yes |
| 12768 |
else |
| 12769 |
ac_cv_lib_dnet_dnet_ntoa=no |
| 12770 |
fi |
| 12771 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12772 |
conftest$ac_exeext conftest.$ac_ext |
| 12773 |
LIBS=$ac_check_lib_save_LIBS |
| 12774 |
fi |
| 12775 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 12776 |
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 12777 |
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
| 12778 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 12779 |
fi |
| 12780 |
|
| 12781 |
if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 12782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 12783 |
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 12784 |
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : |
| 12785 |
$as_echo_n "(cached) " >&6 |
| 12786 |
else |
| 12787 |
ac_check_lib_save_LIBS=$LIBS |
| 12788 |
LIBS="-ldnet_stub $LIBS" |
| 12789 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12790 |
/* end confdefs.h. */ |
| 12791 |
|
| 12792 |
/* Override any GCC internal prototype to avoid an error. |
| 12793 |
Use char because int might match the return type of a GCC |
| 12794 |
builtin and then its argument prototype would still apply. */ |
| 12795 |
#ifdef __cplusplus |
| 12796 |
extern "C" |
| 12797 |
#endif |
| 12798 |
char dnet_ntoa (); |
| 12799 |
int |
| 12800 |
main () |
| 12801 |
{ |
| 12802 |
return dnet_ntoa (); |
| 12803 |
; |
| 12804 |
return 0; |
| 12805 |
} |
| 12806 |
_ACEOF |
| 12807 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12808 |
ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 12809 |
else |
| 12810 |
ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 12811 |
fi |
| 12812 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12813 |
conftest$ac_exeext conftest.$ac_ext |
| 12814 |
LIBS=$ac_check_lib_save_LIBS |
| 12815 |
fi |
| 12816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 12817 |
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 12818 |
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : |
| 12819 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 12820 |
fi |
| 12821 |
|
| 12822 |
fi |
| 12823 |
fi |
| 12824 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12825 |
conftest$ac_exeext conftest.$ac_ext |
| 12826 |
LIBS="$ac_xsave_LIBS" |
| 12827 |
|
| 12828 |
# [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, |
| 12829 |
# to get the SysV transport functions. |
| 12830 |
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 12831 |
# needs -lnsl. |
| 12832 |
# The nsl library prevents programs from opening the X display |
| 12833 |
# on Irix 5.2, according to T.E. Dickey. |
| 12834 |
# The functions gethostbyname, getservbyname, and inet_addr are |
| 12835 |
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 12836 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 12837 |
if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
| 12838 |
|
| 12839 |
fi |
| 12840 |
|
| 12841 |
if test $ac_cv_func_gethostbyname = no; then |
| 12842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 12843 |
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| 12844 |
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : |
| 12845 |
$as_echo_n "(cached) " >&6 |
| 12846 |
else |
| 12847 |
ac_check_lib_save_LIBS=$LIBS |
| 12848 |
LIBS="-lnsl $LIBS" |
| 12849 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12850 |
/* end confdefs.h. */ |
| 12851 |
|
| 12852 |
/* Override any GCC internal prototype to avoid an error. |
| 12853 |
Use char because int might match the return type of a GCC |
| 12854 |
builtin and then its argument prototype would still apply. */ |
| 12855 |
#ifdef __cplusplus |
| 12856 |
extern "C" |
| 12857 |
#endif |
| 12858 |
char gethostbyname (); |
| 12859 |
int |
| 12860 |
main () |
| 12861 |
{ |
| 12862 |
return gethostbyname (); |
| 12863 |
; |
| 12864 |
return 0; |
| 12865 |
} |
| 12866 |
_ACEOF |
| 12867 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12868 |
ac_cv_lib_nsl_gethostbyname=yes |
| 12869 |
else |
| 12870 |
ac_cv_lib_nsl_gethostbyname=no |
| 12871 |
fi |
| 12872 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12873 |
conftest$ac_exeext conftest.$ac_ext |
| 12874 |
LIBS=$ac_check_lib_save_LIBS |
| 12875 |
fi |
| 12876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 12877 |
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 12878 |
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : |
| 12879 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 12880 |
fi |
| 12881 |
|
| 12882 |
if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 12883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| 12884 |
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| 12885 |
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : |
| 12886 |
$as_echo_n "(cached) " >&6 |
| 12887 |
else |
| 12888 |
ac_check_lib_save_LIBS=$LIBS |
| 12889 |
LIBS="-lbsd $LIBS" |
| 12890 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12891 |
/* end confdefs.h. */ |
| 12892 |
|
| 12893 |
/* Override any GCC internal prototype to avoid an error. |
| 12894 |
Use char because int might match the return type of a GCC |
| 12895 |
builtin and then its argument prototype would still apply. */ |
| 12896 |
#ifdef __cplusplus |
| 12897 |
extern "C" |
| 12898 |
#endif |
| 12899 |
char gethostbyname (); |
| 12900 |
int |
| 12901 |
main () |
| 12902 |
{ |
| 12903 |
return gethostbyname (); |
| 12904 |
; |
| 12905 |
return 0; |
| 12906 |
} |
| 12907 |
_ACEOF |
| 12908 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12909 |
ac_cv_lib_bsd_gethostbyname=yes |
| 12910 |
else |
| 12911 |
ac_cv_lib_bsd_gethostbyname=no |
| 12912 |
fi |
| 12913 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12914 |
conftest$ac_exeext conftest.$ac_ext |
| 12915 |
LIBS=$ac_check_lib_save_LIBS |
| 12916 |
fi |
| 12917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 12918 |
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 12919 |
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : |
| 12920 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 12921 |
fi |
| 12922 |
|
| 12923 |
fi |
| 12924 |
fi |
| 12925 |
|
| 12926 |
# [email protected] says without -lsocket, |
| 12927 |
# socket/setsockopt and other routines are undefined under SCO ODT |
| 12928 |
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 12929 |
# on later versions), says Simon Leinen: it contains gethostby* |
| 12930 |
# variants that don't use the name server (or something). -lsocket |
| 12931 |
# must be given before -lnsl if both are needed. We assume that |
| 12932 |
# if connect needs -lnsl, so does gethostbyname. |
| 12933 |
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 12934 |
if test "x$ac_cv_func_connect" = x""yes; then : |
| 12935 |
|
| 12936 |
fi |
| 12937 |
|
| 12938 |
if test $ac_cv_func_connect = no; then |
| 12939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| 12940 |
$as_echo_n "checking for connect in -lsocket... " >&6; } |
| 12941 |
if test "${ac_cv_lib_socket_connect+set}" = set; then : |
| 12942 |
$as_echo_n "(cached) " >&6 |
| 12943 |
else |
| 12944 |
ac_check_lib_save_LIBS=$LIBS |
| 12945 |
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 12946 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12947 |
/* end confdefs.h. */ |
| 12948 |
|
| 12949 |
/* Override any GCC internal prototype to avoid an error. |
| 12950 |
Use char because int might match the return type of a GCC |
| 12951 |
builtin and then its argument prototype would still apply. */ |
| 12952 |
#ifdef __cplusplus |
| 12953 |
extern "C" |
| 12954 |
#endif |
| 12955 |
char connect (); |
| 12956 |
int |
| 12957 |
main () |
| 12958 |
{ |
| 12959 |
return connect (); |
| 12960 |
; |
| 12961 |
return 0; |
| 12962 |
} |
| 12963 |
_ACEOF |
| 12964 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12965 |
ac_cv_lib_socket_connect=yes |
| 12966 |
else |
| 12967 |
ac_cv_lib_socket_connect=no |
| 12968 |
fi |
| 12969 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12970 |
conftest$ac_exeext conftest.$ac_ext |
| 12971 |
LIBS=$ac_check_lib_save_LIBS |
| 12972 |
fi |
| 12973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| 12974 |
$as_echo "$ac_cv_lib_socket_connect" >&6; } |
| 12975 |
if test "x$ac_cv_lib_socket_connect" = x""yes; then : |
| 12976 |
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 12977 |
fi |
| 12978 |
|
| 12979 |
fi |
| 12980 |
|
| 12981 |
# Guillermo Gomez says -lposix is necessary on A/UX. |
| 12982 |
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 12983 |
if test "x$ac_cv_func_remove" = x""yes; then : |
| 12984 |
|
| 12985 |
fi |
| 12986 |
|
| 12987 |
if test $ac_cv_func_remove = no; then |
| 12988 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| 12989 |
$as_echo_n "checking for remove in -lposix... " >&6; } |
| 12990 |
if test "${ac_cv_lib_posix_remove+set}" = set; then : |
| 12991 |
$as_echo_n "(cached) " >&6 |
| 12992 |
else |
| 12993 |
ac_check_lib_save_LIBS=$LIBS |
| 12994 |
LIBS="-lposix $LIBS" |
| 12995 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12996 |
/* end confdefs.h. */ |
| 12997 |
|
| 12998 |
/* Override any GCC internal prototype to avoid an error. |
| 12999 |
Use char because int might match the return type of a GCC |
| 13000 |
builtin and then its argument prototype would still apply. */ |
| 13001 |
#ifdef __cplusplus |
| 13002 |
extern "C" |
| 13003 |
#endif |
| 13004 |
char remove (); |
| 13005 |
int |
| 13006 |
main () |
| 13007 |
{ |
| 13008 |
return remove (); |
| 13009 |
; |
| 13010 |
return 0; |
| 13011 |
} |
| 13012 |
_ACEOF |
| 13013 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13014 |
ac_cv_lib_posix_remove=yes |
| 13015 |
else |
| 13016 |
ac_cv_lib_posix_remove=no |
| 13017 |
fi |
| 13018 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13019 |
conftest$ac_exeext conftest.$ac_ext |
| 13020 |
LIBS=$ac_check_lib_save_LIBS |
| 13021 |
fi |
| 13022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| 13023 |
$as_echo "$ac_cv_lib_posix_remove" >&6; } |
| 13024 |
if test "x$ac_cv_lib_posix_remove" = x""yes; then : |
| 13025 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 13026 |
fi |
| 13027 |
|
| 13028 |
fi |
| 13029 |
|
| 13030 |
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 13031 |
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 13032 |
if test "x$ac_cv_func_shmat" = x""yes; then : |
| 13033 |
|
| 13034 |
fi |
| 13035 |
|
| 13036 |
if test $ac_cv_func_shmat = no; then |
| 13037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| 13038 |
$as_echo_n "checking for shmat in -lipc... " >&6; } |
| 13039 |
if test "${ac_cv_lib_ipc_shmat+set}" = set; then : |
| 13040 |
$as_echo_n "(cached) " >&6 |
| 13041 |
else |
| 13042 |
ac_check_lib_save_LIBS=$LIBS |
| 13043 |
LIBS="-lipc $LIBS" |
| 13044 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13045 |
/* end confdefs.h. */ |
| 13046 |
|
| 13047 |
/* Override any GCC internal prototype to avoid an error. |
| 13048 |
Use char because int might match the return type of a GCC |
| 13049 |
builtin and then its argument prototype would still apply. */ |
| 13050 |
#ifdef __cplusplus |
| 13051 |
extern "C" |
| 13052 |
#endif |
| 13053 |
char shmat (); |
| 13054 |
int |
| 13055 |
main () |
| 13056 |
{ |
| 13057 |
return shmat (); |
| 13058 |
; |
| 13059 |
return 0; |
| 13060 |
} |
| 13061 |
_ACEOF |
| 13062 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13063 |
ac_cv_lib_ipc_shmat=yes |
| 13064 |
else |
| 13065 |
ac_cv_lib_ipc_shmat=no |
| 13066 |
fi |
| 13067 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13068 |
conftest$ac_exeext conftest.$ac_ext |
| 13069 |
LIBS=$ac_check_lib_save_LIBS |
| 13070 |
fi |
| 13071 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| 13072 |
$as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| 13073 |
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : |
| 13074 |
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 13075 |
fi |
| 13076 |
|
| 13077 |
fi |
| 13078 |
fi |
| 13079 |
|
| 13080 |
# Check for libraries that X11R6 Xt/Xaw programs need. |
| 13081 |
ac_save_LDFLAGS=$LDFLAGS |
| 13082 |
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 13083 |
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 13084 |
# check for ICE first), but we must link in the order -lSM -lICE or |
| 13085 |
# we get undefined symbols. So assume we have SM if we have ICE. |
| 13086 |
# These have to be linked with before -lX11, unlike the other |
| 13087 |
# libraries we check for below, so use a different variable. |
| 13088 |
# John Interrante, Karl Berry |
| 13089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| 13090 |
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| 13091 |
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : |
| 13092 |
$as_echo_n "(cached) " >&6 |
| 13093 |
else |
| 13094 |
ac_check_lib_save_LIBS=$LIBS |
| 13095 |
LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 13096 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13097 |
/* end confdefs.h. */ |
| 13098 |
|
| 13099 |
/* Override any GCC internal prototype to avoid an error. |
| 13100 |
Use char because int might match the return type of a GCC |
| 13101 |
builtin and then its argument prototype would still apply. */ |
| 13102 |
#ifdef __cplusplus |
| 13103 |
extern "C" |
| 13104 |
#endif |
| 13105 |
char IceConnectionNumber (); |
| 13106 |
int |
| 13107 |
main () |
| 13108 |
{ |
| 13109 |
return IceConnectionNumber (); |
| 13110 |
; |
| 13111 |
return 0; |
| 13112 |
} |
| 13113 |
_ACEOF |
| 13114 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13115 |
ac_cv_lib_ICE_IceConnectionNumber=yes |
| 13116 |
else |
| 13117 |
ac_cv_lib_ICE_IceConnectionNumber=no |
| 13118 |
fi |
| 13119 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13120 |
conftest$ac_exeext conftest.$ac_ext |
| 13121 |
LIBS=$ac_check_lib_save_LIBS |
| 13122 |
fi |
| 13123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 13124 |
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 13125 |
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : |
| 13126 |
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 13127 |
fi |
| 13128 |
|
| 13129 |
LDFLAGS=$ac_save_LDFLAGS |
| 13130 |
|
| 13131 |
fi |
| 13132 |
|
| 13133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 |
| 13134 |
$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } |
| 13135 |
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then : |
| 13136 |
$as_echo_n "(cached) " >&6 |
| 13137 |
else |
| 13138 |
ac_check_lib_save_LIBS=$LIBS |
| 13139 |
LIBS="-lX11 $X_LIBS $LIBS" |
| 13140 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13141 |
/* end confdefs.h. */ |
| 13142 |
|
| 13143 |
/* Override any GCC internal prototype to avoid an error. |
| 13144 |
Use char because int might match the return type of a GCC |
| 13145 |
builtin and then its argument prototype would still apply. */ |
| 13146 |
#ifdef __cplusplus |
| 13147 |
extern "C" |
| 13148 |
#endif |
| 13149 |
char XOpenDisplay (); |
| 13150 |
int |
| 13151 |
main () |
| 13152 |
{ |
| 13153 |
return XOpenDisplay (); |
| 13154 |
; |
| 13155 |
return 0; |
| 13156 |
} |
| 13157 |
_ACEOF |
| 13158 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13159 |
ac_cv_lib_X11_XOpenDisplay=yes |
| 13160 |
else |
| 13161 |
ac_cv_lib_X11_XOpenDisplay=no |
| 13162 |
fi |
| 13163 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13164 |
conftest$ac_exeext conftest.$ac_ext |
| 13165 |
LIBS=$ac_check_lib_save_LIBS |
| 13166 |
fi |
| 13167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 |
| 13168 |
$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } |
| 13169 |
if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then : |
| 13170 |
cat >>confdefs.h <<_ACEOF |
| 13171 |
#define HAVE_LIBX11 1 |
| 13172 |
_ACEOF |
| 13173 |
|
| 13174 |
LIBS="-lX11 $LIBS" |
| 13175 |
|
| 13176 |
fi |
| 13177 |
|
| 13178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lICE" >&5 |
| 13179 |
$as_echo_n "checking for main in -lICE... " >&6; } |
| 13180 |
if test "${ac_cv_lib_ICE_main+set}" = set; then : |
| 13181 |
$as_echo_n "(cached) " >&6 |
| 13182 |
else |
| 13183 |
ac_check_lib_save_LIBS=$LIBS |
| 13184 |
LIBS="-lICE $X_LIBS $LIBS" |
| 13185 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13186 |
/* end confdefs.h. */ |
| 13187 |
|
| 13188 |
|
| 13189 |
int |
| 13190 |
main () |
| 13191 |
{ |
| 13192 |
return main (); |
| 13193 |
; |
| 13194 |
return 0; |
| 13195 |
} |
| 13196 |
_ACEOF |
| 13197 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13198 |
ac_cv_lib_ICE_main=yes |
| 13199 |
else |
| 13200 |
ac_cv_lib_ICE_main=no |
| 13201 |
fi |
| 13202 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13203 |
conftest$ac_exeext conftest.$ac_ext |
| 13204 |
LIBS=$ac_check_lib_save_LIBS |
| 13205 |
fi |
| 13206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_main" >&5 |
| 13207 |
$as_echo "$ac_cv_lib_ICE_main" >&6; } |
| 13208 |
if test "x$ac_cv_lib_ICE_main" = x""yes; then : |
| 13209 |
cat >>confdefs.h <<_ACEOF |
| 13210 |
#define HAVE_LIBICE 1 |
| 13211 |
_ACEOF |
| 13212 |
|
| 13213 |
LIBS="-lICE $LIBS" |
| 13214 |
|
| 13215 |
fi |
| 13216 |
|
| 13217 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSM" >&5 |
| 13218 |
$as_echo_n "checking for main in -lSM... " >&6; } |
| 13219 |
if test "${ac_cv_lib_SM_main+set}" = set; then : |
| 13220 |
$as_echo_n "(cached) " >&6 |
| 13221 |
else |
| 13222 |
ac_check_lib_save_LIBS=$LIBS |
| 13223 |
LIBS="-lSM $X_LIBS $LIBS" |
| 13224 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13225 |
/* end confdefs.h. */ |
| 13226 |
|
| 13227 |
|
| 13228 |
int |
| 13229 |
main () |
| 13230 |
{ |
| 13231 |
return main (); |
| 13232 |
; |
| 13233 |
return 0; |
| 13234 |
} |
| 13235 |
_ACEOF |
| 13236 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13237 |
ac_cv_lib_SM_main=yes |
| 13238 |
else |
| 13239 |
ac_cv_lib_SM_main=no |
| 13240 |
fi |
| 13241 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13242 |
conftest$ac_exeext conftest.$ac_ext |
| 13243 |
LIBS=$ac_check_lib_save_LIBS |
| 13244 |
fi |
| 13245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_main" >&5 |
| 13246 |
$as_echo "$ac_cv_lib_SM_main" >&6; } |
| 13247 |
if test "x$ac_cv_lib_SM_main" = x""yes; then : |
| 13248 |
cat >>confdefs.h <<_ACEOF |
| 13249 |
#define HAVE_LIBSM 1 |
| 13250 |
_ACEOF |
| 13251 |
|
| 13252 |
LIBS="-lSM $LIBS" |
| 13253 |
|
| 13254 |
fi |
| 13255 |
|
| 13256 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 |
| 13257 |
$as_echo_n "checking for main in -lXext... " >&6; } |
| 13258 |
if test "${ac_cv_lib_Xext_main+set}" = set; then : |
| 13259 |
$as_echo_n "(cached) " >&6 |
| 13260 |
else |
| 13261 |
ac_check_lib_save_LIBS=$LIBS |
| 13262 |
LIBS="-lXext $X_LIBS $LIBS" |
| 13263 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13264 |
/* end confdefs.h. */ |
| 13265 |
|
| 13266 |
|
| 13267 |
int |
| 13268 |
main () |
| 13269 |
{ |
| 13270 |
return main (); |
| 13271 |
; |
| 13272 |
return 0; |
| 13273 |
} |
| 13274 |
_ACEOF |
| 13275 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13276 |
ac_cv_lib_Xext_main=yes |
| 13277 |
else |
| 13278 |
ac_cv_lib_Xext_main=no |
| 13279 |
fi |
| 13280 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13281 |
conftest$ac_exeext conftest.$ac_ext |
| 13282 |
LIBS=$ac_check_lib_save_LIBS |
| 13283 |
fi |
| 13284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5 |
| 13285 |
$as_echo "$ac_cv_lib_Xext_main" >&6; } |
| 13286 |
if test "x$ac_cv_lib_Xext_main" = x""yes; then : |
| 13287 |
cat >>confdefs.h <<_ACEOF |
| 13288 |
#define HAVE_LIBXEXT 1 |
| 13289 |
_ACEOF |
| 13290 |
|
| 13291 |
LIBS="-lXext $LIBS" |
| 13292 |
|
| 13293 |
fi |
| 13294 |
|
| 13295 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtOpenDisplay in -lXt" >&5 |
| 13296 |
$as_echo_n "checking for XtOpenDisplay in -lXt... " >&6; } |
| 13297 |
if test "${ac_cv_lib_Xt_XtOpenDisplay+set}" = set; then : |
| 13298 |
$as_echo_n "(cached) " >&6 |
| 13299 |
else |
| 13300 |
ac_check_lib_save_LIBS=$LIBS |
| 13301 |
LIBS="-lXt $X_LIBS $LIBS" |
| 13302 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13303 |
/* end confdefs.h. */ |
| 13304 |
|
| 13305 |
/* Override any GCC internal prototype to avoid an error. |
| 13306 |
Use char because int might match the return type of a GCC |
| 13307 |
builtin and then its argument prototype would still apply. */ |
| 13308 |
#ifdef __cplusplus |
| 13309 |
extern "C" |
| 13310 |
#endif |
| 13311 |
char XtOpenDisplay (); |
| 13312 |
int |
| 13313 |
main () |
| 13314 |
{ |
| 13315 |
return XtOpenDisplay (); |
| 13316 |
; |
| 13317 |
return 0; |
| 13318 |
} |
| 13319 |
_ACEOF |
| 13320 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13321 |
ac_cv_lib_Xt_XtOpenDisplay=yes |
| 13322 |
else |
| 13323 |
ac_cv_lib_Xt_XtOpenDisplay=no |
| 13324 |
fi |
| 13325 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13326 |
conftest$ac_exeext conftest.$ac_ext |
| 13327 |
LIBS=$ac_check_lib_save_LIBS |
| 13328 |
fi |
| 13329 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtOpenDisplay" >&5 |
| 13330 |
$as_echo "$ac_cv_lib_Xt_XtOpenDisplay" >&6; } |
| 13331 |
if test "x$ac_cv_lib_Xt_XtOpenDisplay" = x""yes; then : |
| 13332 |
cat >>confdefs.h <<_ACEOF |
| 13333 |
#define HAVE_LIBXT 1 |
| 13334 |
_ACEOF |
| 13335 |
|
| 13336 |
LIBS="-lXt $LIBS" |
| 13337 |
|
| 13338 |
fi |
| 13339 |
|
| 13340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXmu" >&5 |
| 13341 |
$as_echo_n "checking for main in -lXmu... " >&6; } |
| 13342 |
if test "${ac_cv_lib_Xmu_main+set}" = set; then : |
| 13343 |
$as_echo_n "(cached) " >&6 |
| 13344 |
else |
| 13345 |
ac_check_lib_save_LIBS=$LIBS |
| 13346 |
LIBS="-lXmu $X_LIBS $LIBS" |
| 13347 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13348 |
/* end confdefs.h. */ |
| 13349 |
|
| 13350 |
|
| 13351 |
int |
| 13352 |
main () |
| 13353 |
{ |
| 13354 |
return main (); |
| 13355 |
; |
| 13356 |
return 0; |
| 13357 |
} |
| 13358 |
_ACEOF |
| 13359 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13360 |
ac_cv_lib_Xmu_main=yes |
| 13361 |
else |
| 13362 |
ac_cv_lib_Xmu_main=no |
| 13363 |
fi |
| 13364 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13365 |
conftest$ac_exeext conftest.$ac_ext |
| 13366 |
LIBS=$ac_check_lib_save_LIBS |
| 13367 |
fi |
| 13368 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_main" >&5 |
| 13369 |
$as_echo "$ac_cv_lib_Xmu_main" >&6; } |
| 13370 |
if test "x$ac_cv_lib_Xmu_main" = x""yes; then : |
| 13371 |
cat >>confdefs.h <<_ACEOF |
| 13372 |
#define HAVE_LIBXMU 1 |
| 13373 |
_ACEOF |
| 13374 |
|
| 13375 |
LIBS="-lXmu $LIBS" |
| 13376 |
|
| 13377 |
fi |
| 13378 |
|
| 13379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5 |
| 13380 |
$as_echo_n "checking for main in -lXpm... " >&6; } |
| 13381 |
if test "${ac_cv_lib_Xpm_main+set}" = set; then : |
| 13382 |
$as_echo_n "(cached) " >&6 |
| 13383 |
else |
| 13384 |
ac_check_lib_save_LIBS=$LIBS |
| 13385 |
LIBS="-lXpm $X_LIBS $LIBS" |
| 13386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13387 |
/* end confdefs.h. */ |
| 13388 |
|
| 13389 |
|
| 13390 |
int |
| 13391 |
main () |
| 13392 |
{ |
| 13393 |
return main (); |
| 13394 |
; |
| 13395 |
return 0; |
| 13396 |
} |
| 13397 |
_ACEOF |
| 13398 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13399 |
ac_cv_lib_Xpm_main=yes |
| 13400 |
else |
| 13401 |
ac_cv_lib_Xpm_main=no |
| 13402 |
fi |
| 13403 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13404 |
conftest$ac_exeext conftest.$ac_ext |
| 13405 |
LIBS=$ac_check_lib_save_LIBS |
| 13406 |
fi |
| 13407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5 |
| 13408 |
$as_echo "$ac_cv_lib_Xpm_main" >&6; } |
| 13409 |
if test "x$ac_cv_lib_Xpm_main" = x""yes; then : |
| 13410 |
cat >>confdefs.h <<_ACEOF |
| 13411 |
#define HAVE_LIBXPM 1 |
| 13412 |
_ACEOF |
| 13413 |
|
| 13414 |
LIBS="-lXpm $LIBS" |
| 13415 |
|
| 13416 |
fi |
| 13417 |
|
| 13418 |
|
| 13419 |
|
| 13420 |
|
| 13421 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 13422 |
if test -n "$ac_tool_prefix"; then |
| 13423 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 13424 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 13425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13426 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 13427 |
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 13428 |
$as_echo_n "(cached) " >&6 |
| 13429 |
else |
| 13430 |
case $PKG_CONFIG in |
| 13431 |
[\\/]* | ?:[\\/]*) |
| 13432 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 13433 |
;; |
| 13434 |
*) |
| 13435 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13436 |
for as_dir in $PATH |
| 13437 |
do |
| 13438 |
IFS=$as_save_IFS |
| 13439 |
test -z "$as_dir" && as_dir=. |
| 13440 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13441 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13442 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13443 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13444 |
break 2 |
| 13445 |
fi |
| 13446 |
done |
| 13447 |
done |
| 13448 |
IFS=$as_save_IFS |
| 13449 |
|
| 13450 |
;; |
| 13451 |
esac |
| 13452 |
fi |
| 13453 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 13454 |
if test -n "$PKG_CONFIG"; then |
| 13455 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 13456 |
$as_echo "$PKG_CONFIG" >&6; } |
| 13457 |
else |
| 13458 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13459 |
$as_echo "no" >&6; } |
| 13460 |
fi |
| 13461 |
|
| 13462 |
|
| 13463 |
fi |
| 13464 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 13465 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 13466 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 13467 |
set dummy pkg-config; ac_word=$2 |
| 13468 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13469 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 13470 |
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| 13471 |
$as_echo_n "(cached) " >&6 |
| 13472 |
else |
| 13473 |
case $ac_pt_PKG_CONFIG in |
| 13474 |
[\\/]* | ?:[\\/]*) |
| 13475 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 13476 |
;; |
| 13477 |
*) |
| 13478 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13479 |
for as_dir in $PATH |
| 13480 |
do |
| 13481 |
IFS=$as_save_IFS |
| 13482 |
test -z "$as_dir" && as_dir=. |
| 13483 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13484 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13485 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13486 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13487 |
break 2 |
| 13488 |
fi |
| 13489 |
done |
| 13490 |
done |
| 13491 |
IFS=$as_save_IFS |
| 13492 |
|
| 13493 |
;; |
| 13494 |
esac |
| 13495 |
fi |
| 13496 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 13497 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 13498 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 13499 |
$as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 13500 |
else |
| 13501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13502 |
$as_echo "no" >&6; } |
| 13503 |
fi |
| 13504 |
|
| 13505 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 13506 |
PKG_CONFIG="" |
| 13507 |
else |
| 13508 |
case $cross_compiling:$ac_tool_warned in |
| 13509 |
yes:) |
| 13510 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13511 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13512 |
ac_tool_warned=yes ;; |
| 13513 |
esac |
| 13514 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 13515 |
fi |
| 13516 |
else |
| 13517 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 13518 |
fi |
| 13519 |
|
| 13520 |
fi |
| 13521 |
if test -n "$PKG_CONFIG"; then |
| 13522 |
_pkg_min_version=0.9.0 |
| 13523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 13524 |
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 13525 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 13526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13527 |
$as_echo "yes" >&6; } |
| 13528 |
else |
| 13529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13530 |
$as_echo "no" >&6; } |
| 13531 |
PKG_CONFIG="" |
| 13532 |
fi |
| 13533 |
|
| 13534 |
fi |
| 13535 |
|
| 13536 |
pkg_failed=no |
| 13537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 |
| 13538 |
$as_echo_n "checking for DEPS... " >&6; } |
| 13539 |
|
| 13540 |
if test -n "$PKG_CONFIG"; then |
| 13541 |
if test -n "$DEPS_CFLAGS"; then |
| 13542 |
pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" |
| 13543 |
else |
| 13544 |
if test -n "$PKG_CONFIG" && \ |
| 13545 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw3d\""; } >&5 |
| 13546 |
($PKG_CONFIG --exists --print-errors "xaw3d") 2>&5 |
| 13547 |
ac_status=$? |
| 13548 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13549 |
test $ac_status = 0; }; then |
| 13550 |
pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw3d" 2>/dev/null` |
| 13551 |
else |
| 13552 |
pkg_failed=yes |
| 13553 |
fi |
| 13554 |
fi |
| 13555 |
else |
| 13556 |
pkg_failed=untried |
| 13557 |
fi |
| 13558 |
if test -n "$PKG_CONFIG"; then |
| 13559 |
if test -n "$DEPS_LIBS"; then |
| 13560 |
pkg_cv_DEPS_LIBS="$DEPS_LIBS" |
| 13561 |
else |
| 13562 |
if test -n "$PKG_CONFIG" && \ |
| 13563 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw3d\""; } >&5 |
| 13564 |
($PKG_CONFIG --exists --print-errors "xaw3d") 2>&5 |
| 13565 |
ac_status=$? |
| 13566 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13567 |
test $ac_status = 0; }; then |
| 13568 |
pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "xaw3d" 2>/dev/null` |
| 13569 |
else |
| 13570 |
pkg_failed=yes |
| 13571 |
fi |
| 13572 |
fi |
| 13573 |
else |
| 13574 |
pkg_failed=untried |
| 13575 |
fi |
| 13576 |
|
| 13577 |
|
| 13578 |
|
| 13579 |
if test $pkg_failed = yes; then |
| 13580 |
|
| 13581 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 13582 |
_pkg_short_errors_supported=yes |
| 13583 |
else |
| 13584 |
_pkg_short_errors_supported=no |
| 13585 |
fi |
| 13586 |
if test $_pkg_short_errors_supported = yes; then |
| 13587 |
DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xaw3d"` |
| 13588 |
else |
| 13589 |
DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xaw3d"` |
| 13590 |
fi |
| 13591 |
# Put the nasty error message in config.log where it belongs |
| 13592 |
echo "$DEPS_PKG_ERRORS" >&5 |
| 13593 |
|
| 13594 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13595 |
$as_echo "no" >&6; } |
| 13596 |
DEPS_CFLAGS=""; DEPS_LIB="" |
| 13597 |
elif test $pkg_failed = untried; then |
| 13598 |
DEPS_CFLAGS=""; DEPS_LIB="" |
| 13599 |
else |
| 13600 |
DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS |
| 13601 |
DEPS_LIBS=$pkg_cv_DEPS_LIBS |
| 13602 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13603 |
$as_echo "yes" >&6; } |
| 13604 |
true |
| 13605 |
fi |
| 13606 |
|
| 13607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawInitializeWidgetSet in -lXaw3d" >&5 |
| 13608 |
$as_echo_n "checking for XawInitializeWidgetSet in -lXaw3d... " >&6; } |
| 13609 |
if test "${ac_cv_lib_Xaw3d_XawInitializeWidgetSet+set}" = set; then : |
| 13610 |
$as_echo_n "(cached) " >&6 |
| 13611 |
else |
| 13612 |
ac_check_lib_save_LIBS=$LIBS |
| 13613 |
LIBS="-lXaw3d $X_LIBS $LIBS" |
| 13614 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13615 |
/* end confdefs.h. */ |
| 13616 |
|
| 13617 |
/* Override any GCC internal prototype to avoid an error. |
| 13618 |
Use char because int might match the return type of a GCC |
| 13619 |
builtin and then its argument prototype would still apply. */ |
| 13620 |
#ifdef __cplusplus |
| 13621 |
extern "C" |
| 13622 |
#endif |
| 13623 |
char XawInitializeWidgetSet (); |
| 13624 |
int |
| 13625 |
main () |
| 13626 |
{ |
| 13627 |
return XawInitializeWidgetSet (); |
| 13628 |
; |
| 13629 |
return 0; |
| 13630 |
} |
| 13631 |
_ACEOF |
| 13632 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13633 |
ac_cv_lib_Xaw3d_XawInitializeWidgetSet=yes |
| 13634 |
else |
| 13635 |
ac_cv_lib_Xaw3d_XawInitializeWidgetSet=no |
| 13636 |
fi |
| 13637 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13638 |
conftest$ac_exeext conftest.$ac_ext |
| 13639 |
LIBS=$ac_check_lib_save_LIBS |
| 13640 |
fi |
| 13641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&5 |
| 13642 |
$as_echo "$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" >&6; } |
| 13643 |
if test "x$ac_cv_lib_Xaw3d_XawInitializeWidgetSet" = x""yes; then : |
| 13644 |
cat >>confdefs.h <<_ACEOF |
| 13645 |
#define HAVE_LIBXAW3D 1 |
| 13646 |
_ACEOF |
| 13647 |
|
| 13648 |
LIBS="-lXaw3d $LIBS" |
| 13649 |
|
| 13650 |
else |
| 13651 |
as_fn_error "Unable to find a valid Xaw3d library. Please install it and rerun configure." "$LINENO" 5 |
| 13652 |
fi |
| 13653 |
|
| 13654 |
|
| 13655 |
CFLAGS="$CFLAGS $DEPS_CFLAGS" |
| 13656 |
LIBS="$LIBS $DEPS_LIBS" |
| 13657 |
|
| 13658 |
myCPPFLAGS="$CPPFLAGS" |
| 13659 |
CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 13660 |
## AC_CHECK_MEMBER(SimplePart.international,,[AC_MSG_ERROR([Xaw3d misses internationalisation support])],[#include <X11/Xaw3d/SimpleP.h>]) |
| 13661 |
ac_fn_c_check_member "$LINENO" "SimplePart" "international" "ac_cv_member_SimplePart_international" "#include <X11/Xaw3d/SimpleP.h> |
| 13662 |
" |
| 13663 |
if test "x$ac_cv_member_SimplePart_international" = x""yes; then : |
| 13664 |
opt_xaw3d_international=true |
| 13665 |
else |
| 13666 |
opt_xaw3d_international=false |
| 13667 |
fi |
| 13668 |
|
| 13669 |
test x$opt_xaw3d_international = xtrue && { |
| 13670 |
|
| 13671 |
$as_echo "#define HAVE_XAW3D_INTERNATIONAL /**/" >>confdefs.h |
| 13672 |
|
| 13673 |
} |
| 13674 |
test x$opt_xaw3d_international = xfalse && { |
| 13675 |
echo |
| 13676 |
echo "****************************************************" |
| 13677 |
echo "WARNING: international support has not been detected" |
| 13678 |
echo " in your version of Xaw3d. The UTF8-Support" |
| 13679 |
echo " of GNU gv has been disabled." |
| 13680 |
echo "****************************************************" |
| 13681 |
echo |
| 13682 |
} |
| 13683 |
CPPFLAGS="$myCPPFLAGS" |
| 13684 |
|
| 13685 |
|
| 13686 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXinerama" >&5 |
| 13687 |
$as_echo_n "checking for main in -lXinerama... " >&6; } |
| 13688 |
if test "${ac_cv_lib_Xinerama_main+set}" = set; then : |
| 13689 |
$as_echo_n "(cached) " >&6 |
| 13690 |
else |
| 13691 |
ac_check_lib_save_LIBS=$LIBS |
| 13692 |
LIBS="-lXinerama $X_LIBS $LIBS" |
| 13693 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13694 |
/* end confdefs.h. */ |
| 13695 |
|
| 13696 |
|
| 13697 |
int |
| 13698 |
main () |
| 13699 |
{ |
| 13700 |
return main (); |
| 13701 |
; |
| 13702 |
return 0; |
| 13703 |
} |
| 13704 |
_ACEOF |
| 13705 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13706 |
ac_cv_lib_Xinerama_main=yes |
| 13707 |
else |
| 13708 |
ac_cv_lib_Xinerama_main=no |
| 13709 |
fi |
| 13710 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13711 |
conftest$ac_exeext conftest.$ac_ext |
| 13712 |
LIBS=$ac_check_lib_save_LIBS |
| 13713 |
fi |
| 13714 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_main" >&5 |
| 13715 |
$as_echo "$ac_cv_lib_Xinerama_main" >&6; } |
| 13716 |
if test "x$ac_cv_lib_Xinerama_main" = x""yes; then : |
| 13717 |
cat >>confdefs.h <<_ACEOF |
| 13718 |
#define HAVE_LIBXINERAMA 1 |
| 13719 |
_ACEOF |
| 13720 |
|
| 13721 |
LIBS="-lXinerama $LIBS" |
| 13722 |
|
| 13723 |
fi |
| 13724 |
|
| 13725 |
|
| 13726 |
|
| 13727 |
#################### END: X11 related stuff ###################### |
| 13728 |
|
| 13729 |
|
| 13730 |
|
| 13731 |
ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile doc/Makefile" |
| 13732 |
|
| 13733 |
cat >confcache <<\_ACEOF |
| 13734 |
# This file is a shell script that caches the results of configure |
| 13735 |
# tests run on this system so they can be shared between configure |
| 13736 |
# scripts and configure runs, see configure's option --config-cache. |
| 13737 |
# It is not useful on other systems. If it contains results you don't |
| 13738 |
# want to keep, you may remove or edit it. |
| 13739 |
# |
| 13740 |
# config.status only pays attention to the cache file if you give it |
| 13741 |
# the --recheck option to rerun configure. |
| 13742 |
# |
| 13743 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13744 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13745 |
# following values. |
| 13746 |
|
| 13747 |
_ACEOF |
| 13748 |
|
| 13749 |
# The following way of writing the cache mishandles newlines in values, |
| 13750 |
# but we know of no workaround that is simple, portable, and efficient. |
| 13751 |
# So, we kill variables containing newlines. |
| 13752 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 13753 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 13754 |
( |
| 13755 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13756 |
eval ac_val=\$$ac_var |
| 13757 |
case $ac_val in #( |
| 13758 |
*${as_nl}*) |
| 13759 |
case $ac_var in #( |
| 13760 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 13761 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 13762 |
esac |
| 13763 |
case $ac_var in #( |
| 13764 |
_ | IFS | as_nl) ;; #( |
| 13765 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 13766 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 13767 |
esac ;; |
| 13768 |
esac |
| 13769 |
done |
| 13770 |
|
| 13771 |
(set) 2>&1 | |
| 13772 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13773 |
*${as_nl}ac_space=\ *) |
| 13774 |
# `set' does not quote correctly, so add quotes: double-quote |
| 13775 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 13776 |
sed -n \ |
| 13777 |
"s/'/'\\\\''/g; |
| 13778 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 13779 |
;; #( |
| 13780 |
*) |
| 13781 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 13782 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 13783 |
;; |
| 13784 |
esac | |
| 13785 |
sort |
| 13786 |
) | |
| 13787 |
sed ' |
| 13788 |
/^ac_cv_env_/b end |
| 13789 |
t clear |
| 13790 |
:clear |
| 13791 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13792 |
t end |
| 13793 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13794 |
:end' >>confcache |
| 13795 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13796 |
if test -w "$cache_file"; then |
| 13797 |
test "x$cache_file" != "x/dev/null" && |
| 13798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 13799 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 13800 |
cat confcache >$cache_file |
| 13801 |
else |
| 13802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 13803 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 13804 |
fi |
| 13805 |
fi |
| 13806 |
rm -f confcache |
| 13807 |
|
| 13808 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13809 |
# Let make expand exec_prefix. |
| 13810 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13811 |
|
| 13812 |
DEFS=-DHAVE_CONFIG_H |
| 13813 |
|
| 13814 |
ac_libobjs= |
| 13815 |
ac_ltlibobjs= |
| 13816 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13817 |
# 1. Remove the extension, and $U if already installed. |
| 13818 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 13819 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 13820 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13821 |
# will be set to the directory where LIBOBJS objects are built. |
| 13822 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13823 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 13824 |
done |
| 13825 |
LIBOBJS=$ac_libobjs |
| 13826 |
|
| 13827 |
LTLIBOBJS=$ac_ltlibobjs |
| 13828 |
|
| 13829 |
|
| 13830 |
if test -n "$EXEEXT"; then |
| 13831 |
am__EXEEXT_TRUE= |
| 13832 |
am__EXEEXT_FALSE='#' |
| 13833 |
else |
| 13834 |
am__EXEEXT_TRUE='#' |
| 13835 |
am__EXEEXT_FALSE= |
| 13836 |
fi |
| 13837 |
|
| 13838 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 13839 |
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
| 13840 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13841 |
fi |
| 13842 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 13843 |
as_fn_error "conditional \"AMDEP\" was never defined. |
| 13844 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13845 |
fi |
| 13846 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 13847 |
as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 13848 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13849 |
fi |
| 13850 |
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 13851 |
as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. |
| 13852 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13853 |
fi |
| 13854 |
if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then |
| 13855 |
as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. |
| 13856 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13857 |
fi |
| 13858 |
if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then |
| 13859 |
as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined. |
| 13860 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13861 |
fi |
| 13862 |
if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then |
| 13863 |
as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined. |
| 13864 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13865 |
fi |
| 13866 |
if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then |
| 13867 |
as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. |
| 13868 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13869 |
fi |
| 13870 |
if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then |
| 13871 |
as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined. |
| 13872 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13873 |
fi |
| 13874 |
if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then |
| 13875 |
as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined. |
| 13876 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13877 |
fi |
| 13878 |
|
| 13879 |
gl_libobjs= |
| 13880 |
gl_ltlibobjs= |
| 13881 |
if test -n "$gl_LIBOBJS"; then |
| 13882 |
# Remove the extension. |
| 13883 |
sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 13884 |
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 13885 |
gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 13886 |
gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 13887 |
done |
| 13888 |
fi |
| 13889 |
gl_LIBOBJS=$gl_libobjs |
| 13890 |
|
| 13891 |
gl_LTLIBOBJS=$gl_ltlibobjs |
| 13892 |
|
| 13893 |
|
| 13894 |
|
| 13895 |
gltests_libobjs= |
| 13896 |
gltests_ltlibobjs= |
| 13897 |
if test -n "$gltests_LIBOBJS"; then |
| 13898 |
# Remove the extension. |
| 13899 |
sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 13900 |
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 13901 |
gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 13902 |
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 13903 |
done |
| 13904 |
fi |
| 13905 |
gltests_LIBOBJS=$gltests_libobjs |
| 13906 |
|
| 13907 |
gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 13908 |
|
| 13909 |
|
| 13910 |
if test -z "${USE_SCROLLBAR_CODE_TRUE}" && test -z "${USE_SCROLLBAR_CODE_FALSE}"; then |
| 13911 |
as_fn_error "conditional \"USE_SCROLLBAR_CODE\" was never defined. |
| 13912 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13913 |
fi |
| 13914 |
if test -z "${ENABLE_FALLBACK_STYLES_TRUE}" && test -z "${ENABLE_FALLBACK_STYLES_FALSE}"; then |
| 13915 |
as_fn_error "conditional \"ENABLE_FALLBACK_STYLES\" was never defined. |
| 13916 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13917 |
fi |
| 13918 |
if test -z "${ENABLE_INTERNATIONAL_TRUE}" && test -z "${ENABLE_INTERNATIONAL_FALSE}"; then |
| 13919 |
as_fn_error "conditional \"ENABLE_INTERNATIONAL\" was never defined. |
| 13920 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13921 |
fi |
| 13922 |
if test -z "${USE_SETENV_CODE_TRUE}" && test -z "${USE_SETENV_CODE_FALSE}"; then |
| 13923 |
as_fn_error "conditional \"USE_SETENV_CODE\" was never defined. |
| 13924 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13925 |
fi |
| 13926 |
if test -z "${USE_OFF_T_TRUE}" && test -z "${USE_OFF_T_FALSE}"; then |
| 13927 |
as_fn_error "conditional \"USE_OFF_T\" was never defined. |
| 13928 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13929 |
fi |
| 13930 |
|
| 13931 |
: ${CONFIG_STATUS=./config.status} |
| 13932 |
ac_write_fail=0 |
| 13933 |
ac_clean_files_save=$ac_clean_files |
| 13934 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 13935 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 13936 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13937 |
as_write_fail=0 |
| 13938 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 13939 |
#! $SHELL |
| 13940 |
# Generated by $as_me. |
| 13941 |
# Run this file to recreate the current configuration. |
| 13942 |
# Compiler output produced by configure, useful for debugging |
| 13943 |
# configure, is in config.log if it exists. |
| 13944 |
|
| 13945 |
debug=false |
| 13946 |
ac_cs_recheck=false |
| 13947 |
ac_cs_silent=false |
| 13948 |
|
| 13949 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 13950 |
export SHELL |
| 13951 |
_ASEOF |
| 13952 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13953 |
## -------------------- ## |
| 13954 |
## M4sh Initialization. ## |
| 13955 |
## -------------------- ## |
| 13956 |
|
| 13957 |
# Be more Bourne compatible |
| 13958 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 13959 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 13960 |
emulate sh |
| 13961 |
NULLCMD=: |
| 13962 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 13963 |
# is contrary to our usage. Disable this feature. |
| 13964 |
alias -g '${1+"$@"}'='"$@"' |
| 13965 |
setopt NO_GLOB_SUBST |
| 13966 |
else |
| 13967 |
case `(set -o) 2>/dev/null` in #( |
| 13968 |
*posix*) : |
| 13969 |
set -o posix ;; #( |
| 13970 |
*) : |
| 13971 |
;; |
| 13972 |
esac |
| 13973 |
fi |
| 13974 |
|
| 13975 |
|
| 13976 |
as_nl=' |
| 13977 |
' |
| 13978 |
export as_nl |
| 13979 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13980 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13981 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13982 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13983 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13984 |
# but without wasting forks for bash or zsh. |
| 13985 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13986 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13987 |
as_echo='print -r --' |
| 13988 |
as_echo_n='print -rn --' |
| 13989 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13990 |
as_echo='printf %s\n' |
| 13991 |
as_echo_n='printf %s' |
| 13992 |
else |
| 13993 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13994 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13995 |
as_echo_n='/usr/ucb/echo -n' |
| 13996 |
else |
| 13997 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13998 |
as_echo_n_body='eval |
| 13999 |
arg=$1; |
| 14000 |
case $arg in #( |
| 14001 |
*"$as_nl"*) |
| 14002 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14003 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14004 |
esac; |
| 14005 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14006 |
' |
| 14007 |
export as_echo_n_body |
| 14008 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14009 |
fi |
| 14010 |
export as_echo_body |
| 14011 |
as_echo='sh -c $as_echo_body as_echo' |
| 14012 |
fi |
| 14013 |
|
| 14014 |
# The user is always right. |
| 14015 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 14016 |
PATH_SEPARATOR=: |
| 14017 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14018 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14019 |
PATH_SEPARATOR=';' |
| 14020 |
} |
| 14021 |
fi |
| 14022 |
|
| 14023 |
|
| 14024 |
# IFS |
| 14025 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 14026 |
# there to prevent editors from complaining about space-tab. |
| 14027 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14028 |
# splitting by setting IFS to empty value.) |
| 14029 |
IFS=" "" $as_nl" |
| 14030 |
|
| 14031 |
# Find who we are. Look in the path if we contain no directory separator. |
| 14032 |
case $0 in #(( |
| 14033 |
*[\\/]* ) as_myself=$0 ;; |
| 14034 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14035 |
for as_dir in $PATH |
| 14036 |
do |
| 14037 |
IFS=$as_save_IFS |
| 14038 |
test -z "$as_dir" && as_dir=. |
| 14039 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14040 |
done |
| 14041 |
IFS=$as_save_IFS |
| 14042 |
|
| 14043 |
;; |
| 14044 |
esac |
| 14045 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14046 |
# in which case we are not to be found in the path. |
| 14047 |
if test "x$as_myself" = x; then |
| 14048 |
as_myself=$0 |
| 14049 |
fi |
| 14050 |
if test ! -f "$as_myself"; then |
| 14051 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14052 |
exit 1 |
| 14053 |
fi |
| 14054 |
|
| 14055 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 14056 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14057 |
# suppresses any "Segmentation fault" message there. '((' could |
| 14058 |
# trigger a bug in pdksh 5.2.14. |
| 14059 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14060 |
do eval test x\${$as_var+set} = xset \ |
| 14061 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 14062 |
done |
| 14063 |
PS1='$ ' |
| 14064 |
PS2='> ' |
| 14065 |
PS4='+ ' |
| 14066 |
|
| 14067 |
# NLS nuisances. |
| 14068 |
LC_ALL=C |
| 14069 |
export LC_ALL |
| 14070 |
LANGUAGE=C |
| 14071 |
export LANGUAGE |
| 14072 |
|
| 14073 |
# CDPATH. |
| 14074 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14075 |
|
| 14076 |
|
| 14077 |
# as_fn_error ERROR [LINENO LOG_FD] |
| 14078 |
# --------------------------------- |
| 14079 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14080 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 14081 |
# script with status $?, using 1 if that was 0. |
| 14082 |
as_fn_error () |
| 14083 |
{ |
| 14084 |
as_status=$?; test $as_status -eq 0 && as_status=1 |
| 14085 |
if test "$3"; then |
| 14086 |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14087 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 14088 |
fi |
| 14089 |
$as_echo "$as_me: error: $1" >&2 |
| 14090 |
as_fn_exit $as_status |
| 14091 |
} # as_fn_error |
| 14092 |
|
| 14093 |
|
| 14094 |
# as_fn_set_status STATUS |
| 14095 |
# ----------------------- |
| 14096 |
# Set $? to STATUS, without forking. |
| 14097 |
as_fn_set_status () |
| 14098 |
{ |
| 14099 |
return $1 |
| 14100 |
} # as_fn_set_status |
| 14101 |
|
| 14102 |
# as_fn_exit STATUS |
| 14103 |
# ----------------- |
| 14104 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14105 |
as_fn_exit () |
| 14106 |
{ |
| 14107 |
set +e |
| 14108 |
as_fn_set_status $1 |
| 14109 |
exit $1 |
| 14110 |
} # as_fn_exit |
| 14111 |
|
| 14112 |
# as_fn_unset VAR |
| 14113 |
# --------------- |
| 14114 |
# Portably unset VAR. |
| 14115 |
as_fn_unset () |
| 14116 |
{ |
| 14117 |
{ eval $1=; unset $1;} |
| 14118 |
} |
| 14119 |
as_unset=as_fn_unset |
| 14120 |
# as_fn_append VAR VALUE |
| 14121 |
# ---------------------- |
| 14122 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14123 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 14124 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 14125 |
# implementations. |
| 14126 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14127 |
eval 'as_fn_append () |
| 14128 |
{ |
| 14129 |
eval $1+=\$2 |
| 14130 |
}' |
| 14131 |
else |
| 14132 |
as_fn_append () |
| 14133 |
{ |
| 14134 |
eval $1=\$$1\$2 |
| 14135 |
} |
| 14136 |
fi # as_fn_append |
| 14137 |
|
| 14138 |
# as_fn_arith ARG... |
| 14139 |
# ------------------ |
| 14140 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14141 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14142 |
# must be portable across $(()) and expr. |
| 14143 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14144 |
eval 'as_fn_arith () |
| 14145 |
{ |
| 14146 |
as_val=$(( $* )) |
| 14147 |
}' |
| 14148 |
else |
| 14149 |
as_fn_arith () |
| 14150 |
{ |
| 14151 |
as_val=`expr "$@" || test $? -eq 1` |
| 14152 |
} |
| 14153 |
fi # as_fn_arith |
| 14154 |
|
| 14155 |
|
| 14156 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14157 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14158 |
as_expr=expr |
| 14159 |
else |
| 14160 |
as_expr=false |
| 14161 |
fi |
| 14162 |
|
| 14163 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14164 |
as_basename=basename |
| 14165 |
else |
| 14166 |
as_basename=false |
| 14167 |
fi |
| 14168 |
|
| 14169 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14170 |
as_dirname=dirname |
| 14171 |
else |
| 14172 |
as_dirname=false |
| 14173 |
fi |
| 14174 |
|
| 14175 |
as_me=`$as_basename -- "$0" || |
| 14176 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14177 |
X"$0" : 'X\(//\)$' \| \ |
| 14178 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 14179 |
$as_echo X/"$0" | |
| 14180 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14181 |
s//\1/ |
| 14182 |
q |
| 14183 |
} |
| 14184 |
/^X\/\(\/\/\)$/{ |
| 14185 |
s//\1/ |
| 14186 |
q |
| 14187 |
} |
| 14188 |
/^X\/\(\/\).*/{ |
| 14189 |
s//\1/ |
| 14190 |
q |
| 14191 |
} |
| 14192 |
s/.*/./; q'` |
| 14193 |
|
| 14194 |
# Avoid depending upon Character Ranges. |
| 14195 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14196 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14197 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14198 |
as_cr_digits='0123456789' |
| 14199 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 14200 |
|
| 14201 |
ECHO_C= ECHO_N= ECHO_T= |
| 14202 |
case `echo -n x` in #((((( |
| 14203 |
-n*) |
| 14204 |
case `echo 'xy\c'` in |
| 14205 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 14206 |
xy) ECHO_C='\c';; |
| 14207 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14208 |
ECHO_T=' ';; |
| 14209 |
esac;; |
| 14210 |
*) |
| 14211 |
ECHO_N='-n';; |
| 14212 |
esac |
| 14213 |
|
| 14214 |
rm -f conf$$ conf$$.exe conf$$.file |
| 14215 |
if test -d conf$$.dir; then |
| 14216 |
rm -f conf$$.dir/conf$$.file |
| 14217 |
else |
| 14218 |
rm -f conf$$.dir |
| 14219 |
mkdir conf$$.dir 2>/dev/null |
| 14220 |
fi |
| 14221 |
if (echo >conf$$.file) 2>/dev/null; then |
| 14222 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14223 |
as_ln_s='ln -s' |
| 14224 |
# ... but there are two gotchas: |
| 14225 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14226 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14227 |
# In both cases, we have to default to `cp -p'. |
| 14228 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14229 |
as_ln_s='cp -p' |
| 14230 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14231 |
as_ln_s=ln |
| 14232 |
else |
| 14233 |
as_ln_s='cp -p' |
| 14234 |
fi |
| 14235 |
else |
| 14236 |
as_ln_s='cp -p' |
| 14237 |
fi |
| 14238 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14239 |
rmdir conf$$.dir 2>/dev/null |
| 14240 |
|
| 14241 |
|
| 14242 |
# as_fn_mkdir_p |
| 14243 |
# ------------- |
| 14244 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 14245 |
as_fn_mkdir_p () |
| 14246 |
{ |
| 14247 |
|
| 14248 |
case $as_dir in #( |
| 14249 |
-*) as_dir=./$as_dir;; |
| 14250 |
esac |
| 14251 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 14252 |
as_dirs= |
| 14253 |
while :; do |
| 14254 |
case $as_dir in #( |
| 14255 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14256 |
*) as_qdir=$as_dir;; |
| 14257 |
esac |
| 14258 |
as_dirs="'$as_qdir' $as_dirs" |
| 14259 |
as_dir=`$as_dirname -- "$as_dir" || |
| 14260 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14261 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14262 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 14263 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14264 |
$as_echo X"$as_dir" | |
| 14265 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14266 |
s//\1/ |
| 14267 |
q |
| 14268 |
} |
| 14269 |
/^X\(\/\/\)[^/].*/{ |
| 14270 |
s//\1/ |
| 14271 |
q |
| 14272 |
} |
| 14273 |
/^X\(\/\/\)$/{ |
| 14274 |
s//\1/ |
| 14275 |
q |
| 14276 |
} |
| 14277 |
/^X\(\/\).*/{ |
| 14278 |
s//\1/ |
| 14279 |
q |
| 14280 |
} |
| 14281 |
s/.*/./; q'` |
| 14282 |
test -d "$as_dir" && break |
| 14283 |
done |
| 14284 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14285 |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 14286 |
|
| 14287 |
|
| 14288 |
} # as_fn_mkdir_p |
| 14289 |
if mkdir -p . 2>/dev/null; then |
| 14290 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 14291 |
else |
| 14292 |
test -d ./-p && rmdir ./-p |
| 14293 |
as_mkdir_p=false |
| 14294 |
fi |
| 14295 |
|
| 14296 |
if test -x / >/dev/null 2>&1; then |
| 14297 |
as_test_x='test -x' |
| 14298 |
else |
| 14299 |
if ls -dL / >/dev/null 2>&1; then |
| 14300 |
as_ls_L_option=L |
| 14301 |
else |
| 14302 |
as_ls_L_option= |
| 14303 |
fi |
| 14304 |
as_test_x=' |
| 14305 |
eval sh -c '\'' |
| 14306 |
if test -d "$1"; then |
| 14307 |
test -d "$1/."; |
| 14308 |
else |
| 14309 |
case $1 in #( |
| 14310 |
-*)set "./$1";; |
| 14311 |
esac; |
| 14312 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 14313 |
???[sx]*):;;*)false;;esac;fi |
| 14314 |
'\'' sh |
| 14315 |
' |
| 14316 |
fi |
| 14317 |
as_executable_p=$as_test_x |
| 14318 |
|
| 14319 |
# Sed expression to map a string onto a valid CPP name. |
| 14320 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14321 |
|
| 14322 |
# Sed expression to map a string onto a valid variable name. |
| 14323 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14324 |
|
| 14325 |
|
| 14326 |
exec 6>&1 |
| 14327 |
## ----------------------------------- ## |
| 14328 |
## Main body of $CONFIG_STATUS script. ## |
| 14329 |
## ----------------------------------- ## |
| 14330 |
_ASEOF |
| 14331 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 14332 |
|
| 14333 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14334 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 14335 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 14336 |
# values after options handling. |
| 14337 |
ac_log=" |
| 14338 |
This file was extended by $as_me, which was |
| 14339 |
generated by GNU Autoconf 2.65. Invocation command line was |
| 14340 |
|
| 14341 |
CONFIG_FILES = $CONFIG_FILES |
| 14342 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 14343 |
CONFIG_LINKS = $CONFIG_LINKS |
| 14344 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14345 |
$ $0 $@ |
| 14346 |
|
| 14347 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14348 |
" |
| 14349 |
|
| 14350 |
_ACEOF |
| 14351 |
|
| 14352 |
case $ac_config_files in *" |
| 14353 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14354 |
esac |
| 14355 |
|
| 14356 |
case $ac_config_headers in *" |
| 14357 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14358 |
esac |
| 14359 |
|
| 14360 |
|
| 14361 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14362 |
# Files that config.status was made for. |
| 14363 |
config_files="$ac_config_files" |
| 14364 |
config_headers="$ac_config_headers" |
| 14365 |
config_commands="$ac_config_commands" |
| 14366 |
|
| 14367 |
_ACEOF |
| 14368 |
|
| 14369 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14370 |
ac_cs_usage="\ |
| 14371 |
\`$as_me' instantiates files and other configuration actions |
| 14372 |
from templates according to the current configuration. Unless the files |
| 14373 |
and actions are specified as TAGs, all are instantiated by default. |
| 14374 |
|
| 14375 |
Usage: $0 [OPTION]... [TAG]... |
| 14376 |
|
| 14377 |
-h, --help print this help, then exit |
| 14378 |
-V, --version print version number and configuration settings, then exit |
| 14379 |
--config print configuration, then exit |
| 14380 |
-q, --quiet, --silent |
| 14381 |
do not print progress messages |
| 14382 |
-d, --debug don't remove temporary files |
| 14383 |
--recheck update $as_me by reconfiguring in the same conditions |
| 14384 |
--file=FILE[:TEMPLATE] |
| 14385 |
instantiate the configuration file FILE |
| 14386 |
--header=FILE[:TEMPLATE] |
| 14387 |
instantiate the configuration header FILE |
| 14388 |
|
| 14389 |
Configuration files: |
| 14390 |
$config_files |
| 14391 |
|
| 14392 |
Configuration headers: |
| 14393 |
$config_headers |
| 14394 |
|
| 14395 |
Configuration commands: |
| 14396 |
$config_commands |
| 14397 |
|
| 14398 |
Report bugs to the package provider." |
| 14399 |
|
| 14400 |
_ACEOF |
| 14401 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14402 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 14403 |
ac_cs_version="\\ |
| 14404 |
config.status |
| 14405 |
configured by $0, generated by GNU Autoconf 2.65, |
| 14406 |
with options \\"\$ac_cs_config\\" |
| 14407 |
|
| 14408 |
Copyright (C) 2009 Free Software Foundation, Inc. |
| 14409 |
This config.status script is free software; the Free Software Foundation |
| 14410 |
gives unlimited permission to copy, distribute and modify it." |
| 14411 |
|
| 14412 |
ac_pwd='$ac_pwd' |
| 14413 |
srcdir='$srcdir' |
| 14414 |
INSTALL='$INSTALL' |
| 14415 |
MKDIR_P='$MKDIR_P' |
| 14416 |
AWK='$AWK' |
| 14417 |
test -n "\$AWK" || AWK=awk |
| 14418 |
_ACEOF |
| 14419 |
|
| 14420 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14421 |
# The default lists apply if the user does not specify any file. |
| 14422 |
ac_need_defaults=: |
| 14423 |
while test $# != 0 |
| 14424 |
do |
| 14425 |
case $1 in |
| 14426 |
--*=*) |
| 14427 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14428 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 14429 |
ac_shift=: |
| 14430 |
;; |
| 14431 |
*) |
| 14432 |
ac_option=$1 |
| 14433 |
ac_optarg=$2 |
| 14434 |
ac_shift=shift |
| 14435 |
;; |
| 14436 |
esac |
| 14437 |
|
| 14438 |
case $ac_option in |
| 14439 |
# Handling of the options. |
| 14440 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14441 |
ac_cs_recheck=: ;; |
| 14442 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 14443 |
$as_echo "$ac_cs_version"; exit ;; |
| 14444 |
--config | --confi | --conf | --con | --co | --c ) |
| 14445 |
$as_echo "$ac_cs_config"; exit ;; |
| 14446 |
--debug | --debu | --deb | --de | --d | -d ) |
| 14447 |
debug=: ;; |
| 14448 |
--file | --fil | --fi | --f ) |
| 14449 |
$ac_shift |
| 14450 |
case $ac_optarg in |
| 14451 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14452 |
esac |
| 14453 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 14454 |
ac_need_defaults=false;; |
| 14455 |
--header | --heade | --head | --hea ) |
| 14456 |
$ac_shift |
| 14457 |
case $ac_optarg in |
| 14458 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14459 |
esac |
| 14460 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14461 |
ac_need_defaults=false;; |
| 14462 |
--he | --h) |
| 14463 |
# Conflict between --help and --header |
| 14464 |
as_fn_error "ambiguous option: \`$1' |
| 14465 |
Try \`$0 --help' for more information.";; |
| 14466 |
--help | --hel | -h ) |
| 14467 |
$as_echo "$ac_cs_usage"; exit ;; |
| 14468 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14469 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14470 |
ac_cs_silent=: ;; |
| 14471 |
|
| 14472 |
# This is an error. |
| 14473 |
-*) as_fn_error "unrecognized option: \`$1' |
| 14474 |
Try \`$0 --help' for more information." ;; |
| 14475 |
|
| 14476 |
*) as_fn_append ac_config_targets " $1" |
| 14477 |
ac_need_defaults=false ;; |
| 14478 |
|
| 14479 |
esac |
| 14480 |
shift |
| 14481 |
done |
| 14482 |
|
| 14483 |
ac_configure_extra_args= |
| 14484 |
|
| 14485 |
if $ac_cs_silent; then |
| 14486 |
exec 6>/dev/null |
| 14487 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14488 |
fi |
| 14489 |
|
| 14490 |
_ACEOF |
| 14491 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14492 |
if \$ac_cs_recheck; then |
| 14493 |
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14494 |
shift |
| 14495 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14496 |
CONFIG_SHELL='$SHELL' |
| 14497 |
export CONFIG_SHELL |
| 14498 |
exec "\$@" |
| 14499 |
fi |
| 14500 |
|
| 14501 |
_ACEOF |
| 14502 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14503 |
exec 5>>config.log |
| 14504 |
{ |
| 14505 |
echo |
| 14506 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14507 |
## Running $as_me. ## |
| 14508 |
_ASBOX |
| 14509 |
$as_echo "$ac_log" |
| 14510 |
} >&5 |
| 14511 |
|
| 14512 |
_ACEOF |
| 14513 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14514 |
# |
| 14515 |
# INIT-COMMANDS |
| 14516 |
# |
| 14517 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 14518 |
|
| 14519 |
_ACEOF |
| 14520 |
|
| 14521 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14522 |
|
| 14523 |
# Handling of arguments. |
| 14524 |
for ac_config_target in $ac_config_targets |
| 14525 |
do |
| 14526 |
case $ac_config_target in |
| 14527 |
"src/ac_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/ac_config.h" ;; |
| 14528 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 14529 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 14530 |
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 14531 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 14532 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 14533 |
|
| 14534 |
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 14535 |
esac |
| 14536 |
done |
| 14537 |
|
| 14538 |
|
| 14539 |
# If the user did not use the arguments to specify the items to instantiate, |
| 14540 |
# then the envvar interface is used. Set only those that are not. |
| 14541 |
# We use the long form for the default assignment because of an extremely |
| 14542 |
# bizarre bug on SunOS 4.1.3. |
| 14543 |
if $ac_need_defaults; then |
| 14544 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14545 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14546 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14547 |
fi |
| 14548 |
|
| 14549 |
# Have a temporary directory for convenience. Make it in the build tree |
| 14550 |
# simply because there is no reason against having it here, and in addition, |
| 14551 |
# creating and moving files from /tmp can sometimes cause problems. |
| 14552 |
# Hook for its removal unless debugging. |
| 14553 |
# Note that there is a small window in which the directory will not be cleaned: |
| 14554 |
# after its creation but before its name has been assigned to `$tmp'. |
| 14555 |
$debug || |
| 14556 |
{ |
| 14557 |
tmp= |
| 14558 |
trap 'exit_status=$? |
| 14559 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 14560 |
' 0 |
| 14561 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 14562 |
} |
| 14563 |
# Create a (secure) tmp directory for tmp files. |
| 14564 |
|
| 14565 |
{ |
| 14566 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 14567 |
test -n "$tmp" && test -d "$tmp" |
| 14568 |
} || |
| 14569 |
{ |
| 14570 |
tmp=./conf$$-$RANDOM |
| 14571 |
(umask 077 && mkdir "$tmp") |
| 14572 |
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 14573 |
|
| 14574 |
# Set up the scripts for CONFIG_FILES section. |
| 14575 |
# No need to generate them if there are no CONFIG_FILES. |
| 14576 |
# This happens for instance with `./config.status config.h'. |
| 14577 |
if test -n "$CONFIG_FILES"; then |
| 14578 |
|
| 14579 |
|
| 14580 |
ac_cr=`echo X | tr X '\015'` |
| 14581 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14582 |
# But we know of no other shell where ac_cr would be empty at this |
| 14583 |
# point, so we can use a bashism as a fallback. |
| 14584 |
if test "x$ac_cr" = x; then |
| 14585 |
eval ac_cr=\$\'\\r\' |
| 14586 |
fi |
| 14587 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14588 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 14589 |
ac_cs_awk_cr='\r' |
| 14590 |
else |
| 14591 |
ac_cs_awk_cr=$ac_cr |
| 14592 |
fi |
| 14593 |
|
| 14594 |
echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 14595 |
_ACEOF |
| 14596 |
|
| 14597 |
|
| 14598 |
{ |
| 14599 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14600 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14601 |
echo "_ACEOF" |
| 14602 |
} >conf$$subs.sh || |
| 14603 |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14604 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 14605 |
ac_delim='%!_!# ' |
| 14606 |
for ac_last_try in false false false false false :; do |
| 14607 |
. ./conf$$subs.sh || |
| 14608 |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14609 |
|
| 14610 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14611 |
if test $ac_delim_n = $ac_delim_num; then |
| 14612 |
break |
| 14613 |
elif $ac_last_try; then |
| 14614 |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14615 |
else |
| 14616 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14617 |
fi |
| 14618 |
done |
| 14619 |
rm -f conf$$subs.sh |
| 14620 |
|
| 14621 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14622 |
cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 14623 |
_ACEOF |
| 14624 |
sed -n ' |
| 14625 |
h |
| 14626 |
s/^/S["/; s/!.*/"]=/ |
| 14627 |
p |
| 14628 |
g |
| 14629 |
s/^[^!]*!// |
| 14630 |
:repl |
| 14631 |
t repl |
| 14632 |
s/'"$ac_delim"'$// |
| 14633 |
t delim |
| 14634 |
:nl |
| 14635 |
h |
| 14636 |
s/\(.\{148\}\)..*/\1/ |
| 14637 |
t more1 |
| 14638 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14639 |
p |
| 14640 |
n |
| 14641 |
b repl |
| 14642 |
:more1 |
| 14643 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14644 |
p |
| 14645 |
g |
| 14646 |
s/.\{148\}// |
| 14647 |
t nl |
| 14648 |
:delim |
| 14649 |
h |
| 14650 |
s/\(.\{148\}\)..*/\1/ |
| 14651 |
t more2 |
| 14652 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14653 |
p |
| 14654 |
b |
| 14655 |
:more2 |
| 14656 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14657 |
p |
| 14658 |
g |
| 14659 |
s/.\{148\}// |
| 14660 |
t delim |
| 14661 |
' <conf$$subs.awk | sed ' |
| 14662 |
/^[^""]/{ |
| 14663 |
N |
| 14664 |
s/\n// |
| 14665 |
} |
| 14666 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14667 |
rm -f conf$$subs.awk |
| 14668 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14669 |
_ACAWK |
| 14670 |
cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 14671 |
for (key in S) S_is_set[key] = 1 |
| 14672 |
FS = "" |
| 14673 |
|
| 14674 |
} |
| 14675 |
{ |
| 14676 |
line = $ 0 |
| 14677 |
nfields = split(line, field, "@") |
| 14678 |
substed = 0 |
| 14679 |
len = length(field[1]) |
| 14680 |
for (i = 2; i < nfields; i++) { |
| 14681 |
key = field[i] |
| 14682 |
keylen = length(key) |
| 14683 |
if (S_is_set[key]) { |
| 14684 |
value = S[key] |
| 14685 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14686 |
len += length(value) + length(field[++i]) |
| 14687 |
substed = 1 |
| 14688 |
} else |
| 14689 |
len += 1 + keylen |
| 14690 |
} |
| 14691 |
|
| 14692 |
print line |
| 14693 |
} |
| 14694 |
|
| 14695 |
_ACAWK |
| 14696 |
_ACEOF |
| 14697 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14698 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14699 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14700 |
else |
| 14701 |
cat |
| 14702 |
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 14703 |
|| as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 14704 |
_ACEOF |
| 14705 |
|
| 14706 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14707 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14708 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 14709 |
# (actually we leave an empty line to preserve line numbers). |
| 14710 |
if test "x$srcdir" = x.; then |
| 14711 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14712 |
s/:*\$(srcdir):*/:/ |
| 14713 |
s/:*\${srcdir}:*/:/ |
| 14714 |
s/:*@srcdir@:*/:/ |
| 14715 |
s/^\([^=]*=[ ]*\):*/\1/ |
| 14716 |
s/:*$// |
| 14717 |
s/^[^=]*=[ ]*$// |
| 14718 |
}' |
| 14719 |
fi |
| 14720 |
|
| 14721 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14722 |
fi # test -n "$CONFIG_FILES" |
| 14723 |
|
| 14724 |
# Set up the scripts for CONFIG_HEADERS section. |
| 14725 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 14726 |
# This happens for instance with `./config.status Makefile'. |
| 14727 |
if test -n "$CONFIG_HEADERS"; then |
| 14728 |
cat >"$tmp/defines.awk" <<\_ACAWK || |
| 14729 |
BEGIN { |
| 14730 |
_ACEOF |
| 14731 |
|
| 14732 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14733 |
# here-document in config.status, that substitutes the proper values into |
| 14734 |
# config.h.in to produce config.h. |
| 14735 |
|
| 14736 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 14737 |
# handling of long lines. |
| 14738 |
ac_delim='%!_!# ' |
| 14739 |
for ac_last_try in false false :; do |
| 14740 |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 14741 |
if test -z "$ac_t"; then |
| 14742 |
break |
| 14743 |
elif $ac_last_try; then |
| 14744 |
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 14745 |
else |
| 14746 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14747 |
fi |
| 14748 |
done |
| 14749 |
|
| 14750 |
# For the awk script, D is an array of macro values keyed by name, |
| 14751 |
# likewise P contains macro parameters if any. Preserve backslash |
| 14752 |
# newline sequences. |
| 14753 |
|
| 14754 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14755 |
sed -n ' |
| 14756 |
s/.\{148\}/&'"$ac_delim"'/g |
| 14757 |
t rset |
| 14758 |
:rset |
| 14759 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14760 |
t def |
| 14761 |
d |
| 14762 |
:def |
| 14763 |
s/\\$// |
| 14764 |
t bsnl |
| 14765 |
s/["\\]/\\&/g |
| 14766 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14767 |
D["\1"]=" \3"/p |
| 14768 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14769 |
d |
| 14770 |
:bsnl |
| 14771 |
s/["\\]/\\&/g |
| 14772 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14773 |
D["\1"]=" \3\\\\\\n"\\/p |
| 14774 |
t cont |
| 14775 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14776 |
t cont |
| 14777 |
d |
| 14778 |
:cont |
| 14779 |
n |
| 14780 |
s/.\{148\}/&'"$ac_delim"'/g |
| 14781 |
t clear |
| 14782 |
:clear |
| 14783 |
s/\\$// |
| 14784 |
t bsnlc |
| 14785 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14786 |
d |
| 14787 |
:bsnlc |
| 14788 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14789 |
b cont |
| 14790 |
' <confdefs.h | sed ' |
| 14791 |
s/'"$ac_delim"'/"\\\ |
| 14792 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14793 |
|
| 14794 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14795 |
for (key in D) D_is_set[key] = 1 |
| 14796 |
FS = "" |
| 14797 |
} |
| 14798 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14799 |
line = \$ 0 |
| 14800 |
split(line, arg, " ") |
| 14801 |
if (arg[1] == "#") { |
| 14802 |
defundef = arg[2] |
| 14803 |
mac1 = arg[3] |
| 14804 |
} else { |
| 14805 |
defundef = substr(arg[1], 2) |
| 14806 |
mac1 = arg[2] |
| 14807 |
} |
| 14808 |
split(mac1, mac2, "(") #) |
| 14809 |
macro = mac2[1] |
| 14810 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 14811 |
if (D_is_set[macro]) { |
| 14812 |
# Preserve the white space surrounding the "#". |
| 14813 |
print prefix "define", macro P[macro] D[macro] |
| 14814 |
next |
| 14815 |
} else { |
| 14816 |
# Replace #undef with comments. This is necessary, for example, |
| 14817 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 14818 |
# on some systems where configure will not decide to define it. |
| 14819 |
if (defundef == "undef") { |
| 14820 |
print "/*", prefix defundef, macro, "*/" |
| 14821 |
next |
| 14822 |
} |
| 14823 |
} |
| 14824 |
} |
| 14825 |
{ print } |
| 14826 |
_ACAWK |
| 14827 |
_ACEOF |
| 14828 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14829 |
as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 14830 |
fi # test -n "$CONFIG_HEADERS" |
| 14831 |
|
| 14832 |
|
| 14833 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 14834 |
shift |
| 14835 |
for ac_tag |
| 14836 |
do |
| 14837 |
case $ac_tag in |
| 14838 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 14839 |
esac |
| 14840 |
case $ac_mode$ac_tag in |
| 14841 |
:[FHL]*:*);; |
| 14842 |
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 14843 |
:[FH]-) ac_tag=-:-;; |
| 14844 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14845 |
esac |
| 14846 |
ac_save_IFS=$IFS |
| 14847 |
IFS=: |
| 14848 |
set x $ac_tag |
| 14849 |
IFS=$ac_save_IFS |
| 14850 |
shift |
| 14851 |
ac_file=$1 |
| 14852 |
shift |
| 14853 |
|
| 14854 |
case $ac_mode in |
| 14855 |
:L) ac_source=$1;; |
| 14856 |
:[FH]) |
| 14857 |
ac_file_inputs= |
| 14858 |
for ac_f |
| 14859 |
do |
| 14860 |
case $ac_f in |
| 14861 |
-) ac_f="$tmp/stdin";; |
| 14862 |
*) # Look for the file first in the build tree, then in the source tree |
| 14863 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14864 |
# because $ac_f cannot contain `:'. |
| 14865 |
test -f "$ac_f" || |
| 14866 |
case $ac_f in |
| 14867 |
[\\/$]*) false;; |
| 14868 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14869 |
esac || |
| 14870 |
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 14871 |
esac |
| 14872 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 14873 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 14874 |
done |
| 14875 |
|
| 14876 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14877 |
# use $as_me), people would be surprised to read: |
| 14878 |
# /* config.h. Generated by config.status. */ |
| 14879 |
configure_input='Generated from '` |
| 14880 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14881 |
`' by configure.' |
| 14882 |
if test x"$ac_file" != x-; then |
| 14883 |
configure_input="$ac_file. $configure_input" |
| 14884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 14885 |
$as_echo "$as_me: creating $ac_file" >&6;} |
| 14886 |
fi |
| 14887 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 14888 |
case $configure_input in #( |
| 14889 |
*\&* | *\|* | *\\* ) |
| 14890 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14891 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14892 |
*) ac_sed_conf_input=$configure_input;; |
| 14893 |
esac |
| 14894 |
|
| 14895 |
case $ac_tag in |
| 14896 |
*:-:* | *:-) cat >"$tmp/stdin" \ |
| 14897 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 14898 |
esac |
| 14899 |
;; |
| 14900 |
esac |
| 14901 |
|
| 14902 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 14903 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14904 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14905 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 14906 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 14907 |
$as_echo X"$ac_file" | |
| 14908 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14909 |
s//\1/ |
| 14910 |
q |
| 14911 |
} |
| 14912 |
/^X\(\/\/\)[^/].*/{ |
| 14913 |
s//\1/ |
| 14914 |
q |
| 14915 |
} |
| 14916 |
/^X\(\/\/\)$/{ |
| 14917 |
s//\1/ |
| 14918 |
q |
| 14919 |
} |
| 14920 |
/^X\(\/\).*/{ |
| 14921 |
s//\1/ |
| 14922 |
q |
| 14923 |
} |
| 14924 |
s/.*/./; q'` |
| 14925 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 14926 |
ac_builddir=. |
| 14927 |
|
| 14928 |
case "$ac_dir" in |
| 14929 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14930 |
*) |
| 14931 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 14932 |
# A ".." for each directory in $ac_dir_suffix. |
| 14933 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 14934 |
case $ac_top_builddir_sub in |
| 14935 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14936 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14937 |
esac ;; |
| 14938 |
esac |
| 14939 |
ac_abs_top_builddir=$ac_pwd |
| 14940 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14941 |
# for backward compatibility: |
| 14942 |
ac_top_builddir=$ac_top_build_prefix |
| 14943 |
|
| 14944 |
case $srcdir in |
| 14945 |
.) # We are building in place. |
| 14946 |
ac_srcdir=. |
| 14947 |
ac_top_srcdir=$ac_top_builddir_sub |
| 14948 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 14949 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 14950 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 14951 |
ac_top_srcdir=$srcdir |
| 14952 |
ac_abs_top_srcdir=$srcdir ;; |
| 14953 |
*) # Relative name. |
| 14954 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14955 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14956 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 14957 |
esac |
| 14958 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 14959 |
|
| 14960 |
|
| 14961 |
case $ac_mode in |
| 14962 |
:F) |
| 14963 |
# |
| 14964 |
# CONFIG_FILE |
| 14965 |
# |
| 14966 |
|
| 14967 |
case $INSTALL in |
| 14968 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 14969 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 14970 |
esac |
| 14971 |
ac_MKDIR_P=$MKDIR_P |
| 14972 |
case $MKDIR_P in |
| 14973 |
[\\/$]* | ?:[\\/]* ) ;; |
| 14974 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14975 |
esac |
| 14976 |
_ACEOF |
| 14977 |
|
| 14978 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14979 |
# If the template does not know about datarootdir, expand it. |
| 14980 |
# FIXME: This hack should be removed a few years after 2.60. |
| 14981 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 14982 |
ac_sed_dataroot=' |
| 14983 |
/datarootdir/ { |
| 14984 |
p |
| 14985 |
q |
| 14986 |
} |
| 14987 |
/@datadir@/p |
| 14988 |
/@docdir@/p |
| 14989 |
/@infodir@/p |
| 14990 |
/@localedir@/p |
| 14991 |
/@mandir@/p' |
| 14992 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 14993 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 14994 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 14995 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 14996 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 14997 |
_ACEOF |
| 14998 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14999 |
ac_datarootdir_hack=' |
| 15000 |
s&@datadir@&$datadir&g |
| 15001 |
s&@docdir@&$docdir&g |
| 15002 |
s&@infodir@&$infodir&g |
| 15003 |
s&@localedir@&$localedir&g |
| 15004 |
s&@mandir@&$mandir&g |
| 15005 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 15006 |
esac |
| 15007 |
_ACEOF |
| 15008 |
|
| 15009 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 15010 |
# Shell code in configure.ac might set extrasub. |
| 15011 |
# FIXME: do we really want to maintain this feature? |
| 15012 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15013 |
ac_sed_extra="$ac_vpsub |
| 15014 |
$extrasub |
| 15015 |
_ACEOF |
| 15016 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15017 |
:t |
| 15018 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15019 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 15020 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 15021 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 15022 |
s&@srcdir@&$ac_srcdir&;t t |
| 15023 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15024 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15025 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15026 |
s&@builddir@&$ac_builddir&;t t |
| 15027 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15028 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15029 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 15030 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 15031 |
$ac_datarootdir_hack |
| 15032 |
" |
| 15033 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 15034 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15035 |
|
| 15036 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 15037 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 15038 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 15039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 15040 |
which seems to be undefined. Please make sure it is defined." >&5 |
| 15041 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 15042 |
which seems to be undefined. Please make sure it is defined." >&2;} |
| 15043 |
|
| 15044 |
rm -f "$tmp/stdin" |
| 15045 |
case $ac_file in |
| 15046 |
-) cat "$tmp/out" && rm -f "$tmp/out";; |
| 15047 |
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 15048 |
esac \ |
| 15049 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15050 |
;; |
| 15051 |
:H) |
| 15052 |
# |
| 15053 |
# CONFIG_HEADER |
| 15054 |
# |
| 15055 |
if test x"$ac_file" != x-; then |
| 15056 |
{ |
| 15057 |
$as_echo "/* $configure_input */" \ |
| 15058 |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 15059 |
} >"$tmp/config.h" \ |
| 15060 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15061 |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 15062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 15063 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 15064 |
else |
| 15065 |
rm -f "$ac_file" |
| 15066 |
mv "$tmp/config.h" "$ac_file" \ |
| 15067 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15068 |
fi |
| 15069 |
else |
| 15070 |
$as_echo "/* $configure_input */" \ |
| 15071 |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 15072 |
|| as_fn_error "could not create -" "$LINENO" 5 |
| 15073 |
fi |
| 15074 |
# Compute "$ac_file"'s index in $config_headers. |
| 15075 |
_am_arg="$ac_file" |
| 15076 |
_am_stamp_count=1 |
| 15077 |
for _am_header in $config_headers :; do |
| 15078 |
case $_am_header in |
| 15079 |
$_am_arg | $_am_arg:* ) |
| 15080 |
break ;; |
| 15081 |
* ) |
| 15082 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 15083 |
esac |
| 15084 |
done |
| 15085 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 15086 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15087 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 15088 |
X"$_am_arg" : 'X\(//\)$' \| \ |
| 15089 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 15090 |
$as_echo X"$_am_arg" | |
| 15091 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15092 |
s//\1/ |
| 15093 |
q |
| 15094 |
} |
| 15095 |
/^X\(\/\/\)[^/].*/{ |
| 15096 |
s//\1/ |
| 15097 |
q |
| 15098 |
} |
| 15099 |
/^X\(\/\/\)$/{ |
| 15100 |
s//\1/ |
| 15101 |
q |
| 15102 |
} |
| 15103 |
/^X\(\/\).*/{ |
| 15104 |
s//\1/ |
| 15105 |
q |
| 15106 |
} |
| 15107 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
| 15108 |
;; |
| 15109 |
|
| 15110 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 15111 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
| 15112 |
;; |
| 15113 |
esac |
| 15114 |
|
| 15115 |
|
| 15116 |
case $ac_file$ac_mode in |
| 15117 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 15118 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 15119 |
# are listed without --file. Let's play safe and only enable the eval |
| 15120 |
# if we detect the quoting. |
| 15121 |
case $CONFIG_FILES in |
| 15122 |
*\'*) eval set x "$CONFIG_FILES" ;; |
| 15123 |
*) set x $CONFIG_FILES ;; |
| 15124 |
esac |
| 15125 |
shift |
| 15126 |
for mf |
| 15127 |
do |
| 15128 |
# Strip MF so we end up with the name of the file. |
| 15129 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 15130 |
# Check whether this is an Automake generated Makefile or not. |
| 15131 |
# We used to match only the files named `Makefile.in', but |
| 15132 |
# some people rename them; so instead we look at the file content. |
| 15133 |
# Grep'ing the first line is not enough: some people post-process |
| 15134 |
# each Makefile.in and add a new line on top of each file to say so. |
| 15135 |
# Grep'ing the whole file is not good either: AIX grep has a line |
| 15136 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 15137 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 15138 |
dirpart=`$as_dirname -- "$mf" || |
| 15139 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15140 |
X"$mf" : 'X\(//\)[^/]' \| \ |
| 15141 |
X"$mf" : 'X\(//\)$' \| \ |
| 15142 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 15143 |
$as_echo X"$mf" | |
| 15144 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15145 |
s//\1/ |
| 15146 |
q |
| 15147 |
} |
| 15148 |
/^X\(\/\/\)[^/].*/{ |
| 15149 |
s//\1/ |
| 15150 |
q |
| 15151 |
} |
| 15152 |
/^X\(\/\/\)$/{ |
| 15153 |
s//\1/ |
| 15154 |
q |
| 15155 |
} |
| 15156 |
/^X\(\/\).*/{ |
| 15157 |
s//\1/ |
| 15158 |
q |
| 15159 |
} |
| 15160 |
s/.*/./; q'` |
| 15161 |
else |
| 15162 |
continue |
| 15163 |
fi |
| 15164 |
# Extract the definition of DEPDIR, am__include, and am__quote |
| 15165 |
# from the Makefile without running `make'. |
| 15166 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 15167 |
test -z "$DEPDIR" && continue |
| 15168 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 15169 |
test -z "am__include" && continue |
| 15170 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 15171 |
# When using ansi2knr, U may be empty or an underscore; expand it |
| 15172 |
U=`sed -n 's/^U = //p' < "$mf"` |
| 15173 |
# Find all dependency output files, they are included files with |
| 15174 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 15175 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 15176 |
# expansion. |
| 15177 |
for file in `sed -n " |
| 15178 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 15179 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 15180 |
# Make sure the directory exists. |
| 15181 |
test -f "$dirpart/$file" && continue |
| 15182 |
fdir=`$as_dirname -- "$file" || |
| 15183 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15184 |
X"$file" : 'X\(//\)[^/]' \| \ |
| 15185 |
X"$file" : 'X\(//\)$' \| \ |
| 15186 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 15187 |
$as_echo X"$file" | |
| 15188 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15189 |
s//\1/ |
| 15190 |
q |
| 15191 |
} |
| 15192 |
/^X\(\/\/\)[^/].*/{ |
| 15193 |
s//\1/ |
| 15194 |
q |
| 15195 |
} |
| 15196 |
/^X\(\/\/\)$/{ |
| 15197 |
s//\1/ |
| 15198 |
q |
| 15199 |
} |
| 15200 |
/^X\(\/\).*/{ |
| 15201 |
s//\1/ |
| 15202 |
q |
| 15203 |
} |
| 15204 |
s/.*/./; q'` |
| 15205 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 15206 |
# echo "creating $dirpart/$file" |
| 15207 |
echo '# dummy' > "$dirpart/$file" |
| 15208 |
done |
| 15209 |
done |
| 15210 |
} |
| 15211 |
;; |
| 15212 |
|
| 15213 |
esac |
| 15214 |
done # for ac_tag |
| 15215 |
|
| 15216 |
|
| 15217 |
as_fn_exit 0 |
| 15218 |
_ACEOF |
| 15219 |
ac_clean_files=$ac_clean_files_save |
| 15220 |
|
| 15221 |
test $ac_write_fail = 0 || |
| 15222 |
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 15223 |
|
| 15224 |
|
| 15225 |
# configure is writing to config.log, and then calls config.status. |
| 15226 |
# config.status does its own redirection, appending to config.log. |
| 15227 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 15228 |
# by configure, so config.status won't be able to write to it; its |
| 15229 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 15230 |
# effectively closing config.log, so it can be properly (re)opened and |
| 15231 |
# appended to by config.status. When coming back to configure, we |
| 15232 |
# need to make the FD available again. |
| 15233 |
if test "$no_create" != yes; then |
| 15234 |
ac_cs_success=: |
| 15235 |
ac_config_status_args= |
| 15236 |
test "$silent" = yes && |
| 15237 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 15238 |
exec 5>/dev/null |
| 15239 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15240 |
exec 5>>config.log |
| 15241 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15242 |
# would make configure fail if this is the last instruction. |
| 15243 |
$ac_cs_success || as_fn_exit $? |
| 15244 |
fi |
| 15245 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 15246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 15247 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15248 |
fi |
| 15249 |
|