[16610] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[21487] | 3 | # Generated by GNU Autoconf 2.61.
|
---|
[16610] | 4 | #
|
---|
[21487] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
[16610] | 7 | # This configure script is free software; the Free Software Foundation
|
---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 9 | ## --------------------- ##
|
---|
| 10 | ## M4sh Initialization. ##
|
---|
| 11 | ## --------------------- ##
|
---|
| 12 |
|
---|
[21487] | 13 | # Be more Bourne compatible
|
---|
| 14 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16610] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 16 | emulate sh
|
---|
| 17 | NULLCMD=:
|
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 19 | # is contrary to our usage. Disable this feature.
|
---|
| 20 | alias -g '${1+"$@"}'='"$@"'
|
---|
[21487] | 21 | setopt NO_GLOB_SUBST
|
---|
| 22 | else
|
---|
| 23 | case `(set -o) 2>/dev/null` in
|
---|
| 24 | *posix*) set -o posix ;;
|
---|
| 25 | esac
|
---|
| 26 |
|
---|
[16610] | 27 | fi
|
---|
| 28 |
|
---|
[21487] | 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # PATH needs CR
|
---|
| 33 | # Avoid depending upon Character Ranges.
|
---|
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 37 | as_cr_digits='0123456789'
|
---|
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 39 |
|
---|
| 40 | # The user is always right.
|
---|
| 41 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 42 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 43 | echo "exit 0" >>conf$$.sh
|
---|
| 44 | chmod +x conf$$.sh
|
---|
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 46 | PATH_SEPARATOR=';'
|
---|
| 47 | else
|
---|
| 48 | PATH_SEPARATOR=:
|
---|
| 49 | fi
|
---|
| 50 | rm -f conf$$.sh
|
---|
| 51 | fi
|
---|
| 52 |
|
---|
[16610] | 53 | # Support unset when possible.
|
---|
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 55 | as_unset=unset
|
---|
| 56 | else
|
---|
| 57 | as_unset=false
|
---|
| 58 | fi
|
---|
| 59 |
|
---|
| 60 |
|
---|
[21487] | 61 | # IFS
|
---|
| 62 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 63 | # there to prevent editors from complaining about space-tab.
|
---|
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 65 | # splitting by setting IFS to empty value.)
|
---|
| 66 | as_nl='
|
---|
| 67 | '
|
---|
| 68 | IFS=" "" $as_nl"
|
---|
| 69 |
|
---|
| 70 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 71 | case $0 in
|
---|
| 72 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 74 | for as_dir in $PATH
|
---|
| 75 | do
|
---|
| 76 | IFS=$as_save_IFS
|
---|
| 77 | test -z "$as_dir" && as_dir=.
|
---|
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 79 | done
|
---|
| 80 | IFS=$as_save_IFS
|
---|
| 81 |
|
---|
| 82 | ;;
|
---|
| 83 | esac
|
---|
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 85 | # in which case we are not to be found in the path.
|
---|
| 86 | if test "x$as_myself" = x; then
|
---|
| 87 | as_myself=$0
|
---|
| 88 | fi
|
---|
| 89 | if test ! -f "$as_myself"; then
|
---|
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 91 | { (exit 1); exit 1; }
|
---|
| 92 | fi
|
---|
| 93 |
|
---|
[16610] | 94 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[21487] | 95 | for as_var in ENV MAIL MAILPATH
|
---|
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 97 | done
|
---|
[16610] | 98 | PS1='$ '
|
---|
| 99 | PS2='> '
|
---|
| 100 | PS4='+ '
|
---|
| 101 |
|
---|
| 102 | # NLS nuisances.
|
---|
| 103 | for as_var in \
|
---|
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 106 | LC_TELEPHONE LC_TIME
|
---|
| 107 | do
|
---|
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 109 | eval $as_var=C; export $as_var
|
---|
| 110 | else
|
---|
[21487] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
[16610] | 112 | fi
|
---|
| 113 | done
|
---|
| 114 |
|
---|
| 115 | # Required to use basename.
|
---|
[21487] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[16610] | 118 | as_expr=expr
|
---|
| 119 | else
|
---|
| 120 | as_expr=false
|
---|
| 121 | fi
|
---|
| 122 |
|
---|
[21487] | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[16610] | 124 | as_basename=basename
|
---|
| 125 | else
|
---|
| 126 | as_basename=false
|
---|
| 127 | fi
|
---|
| 128 |
|
---|
| 129 |
|
---|
| 130 | # Name of the executable.
|
---|
[21487] | 131 | as_me=`$as_basename -- "$0" ||
|
---|
[16610] | 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 133 | X"$0" : 'X\(//\)$' \| \
|
---|
[21487] | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[16610] | 135 | echo X/"$0" |
|
---|
[21487] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 137 | s//\1/
|
---|
| 138 | q
|
---|
| 139 | }
|
---|
| 140 | /^X\/\(\/\/\)$/{
|
---|
| 141 | s//\1/
|
---|
| 142 | q
|
---|
| 143 | }
|
---|
| 144 | /^X\/\(\/\).*/{
|
---|
| 145 | s//\1/
|
---|
| 146 | q
|
---|
| 147 | }
|
---|
| 148 | s/.*/./; q'`
|
---|
[16610] | 149 |
|
---|
[21487] | 150 | # CDPATH.
|
---|
| 151 | $as_unset CDPATH
|
---|
[16610] | 152 |
|
---|
| 153 |
|
---|
[21487] | 154 | if test "x$CONFIG_SHELL" = x; then
|
---|
| 155 | if (eval ":") 2>/dev/null; then
|
---|
| 156 | as_have_required=yes
|
---|
| 157 | else
|
---|
| 158 | as_have_required=no
|
---|
[16610] | 159 | fi
|
---|
| 160 |
|
---|
[21487] | 161 | if test $as_have_required = yes && (eval ":
|
---|
| 162 | (as_func_return () {
|
---|
| 163 | (exit \$1)
|
---|
| 164 | }
|
---|
| 165 | as_func_success () {
|
---|
| 166 | as_func_return 0
|
---|
| 167 | }
|
---|
| 168 | as_func_failure () {
|
---|
| 169 | as_func_return 1
|
---|
| 170 | }
|
---|
| 171 | as_func_ret_success () {
|
---|
| 172 | return 0
|
---|
| 173 | }
|
---|
| 174 | as_func_ret_failure () {
|
---|
| 175 | return 1
|
---|
| 176 | }
|
---|
[16610] | 177 |
|
---|
[21487] | 178 | exitcode=0
|
---|
| 179 | if as_func_success; then
|
---|
| 180 | :
|
---|
| 181 | else
|
---|
| 182 | exitcode=1
|
---|
| 183 | echo as_func_success failed.
|
---|
| 184 | fi
|
---|
[16610] | 185 |
|
---|
[21487] | 186 | if as_func_failure; then
|
---|
| 187 | exitcode=1
|
---|
| 188 | echo as_func_failure succeeded.
|
---|
| 189 | fi
|
---|
| 190 |
|
---|
| 191 | if as_func_ret_success; then
|
---|
| 192 | :
|
---|
| 193 | else
|
---|
| 194 | exitcode=1
|
---|
| 195 | echo as_func_ret_success failed.
|
---|
| 196 | fi
|
---|
| 197 |
|
---|
| 198 | if as_func_ret_failure; then
|
---|
| 199 | exitcode=1
|
---|
| 200 | echo as_func_ret_failure succeeded.
|
---|
| 201 | fi
|
---|
| 202 |
|
---|
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
| 204 | :
|
---|
| 205 | else
|
---|
| 206 | exitcode=1
|
---|
| 207 | echo positional parameters were not saved.
|
---|
| 208 | fi
|
---|
| 209 |
|
---|
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; }
|
---|
| 211 |
|
---|
| 212 | (
|
---|
| 213 | as_lineno_1=\$LINENO
|
---|
| 214 | as_lineno_2=\$LINENO
|
---|
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
---|
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
---|
| 217 | ") 2> /dev/null; then
|
---|
| 218 | :
|
---|
| 219 | else
|
---|
| 220 | as_candidate_shells=
|
---|
[16610] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 223 | do
|
---|
| 224 | IFS=$as_save_IFS
|
---|
| 225 | test -z "$as_dir" && as_dir=.
|
---|
[21487] | 226 | case $as_dir in
|
---|
[16610] | 227 | /*)
|
---|
[21487] | 228 | for as_base in sh bash ksh sh5; do
|
---|
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
---|
| 230 | done;;
|
---|
| 231 | esac
|
---|
| 232 | done
|
---|
| 233 | IFS=$as_save_IFS
|
---|
| 234 |
|
---|
| 235 |
|
---|
| 236 | for as_shell in $as_candidate_shells $SHELL; do
|
---|
| 237 | # Try only shells that exist, to save several forks.
|
---|
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF
|
---|
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 241 | emulate sh
|
---|
| 242 | NULLCMD=:
|
---|
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 244 | # is contrary to our usage. Disable this feature.
|
---|
| 245 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 246 | setopt NO_GLOB_SUBST
|
---|
| 247 | else
|
---|
| 248 | case `(set -o) 2>/dev/null` in
|
---|
| 249 | *posix*) set -o posix ;;
|
---|
| 250 | esac
|
---|
| 251 |
|
---|
| 252 | fi
|
---|
| 253 |
|
---|
| 254 |
|
---|
| 255 | :
|
---|
| 256 | _ASEOF
|
---|
| 257 | }; then
|
---|
| 258 | CONFIG_SHELL=$as_shell
|
---|
| 259 | as_have_required=yes
|
---|
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF
|
---|
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 262 | emulate sh
|
---|
| 263 | NULLCMD=:
|
---|
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 265 | # is contrary to our usage. Disable this feature.
|
---|
| 266 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 267 | setopt NO_GLOB_SUBST
|
---|
| 268 | else
|
---|
| 269 | case `(set -o) 2>/dev/null` in
|
---|
| 270 | *posix*) set -o posix ;;
|
---|
| 271 | esac
|
---|
| 272 |
|
---|
| 273 | fi
|
---|
| 274 |
|
---|
| 275 |
|
---|
| 276 | :
|
---|
| 277 | (as_func_return () {
|
---|
| 278 | (exit $1)
|
---|
| 279 | }
|
---|
| 280 | as_func_success () {
|
---|
| 281 | as_func_return 0
|
---|
| 282 | }
|
---|
| 283 | as_func_failure () {
|
---|
| 284 | as_func_return 1
|
---|
| 285 | }
|
---|
| 286 | as_func_ret_success () {
|
---|
| 287 | return 0
|
---|
| 288 | }
|
---|
| 289 | as_func_ret_failure () {
|
---|
| 290 | return 1
|
---|
| 291 | }
|
---|
| 292 |
|
---|
| 293 | exitcode=0
|
---|
| 294 | if as_func_success; then
|
---|
| 295 | :
|
---|
| 296 | else
|
---|
| 297 | exitcode=1
|
---|
| 298 | echo as_func_success failed.
|
---|
| 299 | fi
|
---|
| 300 |
|
---|
| 301 | if as_func_failure; then
|
---|
| 302 | exitcode=1
|
---|
| 303 | echo as_func_failure succeeded.
|
---|
| 304 | fi
|
---|
| 305 |
|
---|
| 306 | if as_func_ret_success; then
|
---|
| 307 | :
|
---|
| 308 | else
|
---|
| 309 | exitcode=1
|
---|
| 310 | echo as_func_ret_success failed.
|
---|
| 311 | fi
|
---|
| 312 |
|
---|
| 313 | if as_func_ret_failure; then
|
---|
| 314 | exitcode=1
|
---|
| 315 | echo as_func_ret_failure succeeded.
|
---|
| 316 | fi
|
---|
| 317 |
|
---|
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then
|
---|
| 319 | :
|
---|
| 320 | else
|
---|
| 321 | exitcode=1
|
---|
| 322 | echo positional parameters were not saved.
|
---|
| 323 | fi
|
---|
| 324 |
|
---|
| 325 | test $exitcode = 0) || { (exit 1); exit 1; }
|
---|
| 326 |
|
---|
| 327 | (
|
---|
[16610] | 328 | as_lineno_1=$LINENO
|
---|
| 329 | as_lineno_2=$LINENO
|
---|
| 330 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[21487] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
---|
[16610] | 332 |
|
---|
[21487] | 333 | _ASEOF
|
---|
| 334 | }; then
|
---|
| 335 | break
|
---|
| 336 | fi
|
---|
| 337 |
|
---|
| 338 | fi
|
---|
| 339 |
|
---|
| 340 | done
|
---|
| 341 |
|
---|
| 342 | if test "x$CONFIG_SHELL" != x; then
|
---|
| 343 | for as_var in BASH_ENV ENV
|
---|
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 345 | done
|
---|
| 346 | export CONFIG_SHELL
|
---|
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
| 348 | fi
|
---|
| 349 |
|
---|
| 350 |
|
---|
| 351 | if test $as_have_required = no; then
|
---|
| 352 | echo This script requires a shell more modern than all the
|
---|
| 353 | echo shells that I found on your system. Please install a
|
---|
| 354 | echo modern shell, or manually run the script under such a
|
---|
| 355 | echo shell if you do have one.
|
---|
| 356 | { (exit 1); exit 1; }
|
---|
| 357 | fi
|
---|
| 358 |
|
---|
| 359 |
|
---|
| 360 | fi
|
---|
| 361 |
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
| 364 |
|
---|
| 365 |
|
---|
| 366 | (eval "as_func_return () {
|
---|
| 367 | (exit \$1)
|
---|
| 368 | }
|
---|
| 369 | as_func_success () {
|
---|
| 370 | as_func_return 0
|
---|
| 371 | }
|
---|
| 372 | as_func_failure () {
|
---|
| 373 | as_func_return 1
|
---|
| 374 | }
|
---|
| 375 | as_func_ret_success () {
|
---|
| 376 | return 0
|
---|
| 377 | }
|
---|
| 378 | as_func_ret_failure () {
|
---|
| 379 | return 1
|
---|
| 380 | }
|
---|
| 381 |
|
---|
| 382 | exitcode=0
|
---|
| 383 | if as_func_success; then
|
---|
| 384 | :
|
---|
| 385 | else
|
---|
| 386 | exitcode=1
|
---|
| 387 | echo as_func_success failed.
|
---|
| 388 | fi
|
---|
| 389 |
|
---|
| 390 | if as_func_failure; then
|
---|
| 391 | exitcode=1
|
---|
| 392 | echo as_func_failure succeeded.
|
---|
| 393 | fi
|
---|
| 394 |
|
---|
| 395 | if as_func_ret_success; then
|
---|
| 396 | :
|
---|
| 397 | else
|
---|
| 398 | exitcode=1
|
---|
| 399 | echo as_func_ret_success failed.
|
---|
| 400 | fi
|
---|
| 401 |
|
---|
| 402 | if as_func_ret_failure; then
|
---|
| 403 | exitcode=1
|
---|
| 404 | echo as_func_ret_failure succeeded.
|
---|
| 405 | fi
|
---|
| 406 |
|
---|
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
| 408 | :
|
---|
| 409 | else
|
---|
| 410 | exitcode=1
|
---|
| 411 | echo positional parameters were not saved.
|
---|
| 412 | fi
|
---|
| 413 |
|
---|
| 414 | test \$exitcode = 0") || {
|
---|
| 415 | echo No shell found that supports shell functions.
|
---|
| 416 | echo Please tell [email protected] about your system,
|
---|
| 417 | echo including any error possibly output before this
|
---|
| 418 | echo message
|
---|
| 419 | }
|
---|
| 420 |
|
---|
| 421 |
|
---|
| 422 |
|
---|
| 423 | as_lineno_1=$LINENO
|
---|
| 424 | as_lineno_2=$LINENO
|
---|
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
| 427 |
|
---|
[16610] | 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[21487] | 430 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
| 431 | # does the real work. The second script uses 'N' to pair each
|
---|
| 432 | # line-number line with the line containing $LINENO, and appends
|
---|
| 433 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
| 434 | # case at line end.
|
---|
[16610] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[21487] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 438 | sed -n '
|
---|
| 439 | p
|
---|
| 440 | /[$]LINENO/=
|
---|
| 441 | ' <$as_myself |
|
---|
[16610] | 442 | sed '
|
---|
[21487] | 443 | s/[$]LINENO.*/&-/
|
---|
| 444 | t lineno
|
---|
| 445 | b
|
---|
| 446 | :lineno
|
---|
[16610] | 447 | N
|
---|
[21487] | 448 | :loop
|
---|
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[16610] | 450 | t loop
|
---|
[21487] | 451 | s/-\n.*//
|
---|
[16610] | 452 | ' >$as_me.lineno &&
|
---|
[21487] | 453 | chmod +x "$as_me.lineno" ||
|
---|
[16610] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 455 | { (exit 1); exit 1; }; }
|
---|
| 456 |
|
---|
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 458 | # (the dirname of $[0] is not the place where we might find the
|
---|
[21487] | 459 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 460 | . "./$as_me.lineno"
|
---|
[16610] | 461 | # Exit status is that of the last command.
|
---|
| 462 | exit
|
---|
| 463 | }
|
---|
| 464 |
|
---|
| 465 |
|
---|
[21487] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 467 | as_dirname=dirname
|
---|
| 468 | else
|
---|
| 469 | as_dirname=false
|
---|
| 470 | fi
|
---|
| 471 |
|
---|
| 472 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 473 | case `echo -n x` in
|
---|
| 474 | -n*)
|
---|
| 475 | case `echo 'x\c'` in
|
---|
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 477 | *) ECHO_C='\c';;
|
---|
| 478 | esac;;
|
---|
| 479 | *)
|
---|
| 480 | ECHO_N='-n';;
|
---|
[16610] | 481 | esac
|
---|
| 482 |
|
---|
[21487] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[16610] | 485 | as_expr=expr
|
---|
| 486 | else
|
---|
| 487 | as_expr=false
|
---|
| 488 | fi
|
---|
| 489 |
|
---|
| 490 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[21487] | 491 | if test -d conf$$.dir; then
|
---|
| 492 | rm -f conf$$.dir/conf$$.file
|
---|
| 493 | else
|
---|
| 494 | rm -f conf$$.dir
|
---|
| 495 | mkdir conf$$.dir
|
---|
| 496 | fi
|
---|
[16610] | 497 | echo >conf$$.file
|
---|
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
[21487] | 499 | as_ln_s='ln -s'
|
---|
| 500 | # ... but there are two gotchas:
|
---|
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 503 | # In both cases, we have to default to `cp -p'.
|
---|
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[16610] | 505 | as_ln_s='cp -p'
|
---|
| 506 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 507 | as_ln_s=ln
|
---|
| 508 | else
|
---|
| 509 | as_ln_s='cp -p'
|
---|
| 510 | fi
|
---|
[21487] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 512 | rmdir conf$$.dir 2>/dev/null
|
---|
[16610] | 513 |
|
---|
| 514 | if mkdir -p . 2>/dev/null; then
|
---|
| 515 | as_mkdir_p=:
|
---|
| 516 | else
|
---|
| 517 | test -d ./-p && rmdir ./-p
|
---|
| 518 | as_mkdir_p=false
|
---|
| 519 | fi
|
---|
| 520 |
|
---|
[21487] | 521 | if test -x / >/dev/null 2>&1; then
|
---|
| 522 | as_test_x='test -x'
|
---|
| 523 | else
|
---|
| 524 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 525 | as_ls_L_option=L
|
---|
| 526 | else
|
---|
| 527 | as_ls_L_option=
|
---|
| 528 | fi
|
---|
| 529 | as_test_x='
|
---|
| 530 | eval sh -c '\''
|
---|
| 531 | if test -d "$1"; then
|
---|
| 532 | test -d "$1/.";
|
---|
| 533 | else
|
---|
| 534 | case $1 in
|
---|
| 535 | -*)set "./$1";;
|
---|
| 536 | esac;
|
---|
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
| 538 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 539 | '\'' sh
|
---|
| 540 | '
|
---|
| 541 | fi
|
---|
| 542 | as_executable_p=$as_test_x
|
---|
[16610] | 543 |
|
---|
| 544 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 546 |
|
---|
| 547 | # Sed expression to map a string onto a valid variable name.
|
---|
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 549 |
|
---|
| 550 |
|
---|
| 551 |
|
---|
[21487] | 552 | exec 7<&0 </dev/null 6>&1
|
---|
[16610] | 553 |
|
---|
| 554 | # Name of the host.
|
---|
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 556 | # so uname gets run too.
|
---|
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 558 |
|
---|
| 559 | #
|
---|
| 560 | # Initializations.
|
---|
| 561 | #
|
---|
| 562 | ac_default_prefix=/usr/local
|
---|
[21487] | 563 | ac_clean_files=
|
---|
[16610] | 564 | ac_config_libobj_dir=.
|
---|
[21487] | 565 | LIBOBJS=
|
---|
[16610] | 566 | cross_compiling=no
|
---|
| 567 | subdirs=
|
---|
| 568 | MFLAGS=
|
---|
| 569 | MAKEFLAGS=
|
---|
| 570 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 571 |
|
---|
| 572 | # Identity of this package.
|
---|
| 573 | PACKAGE_NAME=
|
---|
| 574 | PACKAGE_TARNAME=
|
---|
| 575 | PACKAGE_VERSION=
|
---|
| 576 | PACKAGE_STRING=
|
---|
| 577 | PACKAGE_BUGREPORT=
|
---|
| 578 |
|
---|
| 579 | # Factoring default headers for most tests.
|
---|
| 580 | ac_includes_default="\
|
---|
| 581 | #include <stdio.h>
|
---|
[21487] | 582 | #ifdef HAVE_SYS_TYPES_H
|
---|
[16610] | 583 | # include <sys/types.h>
|
---|
| 584 | #endif
|
---|
[21487] | 585 | #ifdef HAVE_SYS_STAT_H
|
---|
[16610] | 586 | # include <sys/stat.h>
|
---|
| 587 | #endif
|
---|
[21487] | 588 | #ifdef STDC_HEADERS
|
---|
[16610] | 589 | # include <stdlib.h>
|
---|
| 590 | # include <stddef.h>
|
---|
| 591 | #else
|
---|
[21487] | 592 | # ifdef HAVE_STDLIB_H
|
---|
[16610] | 593 | # include <stdlib.h>
|
---|
| 594 | # endif
|
---|
| 595 | #endif
|
---|
[21487] | 596 | #ifdef HAVE_STRING_H
|
---|
| 597 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[16610] | 598 | # include <memory.h>
|
---|
| 599 | # endif
|
---|
| 600 | # include <string.h>
|
---|
| 601 | #endif
|
---|
[21487] | 602 | #ifdef HAVE_STRINGS_H
|
---|
[16610] | 603 | # include <strings.h>
|
---|
| 604 | #endif
|
---|
[21487] | 605 | #ifdef HAVE_INTTYPES_H
|
---|
[16610] | 606 | # include <inttypes.h>
|
---|
| 607 | #endif
|
---|
[21487] | 608 | #ifdef HAVE_STDINT_H
|
---|
| 609 | # include <stdint.h>
|
---|
| 610 | #endif
|
---|
| 611 | #ifdef HAVE_UNISTD_H
|
---|
[16610] | 612 | # include <unistd.h>
|
---|
| 613 | #endif"
|
---|
| 614 |
|
---|
[21487] | 615 | ac_subst_vars='SHELL
|
---|
| 616 | PATH_SEPARATOR
|
---|
| 617 | PACKAGE_NAME
|
---|
| 618 | PACKAGE_TARNAME
|
---|
| 619 | PACKAGE_VERSION
|
---|
| 620 | PACKAGE_STRING
|
---|
| 621 | PACKAGE_BUGREPORT
|
---|
| 622 | exec_prefix
|
---|
| 623 | prefix
|
---|
| 624 | program_transform_name
|
---|
| 625 | bindir
|
---|
| 626 | sbindir
|
---|
| 627 | libexecdir
|
---|
| 628 | datarootdir
|
---|
| 629 | datadir
|
---|
| 630 | sysconfdir
|
---|
| 631 | sharedstatedir
|
---|
| 632 | localstatedir
|
---|
| 633 | includedir
|
---|
| 634 | oldincludedir
|
---|
| 635 | docdir
|
---|
| 636 | infodir
|
---|
| 637 | htmldir
|
---|
| 638 | dvidir
|
---|
| 639 | pdfdir
|
---|
| 640 | psdir
|
---|
| 641 | libdir
|
---|
| 642 | localedir
|
---|
| 643 | mandir
|
---|
| 644 | DEFS
|
---|
| 645 | ECHO_C
|
---|
| 646 | ECHO_N
|
---|
| 647 | ECHO_T
|
---|
| 648 | LIBS
|
---|
| 649 | build_alias
|
---|
| 650 | host_alias
|
---|
| 651 | target_alias
|
---|
| 652 | PACKAGE
|
---|
| 653 | VERSION
|
---|
| 654 | USE_FASTCGI
|
---|
| 655 | USE_LANGACTION
|
---|
| 656 | USE_CORBA
|
---|
| 657 | MICO_DIR
|
---|
| 658 | USE_Z3950
|
---|
| 659 | USE_YAZ
|
---|
| 660 | ENABLE_ACCENTFOLD
|
---|
| 661 | ENABLE_JDBM
|
---|
| 662 | USE_SQLITE
|
---|
| 663 | ENABLE_JNI
|
---|
| 664 | ENABLE_MG
|
---|
| 665 | ENABLE_MGPP
|
---|
| 666 | ENABLE_LUCENE
|
---|
| 667 | LDFLAGS
|
---|
| 668 | CFLAGS
|
---|
| 669 | CC
|
---|
| 670 | CPPFLAGS
|
---|
| 671 | ac_ct_CC
|
---|
| 672 | EXEEXT
|
---|
| 673 | OBJEXT
|
---|
| 674 | CXX
|
---|
| 675 | CXXFLAGS
|
---|
| 676 | ac_ct_CXX
|
---|
| 677 | AWK
|
---|
| 678 | YACC
|
---|
| 679 | YFLAGS
|
---|
| 680 | build
|
---|
| 681 | build_cpu
|
---|
| 682 | build_vendor
|
---|
| 683 | build_os
|
---|
| 684 | host
|
---|
| 685 | host_cpu
|
---|
| 686 | host_vendor
|
---|
| 687 | host_os
|
---|
| 688 | target
|
---|
| 689 | target_cpu
|
---|
| 690 | target_vendor
|
---|
| 691 | target_os
|
---|
| 692 | INSTALL_PROGRAM
|
---|
| 693 | INSTALL_SCRIPT
|
---|
| 694 | INSTALL_DATA
|
---|
| 695 | LN_S
|
---|
| 696 | SET_MAKE
|
---|
| 697 | RANLIB
|
---|
| 698 | COMPAT32BITFLAGS
|
---|
| 699 | MICO_VER
|
---|
| 700 | CPP
|
---|
| 701 | GREP
|
---|
| 702 | EGREP
|
---|
| 703 | U
|
---|
| 704 | ANSI2KNR
|
---|
| 705 | ALLOCA
|
---|
| 706 | LIBOBJS
|
---|
| 707 | STATIC
|
---|
| 708 | gsdlos
|
---|
| 709 | MODULEDIRS
|
---|
| 710 | subdirs
|
---|
| 711 | LTLIBOBJS'
|
---|
[16610] | 712 | ac_subst_files=''
|
---|
[21487] | 713 | ac_precious_vars='build_alias
|
---|
| 714 | host_alias
|
---|
| 715 | target_alias
|
---|
| 716 | CC
|
---|
| 717 | CFLAGS
|
---|
| 718 | LDFLAGS
|
---|
| 719 | LIBS
|
---|
| 720 | CPPFLAGS
|
---|
| 721 | CXX
|
---|
| 722 | CXXFLAGS
|
---|
| 723 | CCC
|
---|
| 724 | YACC
|
---|
| 725 | YFLAGS
|
---|
| 726 | CPP'
|
---|
| 727 | ac_subdirs_all='common-src runtime-src'
|
---|
[16610] | 728 |
|
---|
| 729 | # Initialize some variables set by options.
|
---|
| 730 | ac_init_help=
|
---|
| 731 | ac_init_version=false
|
---|
| 732 | # The variables have the same names as the options, with
|
---|
| 733 | # dashes changed to underlines.
|
---|
| 734 | cache_file=/dev/null
|
---|
| 735 | exec_prefix=NONE
|
---|
| 736 | no_create=
|
---|
| 737 | no_recursion=
|
---|
| 738 | prefix=NONE
|
---|
| 739 | program_prefix=NONE
|
---|
| 740 | program_suffix=NONE
|
---|
| 741 | program_transform_name=s,x,x,
|
---|
| 742 | silent=
|
---|
| 743 | site=
|
---|
| 744 | srcdir=
|
---|
| 745 | verbose=
|
---|
| 746 | x_includes=NONE
|
---|
| 747 | x_libraries=NONE
|
---|
| 748 |
|
---|
| 749 | # Installation directory options.
|
---|
| 750 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 751 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 752 | # by default will actually change.
|
---|
| 753 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[21487] | 754 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[16610] | 755 | bindir='${exec_prefix}/bin'
|
---|
| 756 | sbindir='${exec_prefix}/sbin'
|
---|
| 757 | libexecdir='${exec_prefix}/libexec'
|
---|
[21487] | 758 | datarootdir='${prefix}/share'
|
---|
| 759 | datadir='${datarootdir}'
|
---|
[16610] | 760 | sysconfdir='${prefix}/etc'
|
---|
| 761 | sharedstatedir='${prefix}/com'
|
---|
| 762 | localstatedir='${prefix}/var'
|
---|
| 763 | includedir='${prefix}/include'
|
---|
| 764 | oldincludedir='/usr/include'
|
---|
[21487] | 765 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 766 | infodir='${datarootdir}/info'
|
---|
| 767 | htmldir='${docdir}'
|
---|
| 768 | dvidir='${docdir}'
|
---|
| 769 | pdfdir='${docdir}'
|
---|
| 770 | psdir='${docdir}'
|
---|
| 771 | libdir='${exec_prefix}/lib'
|
---|
| 772 | localedir='${datarootdir}/locale'
|
---|
| 773 | mandir='${datarootdir}/man'
|
---|
[16610] | 774 |
|
---|
| 775 | ac_prev=
|
---|
[21487] | 776 | ac_dashdash=
|
---|
[16610] | 777 | for ac_option
|
---|
| 778 | do
|
---|
| 779 | # If the previous option needs an argument, assign it.
|
---|
| 780 | if test -n "$ac_prev"; then
|
---|
[21487] | 781 | eval $ac_prev=\$ac_option
|
---|
[16610] | 782 | ac_prev=
|
---|
| 783 | continue
|
---|
| 784 | fi
|
---|
| 785 |
|
---|
[21487] | 786 | case $ac_option in
|
---|
| 787 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 788 | *) ac_optarg=yes ;;
|
---|
| 789 | esac
|
---|
[16610] | 790 |
|
---|
| 791 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 792 |
|
---|
[21487] | 793 | case $ac_dashdash$ac_option in
|
---|
| 794 | --)
|
---|
| 795 | ac_dashdash=yes ;;
|
---|
[16610] | 796 |
|
---|
| 797 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 798 | ac_prev=bindir ;;
|
---|
| 799 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 800 | bindir=$ac_optarg ;;
|
---|
| 801 |
|
---|
| 802 | -build | --build | --buil | --bui | --bu)
|
---|
| 803 | ac_prev=build_alias ;;
|
---|
| 804 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 805 | build_alias=$ac_optarg ;;
|
---|
| 806 |
|
---|
| 807 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 808 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 809 | ac_prev=cache_file ;;
|
---|
| 810 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 811 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 812 | cache_file=$ac_optarg ;;
|
---|
| 813 |
|
---|
| 814 | --config-cache | -C)
|
---|
| 815 | cache_file=config.cache ;;
|
---|
| 816 |
|
---|
[21487] | 817 | -datadir | --datadir | --datadi | --datad)
|
---|
[16610] | 818 | ac_prev=datadir ;;
|
---|
[21487] | 819 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[16610] | 820 | datadir=$ac_optarg ;;
|
---|
| 821 |
|
---|
[21487] | 822 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 823 | | --dataroo | --dataro | --datar)
|
---|
| 824 | ac_prev=datarootdir ;;
|
---|
| 825 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 826 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 827 | datarootdir=$ac_optarg ;;
|
---|
| 828 |
|
---|
[16610] | 829 | -disable-* | --disable-*)
|
---|
| 830 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
| 831 | # Reject names that are not valid shell variable names.
|
---|
[21487] | 832 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[16610] | 833 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 834 | { (exit 1); exit 1; }; }
|
---|
[21487] | 835 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
| 836 | eval enable_$ac_feature=no ;;
|
---|
[16610] | 837 |
|
---|
[21487] | 838 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 839 | ac_prev=docdir ;;
|
---|
| 840 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 841 | docdir=$ac_optarg ;;
|
---|
| 842 |
|
---|
| 843 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 844 | ac_prev=dvidir ;;
|
---|
| 845 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 846 | dvidir=$ac_optarg ;;
|
---|
| 847 |
|
---|
[16610] | 848 | -enable-* | --enable-*)
|
---|
| 849 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
| 850 | # Reject names that are not valid shell variable names.
|
---|
[21487] | 851 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[16610] | 852 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 853 | { (exit 1); exit 1; }; }
|
---|
[21487] | 854 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
| 855 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
[16610] | 856 |
|
---|
| 857 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 858 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 859 | | --exec | --exe | --ex)
|
---|
| 860 | ac_prev=exec_prefix ;;
|
---|
| 861 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 862 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 863 | | --exec=* | --exe=* | --ex=*)
|
---|
| 864 | exec_prefix=$ac_optarg ;;
|
---|
| 865 |
|
---|
| 866 | -gas | --gas | --ga | --g)
|
---|
| 867 | # Obsolete; use --with-gas.
|
---|
| 868 | with_gas=yes ;;
|
---|
| 869 |
|
---|
| 870 | -help | --help | --hel | --he | -h)
|
---|
| 871 | ac_init_help=long ;;
|
---|
| 872 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 873 | ac_init_help=recursive ;;
|
---|
| 874 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 875 | ac_init_help=short ;;
|
---|
| 876 |
|
---|
| 877 | -host | --host | --hos | --ho)
|
---|
| 878 | ac_prev=host_alias ;;
|
---|
| 879 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 880 | host_alias=$ac_optarg ;;
|
---|
| 881 |
|
---|
[21487] | 882 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 883 | ac_prev=htmldir ;;
|
---|
| 884 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 885 | | --ht=*)
|
---|
| 886 | htmldir=$ac_optarg ;;
|
---|
| 887 |
|
---|
[16610] | 888 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 889 | | --includ | --inclu | --incl | --inc)
|
---|
| 890 | ac_prev=includedir ;;
|
---|
| 891 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 892 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 893 | includedir=$ac_optarg ;;
|
---|
| 894 |
|
---|
| 895 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 896 | ac_prev=infodir ;;
|
---|
| 897 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 898 | infodir=$ac_optarg ;;
|
---|
| 899 |
|
---|
| 900 | -libdir | --libdir | --libdi | --libd)
|
---|
| 901 | ac_prev=libdir ;;
|
---|
| 902 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 903 | libdir=$ac_optarg ;;
|
---|
| 904 |
|
---|
| 905 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 906 | | --libexe | --libex | --libe)
|
---|
| 907 | ac_prev=libexecdir ;;
|
---|
| 908 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 909 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 910 | libexecdir=$ac_optarg ;;
|
---|
| 911 |
|
---|
[21487] | 912 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 913 | ac_prev=localedir ;;
|
---|
| 914 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 915 | localedir=$ac_optarg ;;
|
---|
| 916 |
|
---|
[16610] | 917 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[21487] | 918 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[16610] | 919 | ac_prev=localstatedir ;;
|
---|
| 920 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[21487] | 921 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[16610] | 922 | localstatedir=$ac_optarg ;;
|
---|
| 923 |
|
---|
| 924 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 925 | ac_prev=mandir ;;
|
---|
| 926 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 927 | mandir=$ac_optarg ;;
|
---|
| 928 |
|
---|
| 929 | -nfp | --nfp | --nf)
|
---|
| 930 | # Obsolete; use --without-fp.
|
---|
| 931 | with_fp=no ;;
|
---|
| 932 |
|
---|
| 933 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 934 | | --no-cr | --no-c | -n)
|
---|
| 935 | no_create=yes ;;
|
---|
| 936 |
|
---|
| 937 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 938 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 939 | no_recursion=yes ;;
|
---|
| 940 |
|
---|
| 941 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 942 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 943 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 944 | ac_prev=oldincludedir ;;
|
---|
| 945 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 946 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 947 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 948 | oldincludedir=$ac_optarg ;;
|
---|
| 949 |
|
---|
| 950 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 951 | ac_prev=prefix ;;
|
---|
| 952 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 953 | prefix=$ac_optarg ;;
|
---|
| 954 |
|
---|
| 955 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 956 | | --program-pre | --program-pr | --program-p)
|
---|
| 957 | ac_prev=program_prefix ;;
|
---|
| 958 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 959 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 960 | program_prefix=$ac_optarg ;;
|
---|
| 961 |
|
---|
| 962 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 963 | | --program-suf | --program-su | --program-s)
|
---|
| 964 | ac_prev=program_suffix ;;
|
---|
| 965 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 966 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 967 | program_suffix=$ac_optarg ;;
|
---|
| 968 |
|
---|
| 969 | -program-transform-name | --program-transform-name \
|
---|
| 970 | | --program-transform-nam | --program-transform-na \
|
---|
| 971 | | --program-transform-n | --program-transform- \
|
---|
| 972 | | --program-transform | --program-transfor \
|
---|
| 973 | | --program-transfo | --program-transf \
|
---|
| 974 | | --program-trans | --program-tran \
|
---|
| 975 | | --progr-tra | --program-tr | --program-t)
|
---|
| 976 | ac_prev=program_transform_name ;;
|
---|
| 977 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 978 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 979 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 980 | | --program-transform=* | --program-transfor=* \
|
---|
| 981 | | --program-transfo=* | --program-transf=* \
|
---|
| 982 | | --program-trans=* | --program-tran=* \
|
---|
| 983 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 984 | program_transform_name=$ac_optarg ;;
|
---|
| 985 |
|
---|
[21487] | 986 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 987 | ac_prev=pdfdir ;;
|
---|
| 988 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 989 | pdfdir=$ac_optarg ;;
|
---|
| 990 |
|
---|
| 991 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 992 | ac_prev=psdir ;;
|
---|
| 993 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 994 | psdir=$ac_optarg ;;
|
---|
| 995 |
|
---|
[16610] | 996 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 997 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 998 | silent=yes ;;
|
---|
| 999 |
|
---|
| 1000 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1001 | ac_prev=sbindir ;;
|
---|
| 1002 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1003 | | --sbi=* | --sb=*)
|
---|
| 1004 | sbindir=$ac_optarg ;;
|
---|
| 1005 |
|
---|
| 1006 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1007 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1008 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1009 | | --sha | --sh)
|
---|
| 1010 | ac_prev=sharedstatedir ;;
|
---|
| 1011 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1012 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1013 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1014 | | --sha=* | --sh=*)
|
---|
| 1015 | sharedstatedir=$ac_optarg ;;
|
---|
| 1016 |
|
---|
| 1017 | -site | --site | --sit)
|
---|
| 1018 | ac_prev=site ;;
|
---|
| 1019 | -site=* | --site=* | --sit=*)
|
---|
| 1020 | site=$ac_optarg ;;
|
---|
| 1021 |
|
---|
| 1022 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1023 | ac_prev=srcdir ;;
|
---|
| 1024 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 1025 | srcdir=$ac_optarg ;;
|
---|
| 1026 |
|
---|
| 1027 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1028 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1029 | ac_prev=sysconfdir ;;
|
---|
| 1030 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1031 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 1032 | sysconfdir=$ac_optarg ;;
|
---|
| 1033 |
|
---|
| 1034 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 1035 | ac_prev=target_alias ;;
|
---|
| 1036 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 1037 | target_alias=$ac_optarg ;;
|
---|
| 1038 |
|
---|
| 1039 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1040 | verbose=yes ;;
|
---|
| 1041 |
|
---|
| 1042 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1043 | ac_init_version=: ;;
|
---|
| 1044 |
|
---|
| 1045 | -with-* | --with-*)
|
---|
| 1046 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
| 1047 | # Reject names that are not valid shell variable names.
|
---|
[21487] | 1048 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[16610] | 1049 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 1050 | { (exit 1); exit 1; }; }
|
---|
[21487] | 1051 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
| 1052 | eval with_$ac_package=\$ac_optarg ;;
|
---|
[16610] | 1053 |
|
---|
| 1054 | -without-* | --without-*)
|
---|
| 1055 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
| 1056 | # Reject names that are not valid shell variable names.
|
---|
[21487] | 1057 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[16610] | 1058 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 1059 | { (exit 1); exit 1; }; }
|
---|
[21487] | 1060 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
| 1061 | eval with_$ac_package=no ;;
|
---|
[16610] | 1062 |
|
---|
| 1063 | --x)
|
---|
| 1064 | # Obsolete; use --with-x.
|
---|
| 1065 | with_x=yes ;;
|
---|
| 1066 |
|
---|
| 1067 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1068 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1069 | ac_prev=x_includes ;;
|
---|
| 1070 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1071 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 1072 | x_includes=$ac_optarg ;;
|
---|
| 1073 |
|
---|
| 1074 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1075 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1076 | ac_prev=x_libraries ;;
|
---|
| 1077 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1078 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 1079 | x_libraries=$ac_optarg ;;
|
---|
| 1080 |
|
---|
| 1081 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 1082 | Try \`$0 --help' for more information." >&2
|
---|
| 1083 | { (exit 1); exit 1; }; }
|
---|
| 1084 | ;;
|
---|
| 1085 |
|
---|
| 1086 | *=*)
|
---|
| 1087 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1088 | # Reject names that are not valid shell variable names.
|
---|
| 1089 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 1090 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 1091 | { (exit 1); exit 1; }; }
|
---|
[21487] | 1092 | eval $ac_envvar=\$ac_optarg
|
---|
[16610] | 1093 | export $ac_envvar ;;
|
---|
| 1094 |
|
---|
| 1095 | *)
|
---|
| 1096 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 1097 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 1098 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 1099 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 1100 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 1101 | ;;
|
---|
| 1102 |
|
---|
| 1103 | esac
|
---|
| 1104 | done
|
---|
| 1105 |
|
---|
| 1106 | if test -n "$ac_prev"; then
|
---|
| 1107 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 1108 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 1109 | { (exit 1); exit 1; }; }
|
---|
| 1110 | fi
|
---|
| 1111 |
|
---|
[21487] | 1112 | # Be sure to have absolute directory names.
|
---|
| 1113 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1114 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1115 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1116 | libdir localedir mandir
|
---|
[16610] | 1117 | do
|
---|
[21487] | 1118 | eval ac_val=\$$ac_var
|
---|
[16610] | 1119 | case $ac_val in
|
---|
[21487] | 1120 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1121 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
[16610] | 1122 | esac
|
---|
[21487] | 1123 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 1124 | { (exit 1); exit 1; }; }
|
---|
[16610] | 1125 | done
|
---|
| 1126 |
|
---|
| 1127 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1128 | # used to hold the argument of --host etc.
|
---|
| 1129 | # FIXME: To remove some day.
|
---|
| 1130 | build=$build_alias
|
---|
| 1131 | host=$host_alias
|
---|
| 1132 | target=$target_alias
|
---|
| 1133 |
|
---|
| 1134 | # FIXME: To remove some day.
|
---|
| 1135 | if test "x$host_alias" != x; then
|
---|
| 1136 | if test "x$build_alias" = x; then
|
---|
| 1137 | cross_compiling=maybe
|
---|
| 1138 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 1139 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 1140 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1141 | cross_compiling=yes
|
---|
| 1142 | fi
|
---|
| 1143 | fi
|
---|
| 1144 |
|
---|
| 1145 | ac_tool_prefix=
|
---|
| 1146 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 1147 |
|
---|
| 1148 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1149 |
|
---|
| 1150 |
|
---|
[21487] | 1151 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1152 | ac_ls_di=`ls -di .` &&
|
---|
| 1153 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
| 1154 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
| 1155 | { (exit 1); exit 1; }; }
|
---|
| 1156 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
| 1157 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
| 1158 | { (exit 1); exit 1; }; }
|
---|
| 1159 |
|
---|
| 1160 |
|
---|
[16610] | 1161 | # Find the source files, if location was not specified.
|
---|
| 1162 | if test -z "$srcdir"; then
|
---|
| 1163 | ac_srcdir_defaulted=yes
|
---|
[21487] | 1164 | # Try the directory containing this script, then the parent directory.
|
---|
| 1165 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
[16610] | 1166 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1167 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 1168 | X"$0" : 'X\(//\)$' \| \
|
---|
[21487] | 1169 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[16610] | 1170 | echo X"$0" |
|
---|
[21487] | 1171 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1172 | s//\1/
|
---|
| 1173 | q
|
---|
| 1174 | }
|
---|
| 1175 | /^X\(\/\/\)[^/].*/{
|
---|
| 1176 | s//\1/
|
---|
| 1177 | q
|
---|
| 1178 | }
|
---|
| 1179 | /^X\(\/\/\)$/{
|
---|
| 1180 | s//\1/
|
---|
| 1181 | q
|
---|
| 1182 | }
|
---|
| 1183 | /^X\(\/\).*/{
|
---|
| 1184 | s//\1/
|
---|
| 1185 | q
|
---|
| 1186 | }
|
---|
| 1187 | s/.*/./; q'`
|
---|
[16610] | 1188 | srcdir=$ac_confdir
|
---|
[21487] | 1189 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[16610] | 1190 | srcdir=..
|
---|
| 1191 | fi
|
---|
| 1192 | else
|
---|
| 1193 | ac_srcdir_defaulted=no
|
---|
| 1194 | fi
|
---|
[21487] | 1195 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1196 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
| 1197 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
[16610] | 1198 | { (exit 1); exit 1; }; }
|
---|
[21487] | 1199 | fi
|
---|
| 1200 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1201 | ac_abs_confdir=`(
|
---|
| 1202 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
[16610] | 1203 | { (exit 1); exit 1; }; }
|
---|
[21487] | 1204 | pwd)`
|
---|
| 1205 | # When building in place, set srcdir=.
|
---|
| 1206 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1207 | srcdir=.
|
---|
[16610] | 1208 | fi
|
---|
[21487] | 1209 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1210 | # Double slashes in file names in object file debugging info
|
---|
| 1211 | # mess up M-x gdb in Emacs.
|
---|
| 1212 | case $srcdir in
|
---|
| 1213 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1214 | esac
|
---|
| 1215 | for ac_var in $ac_precious_vars; do
|
---|
| 1216 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1217 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1218 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1219 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1220 | done
|
---|
[16610] | 1221 |
|
---|
| 1222 | #
|
---|
| 1223 | # Report the --help message.
|
---|
| 1224 | #
|
---|
| 1225 | if test "$ac_init_help" = "long"; then
|
---|
| 1226 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1227 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 1228 | cat <<_ACEOF
|
---|
| 1229 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1230 |
|
---|
| 1231 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1232 |
|
---|
| 1233 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1234 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1235 |
|
---|
| 1236 | Defaults for the options are specified in brackets.
|
---|
| 1237 |
|
---|
| 1238 | Configuration:
|
---|
| 1239 | -h, --help display this help and exit
|
---|
| 1240 | --help=short display options specific to this package
|
---|
| 1241 | --help=recursive display the short help of all the included packages
|
---|
| 1242 | -V, --version display version information and exit
|
---|
| 1243 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 1244 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1245 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1246 | -n, --no-create do not create output files
|
---|
| 1247 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1248 |
|
---|
| 1249 | Installation directories:
|
---|
| 1250 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 1251 | [$ac_default_prefix]
|
---|
| 1252 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 1253 | [PREFIX]
|
---|
| 1254 |
|
---|
| 1255 | By default, \`make install' will install all the files in
|
---|
| 1256 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1257 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1258 | for instance \`--prefix=\$HOME'.
|
---|
| 1259 |
|
---|
| 1260 | For better control, use the options below.
|
---|
| 1261 |
|
---|
| 1262 | Fine tuning of the installation directories:
|
---|
| 1263 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1264 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1265 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1266 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1267 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1268 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1269 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1270 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1271 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
[21487] | 1272 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1273 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1274 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1275 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1276 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1277 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1278 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1279 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1280 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1281 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[16610] | 1282 | _ACEOF
|
---|
| 1283 |
|
---|
| 1284 | cat <<\_ACEOF
|
---|
| 1285 |
|
---|
| 1286 | System types:
|
---|
| 1287 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1288 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1289 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 1290 | _ACEOF
|
---|
| 1291 | fi
|
---|
| 1292 |
|
---|
| 1293 | if test -n "$ac_init_help"; then
|
---|
| 1294 |
|
---|
| 1295 | cat <<\_ACEOF
|
---|
| 1296 |
|
---|
| 1297 | Optional Features:
|
---|
| 1298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1300 | --enable-corba Enable CORBA support
|
---|
| 1301 | --enable-z3950 Enable Z39.50 client support
|
---|
| 1302 | --disable-yaz Disable YAZ compilation
|
---|
| 1303 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[21487] | 1304 | --disable-accentfold Disable Accent Folding for\
|
---|
| 1305 | MGPP
|
---|
| 1306 | --disable-jdbm Disable JDBM compilation
|
---|
[16610] | 1307 | --disable-sqlite Disable SQLite support
|
---|
[21487] | 1308 | --enable-jni Enable JNI compilation
|
---|
| 1309 | --disable-mg Disable MG compilation
|
---|
| 1310 | --disable-mgpp Disable MGPP compilation
|
---|
| 1311 | --disable-lucene Disable Lucene compilation
|
---|
[16610] | 1312 |
|
---|
| 1313 | Optional Packages:
|
---|
| 1314 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1315 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1316 | --with-micodir Use installed MICO directory
|
---|
[16612] | 1317 | --with-dmalloc use dmalloc, as in
|
---|
| 1318 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1319 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
[16610] | 1320 |
|
---|
| 1321 | Some influential environment variables:
|
---|
| 1322 | CC C compiler command
|
---|
| 1323 | CFLAGS C compiler flags
|
---|
| 1324 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1325 | nonstandard directory <lib dir>
|
---|
[21487] | 1326 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1327 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
| 1328 | you have headers in a nonstandard directory <include dir>
|
---|
[16610] | 1329 | CXX C++ compiler command
|
---|
| 1330 | CXXFLAGS C++ compiler flags
|
---|
[21487] | 1331 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
| 1332 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
| 1333 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1334 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1335 | default value of `-d' given by some make applications.
|
---|
[16610] | 1336 | CPP C preprocessor
|
---|
| 1337 |
|
---|
| 1338 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1339 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1340 |
|
---|
| 1341 | _ACEOF
|
---|
[21487] | 1342 | ac_status=$?
|
---|
[16610] | 1343 | fi
|
---|
| 1344 |
|
---|
| 1345 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1346 | # If there are subdirs, report their specific --help.
|
---|
| 1347 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[21487] | 1348 | test -d "$ac_dir" || continue
|
---|
[16610] | 1349 | ac_builddir=.
|
---|
| 1350 |
|
---|
[21487] | 1351 | case "$ac_dir" in
|
---|
| 1352 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1353 | *)
|
---|
[16610] | 1354 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21487] | 1355 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1356 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
| 1357 | case $ac_top_builddir_sub in
|
---|
| 1358 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1359 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1360 | esac ;;
|
---|
| 1361 | esac
|
---|
| 1362 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1363 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1364 | # for backward compatibility:
|
---|
| 1365 | ac_top_builddir=$ac_top_build_prefix
|
---|
[16610] | 1366 |
|
---|
| 1367 | case $srcdir in
|
---|
[21487] | 1368 | .) # We are building in place.
|
---|
[16610] | 1369 | ac_srcdir=.
|
---|
[21487] | 1370 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1371 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1372 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[16610] | 1373 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21487] | 1374 | ac_top_srcdir=$srcdir
|
---|
| 1375 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1376 | *) # Relative name.
|
---|
| 1377 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1378 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1379 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[16610] | 1380 | esac
|
---|
[21487] | 1381 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[16610] | 1382 |
|
---|
[21487] | 1383 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1384 | # Check for guested configure.
|
---|
| 1385 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1386 | echo &&
|
---|
| 1387 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1388 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1389 | echo &&
|
---|
| 1390 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[16610] | 1391 | else
|
---|
| 1392 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[21487] | 1393 | fi || ac_status=$?
|
---|
| 1394 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[16610] | 1395 | done
|
---|
| 1396 | fi
|
---|
| 1397 |
|
---|
[21487] | 1398 | test -n "$ac_init_help" && exit $ac_status
|
---|
[16610] | 1399 | if $ac_init_version; then
|
---|
| 1400 | cat <<\_ACEOF
|
---|
[21487] | 1401 | configure
|
---|
| 1402 | generated by GNU Autoconf 2.61
|
---|
[16610] | 1403 |
|
---|
[21487] | 1404 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
| 1405 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
[16610] | 1406 | This configure script is free software; the Free Software Foundation
|
---|
| 1407 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 1408 | _ACEOF
|
---|
[21487] | 1409 | exit
|
---|
[16610] | 1410 | fi
|
---|
[21487] | 1411 | cat >config.log <<_ACEOF
|
---|
[16610] | 1412 | This file contains any messages produced by compilers while
|
---|
| 1413 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1414 |
|
---|
| 1415 | It was created by $as_me, which was
|
---|
[21487] | 1416 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
[16610] | 1417 |
|
---|
| 1418 | $ $0 $@
|
---|
| 1419 |
|
---|
| 1420 | _ACEOF
|
---|
[21487] | 1421 | exec 5>>config.log
|
---|
[16610] | 1422 | {
|
---|
| 1423 | cat <<_ASUNAME
|
---|
| 1424 | ## --------- ##
|
---|
| 1425 | ## Platform. ##
|
---|
| 1426 | ## --------- ##
|
---|
| 1427 |
|
---|
| 1428 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1429 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1430 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1431 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1432 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1433 |
|
---|
| 1434 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1435 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1436 |
|
---|
| 1437 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1438 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1439 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[21487] | 1440 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[16610] | 1441 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1442 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1443 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1444 |
|
---|
| 1445 | _ASUNAME
|
---|
| 1446 |
|
---|
| 1447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1448 | for as_dir in $PATH
|
---|
| 1449 | do
|
---|
| 1450 | IFS=$as_save_IFS
|
---|
| 1451 | test -z "$as_dir" && as_dir=.
|
---|
| 1452 | echo "PATH: $as_dir"
|
---|
| 1453 | done
|
---|
[21487] | 1454 | IFS=$as_save_IFS
|
---|
[16610] | 1455 |
|
---|
| 1456 | } >&5
|
---|
| 1457 |
|
---|
| 1458 | cat >&5 <<_ACEOF
|
---|
| 1459 |
|
---|
| 1460 |
|
---|
| 1461 | ## ----------- ##
|
---|
| 1462 | ## Core tests. ##
|
---|
| 1463 | ## ----------- ##
|
---|
| 1464 |
|
---|
| 1465 | _ACEOF
|
---|
| 1466 |
|
---|
| 1467 |
|
---|
| 1468 | # Keep a trace of the command line.
|
---|
| 1469 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1470 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1471 | # Also quote any args containing shell meta-characters.
|
---|
| 1472 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1473 | ac_configure_args=
|
---|
| 1474 | ac_configure_args0=
|
---|
| 1475 | ac_configure_args1=
|
---|
| 1476 | ac_must_keep_next=false
|
---|
| 1477 | for ac_pass in 1 2
|
---|
| 1478 | do
|
---|
| 1479 | for ac_arg
|
---|
| 1480 | do
|
---|
| 1481 | case $ac_arg in
|
---|
| 1482 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1483 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1484 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1485 | continue ;;
|
---|
[21487] | 1486 | *\'*)
|
---|
[16610] | 1487 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1488 | esac
|
---|
| 1489 | case $ac_pass in
|
---|
| 1490 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1491 | 2)
|
---|
| 1492 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1493 | if test $ac_must_keep_next = true; then
|
---|
| 1494 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1495 | else
|
---|
| 1496 | case $ac_arg in
|
---|
| 1497 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1498 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1499 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1500 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1501 | case "$ac_configure_args0 " in
|
---|
| 1502 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1503 | esac
|
---|
| 1504 | ;;
|
---|
| 1505 | -* ) ac_must_keep_next=true ;;
|
---|
| 1506 | esac
|
---|
| 1507 | fi
|
---|
[21487] | 1508 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
[16610] | 1509 | ;;
|
---|
| 1510 | esac
|
---|
| 1511 | done
|
---|
| 1512 | done
|
---|
| 1513 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1514 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1515 |
|
---|
| 1516 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1517 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1518 | # would cause problems or look ugly.
|
---|
[21487] | 1519 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 1520 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[16610] | 1521 | trap 'exit_status=$?
|
---|
| 1522 | # Save into config.log some information that might help in debugging.
|
---|
| 1523 | {
|
---|
| 1524 | echo
|
---|
| 1525 |
|
---|
| 1526 | cat <<\_ASBOX
|
---|
| 1527 | ## ---------------- ##
|
---|
| 1528 | ## Cache variables. ##
|
---|
| 1529 | ## ---------------- ##
|
---|
| 1530 | _ASBOX
|
---|
| 1531 | echo
|
---|
| 1532 | # The following way of writing the cache mishandles newlines in values,
|
---|
[21487] | 1533 | (
|
---|
| 1534 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 1535 | eval ac_val=\$$ac_var
|
---|
| 1536 | case $ac_val in #(
|
---|
| 1537 | *${as_nl}*)
|
---|
| 1538 | case $ac_var in #(
|
---|
| 1539 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
| 1540 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
| 1541 | esac
|
---|
| 1542 | case $ac_var in #(
|
---|
| 1543 | _ | IFS | as_nl) ;; #(
|
---|
| 1544 | *) $as_unset $ac_var ;;
|
---|
| 1545 | esac ;;
|
---|
| 1546 | esac
|
---|
| 1547 | done
|
---|
[16610] | 1548 | (set) 2>&1 |
|
---|
[21487] | 1549 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 1550 | *${as_nl}ac_space=\ *)
|
---|
[16610] | 1551 | sed -n \
|
---|
[21487] | 1552 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 1553 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 1554 | ;; #(
|
---|
[16610] | 1555 | *)
|
---|
[21487] | 1556 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[16610] | 1557 | ;;
|
---|
[21487] | 1558 | esac |
|
---|
| 1559 | sort
|
---|
| 1560 | )
|
---|
[16610] | 1561 | echo
|
---|
| 1562 |
|
---|
| 1563 | cat <<\_ASBOX
|
---|
| 1564 | ## ----------------- ##
|
---|
| 1565 | ## Output variables. ##
|
---|
| 1566 | ## ----------------- ##
|
---|
| 1567 | _ASBOX
|
---|
| 1568 | echo
|
---|
| 1569 | for ac_var in $ac_subst_vars
|
---|
| 1570 | do
|
---|
[21487] | 1571 | eval ac_val=\$$ac_var
|
---|
| 1572 | case $ac_val in
|
---|
| 1573 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 1574 | esac
|
---|
| 1575 | echo "$ac_var='\''$ac_val'\''"
|
---|
[16610] | 1576 | done | sort
|
---|
| 1577 | echo
|
---|
| 1578 |
|
---|
| 1579 | if test -n "$ac_subst_files"; then
|
---|
| 1580 | cat <<\_ASBOX
|
---|
[21487] | 1581 | ## ------------------- ##
|
---|
| 1582 | ## File substitutions. ##
|
---|
| 1583 | ## ------------------- ##
|
---|
[16610] | 1584 | _ASBOX
|
---|
| 1585 | echo
|
---|
| 1586 | for ac_var in $ac_subst_files
|
---|
| 1587 | do
|
---|
[21487] | 1588 | eval ac_val=\$$ac_var
|
---|
| 1589 | case $ac_val in
|
---|
| 1590 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 1591 | esac
|
---|
| 1592 | echo "$ac_var='\''$ac_val'\''"
|
---|
[16610] | 1593 | done | sort
|
---|
| 1594 | echo
|
---|
| 1595 | fi
|
---|
| 1596 |
|
---|
| 1597 | if test -s confdefs.h; then
|
---|
| 1598 | cat <<\_ASBOX
|
---|
| 1599 | ## ----------- ##
|
---|
| 1600 | ## confdefs.h. ##
|
---|
| 1601 | ## ----------- ##
|
---|
| 1602 | _ASBOX
|
---|
| 1603 | echo
|
---|
[21487] | 1604 | cat confdefs.h
|
---|
[16610] | 1605 | echo
|
---|
| 1606 | fi
|
---|
| 1607 | test "$ac_signal" != 0 &&
|
---|
| 1608 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1609 | echo "$as_me: exit $exit_status"
|
---|
| 1610 | } >&5
|
---|
[21487] | 1611 | rm -f core *.core core.conftest.* &&
|
---|
| 1612 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[16610] | 1613 | exit $exit_status
|
---|
[21487] | 1614 | ' 0
|
---|
[16610] | 1615 | for ac_signal in 1 2 13 15; do
|
---|
| 1616 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1617 | done
|
---|
| 1618 | ac_signal=0
|
---|
| 1619 |
|
---|
| 1620 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[21487] | 1621 | rm -f -r conftest* confdefs.h
|
---|
[16610] | 1622 |
|
---|
| 1623 | # Predefined preprocessor variables.
|
---|
| 1624 |
|
---|
| 1625 | cat >>confdefs.h <<_ACEOF
|
---|
| 1626 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1627 | _ACEOF
|
---|
| 1628 |
|
---|
| 1629 |
|
---|
| 1630 | cat >>confdefs.h <<_ACEOF
|
---|
| 1631 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1632 | _ACEOF
|
---|
| 1633 |
|
---|
| 1634 |
|
---|
| 1635 | cat >>confdefs.h <<_ACEOF
|
---|
| 1636 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1637 | _ACEOF
|
---|
| 1638 |
|
---|
| 1639 |
|
---|
| 1640 | cat >>confdefs.h <<_ACEOF
|
---|
| 1641 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1642 | _ACEOF
|
---|
| 1643 |
|
---|
| 1644 |
|
---|
| 1645 | cat >>confdefs.h <<_ACEOF
|
---|
| 1646 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1647 | _ACEOF
|
---|
| 1648 |
|
---|
| 1649 |
|
---|
| 1650 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 1651 | # Prefer explicitly selected file to automatically selected ones.
|
---|
[21487] | 1652 | if test -n "$CONFIG_SITE"; then
|
---|
| 1653 | set x "$CONFIG_SITE"
|
---|
| 1654 | elif test "x$prefix" != xNONE; then
|
---|
| 1655 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
| 1656 | else
|
---|
| 1657 | set x "$ac_default_prefix/share/config.site" \
|
---|
| 1658 | "$ac_default_prefix/etc/config.site"
|
---|
[16610] | 1659 | fi
|
---|
[21487] | 1660 | shift
|
---|
| 1661 | for ac_site_file
|
---|
| 1662 | do
|
---|
[16610] | 1663 | if test -r "$ac_site_file"; then
|
---|
| 1664 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1665 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1666 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
| 1667 | . "$ac_site_file"
|
---|
| 1668 | fi
|
---|
| 1669 | done
|
---|
| 1670 |
|
---|
| 1671 | if test -r "$cache_file"; then
|
---|
| 1672 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1673 | # files actually), so we avoid doing that.
|
---|
| 1674 | if test -f "$cache_file"; then
|
---|
| 1675 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1676 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1677 | case $cache_file in
|
---|
[21487] | 1678 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 1679 | *) . "./$cache_file";;
|
---|
[16610] | 1680 | esac
|
---|
| 1681 | fi
|
---|
| 1682 | else
|
---|
| 1683 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1684 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1685 | >$cache_file
|
---|
| 1686 | fi
|
---|
| 1687 |
|
---|
| 1688 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1689 | # value.
|
---|
| 1690 | ac_cache_corrupted=false
|
---|
[21487] | 1691 | for ac_var in $ac_precious_vars; do
|
---|
[16610] | 1692 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1693 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[21487] | 1694 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 1695 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[16610] | 1696 | case $ac_old_set,$ac_new_set in
|
---|
| 1697 | set,)
|
---|
| 1698 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1699 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1700 | ac_cache_corrupted=: ;;
|
---|
| 1701 | ,set)
|
---|
| 1702 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1703 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1704 | ac_cache_corrupted=: ;;
|
---|
| 1705 | ,);;
|
---|
| 1706 | *)
|
---|
| 1707 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1708 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1709 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1710 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1711 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1712 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1713 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1714 | ac_cache_corrupted=:
|
---|
| 1715 | fi;;
|
---|
| 1716 | esac
|
---|
| 1717 | # Pass precious variables to config.status.
|
---|
| 1718 | if test "$ac_new_set" = set; then
|
---|
| 1719 | case $ac_new_val in
|
---|
[21487] | 1720 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[16610] | 1721 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1722 | esac
|
---|
| 1723 | case " $ac_configure_args " in
|
---|
| 1724 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1725 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1726 | esac
|
---|
| 1727 | fi
|
---|
| 1728 | done
|
---|
| 1729 | if $ac_cache_corrupted; then
|
---|
| 1730 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1731 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1732 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1733 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1734 | { (exit 1); exit 1; }; }
|
---|
| 1735 | fi
|
---|
| 1736 |
|
---|
| 1737 |
|
---|
| 1738 |
|
---|
| 1739 |
|
---|
| 1740 |
|
---|
| 1741 |
|
---|
| 1742 |
|
---|
| 1743 |
|
---|
| 1744 |
|
---|
| 1745 |
|
---|
| 1746 |
|
---|
| 1747 |
|
---|
| 1748 |
|
---|
| 1749 |
|
---|
| 1750 |
|
---|
| 1751 |
|
---|
| 1752 |
|
---|
[21487] | 1753 | ac_ext=c
|
---|
| 1754 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[16610] | 1758 |
|
---|
| 1759 |
|
---|
[21487] | 1760 | ac_config_headers="$ac_config_headers config.h"
|
---|
[16610] | 1761 |
|
---|
| 1762 |
|
---|
| 1763 | PACKAGE=gsdl
|
---|
| 1764 | VERSION=2.82-svn
|
---|
| 1765 | cat >>confdefs.h <<_ACEOF
|
---|
| 1766 | #define PACKAGE "$PACKAGE"
|
---|
| 1767 | _ACEOF
|
---|
| 1768 |
|
---|
| 1769 | cat >>confdefs.h <<_ACEOF
|
---|
| 1770 | #define VERSION "$VERSION"
|
---|
| 1771 | _ACEOF
|
---|
| 1772 |
|
---|
| 1773 |
|
---|
| 1774 |
|
---|
| 1775 |
|
---|
| 1776 | USE_FASTCGI=0
|
---|
| 1777 | if test USE_FASTCGI = 1; then
|
---|
| 1778 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1779 | #define USE_FASTCGI 1
|
---|
| 1780 | _ACEOF
|
---|
| 1781 |
|
---|
| 1782 |
|
---|
| 1783 | fi
|
---|
| 1784 |
|
---|
| 1785 | if test USE_LANGACTION = 1; then
|
---|
| 1786 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1787 | #define USE_LANGACTION 1
|
---|
| 1788 | _ACEOF
|
---|
| 1789 |
|
---|
| 1790 |
|
---|
| 1791 | fi
|
---|
| 1792 |
|
---|
[21487] | 1793 | # Check whether --enable-corba was given.
|
---|
[16610] | 1794 | if test "${enable_corba+set}" = set; then
|
---|
[21487] | 1795 | enableval=$enable_corba; USE_CORBA=1
|
---|
[16610] | 1796 | else
|
---|
| 1797 | USE_CORBA=0
|
---|
[21487] | 1798 | fi
|
---|
| 1799 |
|
---|
[16610] | 1800 | cat >>confdefs.h <<_ACEOF
|
---|
| 1801 | #define USE_CORBA $USE_CORBA
|
---|
| 1802 | _ACEOF
|
---|
| 1803 |
|
---|
| 1804 |
|
---|
| 1805 |
|
---|
| 1806 |
|
---|
[21487] | 1807 | # Check whether --with-micodir was given.
|
---|
[16610] | 1808 | if test "${with_micodir+set}" = set; then
|
---|
[21487] | 1809 | withval=$with_micodir; MICO_DIR=$enableval
|
---|
[16610] | 1810 | else
|
---|
| 1811 | MICO_DIR="default"
|
---|
[21487] | 1812 | fi
|
---|
| 1813 |
|
---|
[16610] | 1814 | cat >>confdefs.h <<_ACEOF
|
---|
| 1815 | #define MICO_DIR "$MICO_DIR"
|
---|
| 1816 | _ACEOF
|
---|
| 1817 |
|
---|
| 1818 |
|
---|
| 1819 |
|
---|
[21487] | 1820 | # Check whether --enable-z3950 was given.
|
---|
[16610] | 1821 | if test "${enable_z3950+set}" = set; then
|
---|
[21487] | 1822 | enableval=$enable_z3950; USE_Z3950=1
|
---|
[16610] | 1823 | else
|
---|
| 1824 | USE_Z3950=0
|
---|
[21487] | 1825 | fi
|
---|
| 1826 |
|
---|
[16610] | 1827 | if test USE_Z3950 = 1; then
|
---|
| 1828 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1829 | #define USE_Z3950 $USE_Z3950
|
---|
| 1830 | _ACEOF
|
---|
| 1831 |
|
---|
| 1832 |
|
---|
| 1833 | fi
|
---|
| 1834 |
|
---|
[21487] | 1835 | # Check whether --enable-yaz was given.
|
---|
[16610] | 1836 | if test "${enable_yaz+set}" = set; then
|
---|
[21487] | 1837 | enableval=$enable_yaz; USE_YAZ=0
|
---|
[16610] | 1838 | else
|
---|
| 1839 | USE_YAZ=1
|
---|
[21487] | 1840 | fi
|
---|
| 1841 |
|
---|
[16610] | 1842 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1843 | #define USE_YAZ $USE_YAZ
|
---|
| 1844 | _ACEOF
|
---|
| 1845 |
|
---|
| 1846 |
|
---|
| 1847 |
|
---|
[21487] | 1848 |
|
---|
| 1849 | # Check whether --enable-accentfold was given.
|
---|
[16610] | 1850 | if test "${enable_accentfold+set}" = set; then
|
---|
[21487] | 1851 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=0
|
---|
[16610] | 1852 | else
|
---|
| 1853 | ENABLE_ACCENTFOLD=1
|
---|
[21487] | 1854 | fi
|
---|
| 1855 |
|
---|
[16610] | 1856 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1857 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1858 | _ACEOF
|
---|
| 1859 |
|
---|
| 1860 |
|
---|
| 1861 |
|
---|
[21487] | 1862 |
|
---|
| 1863 | # Check whether --enable-accentfold was given.
|
---|
| 1864 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1865 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=0
|
---|
| 1866 | else
|
---|
| 1867 | ENABLE_ACCENTFOLD=1
|
---|
| 1868 | fi
|
---|
| 1869 |
|
---|
| 1870 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1871 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1872 | _ACEOF
|
---|
| 1873 |
|
---|
| 1874 |
|
---|
| 1875 |
|
---|
| 1876 | # Check whether --enable-jdbm was given.
|
---|
| 1877 | if test "${enable_jdbm+set}" = set; then
|
---|
| 1878 | enableval=$enable_jdbm; ENABLE_JDBM=$enableval
|
---|
| 1879 | else
|
---|
| 1880 | ENABLE_JDBM=yes
|
---|
| 1881 | fi
|
---|
| 1882 |
|
---|
| 1883 | if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
|
---|
| 1884 | ENABLE_JDBM=1
|
---|
| 1885 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1886 | #define ENABLE_JDBM
|
---|
| 1887 | _ACEOF
|
---|
| 1888 |
|
---|
| 1889 | else
|
---|
| 1890 | ENABLE_JDBM=0
|
---|
| 1891 | fi
|
---|
| 1892 |
|
---|
| 1893 |
|
---|
| 1894 |
|
---|
| 1895 | # Check whether --enable-sqlite was given.
|
---|
[16610] | 1896 | if test "${enable_sqlite+set}" = set; then
|
---|
[21487] | 1897 | enableval=$enable_sqlite; USE_SQLITE=0
|
---|
[16610] | 1898 | else
|
---|
| 1899 | USE_SQLITE=1
|
---|
[21487] | 1900 | fi
|
---|
| 1901 |
|
---|
[16610] | 1902 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1903 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1904 | _ACEOF
|
---|
| 1905 |
|
---|
| 1906 |
|
---|
| 1907 |
|
---|
[21487] | 1908 | # Check whether --enable-jni was given.
|
---|
| 1909 | if test "${enable_jni+set}" = set; then
|
---|
| 1910 | enableval=$enable_jni; ENABLE_JNI=$enableval
|
---|
| 1911 | else
|
---|
| 1912 | ENABLE_JNI=no
|
---|
| 1913 | fi
|
---|
| 1914 |
|
---|
| 1915 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
| 1916 | ENABLE_JNI=1
|
---|
| 1917 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1918 | #define ENABLE_JNI
|
---|
| 1919 | _ACEOF
|
---|
| 1920 |
|
---|
| 1921 | else
|
---|
| 1922 | ENABLE_JNI=0
|
---|
| 1923 | fi
|
---|
| 1924 |
|
---|
| 1925 |
|
---|
| 1926 | # Check whether --enable-mg was given.
|
---|
| 1927 | if test "${enable_mg+set}" = set; then
|
---|
| 1928 | enableval=$enable_mg; ENABLE_MG=$enableval
|
---|
| 1929 | else
|
---|
| 1930 | ENABLE_MG=yes
|
---|
| 1931 | fi
|
---|
| 1932 |
|
---|
| 1933 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1934 | ENABLE_MG=1
|
---|
| 1935 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1936 | #define ENABLE_MG
|
---|
| 1937 | _ACEOF
|
---|
| 1938 |
|
---|
| 1939 | else
|
---|
| 1940 | ENABLE_MG=0
|
---|
| 1941 | fi
|
---|
| 1942 |
|
---|
| 1943 |
|
---|
| 1944 | # Check whether --enable-mgpp was given.
|
---|
| 1945 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1946 | enableval=$enable_mgpp; ENABLE_MGPP=$enableval
|
---|
| 1947 | else
|
---|
| 1948 | ENABLE_MGPP=yes
|
---|
| 1949 | fi
|
---|
| 1950 |
|
---|
| 1951 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1952 | ENABLE_MGPP=1
|
---|
| 1953 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1954 | #define ENABLE_MGPP
|
---|
| 1955 | _ACEOF
|
---|
| 1956 |
|
---|
| 1957 | else
|
---|
| 1958 | ENABLE_MGPP=0
|
---|
| 1959 | fi
|
---|
| 1960 |
|
---|
| 1961 |
|
---|
| 1962 | # Check whether --enable-lucene was given.
|
---|
| 1963 | if test "${enable_lucene+set}" = set; then
|
---|
| 1964 | enableval=$enable_lucene; ENABLE_LUCENE=$enableval
|
---|
| 1965 | else
|
---|
| 1966 | ENABLE_LUCENE=yes
|
---|
| 1967 | fi
|
---|
| 1968 |
|
---|
| 1969 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 1970 | ENABLE_LUCENE=1
|
---|
| 1971 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1972 | #define ENABLE_LUCENE
|
---|
| 1973 | _ACEOF
|
---|
| 1974 |
|
---|
| 1975 | else
|
---|
| 1976 | ENABLE_LUCENE=0
|
---|
| 1977 | fi
|
---|
| 1978 |
|
---|
| 1979 |
|
---|
| 1980 |
|
---|
| 1981 |
|
---|
[16610] | 1982 | LDFLAGS=$LDFLAGS
|
---|
| 1983 |
|
---|
| 1984 | if test -z "$CFLAGS"; then
|
---|
| 1985 | CFLAGS=-O2
|
---|
| 1986 | fi
|
---|
| 1987 |
|
---|
| 1988 |
|
---|
| 1989 |
|
---|
| 1990 | ac_ext=c
|
---|
| 1991 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1995 | if test -n "$ac_tool_prefix"; then
|
---|
| 1996 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1997 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[21487] | 1998 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2000 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2001 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2002 | else
|
---|
| 2003 | if test -n "$CC"; then
|
---|
| 2004 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2005 | else
|
---|
| 2006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2007 | for as_dir in $PATH
|
---|
| 2008 | do
|
---|
| 2009 | IFS=$as_save_IFS
|
---|
| 2010 | test -z "$as_dir" && as_dir=.
|
---|
| 2011 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2013 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2015 | break 2
|
---|
| 2016 | fi
|
---|
| 2017 | done
|
---|
| 2018 | done
|
---|
[21487] | 2019 | IFS=$as_save_IFS
|
---|
[16610] | 2020 |
|
---|
| 2021 | fi
|
---|
| 2022 | fi
|
---|
| 2023 | CC=$ac_cv_prog_CC
|
---|
| 2024 | if test -n "$CC"; then
|
---|
[21487] | 2025 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2026 | echo "${ECHO_T}$CC" >&6; }
|
---|
[16610] | 2027 | else
|
---|
[21487] | 2028 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2029 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2030 | fi
|
---|
| 2031 |
|
---|
[21487] | 2032 |
|
---|
[16610] | 2033 | fi
|
---|
| 2034 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2035 | ac_ct_CC=$CC
|
---|
| 2036 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 2037 | set dummy gcc; ac_word=$2
|
---|
[21487] | 2038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2041 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2042 | else
|
---|
| 2043 | if test -n "$ac_ct_CC"; then
|
---|
| 2044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2045 | else
|
---|
| 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2047 | for as_dir in $PATH
|
---|
| 2048 | do
|
---|
| 2049 | IFS=$as_save_IFS
|
---|
| 2050 | test -z "$as_dir" && as_dir=.
|
---|
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2053 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2055 | break 2
|
---|
| 2056 | fi
|
---|
| 2057 | done
|
---|
| 2058 | done
|
---|
[21487] | 2059 | IFS=$as_save_IFS
|
---|
[16610] | 2060 |
|
---|
| 2061 | fi
|
---|
| 2062 | fi
|
---|
| 2063 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2064 | if test -n "$ac_ct_CC"; then
|
---|
[21487] | 2065 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 2066 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
[16610] | 2067 | else
|
---|
[21487] | 2068 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2069 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2070 | fi
|
---|
| 2071 |
|
---|
[21487] | 2072 | if test "x$ac_ct_CC" = x; then
|
---|
| 2073 | CC=""
|
---|
| 2074 | else
|
---|
| 2075 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2076 | yes:)
|
---|
| 2077 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2078 | whose name does not start with the host triplet. If you think this
|
---|
| 2079 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 2080 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2081 | whose name does not start with the host triplet. If you think this
|
---|
| 2082 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
| 2083 | ac_tool_warned=yes ;;
|
---|
| 2084 | esac
|
---|
| 2085 | CC=$ac_ct_CC
|
---|
| 2086 | fi
|
---|
[16610] | 2087 | else
|
---|
| 2088 | CC="$ac_cv_prog_CC"
|
---|
| 2089 | fi
|
---|
| 2090 |
|
---|
| 2091 | if test -z "$CC"; then
|
---|
[21487] | 2092 | if test -n "$ac_tool_prefix"; then
|
---|
| 2093 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[16610] | 2094 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[21487] | 2095 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2097 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2098 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2099 | else
|
---|
| 2100 | if test -n "$CC"; then
|
---|
| 2101 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2102 | else
|
---|
| 2103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2104 | for as_dir in $PATH
|
---|
| 2105 | do
|
---|
| 2106 | IFS=$as_save_IFS
|
---|
| 2107 | test -z "$as_dir" && as_dir=.
|
---|
| 2108 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2110 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2112 | break 2
|
---|
| 2113 | fi
|
---|
| 2114 | done
|
---|
| 2115 | done
|
---|
[21487] | 2116 | IFS=$as_save_IFS
|
---|
[16610] | 2117 |
|
---|
| 2118 | fi
|
---|
| 2119 | fi
|
---|
| 2120 | CC=$ac_cv_prog_CC
|
---|
| 2121 | if test -n "$CC"; then
|
---|
[21487] | 2122 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2123 | echo "${ECHO_T}$CC" >&6; }
|
---|
[16610] | 2124 | else
|
---|
[21487] | 2125 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2126 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2127 | fi
|
---|
| 2128 |
|
---|
[21487] | 2129 |
|
---|
[16610] | 2130 | fi
|
---|
| 2131 | fi
|
---|
| 2132 | if test -z "$CC"; then
|
---|
| 2133 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2134 | set dummy cc; ac_word=$2
|
---|
[21487] | 2135 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2137 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2138 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2139 | else
|
---|
| 2140 | if test -n "$CC"; then
|
---|
| 2141 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2142 | else
|
---|
| 2143 | ac_prog_rejected=no
|
---|
| 2144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2145 | for as_dir in $PATH
|
---|
| 2146 | do
|
---|
| 2147 | IFS=$as_save_IFS
|
---|
| 2148 | test -z "$as_dir" && as_dir=.
|
---|
| 2149 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2151 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2152 | ac_prog_rejected=yes
|
---|
| 2153 | continue
|
---|
| 2154 | fi
|
---|
| 2155 | ac_cv_prog_CC="cc"
|
---|
| 2156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2157 | break 2
|
---|
| 2158 | fi
|
---|
| 2159 | done
|
---|
| 2160 | done
|
---|
[21487] | 2161 | IFS=$as_save_IFS
|
---|
[16610] | 2162 |
|
---|
| 2163 | if test $ac_prog_rejected = yes; then
|
---|
| 2164 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2165 | set dummy $ac_cv_prog_CC
|
---|
| 2166 | shift
|
---|
| 2167 | if test $# != 0; then
|
---|
| 2168 | # We chose a different compiler from the bogus one.
|
---|
| 2169 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2170 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2171 | shift
|
---|
| 2172 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 2173 | fi
|
---|
| 2174 | fi
|
---|
| 2175 | fi
|
---|
| 2176 | fi
|
---|
| 2177 | CC=$ac_cv_prog_CC
|
---|
| 2178 | if test -n "$CC"; then
|
---|
[21487] | 2179 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2180 | echo "${ECHO_T}$CC" >&6; }
|
---|
[16610] | 2181 | else
|
---|
[21487] | 2182 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2183 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2184 | fi
|
---|
| 2185 |
|
---|
[21487] | 2186 |
|
---|
[16610] | 2187 | fi
|
---|
| 2188 | if test -z "$CC"; then
|
---|
| 2189 | if test -n "$ac_tool_prefix"; then
|
---|
[21487] | 2190 | for ac_prog in cl.exe
|
---|
[16610] | 2191 | do
|
---|
| 2192 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2193 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[21487] | 2194 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2196 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2197 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2198 | else
|
---|
| 2199 | if test -n "$CC"; then
|
---|
| 2200 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2201 | else
|
---|
| 2202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2203 | for as_dir in $PATH
|
---|
| 2204 | do
|
---|
| 2205 | IFS=$as_save_IFS
|
---|
| 2206 | test -z "$as_dir" && as_dir=.
|
---|
| 2207 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2209 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2211 | break 2
|
---|
| 2212 | fi
|
---|
| 2213 | done
|
---|
| 2214 | done
|
---|
[21487] | 2215 | IFS=$as_save_IFS
|
---|
[16610] | 2216 |
|
---|
| 2217 | fi
|
---|
| 2218 | fi
|
---|
| 2219 | CC=$ac_cv_prog_CC
|
---|
| 2220 | if test -n "$CC"; then
|
---|
[21487] | 2221 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 2222 | echo "${ECHO_T}$CC" >&6; }
|
---|
[16610] | 2223 | else
|
---|
[21487] | 2224 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2225 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2226 | fi
|
---|
| 2227 |
|
---|
[21487] | 2228 |
|
---|
[16610] | 2229 | test -n "$CC" && break
|
---|
| 2230 | done
|
---|
| 2231 | fi
|
---|
| 2232 | if test -z "$CC"; then
|
---|
| 2233 | ac_ct_CC=$CC
|
---|
[21487] | 2234 | for ac_prog in cl.exe
|
---|
[16610] | 2235 | do
|
---|
| 2236 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2237 | set dummy $ac_prog; ac_word=$2
|
---|
[21487] | 2238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2240 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2241 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2242 | else
|
---|
| 2243 | if test -n "$ac_ct_CC"; then
|
---|
| 2244 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2245 | else
|
---|
| 2246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2247 | for as_dir in $PATH
|
---|
| 2248 | do
|
---|
| 2249 | IFS=$as_save_IFS
|
---|
| 2250 | test -z "$as_dir" && as_dir=.
|
---|
| 2251 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2253 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2255 | break 2
|
---|
| 2256 | fi
|
---|
| 2257 | done
|
---|
| 2258 | done
|
---|
[21487] | 2259 | IFS=$as_save_IFS
|
---|
[16610] | 2260 |
|
---|
| 2261 | fi
|
---|
| 2262 | fi
|
---|
| 2263 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2264 | if test -n "$ac_ct_CC"; then
|
---|
[21487] | 2265 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 2266 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
[16610] | 2267 | else
|
---|
[21487] | 2268 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2269 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2270 | fi
|
---|
| 2271 |
|
---|
[21487] | 2272 |
|
---|
[16610] | 2273 | test -n "$ac_ct_CC" && break
|
---|
| 2274 | done
|
---|
| 2275 |
|
---|
[21487] | 2276 | if test "x$ac_ct_CC" = x; then
|
---|
| 2277 | CC=""
|
---|
| 2278 | else
|
---|
| 2279 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2280 | yes:)
|
---|
| 2281 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2282 | whose name does not start with the host triplet. If you think this
|
---|
| 2283 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 2284 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 2285 | whose name does not start with the host triplet. If you think this
|
---|
| 2286 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
| 2287 | ac_tool_warned=yes ;;
|
---|
| 2288 | esac
|
---|
| 2289 | CC=$ac_ct_CC
|
---|
| 2290 | fi
|
---|
[16610] | 2291 | fi
|
---|
| 2292 |
|
---|
| 2293 | fi
|
---|
| 2294 |
|
---|
| 2295 |
|
---|
| 2296 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2297 | See \`config.log' for more details." >&5
|
---|
| 2298 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2299 | See \`config.log' for more details." >&2;}
|
---|
| 2300 | { (exit 1); exit 1; }; }
|
---|
| 2301 |
|
---|
| 2302 | # Provide some information about the compiler.
|
---|
[21487] | 2303 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
[16610] | 2304 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[21487] | 2305 | { (ac_try="$ac_compiler --version >&5"
|
---|
| 2306 | case "(($ac_try" in
|
---|
| 2307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2308 | *) ac_try_echo=$ac_try;;
|
---|
| 2309 | esac
|
---|
| 2310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2311 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
[16610] | 2312 | ac_status=$?
|
---|
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2314 | (exit $ac_status); }
|
---|
[21487] | 2315 | { (ac_try="$ac_compiler -v >&5"
|
---|
| 2316 | case "(($ac_try" in
|
---|
| 2317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2318 | *) ac_try_echo=$ac_try;;
|
---|
| 2319 | esac
|
---|
| 2320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2321 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
[16610] | 2322 | ac_status=$?
|
---|
| 2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2324 | (exit $ac_status); }
|
---|
[21487] | 2325 | { (ac_try="$ac_compiler -V >&5"
|
---|
| 2326 | case "(($ac_try" in
|
---|
| 2327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2328 | *) ac_try_echo=$ac_try;;
|
---|
| 2329 | esac
|
---|
| 2330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2331 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
[16610] | 2332 | ac_status=$?
|
---|
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2334 | (exit $ac_status); }
|
---|
| 2335 |
|
---|
| 2336 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2337 | /* confdefs.h. */
|
---|
| 2338 | _ACEOF
|
---|
| 2339 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2340 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2341 | /* end confdefs.h. */
|
---|
| 2342 |
|
---|
| 2343 | int
|
---|
| 2344 | main ()
|
---|
| 2345 | {
|
---|
| 2346 |
|
---|
| 2347 | ;
|
---|
| 2348 | return 0;
|
---|
| 2349 | }
|
---|
| 2350 | _ACEOF
|
---|
| 2351 | ac_clean_files_save=$ac_clean_files
|
---|
| 2352 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 2353 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 2354 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 2355 | # of exeext.
|
---|
[21487] | 2356 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 2357 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
---|
[16610] | 2358 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[21487] | 2359 | #
|
---|
| 2360 | # List of possible output files, starting from the most likely.
|
---|
| 2361 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
| 2362 | # only as a last resort. b.out is created by i960 compilers.
|
---|
| 2363 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
| 2364 | #
|
---|
| 2365 | # The IRIX 6 linker writes into existing files which may not be
|
---|
| 2366 | # executable, retaining their permissions. Remove them first so a
|
---|
| 2367 | # subsequent execution test works.
|
---|
| 2368 | ac_rmfiles=
|
---|
| 2369 | for ac_file in $ac_files
|
---|
| 2370 | do
|
---|
| 2371 | case $ac_file in
|
---|
| 2372 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
| 2373 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2374 | esac
|
---|
| 2375 | done
|
---|
| 2376 | rm -f $ac_rmfiles
|
---|
| 2377 |
|
---|
| 2378 | if { (ac_try="$ac_link_default"
|
---|
| 2379 | case "(($ac_try" in
|
---|
| 2380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2381 | *) ac_try_echo=$ac_try;;
|
---|
| 2382 | esac
|
---|
| 2383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2384 | (eval "$ac_link_default") 2>&5
|
---|
[16610] | 2385 | ac_status=$?
|
---|
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2387 | (exit $ac_status); }; then
|
---|
[21487] | 2388 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2389 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2390 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2391 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2392 | # Autoconf.
|
---|
| 2393 | for ac_file in $ac_files ''
|
---|
[16610] | 2394 | do
|
---|
| 2395 | test -f "$ac_file" || continue
|
---|
| 2396 | case $ac_file in
|
---|
[21487] | 2397 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
[16610] | 2398 | ;;
|
---|
| 2399 | [ab].out )
|
---|
| 2400 | # We found the default executable, but exeext='' is most
|
---|
| 2401 | # certainly right.
|
---|
| 2402 | break;;
|
---|
| 2403 | *.* )
|
---|
[21487] | 2404 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 2405 | then :; else
|
---|
| 2406 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2407 | fi
|
---|
| 2408 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2409 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2410 | # argument, so we may need to know it at that point already.
|
---|
| 2411 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2412 | # actually working.
|
---|
[16610] | 2413 | break;;
|
---|
| 2414 | * )
|
---|
| 2415 | break;;
|
---|
| 2416 | esac
|
---|
| 2417 | done
|
---|
[21487] | 2418 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2419 |
|
---|
[16610] | 2420 | else
|
---|
[21487] | 2421 | ac_file=''
|
---|
| 2422 | fi
|
---|
| 2423 |
|
---|
| 2424 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 2425 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
| 2426 | if test -z "$ac_file"; then
|
---|
[16610] | 2427 | echo "$as_me: failed program was:" >&5
|
---|
| 2428 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2429 |
|
---|
| 2430 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 2431 | See \`config.log' for more details." >&5
|
---|
| 2432 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 2433 | See \`config.log' for more details." >&2;}
|
---|
| 2434 | { (exit 77); exit 77; }; }
|
---|
| 2435 | fi
|
---|
| 2436 |
|
---|
| 2437 | ac_exeext=$ac_cv_exeext
|
---|
| 2438 |
|
---|
[21487] | 2439 | # Check that the compiler produces executables we can run. If not, either
|
---|
[16610] | 2440 | # the compiler is broken, or we cross compile.
|
---|
[21487] | 2441 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 2442 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
---|
[16610] | 2443 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 2444 | # If not cross compiling, check that we can run a simple program.
|
---|
| 2445 | if test "$cross_compiling" != yes; then
|
---|
| 2446 | if { ac_try='./$ac_file'
|
---|
[21487] | 2447 | { (case "(($ac_try" in
|
---|
| 2448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2449 | *) ac_try_echo=$ac_try;;
|
---|
| 2450 | esac
|
---|
| 2451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2452 | (eval "$ac_try") 2>&5
|
---|
[16610] | 2453 | ac_status=$?
|
---|
| 2454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2455 | (exit $ac_status); }; }; then
|
---|
| 2456 | cross_compiling=no
|
---|
| 2457 | else
|
---|
| 2458 | if test "$cross_compiling" = maybe; then
|
---|
| 2459 | cross_compiling=yes
|
---|
| 2460 | else
|
---|
| 2461 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 2462 | If you meant to cross compile, use \`--host'.
|
---|
| 2463 | See \`config.log' for more details." >&5
|
---|
| 2464 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 2465 | If you meant to cross compile, use \`--host'.
|
---|
| 2466 | See \`config.log' for more details." >&2;}
|
---|
| 2467 | { (exit 1); exit 1; }; }
|
---|
| 2468 | fi
|
---|
| 2469 | fi
|
---|
| 2470 | fi
|
---|
[21487] | 2471 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2472 | echo "${ECHO_T}yes" >&6; }
|
---|
[16610] | 2473 |
|
---|
| 2474 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 2475 | ac_clean_files=$ac_clean_files_save
|
---|
[21487] | 2476 | # Check that the compiler produces executables we can run. If not, either
|
---|
[16610] | 2477 | # the compiler is broken, or we cross compile.
|
---|
[21487] | 2478 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 2479 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
| 2480 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 2481 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
[16610] | 2482 |
|
---|
[21487] | 2483 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 2484 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
| 2485 | if { (ac_try="$ac_link"
|
---|
| 2486 | case "(($ac_try" in
|
---|
| 2487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2488 | *) ac_try_echo=$ac_try;;
|
---|
| 2489 | esac
|
---|
| 2490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2491 | (eval "$ac_link") 2>&5
|
---|
[16610] | 2492 | ac_status=$?
|
---|
| 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2494 | (exit $ac_status); }; then
|
---|
| 2495 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2496 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2497 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2498 | # `rm'.
|
---|
| 2499 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2500 | test -f "$ac_file" || continue
|
---|
| 2501 | case $ac_file in
|
---|
[21487] | 2502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
[16610] | 2503 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2504 | break;;
|
---|
| 2505 | * ) break;;
|
---|
| 2506 | esac
|
---|
| 2507 | done
|
---|
| 2508 | else
|
---|
| 2509 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2510 | See \`config.log' for more details." >&5
|
---|
| 2511 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2512 | See \`config.log' for more details." >&2;}
|
---|
| 2513 | { (exit 1); exit 1; }; }
|
---|
| 2514 | fi
|
---|
| 2515 |
|
---|
| 2516 | rm -f conftest$ac_cv_exeext
|
---|
[21487] | 2517 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2518 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
[16610] | 2519 |
|
---|
| 2520 | rm -f conftest.$ac_ext
|
---|
| 2521 | EXEEXT=$ac_cv_exeext
|
---|
| 2522 | ac_exeext=$EXEEXT
|
---|
[21487] | 2523 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2524 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
[16610] | 2525 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2526 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2527 | else
|
---|
| 2528 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2529 | /* confdefs.h. */
|
---|
| 2530 | _ACEOF
|
---|
| 2531 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2532 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2533 | /* end confdefs.h. */
|
---|
| 2534 |
|
---|
| 2535 | int
|
---|
| 2536 | main ()
|
---|
| 2537 | {
|
---|
| 2538 |
|
---|
| 2539 | ;
|
---|
| 2540 | return 0;
|
---|
| 2541 | }
|
---|
| 2542 | _ACEOF
|
---|
| 2543 | rm -f conftest.o conftest.obj
|
---|
[21487] | 2544 | if { (ac_try="$ac_compile"
|
---|
| 2545 | case "(($ac_try" in
|
---|
| 2546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2547 | *) ac_try_echo=$ac_try;;
|
---|
| 2548 | esac
|
---|
| 2549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2550 | (eval "$ac_compile") 2>&5
|
---|
[16610] | 2551 | ac_status=$?
|
---|
| 2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2553 | (exit $ac_status); }; then
|
---|
[21487] | 2554 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 2555 | test -f "$ac_file" || continue;
|
---|
[16610] | 2556 | case $ac_file in
|
---|
[21487] | 2557 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
[16610] | 2558 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2559 | break;;
|
---|
| 2560 | esac
|
---|
| 2561 | done
|
---|
| 2562 | else
|
---|
| 2563 | echo "$as_me: failed program was:" >&5
|
---|
| 2564 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2565 |
|
---|
| 2566 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2567 | See \`config.log' for more details." >&5
|
---|
| 2568 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2569 | See \`config.log' for more details." >&2;}
|
---|
| 2570 | { (exit 1); exit 1; }; }
|
---|
| 2571 | fi
|
---|
| 2572 |
|
---|
| 2573 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2574 | fi
|
---|
[21487] | 2575 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2576 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
[16610] | 2577 | OBJEXT=$ac_cv_objext
|
---|
| 2578 | ac_objext=$OBJEXT
|
---|
[21487] | 2579 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2580 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
[16610] | 2581 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2582 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2583 | else
|
---|
| 2584 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2585 | /* confdefs.h. */
|
---|
| 2586 | _ACEOF
|
---|
| 2587 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2588 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2589 | /* end confdefs.h. */
|
---|
| 2590 |
|
---|
| 2591 | int
|
---|
| 2592 | main ()
|
---|
| 2593 | {
|
---|
| 2594 | #ifndef __GNUC__
|
---|
| 2595 | choke me
|
---|
| 2596 | #endif
|
---|
| 2597 |
|
---|
| 2598 | ;
|
---|
| 2599 | return 0;
|
---|
| 2600 | }
|
---|
| 2601 | _ACEOF
|
---|
| 2602 | rm -f conftest.$ac_objext
|
---|
[21487] | 2603 | if { (ac_try="$ac_compile"
|
---|
| 2604 | case "(($ac_try" in
|
---|
| 2605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2606 | *) ac_try_echo=$ac_try;;
|
---|
| 2607 | esac
|
---|
| 2608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2609 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 2610 | ac_status=$?
|
---|
| 2611 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2612 | rm -f conftest.er1
|
---|
| 2613 | cat conftest.err >&5
|
---|
| 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 2615 | (exit $ac_status); } && {
|
---|
| 2616 | test -z "$ac_c_werror_flag" ||
|
---|
| 2617 | test ! -s conftest.err
|
---|
| 2618 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 2619 | ac_compiler_gnu=yes
|
---|
| 2620 | else
|
---|
| 2621 | echo "$as_me: failed program was:" >&5
|
---|
| 2622 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2623 |
|
---|
[21487] | 2624 | ac_compiler_gnu=no
|
---|
[16610] | 2625 | fi
|
---|
[21487] | 2626 |
|
---|
| 2627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 2628 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2629 |
|
---|
| 2630 | fi
|
---|
[21487] | 2631 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2632 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
[16610] | 2633 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2634 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2635 | ac_save_CFLAGS=$CFLAGS
|
---|
[21487] | 2636 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2637 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
[16610] | 2638 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2639 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2640 | else
|
---|
[21487] | 2641 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 2642 | ac_c_werror_flag=yes
|
---|
| 2643 | ac_cv_prog_cc_g=no
|
---|
| 2644 | CFLAGS="-g"
|
---|
| 2645 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16610] | 2646 | /* confdefs.h. */
|
---|
| 2647 | _ACEOF
|
---|
| 2648 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2649 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2650 | /* end confdefs.h. */
|
---|
| 2651 |
|
---|
| 2652 | int
|
---|
| 2653 | main ()
|
---|
| 2654 | {
|
---|
| 2655 |
|
---|
| 2656 | ;
|
---|
| 2657 | return 0;
|
---|
| 2658 | }
|
---|
| 2659 | _ACEOF
|
---|
| 2660 | rm -f conftest.$ac_objext
|
---|
[21487] | 2661 | if { (ac_try="$ac_compile"
|
---|
| 2662 | case "(($ac_try" in
|
---|
| 2663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2664 | *) ac_try_echo=$ac_try;;
|
---|
| 2665 | esac
|
---|
| 2666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2667 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 2668 | ac_status=$?
|
---|
| 2669 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2670 | rm -f conftest.er1
|
---|
| 2671 | cat conftest.err >&5
|
---|
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 2673 | (exit $ac_status); } && {
|
---|
| 2674 | test -z "$ac_c_werror_flag" ||
|
---|
| 2675 | test ! -s conftest.err
|
---|
| 2676 | } && test -s conftest.$ac_objext; then
|
---|
| 2677 | ac_cv_prog_cc_g=yes
|
---|
| 2678 | else
|
---|
| 2679 | echo "$as_me: failed program was:" >&5
|
---|
| 2680 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2681 |
|
---|
| 2682 | CFLAGS=""
|
---|
| 2683 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2684 | /* confdefs.h. */
|
---|
| 2685 | _ACEOF
|
---|
| 2686 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2687 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2688 | /* end confdefs.h. */
|
---|
| 2689 |
|
---|
| 2690 | int
|
---|
| 2691 | main ()
|
---|
| 2692 | {
|
---|
| 2693 |
|
---|
| 2694 | ;
|
---|
| 2695 | return 0;
|
---|
| 2696 | }
|
---|
| 2697 | _ACEOF
|
---|
| 2698 | rm -f conftest.$ac_objext
|
---|
| 2699 | if { (ac_try="$ac_compile"
|
---|
| 2700 | case "(($ac_try" in
|
---|
| 2701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2702 | *) ac_try_echo=$ac_try;;
|
---|
| 2703 | esac
|
---|
| 2704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2705 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 2706 | ac_status=$?
|
---|
[21487] | 2707 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2708 | rm -f conftest.er1
|
---|
| 2709 | cat conftest.err >&5
|
---|
[16610] | 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 2711 | (exit $ac_status); } && {
|
---|
| 2712 | test -z "$ac_c_werror_flag" ||
|
---|
| 2713 | test ! -s conftest.err
|
---|
| 2714 | } && test -s conftest.$ac_objext; then
|
---|
| 2715 | :
|
---|
| 2716 | else
|
---|
| 2717 | echo "$as_me: failed program was:" >&5
|
---|
| 2718 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2719 |
|
---|
| 2720 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 2721 | CFLAGS="-g"
|
---|
| 2722 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2723 | /* confdefs.h. */
|
---|
| 2724 | _ACEOF
|
---|
| 2725 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2726 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2727 | /* end confdefs.h. */
|
---|
| 2728 |
|
---|
| 2729 | int
|
---|
| 2730 | main ()
|
---|
| 2731 | {
|
---|
| 2732 |
|
---|
| 2733 | ;
|
---|
| 2734 | return 0;
|
---|
| 2735 | }
|
---|
| 2736 | _ACEOF
|
---|
| 2737 | rm -f conftest.$ac_objext
|
---|
| 2738 | if { (ac_try="$ac_compile"
|
---|
| 2739 | case "(($ac_try" in
|
---|
| 2740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2741 | *) ac_try_echo=$ac_try;;
|
---|
| 2742 | esac
|
---|
| 2743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2744 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 2745 | ac_status=$?
|
---|
[21487] | 2746 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2747 | rm -f conftest.er1
|
---|
| 2748 | cat conftest.err >&5
|
---|
[16610] | 2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 2750 | (exit $ac_status); } && {
|
---|
| 2751 | test -z "$ac_c_werror_flag" ||
|
---|
| 2752 | test ! -s conftest.err
|
---|
| 2753 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 2754 | ac_cv_prog_cc_g=yes
|
---|
| 2755 | else
|
---|
| 2756 | echo "$as_me: failed program was:" >&5
|
---|
| 2757 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2758 |
|
---|
[21487] | 2759 |
|
---|
[16610] | 2760 | fi
|
---|
[21487] | 2761 |
|
---|
| 2762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 2763 | fi
|
---|
[21487] | 2764 |
|
---|
| 2765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2766 | fi
|
---|
| 2767 |
|
---|
| 2768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2769 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 2770 | fi
|
---|
| 2771 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2772 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
[16610] | 2773 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2774 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2775 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2776 | if test "$GCC" = yes; then
|
---|
| 2777 | CFLAGS="-g -O2"
|
---|
| 2778 | else
|
---|
| 2779 | CFLAGS="-g"
|
---|
| 2780 | fi
|
---|
| 2781 | else
|
---|
| 2782 | if test "$GCC" = yes; then
|
---|
| 2783 | CFLAGS="-O2"
|
---|
| 2784 | else
|
---|
| 2785 | CFLAGS=
|
---|
| 2786 | fi
|
---|
| 2787 | fi
|
---|
[21487] | 2788 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
| 2789 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
| 2790 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
[16610] | 2791 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2792 | else
|
---|
[21487] | 2793 | ac_cv_prog_cc_c89=no
|
---|
[16610] | 2794 | ac_save_CC=$CC
|
---|
| 2795 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2796 | /* confdefs.h. */
|
---|
| 2797 | _ACEOF
|
---|
| 2798 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2799 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2800 | /* end confdefs.h. */
|
---|
| 2801 | #include <stdarg.h>
|
---|
| 2802 | #include <stdio.h>
|
---|
| 2803 | #include <sys/types.h>
|
---|
| 2804 | #include <sys/stat.h>
|
---|
| 2805 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2806 | struct buf { int x; };
|
---|
| 2807 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2808 | static char *e (p, i)
|
---|
| 2809 | char **p;
|
---|
| 2810 | int i;
|
---|
| 2811 | {
|
---|
| 2812 | return p[i];
|
---|
| 2813 | }
|
---|
| 2814 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2815 | {
|
---|
| 2816 | char *s;
|
---|
| 2817 | va_list v;
|
---|
| 2818 | va_start (v,p);
|
---|
| 2819 | s = g (p, va_arg (v,int));
|
---|
| 2820 | va_end (v);
|
---|
| 2821 | return s;
|
---|
| 2822 | }
|
---|
| 2823 |
|
---|
| 2824 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2825 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2826 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[21487] | 2827 | as 'x'. The following induces an error, until -std is added to get
|
---|
[16610] | 2828 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2829 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[21487] | 2830 | that's true only with -std. */
|
---|
[16610] | 2831 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2832 |
|
---|
[21487] | 2833 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 2834 | inside strings and character constants. */
|
---|
| 2835 | #define FOO(x) 'x'
|
---|
| 2836 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 2837 |
|
---|
[16610] | 2838 | int test (int i, double x);
|
---|
| 2839 | struct s1 {int (*f) (int a);};
|
---|
| 2840 | struct s2 {int (*f) (double a);};
|
---|
| 2841 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2842 | int argc;
|
---|
| 2843 | char **argv;
|
---|
| 2844 | int
|
---|
| 2845 | main ()
|
---|
| 2846 | {
|
---|
| 2847 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2848 | ;
|
---|
| 2849 | return 0;
|
---|
| 2850 | }
|
---|
| 2851 | _ACEOF
|
---|
[21487] | 2852 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 2853 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[16610] | 2854 | do
|
---|
| 2855 | CC="$ac_save_CC $ac_arg"
|
---|
| 2856 | rm -f conftest.$ac_objext
|
---|
[21487] | 2857 | if { (ac_try="$ac_compile"
|
---|
| 2858 | case "(($ac_try" in
|
---|
| 2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2860 | *) ac_try_echo=$ac_try;;
|
---|
| 2861 | esac
|
---|
| 2862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 2863 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 2864 | ac_status=$?
|
---|
| 2865 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2866 | rm -f conftest.er1
|
---|
| 2867 | cat conftest.err >&5
|
---|
| 2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 2869 | (exit $ac_status); } && {
|
---|
| 2870 | test -z "$ac_c_werror_flag" ||
|
---|
| 2871 | test ! -s conftest.err
|
---|
| 2872 | } && test -s conftest.$ac_objext; then
|
---|
| 2873 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[16610] | 2874 | else
|
---|
| 2875 | echo "$as_me: failed program was:" >&5
|
---|
| 2876 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2877 |
|
---|
[21487] | 2878 |
|
---|
[16610] | 2879 | fi
|
---|
[21487] | 2880 |
|
---|
| 2881 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 2882 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[16610] | 2883 | done
|
---|
[21487] | 2884 | rm -f conftest.$ac_ext
|
---|
[16610] | 2885 | CC=$ac_save_CC
|
---|
| 2886 |
|
---|
| 2887 | fi
|
---|
[21487] | 2888 | # AC_CACHE_VAL
|
---|
| 2889 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 2890 | x)
|
---|
| 2891 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2892 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
| 2893 | xno)
|
---|
| 2894 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
| 2895 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
[16610] | 2896 | *)
|
---|
[21487] | 2897 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
| 2898 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 2899 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[16610] | 2900 | esac
|
---|
| 2901 |
|
---|
| 2902 |
|
---|
| 2903 | ac_ext=c
|
---|
| 2904 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2908 |
|
---|
[21487] | 2909 | ac_ext=cpp
|
---|
[16610] | 2910 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2911 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2912 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2913 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[21487] | 2914 | if test -z "$CXX"; then
|
---|
| 2915 | if test -n "$CCC"; then
|
---|
| 2916 | CXX=$CCC
|
---|
| 2917 | else
|
---|
| 2918 | if test -n "$ac_tool_prefix"; then
|
---|
| 2919 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[16610] | 2920 | do
|
---|
| 2921 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2922 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[21487] | 2923 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2925 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2927 | else
|
---|
| 2928 | if test -n "$CXX"; then
|
---|
| 2929 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2930 | else
|
---|
| 2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2932 | for as_dir in $PATH
|
---|
| 2933 | do
|
---|
| 2934 | IFS=$as_save_IFS
|
---|
| 2935 | test -z "$as_dir" && as_dir=.
|
---|
| 2936 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2938 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2940 | break 2
|
---|
| 2941 | fi
|
---|
| 2942 | done
|
---|
| 2943 | done
|
---|
[21487] | 2944 | IFS=$as_save_IFS
|
---|
[16610] | 2945 |
|
---|
| 2946 | fi
|
---|
| 2947 | fi
|
---|
| 2948 | CXX=$ac_cv_prog_CXX
|
---|
| 2949 | if test -n "$CXX"; then
|
---|
[21487] | 2950 | { echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2951 | echo "${ECHO_T}$CXX" >&6; }
|
---|
[16610] | 2952 | else
|
---|
[21487] | 2953 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2954 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2955 | fi
|
---|
| 2956 |
|
---|
[21487] | 2957 |
|
---|
[16610] | 2958 | test -n "$CXX" && break
|
---|
| 2959 | done
|
---|
| 2960 | fi
|
---|
| 2961 | if test -z "$CXX"; then
|
---|
| 2962 | ac_ct_CXX=$CXX
|
---|
[21487] | 2963 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[16610] | 2964 | do
|
---|
| 2965 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2966 | set dummy $ac_prog; ac_word=$2
|
---|
[21487] | 2967 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 2969 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2970 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2971 | else
|
---|
| 2972 | if test -n "$ac_ct_CXX"; then
|
---|
| 2973 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2974 | else
|
---|
| 2975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2976 | for as_dir in $PATH
|
---|
| 2977 | do
|
---|
| 2978 | IFS=$as_save_IFS
|
---|
| 2979 | test -z "$as_dir" && as_dir=.
|
---|
| 2980 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 2981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 2982 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2984 | break 2
|
---|
| 2985 | fi
|
---|
| 2986 | done
|
---|
| 2987 | done
|
---|
[21487] | 2988 | IFS=$as_save_IFS
|
---|
[16610] | 2989 |
|
---|
| 2990 | fi
|
---|
| 2991 | fi
|
---|
| 2992 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2993 | if test -n "$ac_ct_CXX"; then
|
---|
[21487] | 2994 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2995 | echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
---|
[16610] | 2996 | else
|
---|
[21487] | 2997 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2998 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 2999 | fi
|
---|
| 3000 |
|
---|
[21487] | 3001 |
|
---|
[16610] | 3002 | test -n "$ac_ct_CXX" && break
|
---|
| 3003 | done
|
---|
| 3004 |
|
---|
[21487] | 3005 | if test "x$ac_ct_CXX" = x; then
|
---|
| 3006 | CXX="g++"
|
---|
| 3007 | else
|
---|
| 3008 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3009 | yes:)
|
---|
| 3010 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3011 | whose name does not start with the host triplet. If you think this
|
---|
| 3012 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 3013 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3014 | whose name does not start with the host triplet. If you think this
|
---|
| 3015 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
| 3016 | ac_tool_warned=yes ;;
|
---|
| 3017 | esac
|
---|
| 3018 | CXX=$ac_ct_CXX
|
---|
| 3019 | fi
|
---|
[16610] | 3020 | fi
|
---|
| 3021 |
|
---|
[21487] | 3022 | fi
|
---|
| 3023 | fi
|
---|
[16610] | 3024 | # Provide some information about the compiler.
|
---|
[21487] | 3025 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
---|
[16610] | 3026 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[21487] | 3027 | { (ac_try="$ac_compiler --version >&5"
|
---|
| 3028 | case "(($ac_try" in
|
---|
| 3029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3030 | *) ac_try_echo=$ac_try;;
|
---|
| 3031 | esac
|
---|
| 3032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3033 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
[16610] | 3034 | ac_status=$?
|
---|
| 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3036 | (exit $ac_status); }
|
---|
[21487] | 3037 | { (ac_try="$ac_compiler -v >&5"
|
---|
| 3038 | case "(($ac_try" in
|
---|
| 3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3040 | *) ac_try_echo=$ac_try;;
|
---|
| 3041 | esac
|
---|
| 3042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3043 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
[16610] | 3044 | ac_status=$?
|
---|
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3046 | (exit $ac_status); }
|
---|
[21487] | 3047 | { (ac_try="$ac_compiler -V >&5"
|
---|
| 3048 | case "(($ac_try" in
|
---|
| 3049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3050 | *) ac_try_echo=$ac_try;;
|
---|
| 3051 | esac
|
---|
| 3052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3053 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
[16610] | 3054 | ac_status=$?
|
---|
| 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3056 | (exit $ac_status); }
|
---|
| 3057 |
|
---|
[21487] | 3058 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 3059 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
---|
[16610] | 3060 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 3061 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3062 | else
|
---|
| 3063 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3064 | /* confdefs.h. */
|
---|
| 3065 | _ACEOF
|
---|
| 3066 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3067 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3068 | /* end confdefs.h. */
|
---|
| 3069 |
|
---|
| 3070 | int
|
---|
| 3071 | main ()
|
---|
| 3072 | {
|
---|
| 3073 | #ifndef __GNUC__
|
---|
| 3074 | choke me
|
---|
| 3075 | #endif
|
---|
| 3076 |
|
---|
| 3077 | ;
|
---|
| 3078 | return 0;
|
---|
| 3079 | }
|
---|
| 3080 | _ACEOF
|
---|
| 3081 | rm -f conftest.$ac_objext
|
---|
[21487] | 3082 | if { (ac_try="$ac_compile"
|
---|
| 3083 | case "(($ac_try" in
|
---|
| 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3085 | *) ac_try_echo=$ac_try;;
|
---|
| 3086 | esac
|
---|
| 3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3088 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 3089 | ac_status=$?
|
---|
| 3090 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3091 | rm -f conftest.er1
|
---|
| 3092 | cat conftest.err >&5
|
---|
| 3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3094 | (exit $ac_status); } && {
|
---|
| 3095 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3096 | test ! -s conftest.err
|
---|
| 3097 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 3098 | ac_compiler_gnu=yes
|
---|
| 3099 | else
|
---|
| 3100 | echo "$as_me: failed program was:" >&5
|
---|
| 3101 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3102 |
|
---|
[21487] | 3103 | ac_compiler_gnu=no
|
---|
[16610] | 3104 | fi
|
---|
[21487] | 3105 |
|
---|
| 3106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 3107 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 3108 |
|
---|
| 3109 | fi
|
---|
[21487] | 3110 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 3111 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
[16610] | 3112 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 3113 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3114 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[21487] | 3115 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 3116 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
---|
[16610] | 3117 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 3118 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3119 | else
|
---|
[21487] | 3120 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3121 | ac_cxx_werror_flag=yes
|
---|
| 3122 | ac_cv_prog_cxx_g=no
|
---|
| 3123 | CXXFLAGS="-g"
|
---|
| 3124 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16610] | 3125 | /* confdefs.h. */
|
---|
| 3126 | _ACEOF
|
---|
| 3127 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3128 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3129 | /* end confdefs.h. */
|
---|
| 3130 |
|
---|
| 3131 | int
|
---|
| 3132 | main ()
|
---|
| 3133 | {
|
---|
| 3134 |
|
---|
| 3135 | ;
|
---|
| 3136 | return 0;
|
---|
| 3137 | }
|
---|
| 3138 | _ACEOF
|
---|
| 3139 | rm -f conftest.$ac_objext
|
---|
[21487] | 3140 | if { (ac_try="$ac_compile"
|
---|
| 3141 | case "(($ac_try" in
|
---|
| 3142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3143 | *) ac_try_echo=$ac_try;;
|
---|
| 3144 | esac
|
---|
| 3145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3146 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 3147 | ac_status=$?
|
---|
| 3148 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3149 | rm -f conftest.er1
|
---|
| 3150 | cat conftest.err >&5
|
---|
| 3151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3152 | (exit $ac_status); } && {
|
---|
| 3153 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3154 | test ! -s conftest.err
|
---|
| 3155 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 3156 | ac_cv_prog_cxx_g=yes
|
---|
| 3157 | else
|
---|
| 3158 | echo "$as_me: failed program was:" >&5
|
---|
| 3159 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3160 |
|
---|
[21487] | 3161 | CXXFLAGS=""
|
---|
| 3162 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16610] | 3163 | /* confdefs.h. */
|
---|
| 3164 | _ACEOF
|
---|
| 3165 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3166 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3167 | /* end confdefs.h. */
|
---|
[21487] | 3168 |
|
---|
[16610] | 3169 | int
|
---|
| 3170 | main ()
|
---|
| 3171 | {
|
---|
[21487] | 3172 |
|
---|
[16610] | 3173 | ;
|
---|
| 3174 | return 0;
|
---|
| 3175 | }
|
---|
| 3176 | _ACEOF
|
---|
| 3177 | rm -f conftest.$ac_objext
|
---|
[21487] | 3178 | if { (ac_try="$ac_compile"
|
---|
| 3179 | case "(($ac_try" in
|
---|
| 3180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3181 | *) ac_try_echo=$ac_try;;
|
---|
| 3182 | esac
|
---|
| 3183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3184 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 3185 | ac_status=$?
|
---|
| 3186 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3187 | rm -f conftest.er1
|
---|
| 3188 | cat conftest.err >&5
|
---|
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3190 | (exit $ac_status); } && {
|
---|
| 3191 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3192 | test ! -s conftest.err
|
---|
| 3193 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 3194 | :
|
---|
| 3195 | else
|
---|
| 3196 | echo "$as_me: failed program was:" >&5
|
---|
| 3197 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3198 |
|
---|
[21487] | 3199 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3200 | CXXFLAGS="-g"
|
---|
| 3201 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16610] | 3202 | /* confdefs.h. */
|
---|
| 3203 | _ACEOF
|
---|
| 3204 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3205 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3206 | /* end confdefs.h. */
|
---|
[21487] | 3207 |
|
---|
[16610] | 3208 | int
|
---|
| 3209 | main ()
|
---|
| 3210 | {
|
---|
[21487] | 3211 |
|
---|
[16610] | 3212 | ;
|
---|
| 3213 | return 0;
|
---|
| 3214 | }
|
---|
| 3215 | _ACEOF
|
---|
| 3216 | rm -f conftest.$ac_objext
|
---|
[21487] | 3217 | if { (ac_try="$ac_compile"
|
---|
| 3218 | case "(($ac_try" in
|
---|
| 3219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3220 | *) ac_try_echo=$ac_try;;
|
---|
| 3221 | esac
|
---|
| 3222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3223 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 3224 | ac_status=$?
|
---|
| 3225 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3226 | rm -f conftest.er1
|
---|
| 3227 | cat conftest.err >&5
|
---|
| 3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3229 | (exit $ac_status); } && {
|
---|
| 3230 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 3231 | test ! -s conftest.err
|
---|
| 3232 | } && test -s conftest.$ac_objext; then
|
---|
| 3233 | ac_cv_prog_cxx_g=yes
|
---|
[16610] | 3234 | else
|
---|
| 3235 | echo "$as_me: failed program was:" >&5
|
---|
| 3236 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3237 |
|
---|
[21487] | 3238 |
|
---|
[16610] | 3239 | fi
|
---|
[21487] | 3240 |
|
---|
| 3241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 3242 | fi
|
---|
| 3243 |
|
---|
[21487] | 3244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3245 | fi
|
---|
| 3246 |
|
---|
| 3247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3248 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3249 | fi
|
---|
| 3250 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 3251 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
---|
| 3252 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3253 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3254 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3255 | if test "$GXX" = yes; then
|
---|
| 3256 | CXXFLAGS="-g -O2"
|
---|
| 3257 | else
|
---|
| 3258 | CXXFLAGS="-g"
|
---|
| 3259 | fi
|
---|
| 3260 | else
|
---|
| 3261 | if test "$GXX" = yes; then
|
---|
| 3262 | CXXFLAGS="-O2"
|
---|
| 3263 | else
|
---|
| 3264 | CXXFLAGS=
|
---|
| 3265 | fi
|
---|
| 3266 | fi
|
---|
[16610] | 3267 | ac_ext=c
|
---|
| 3268 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3272 |
|
---|
| 3273 | for ac_prog in gawk mawk nawk awk
|
---|
| 3274 | do
|
---|
| 3275 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3276 | set dummy $ac_prog; ac_word=$2
|
---|
[21487] | 3277 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 3279 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 3280 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3281 | else
|
---|
| 3282 | if test -n "$AWK"; then
|
---|
| 3283 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3284 | else
|
---|
| 3285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3286 | for as_dir in $PATH
|
---|
| 3287 | do
|
---|
| 3288 | IFS=$as_save_IFS
|
---|
| 3289 | test -z "$as_dir" && as_dir=.
|
---|
| 3290 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 3291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 3292 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 3293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3294 | break 2
|
---|
| 3295 | fi
|
---|
| 3296 | done
|
---|
| 3297 | done
|
---|
[21487] | 3298 | IFS=$as_save_IFS
|
---|
[16610] | 3299 |
|
---|
| 3300 | fi
|
---|
| 3301 | fi
|
---|
| 3302 | AWK=$ac_cv_prog_AWK
|
---|
| 3303 | if test -n "$AWK"; then
|
---|
[21487] | 3304 | { echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 3305 | echo "${ECHO_T}$AWK" >&6; }
|
---|
[16610] | 3306 | else
|
---|
[21487] | 3307 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3308 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 3309 | fi
|
---|
| 3310 |
|
---|
[21487] | 3311 |
|
---|
[16610] | 3312 | test -n "$AWK" && break
|
---|
| 3313 | done
|
---|
| 3314 |
|
---|
| 3315 | for ac_prog in 'bison -y' byacc
|
---|
| 3316 | do
|
---|
| 3317 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3318 | set dummy $ac_prog; ac_word=$2
|
---|
[21487] | 3319 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 3321 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 3322 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3323 | else
|
---|
| 3324 | if test -n "$YACC"; then
|
---|
| 3325 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3326 | else
|
---|
| 3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3328 | for as_dir in $PATH
|
---|
| 3329 | do
|
---|
| 3330 | IFS=$as_save_IFS
|
---|
| 3331 | test -z "$as_dir" && as_dir=.
|
---|
| 3332 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 3333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 3334 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 3335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3336 | break 2
|
---|
| 3337 | fi
|
---|
| 3338 | done
|
---|
| 3339 | done
|
---|
[21487] | 3340 | IFS=$as_save_IFS
|
---|
[16610] | 3341 |
|
---|
| 3342 | fi
|
---|
| 3343 | fi
|
---|
| 3344 | YACC=$ac_cv_prog_YACC
|
---|
| 3345 | if test -n "$YACC"; then
|
---|
[21487] | 3346 | { echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 3347 | echo "${ECHO_T}$YACC" >&6; }
|
---|
[16610] | 3348 | else
|
---|
[21487] | 3349 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3350 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 3351 | fi
|
---|
| 3352 |
|
---|
[21487] | 3353 |
|
---|
[16610] | 3354 | test -n "$YACC" && break
|
---|
| 3355 | done
|
---|
| 3356 | test -n "$YACC" || YACC="yacc"
|
---|
| 3357 |
|
---|
| 3358 | ac_aux_dir=
|
---|
[21487] | 3359 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
| 3360 | if test -f "$ac_dir/install-sh"; then
|
---|
[16610] | 3361 | ac_aux_dir=$ac_dir
|
---|
| 3362 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 3363 | break
|
---|
[21487] | 3364 | elif test -f "$ac_dir/install.sh"; then
|
---|
[16610] | 3365 | ac_aux_dir=$ac_dir
|
---|
| 3366 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 3367 | break
|
---|
[21487] | 3368 | elif test -f "$ac_dir/shtool"; then
|
---|
[16610] | 3369 | ac_aux_dir=$ac_dir
|
---|
| 3370 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 3371 | break
|
---|
| 3372 | fi
|
---|
| 3373 | done
|
---|
| 3374 | if test -z "$ac_aux_dir"; then
|
---|
[21487] | 3375 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
| 3376 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
[16610] | 3377 | { (exit 1); exit 1; }; }
|
---|
| 3378 | fi
|
---|
| 3379 |
|
---|
[21487] | 3380 | # These three variables are undocumented and unsupported,
|
---|
| 3381 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 3382 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 3383 | # whose full name contains unusual characters.
|
---|
| 3384 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 3385 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 3386 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 3387 |
|
---|
| 3388 |
|
---|
[16610] | 3389 | # Make sure we can run config.sub.
|
---|
[21487] | 3390 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
| 3391 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
---|
| 3392 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
---|
[16610] | 3393 | { (exit 1); exit 1; }; }
|
---|
| 3394 |
|
---|
[21487] | 3395 | { echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 3396 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
---|
[16610] | 3397 | if test "${ac_cv_build+set}" = set; then
|
---|
| 3398 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3399 | else
|
---|
[21487] | 3400 | ac_build_alias=$build_alias
|
---|
| 3401 | test "x$ac_build_alias" = x &&
|
---|
| 3402 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 3403 | test "x$ac_build_alias" = x &&
|
---|
[16610] | 3404 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 3405 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 3406 | { (exit 1); exit 1; }; }
|
---|
[21487] | 3407 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
| 3408 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
---|
| 3409 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
---|
[16610] | 3410 | { (exit 1); exit 1; }; }
|
---|
| 3411 |
|
---|
| 3412 | fi
|
---|
[21487] | 3413 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 3414 | echo "${ECHO_T}$ac_cv_build" >&6; }
|
---|
| 3415 | case $ac_cv_build in
|
---|
| 3416 | *-*-*) ;;
|
---|
| 3417 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
---|
| 3418 | echo "$as_me: error: invalid value of canonical build" >&2;}
|
---|
| 3419 | { (exit 1); exit 1; }; };;
|
---|
| 3420 | esac
|
---|
[16610] | 3421 | build=$ac_cv_build
|
---|
[21487] | 3422 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3423 | set x $ac_cv_build
|
---|
| 3424 | shift
|
---|
| 3425 | build_cpu=$1
|
---|
| 3426 | build_vendor=$2
|
---|
| 3427 | shift; shift
|
---|
| 3428 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3429 | # except with old shells:
|
---|
| 3430 | build_os=$*
|
---|
| 3431 | IFS=$ac_save_IFS
|
---|
| 3432 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[16610] | 3433 |
|
---|
| 3434 |
|
---|
[21487] | 3435 | { echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 3436 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
---|
[16610] | 3437 | if test "${ac_cv_host+set}" = set; then
|
---|
| 3438 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3439 | else
|
---|
[21487] | 3440 | if test "x$host_alias" = x; then
|
---|
| 3441 | ac_cv_host=$ac_cv_build
|
---|
| 3442 | else
|
---|
| 3443 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
| 3444 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
---|
| 3445 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
---|
[16610] | 3446 | { (exit 1); exit 1; }; }
|
---|
[21487] | 3447 | fi
|
---|
[16610] | 3448 |
|
---|
| 3449 | fi
|
---|
[21487] | 3450 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 3451 | echo "${ECHO_T}$ac_cv_host" >&6; }
|
---|
| 3452 | case $ac_cv_host in
|
---|
| 3453 | *-*-*) ;;
|
---|
| 3454 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
---|
| 3455 | echo "$as_me: error: invalid value of canonical host" >&2;}
|
---|
| 3456 | { (exit 1); exit 1; }; };;
|
---|
| 3457 | esac
|
---|
[16610] | 3458 | host=$ac_cv_host
|
---|
[21487] | 3459 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3460 | set x $ac_cv_host
|
---|
| 3461 | shift
|
---|
| 3462 | host_cpu=$1
|
---|
| 3463 | host_vendor=$2
|
---|
| 3464 | shift; shift
|
---|
| 3465 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3466 | # except with old shells:
|
---|
| 3467 | host_os=$*
|
---|
| 3468 | IFS=$ac_save_IFS
|
---|
| 3469 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[16610] | 3470 |
|
---|
| 3471 |
|
---|
[21487] | 3472 | { echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 3473 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
|
---|
[16610] | 3474 | if test "${ac_cv_target+set}" = set; then
|
---|
| 3475 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3476 | else
|
---|
[21487] | 3477 | if test "x$target_alias" = x; then
|
---|
| 3478 | ac_cv_target=$ac_cv_host
|
---|
| 3479 | else
|
---|
| 3480 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
| 3481 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
|
---|
| 3482 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
|
---|
[16610] | 3483 | { (exit 1); exit 1; }; }
|
---|
[21487] | 3484 | fi
|
---|
[16610] | 3485 |
|
---|
| 3486 | fi
|
---|
[21487] | 3487 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 3488 | echo "${ECHO_T}$ac_cv_target" >&6; }
|
---|
| 3489 | case $ac_cv_target in
|
---|
| 3490 | *-*-*) ;;
|
---|
| 3491 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
|
---|
| 3492 | echo "$as_me: error: invalid value of canonical target" >&2;}
|
---|
| 3493 | { (exit 1); exit 1; }; };;
|
---|
| 3494 | esac
|
---|
[16610] | 3495 | target=$ac_cv_target
|
---|
[21487] | 3496 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3497 | set x $ac_cv_target
|
---|
| 3498 | shift
|
---|
| 3499 | target_cpu=$1
|
---|
| 3500 | target_vendor=$2
|
---|
| 3501 | shift; shift
|
---|
| 3502 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3503 | # except with old shells:
|
---|
| 3504 | target_os=$*
|
---|
| 3505 | IFS=$ac_save_IFS
|
---|
| 3506 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[16610] | 3507 |
|
---|
| 3508 |
|
---|
| 3509 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3510 | # will get canonicalized.
|
---|
| 3511 | test -n "$target_alias" &&
|
---|
| 3512 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3513 | NONENONEs,x,x, &&
|
---|
| 3514 | program_prefix=${target_alias}-
|
---|
| 3515 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3516 | # so one script is as good as another. But avoid the broken or
|
---|
| 3517 | # incompatible versions:
|
---|
| 3518 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3519 | # SunOS /usr/etc/install
|
---|
| 3520 | # IRIX /sbin/install
|
---|
| 3521 | # AIX /bin/install
|
---|
| 3522 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3523 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3524 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3525 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 3526 | # OS/2's system install, which has a completely different semantic
|
---|
| 3527 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[21487] | 3528 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3529 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
[16610] | 3530 | if test -z "$INSTALL"; then
|
---|
| 3531 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3532 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3533 | else
|
---|
| 3534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3535 | for as_dir in $PATH
|
---|
| 3536 | do
|
---|
| 3537 | IFS=$as_save_IFS
|
---|
| 3538 | test -z "$as_dir" && as_dir=.
|
---|
| 3539 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3540 | case $as_dir/ in
|
---|
| 3541 | ./ | .// | /cC/* | \
|
---|
| 3542 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 3543 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 3544 | /usr/ucb/* ) ;;
|
---|
| 3545 | *)
|
---|
| 3546 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3547 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3548 | # by default.
|
---|
| 3549 | for ac_prog in ginstall scoinst install; do
|
---|
| 3550 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 3551 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[16610] | 3552 | if test $ac_prog = install &&
|
---|
| 3553 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3554 | # AIX install. It has an incompatible calling convention.
|
---|
| 3555 | :
|
---|
| 3556 | elif test $ac_prog = install &&
|
---|
| 3557 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3558 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3559 | :
|
---|
| 3560 | else
|
---|
| 3561 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3562 | break 3
|
---|
| 3563 | fi
|
---|
| 3564 | fi
|
---|
| 3565 | done
|
---|
| 3566 | done
|
---|
| 3567 | ;;
|
---|
| 3568 | esac
|
---|
| 3569 | done
|
---|
[21487] | 3570 | IFS=$as_save_IFS
|
---|
[16610] | 3571 |
|
---|
| 3572 |
|
---|
| 3573 | fi
|
---|
| 3574 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3575 | INSTALL=$ac_cv_path_install
|
---|
| 3576 | else
|
---|
[21487] | 3577 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3578 | # value for INSTALL within a source directory, because that will
|
---|
[16610] | 3579 | # break other packages using the cache if that directory is
|
---|
[21487] | 3580 | # removed, or if the value is a relative name.
|
---|
[16610] | 3581 | INSTALL=$ac_install_sh
|
---|
| 3582 | fi
|
---|
| 3583 | fi
|
---|
[21487] | 3584 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3585 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
[16610] | 3586 |
|
---|
| 3587 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3588 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3589 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3590 |
|
---|
| 3591 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3592 |
|
---|
| 3593 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3594 |
|
---|
[21487] | 3595 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3596 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
---|
[16610] | 3597 | LN_S=$as_ln_s
|
---|
| 3598 | if test "$LN_S" = "ln -s"; then
|
---|
[21487] | 3599 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3600 | echo "${ECHO_T}yes" >&6; }
|
---|
[16610] | 3601 | else
|
---|
[21487] | 3602 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3603 | echo "${ECHO_T}no, using $LN_S" >&6; }
|
---|
[16610] | 3604 | fi
|
---|
| 3605 |
|
---|
[21487] | 3606 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3607 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
---|
| 3608 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
| 3609 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 3610 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3611 | else
|
---|
| 3612 | cat >conftest.make <<\_ACEOF
|
---|
[21487] | 3613 | SHELL = /bin/sh
|
---|
[16610] | 3614 | all:
|
---|
[21487] | 3615 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[16610] | 3616 | _ACEOF
|
---|
| 3617 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[21487] | 3618 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3619 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3620 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3621 | *)
|
---|
| 3622 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3623 | esac
|
---|
[16610] | 3624 | rm -f conftest.make
|
---|
| 3625 | fi
|
---|
[21487] | 3626 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 3627 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3628 | echo "${ECHO_T}yes" >&6; }
|
---|
[16610] | 3629 | SET_MAKE=
|
---|
| 3630 | else
|
---|
[21487] | 3631 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3632 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 3633 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3634 | fi
|
---|
| 3635 |
|
---|
| 3636 | if test -n "$ac_tool_prefix"; then
|
---|
| 3637 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3638 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[21487] | 3639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 3641 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3642 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3643 | else
|
---|
| 3644 | if test -n "$RANLIB"; then
|
---|
| 3645 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3646 | else
|
---|
| 3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3648 | for as_dir in $PATH
|
---|
| 3649 | do
|
---|
| 3650 | IFS=$as_save_IFS
|
---|
| 3651 | test -z "$as_dir" && as_dir=.
|
---|
| 3652 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 3653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 3654 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3656 | break 2
|
---|
| 3657 | fi
|
---|
| 3658 | done
|
---|
| 3659 | done
|
---|
[21487] | 3660 | IFS=$as_save_IFS
|
---|
[16610] | 3661 |
|
---|
| 3662 | fi
|
---|
| 3663 | fi
|
---|
| 3664 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3665 | if test -n "$RANLIB"; then
|
---|
[21487] | 3666 | { echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3667 | echo "${ECHO_T}$RANLIB" >&6; }
|
---|
[16610] | 3668 | else
|
---|
[21487] | 3669 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3670 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 3671 | fi
|
---|
| 3672 |
|
---|
[21487] | 3673 |
|
---|
[16610] | 3674 | fi
|
---|
| 3675 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3676 | ac_ct_RANLIB=$RANLIB
|
---|
| 3677 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3678 | set dummy ranlib; ac_word=$2
|
---|
[21487] | 3679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
[16610] | 3681 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3682 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3683 | else
|
---|
| 3684 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3685 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3686 | else
|
---|
| 3687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3688 | for as_dir in $PATH
|
---|
| 3689 | do
|
---|
| 3690 | IFS=$as_save_IFS
|
---|
| 3691 | test -z "$as_dir" && as_dir=.
|
---|
| 3692 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21487] | 3693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[16610] | 3694 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3696 | break 2
|
---|
| 3697 | fi
|
---|
| 3698 | done
|
---|
| 3699 | done
|
---|
[21487] | 3700 | IFS=$as_save_IFS
|
---|
[16610] | 3701 |
|
---|
| 3702 | fi
|
---|
| 3703 | fi
|
---|
| 3704 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3705 | if test -n "$ac_ct_RANLIB"; then
|
---|
[21487] | 3706 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3707 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
---|
[16610] | 3708 | else
|
---|
[21487] | 3709 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3710 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 3711 | fi
|
---|
| 3712 |
|
---|
[21487] | 3713 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 3714 | RANLIB=":"
|
---|
| 3715 | else
|
---|
| 3716 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3717 | yes:)
|
---|
| 3718 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3719 | whose name does not start with the host triplet. If you think this
|
---|
| 3720 | configuration is useful to you, please write to [email protected]." >&5
|
---|
| 3721 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
| 3722 | whose name does not start with the host triplet. If you think this
|
---|
| 3723 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
| 3724 | ac_tool_warned=yes ;;
|
---|
| 3725 | esac
|
---|
| 3726 | RANLIB=$ac_ct_RANLIB
|
---|
| 3727 | fi
|
---|
[16610] | 3728 | else
|
---|
| 3729 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3730 | fi
|
---|
| 3731 |
|
---|
| 3732 |
|
---|
[21487] | 3733 | { echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3734 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6; }
|
---|
[16610] | 3735 | arch_64bit=no
|
---|
| 3736 | case "$host_cpu" in
|
---|
| 3737 | x86_64) arch_64bit=yes ;;
|
---|
| 3738 | esac
|
---|
| 3739 |
|
---|
| 3740 | if test "$arch_64bit" = yes; then
|
---|
[21487] | 3741 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3742 | echo "${ECHO_T}yes" >&6; }
|
---|
[16610] | 3743 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3744 | COMPAT32BITFLAGS="-m32"
|
---|
| 3745 | fi
|
---|
| 3746 | else
|
---|
[21487] | 3747 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3748 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 3749 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3750 | COMPAT32BITFLAGS=
|
---|
| 3751 | fi
|
---|
| 3752 | fi
|
---|
| 3753 | export COMPAT32BITFLAGS
|
---|
| 3754 |
|
---|
| 3755 |
|
---|
| 3756 |
|
---|
| 3757 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3758 | if test $USE_CORBA = 1; then
|
---|
| 3759 |
|
---|
| 3760 | if test $MICO_DIR = "default"; then
|
---|
| 3761 | #do something
|
---|
| 3762 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3763 | else
|
---|
| 3764 | #build the micotest program
|
---|
| 3765 | MICO_INC= ""
|
---|
| 3766 | if test $MICO_DIR != yes; then
|
---|
| 3767 | MICO_INC="-I $MICO_DIR"
|
---|
| 3768 | fi
|
---|
| 3769 | fi
|
---|
| 3770 |
|
---|
| 3771 | #get MICO_VER value
|
---|
| 3772 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3773 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
| 3774 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
| 3775 | sh -c "rm micotest"
|
---|
| 3776 | sh -c "rm micotest.o"
|
---|
| 3777 |
|
---|
| 3778 | #do test of MICO_VER
|
---|
| 3779 | if test MICO_VER != 0; then
|
---|
| 3780 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3781 | #define MICO_VER 1
|
---|
| 3782 | _ACEOF
|
---|
| 3783 |
|
---|
| 3784 |
|
---|
| 3785 | fi
|
---|
| 3786 | #end USE_CORBA test
|
---|
| 3787 | fi
|
---|
| 3788 |
|
---|
| 3789 |
|
---|
| 3790 | ac_ext=c
|
---|
| 3791 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[21487] | 3795 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3796 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
[16610] | 3797 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3798 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3799 | CPP=
|
---|
| 3800 | fi
|
---|
| 3801 | if test -z "$CPP"; then
|
---|
| 3802 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3803 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3804 | else
|
---|
| 3805 | # Double quotes because CPP needs to be expanded
|
---|
| 3806 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3807 | do
|
---|
| 3808 | ac_preproc_ok=false
|
---|
| 3809 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3810 | do
|
---|
| 3811 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3812 | # with a fresh cross-compiler works.
|
---|
| 3813 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3814 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3815 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3816 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3817 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3818 | /* confdefs.h. */
|
---|
| 3819 | _ACEOF
|
---|
| 3820 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3821 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3822 | /* end confdefs.h. */
|
---|
| 3823 | #ifdef __STDC__
|
---|
| 3824 | # include <limits.h>
|
---|
| 3825 | #else
|
---|
| 3826 | # include <assert.h>
|
---|
| 3827 | #endif
|
---|
| 3828 | Syntax error
|
---|
| 3829 | _ACEOF
|
---|
[21487] | 3830 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3831 | case "(($ac_try" in
|
---|
| 3832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3833 | *) ac_try_echo=$ac_try;;
|
---|
| 3834 | esac
|
---|
| 3835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3836 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[16610] | 3837 | ac_status=$?
|
---|
| 3838 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3839 | rm -f conftest.er1
|
---|
| 3840 | cat conftest.err >&5
|
---|
| 3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3842 | (exit $ac_status); } >/dev/null && {
|
---|
| 3843 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3844 | test ! -s conftest.err
|
---|
| 3845 | }; then
|
---|
[16610] | 3846 | :
|
---|
| 3847 | else
|
---|
| 3848 | echo "$as_me: failed program was:" >&5
|
---|
| 3849 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3850 |
|
---|
| 3851 | # Broken: fails on valid input.
|
---|
| 3852 | continue
|
---|
| 3853 | fi
|
---|
[21487] | 3854 |
|
---|
[16610] | 3855 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3856 |
|
---|
[21487] | 3857 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[16610] | 3858 | # can be detected and how.
|
---|
| 3859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3860 | /* confdefs.h. */
|
---|
| 3861 | _ACEOF
|
---|
| 3862 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3864 | /* end confdefs.h. */
|
---|
| 3865 | #include <ac_nonexistent.h>
|
---|
| 3866 | _ACEOF
|
---|
[21487] | 3867 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3868 | case "(($ac_try" in
|
---|
| 3869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3870 | *) ac_try_echo=$ac_try;;
|
---|
| 3871 | esac
|
---|
| 3872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3873 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[16610] | 3874 | ac_status=$?
|
---|
| 3875 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3876 | rm -f conftest.er1
|
---|
| 3877 | cat conftest.err >&5
|
---|
| 3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3879 | (exit $ac_status); } >/dev/null && {
|
---|
| 3880 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3881 | test ! -s conftest.err
|
---|
| 3882 | }; then
|
---|
[16610] | 3883 | # Broken: success on invalid input.
|
---|
| 3884 | continue
|
---|
| 3885 | else
|
---|
| 3886 | echo "$as_me: failed program was:" >&5
|
---|
| 3887 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3888 |
|
---|
| 3889 | # Passes both tests.
|
---|
| 3890 | ac_preproc_ok=:
|
---|
| 3891 | break
|
---|
| 3892 | fi
|
---|
[21487] | 3893 |
|
---|
[16610] | 3894 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3895 |
|
---|
| 3896 | done
|
---|
| 3897 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3898 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3899 | if $ac_preproc_ok; then
|
---|
| 3900 | break
|
---|
| 3901 | fi
|
---|
| 3902 |
|
---|
| 3903 | done
|
---|
| 3904 | ac_cv_prog_CPP=$CPP
|
---|
| 3905 |
|
---|
| 3906 | fi
|
---|
| 3907 | CPP=$ac_cv_prog_CPP
|
---|
| 3908 | else
|
---|
| 3909 | ac_cv_prog_CPP=$CPP
|
---|
| 3910 | fi
|
---|
[21487] | 3911 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3912 | echo "${ECHO_T}$CPP" >&6; }
|
---|
[16610] | 3913 | ac_preproc_ok=false
|
---|
| 3914 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3915 | do
|
---|
| 3916 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3917 | # with a fresh cross-compiler works.
|
---|
| 3918 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3919 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3920 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3921 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3922 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3923 | /* confdefs.h. */
|
---|
| 3924 | _ACEOF
|
---|
| 3925 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3926 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3927 | /* end confdefs.h. */
|
---|
| 3928 | #ifdef __STDC__
|
---|
| 3929 | # include <limits.h>
|
---|
| 3930 | #else
|
---|
| 3931 | # include <assert.h>
|
---|
| 3932 | #endif
|
---|
| 3933 | Syntax error
|
---|
| 3934 | _ACEOF
|
---|
[21487] | 3935 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3936 | case "(($ac_try" in
|
---|
| 3937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3938 | *) ac_try_echo=$ac_try;;
|
---|
| 3939 | esac
|
---|
| 3940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[16610] | 3942 | ac_status=$?
|
---|
| 3943 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3944 | rm -f conftest.er1
|
---|
| 3945 | cat conftest.err >&5
|
---|
| 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3947 | (exit $ac_status); } >/dev/null && {
|
---|
| 3948 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3949 | test ! -s conftest.err
|
---|
| 3950 | }; then
|
---|
[16610] | 3951 | :
|
---|
| 3952 | else
|
---|
| 3953 | echo "$as_me: failed program was:" >&5
|
---|
| 3954 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3955 |
|
---|
| 3956 | # Broken: fails on valid input.
|
---|
| 3957 | continue
|
---|
| 3958 | fi
|
---|
[21487] | 3959 |
|
---|
[16610] | 3960 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3961 |
|
---|
[21487] | 3962 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[16610] | 3963 | # can be detected and how.
|
---|
| 3964 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3965 | /* confdefs.h. */
|
---|
| 3966 | _ACEOF
|
---|
| 3967 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3968 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3969 | /* end confdefs.h. */
|
---|
| 3970 | #include <ac_nonexistent.h>
|
---|
| 3971 | _ACEOF
|
---|
[21487] | 3972 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 3973 | case "(($ac_try" in
|
---|
| 3974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3975 | *) ac_try_echo=$ac_try;;
|
---|
| 3976 | esac
|
---|
| 3977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 3978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[16610] | 3979 | ac_status=$?
|
---|
| 3980 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3981 | rm -f conftest.er1
|
---|
| 3982 | cat conftest.err >&5
|
---|
| 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 3984 | (exit $ac_status); } >/dev/null && {
|
---|
| 3985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 3986 | test ! -s conftest.err
|
---|
| 3987 | }; then
|
---|
[16610] | 3988 | # Broken: success on invalid input.
|
---|
| 3989 | continue
|
---|
| 3990 | else
|
---|
| 3991 | echo "$as_me: failed program was:" >&5
|
---|
| 3992 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3993 |
|
---|
| 3994 | # Passes both tests.
|
---|
| 3995 | ac_preproc_ok=:
|
---|
| 3996 | break
|
---|
| 3997 | fi
|
---|
[21487] | 3998 |
|
---|
[16610] | 3999 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4000 |
|
---|
| 4001 | done
|
---|
| 4002 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 4003 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4004 | if $ac_preproc_ok; then
|
---|
| 4005 | :
|
---|
| 4006 | else
|
---|
| 4007 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 4008 | See \`config.log' for more details." >&5
|
---|
| 4009 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 4010 | See \`config.log' for more details." >&2;}
|
---|
| 4011 | { (exit 1); exit 1; }; }
|
---|
| 4012 | fi
|
---|
| 4013 |
|
---|
| 4014 | ac_ext=c
|
---|
| 4015 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4019 |
|
---|
| 4020 |
|
---|
[21487] | 4021 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
| 4022 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
| 4023 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
[16610] | 4024 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4025 | else
|
---|
[21487] | 4026 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
| 4027 | if test -z "$GREP"; then
|
---|
| 4028 | set dummy grep ggrep; ac_prog_name=$2
|
---|
| 4029 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
| 4030 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4031 | else
|
---|
| 4032 | ac_path_GREP_found=false
|
---|
| 4033 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4035 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4036 | do
|
---|
| 4037 | IFS=$as_save_IFS
|
---|
| 4038 | test -z "$as_dir" && as_dir=.
|
---|
| 4039 | for ac_prog in grep ggrep; do
|
---|
| 4040 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4041 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4042 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4043 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4044 | # Check for GNU $ac_path_GREP
|
---|
| 4045 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4046 | *GNU*)
|
---|
| 4047 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4048 | *)
|
---|
| 4049 | ac_count=0
|
---|
| 4050 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
| 4051 | while :
|
---|
| 4052 | do
|
---|
| 4053 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4054 | mv "conftest.tmp" "conftest.in"
|
---|
| 4055 | cp "conftest.in" "conftest.nl"
|
---|
| 4056 | echo 'GREP' >> "conftest.nl"
|
---|
| 4057 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4058 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4059 | ac_count=`expr $ac_count + 1`
|
---|
| 4060 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4061 | # Best one so far, save it but keep looking for a better one
|
---|
| 4062 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4063 | ac_path_GREP_max=$ac_count
|
---|
[16610] | 4064 | fi
|
---|
[21487] | 4065 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4066 | test $ac_count -gt 10 && break
|
---|
| 4067 | done
|
---|
| 4068 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4069 | esac
|
---|
| 4070 |
|
---|
| 4071 |
|
---|
| 4072 | $ac_path_GREP_found && break 3
|
---|
| 4073 | done
|
---|
| 4074 | done
|
---|
| 4075 |
|
---|
| 4076 | done
|
---|
| 4077 | IFS=$as_save_IFS
|
---|
| 4078 |
|
---|
| 4079 |
|
---|
[16610] | 4080 | fi
|
---|
| 4081 |
|
---|
[21487] | 4082 | GREP="$ac_cv_path_GREP"
|
---|
| 4083 | if test -z "$GREP"; then
|
---|
| 4084 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
| 4085 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
| 4086 | { (exit 1); exit 1; }; }
|
---|
| 4087 | fi
|
---|
[16610] | 4088 |
|
---|
[21487] | 4089 | else
|
---|
| 4090 | ac_cv_path_GREP=$GREP
|
---|
| 4091 | fi
|
---|
[16610] | 4092 |
|
---|
[21487] | 4093 |
|
---|
| 4094 | fi
|
---|
| 4095 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
| 4096 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
| 4097 | GREP="$ac_cv_path_GREP"
|
---|
| 4098 |
|
---|
| 4099 |
|
---|
| 4100 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 4101 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
| 4102 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
| 4103 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4104 | else
|
---|
| 4105 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4106 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4107 | else
|
---|
| 4108 | # Extract the first word of "egrep" to use in msg output
|
---|
| 4109 | if test -z "$EGREP"; then
|
---|
| 4110 | set dummy egrep; ac_prog_name=$2
|
---|
| 4111 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
| 4112 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4113 | else
|
---|
| 4114 | ac_path_EGREP_found=false
|
---|
| 4115 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4117 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4118 | do
|
---|
| 4119 | IFS=$as_save_IFS
|
---|
| 4120 | test -z "$as_dir" && as_dir=.
|
---|
| 4121 | for ac_prog in egrep; do
|
---|
| 4122 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4123 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4124 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4125 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4126 | # Check for GNU $ac_path_EGREP
|
---|
| 4127 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4128 | *GNU*)
|
---|
| 4129 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4130 | *)
|
---|
| 4131 | ac_count=0
|
---|
| 4132 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
| 4133 | while :
|
---|
| 4134 | do
|
---|
| 4135 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4136 | mv "conftest.tmp" "conftest.in"
|
---|
| 4137 | cp "conftest.in" "conftest.nl"
|
---|
| 4138 | echo 'EGREP' >> "conftest.nl"
|
---|
| 4139 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4140 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4141 | ac_count=`expr $ac_count + 1`
|
---|
| 4142 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4143 | # Best one so far, save it but keep looking for a better one
|
---|
| 4144 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4145 | ac_path_EGREP_max=$ac_count
|
---|
| 4146 | fi
|
---|
| 4147 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4148 | test $ac_count -gt 10 && break
|
---|
| 4149 | done
|
---|
| 4150 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4151 | esac
|
---|
| 4152 |
|
---|
| 4153 |
|
---|
| 4154 | $ac_path_EGREP_found && break 3
|
---|
| 4155 | done
|
---|
| 4156 | done
|
---|
| 4157 |
|
---|
| 4158 | done
|
---|
| 4159 | IFS=$as_save_IFS
|
---|
| 4160 |
|
---|
| 4161 |
|
---|
| 4162 | fi
|
---|
| 4163 |
|
---|
| 4164 | EGREP="$ac_cv_path_EGREP"
|
---|
| 4165 | if test -z "$EGREP"; then
|
---|
| 4166 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
| 4167 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
| 4168 | { (exit 1); exit 1; }; }
|
---|
| 4169 | fi
|
---|
| 4170 |
|
---|
| 4171 | else
|
---|
| 4172 | ac_cv_path_EGREP=$EGREP
|
---|
| 4173 | fi
|
---|
| 4174 |
|
---|
| 4175 |
|
---|
| 4176 | fi
|
---|
| 4177 | fi
|
---|
| 4178 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
| 4179 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
| 4180 | EGREP="$ac_cv_path_EGREP"
|
---|
| 4181 |
|
---|
| 4182 |
|
---|
| 4183 |
|
---|
| 4184 | { echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 4185 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
|
---|
[16610] | 4186 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4187 | /* confdefs.h. */
|
---|
| 4188 | _ACEOF
|
---|
| 4189 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4190 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4191 | /* end confdefs.h. */
|
---|
| 4192 | #ifdef _AIX
|
---|
| 4193 | yes
|
---|
| 4194 | #endif
|
---|
| 4195 |
|
---|
| 4196 | _ACEOF
|
---|
| 4197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 4198 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
[21487] | 4199 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4200 | echo "${ECHO_T}yes" >&6; }
|
---|
[16610] | 4201 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4202 | #define _ALL_SOURCE 1
|
---|
| 4203 | _ACEOF
|
---|
| 4204 |
|
---|
| 4205 | else
|
---|
[21487] | 4206 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4207 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 4208 | fi
|
---|
| 4209 | rm -f conftest*
|
---|
| 4210 |
|
---|
| 4211 |
|
---|
[21487] | 4212 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 4213 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
|
---|
[16610] | 4214 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4215 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4216 | else
|
---|
| 4217 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4218 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4219 | /* confdefs.h. */
|
---|
| 4220 | _ACEOF
|
---|
| 4221 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4222 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4223 | /* end confdefs.h. */
|
---|
| 4224 |
|
---|
[21487] | 4225 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4226 | Use char because int might match the return type of a GCC
|
---|
| 4227 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 4228 | #ifdef __cplusplus
|
---|
| 4229 | extern "C"
|
---|
| 4230 | #endif
|
---|
| 4231 | char strerror ();
|
---|
| 4232 | int
|
---|
| 4233 | main ()
|
---|
| 4234 | {
|
---|
[21487] | 4235 | return strerror ();
|
---|
[16610] | 4236 | ;
|
---|
| 4237 | return 0;
|
---|
| 4238 | }
|
---|
| 4239 | _ACEOF
|
---|
[21487] | 4240 | for ac_lib in '' cposix; do
|
---|
| 4241 | if test -z "$ac_lib"; then
|
---|
| 4242 | ac_res="none required"
|
---|
| 4243 | else
|
---|
| 4244 | ac_res=-l$ac_lib
|
---|
| 4245 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4246 | fi
|
---|
| 4247 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4248 | if { (ac_try="$ac_link"
|
---|
| 4249 | case "(($ac_try" in
|
---|
| 4250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4251 | *) ac_try_echo=$ac_try;;
|
---|
| 4252 | esac
|
---|
| 4253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4254 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 4255 | ac_status=$?
|
---|
| 4256 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4257 | rm -f conftest.er1
|
---|
| 4258 | cat conftest.err >&5
|
---|
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4260 | (exit $ac_status); } && {
|
---|
| 4261 | test -z "$ac_c_werror_flag" ||
|
---|
| 4262 | test ! -s conftest.err
|
---|
| 4263 | } && test -s conftest$ac_exeext &&
|
---|
| 4264 | $as_test_x conftest$ac_exeext; then
|
---|
| 4265 | ac_cv_search_strerror=$ac_res
|
---|
[16610] | 4266 | else
|
---|
| 4267 | echo "$as_me: failed program was:" >&5
|
---|
| 4268 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4269 |
|
---|
[21487] | 4270 |
|
---|
[16610] | 4271 | fi
|
---|
| 4272 |
|
---|
[21487] | 4273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 4274 | conftest$ac_exeext
|
---|
| 4275 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4276 | break
|
---|
| 4277 | fi
|
---|
| 4278 | done
|
---|
| 4279 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4280 | :
|
---|
[16610] | 4281 | else
|
---|
[21487] | 4282 | ac_cv_search_strerror=no
|
---|
[16610] | 4283 | fi
|
---|
[21487] | 4284 | rm conftest.$ac_ext
|
---|
[16610] | 4285 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4286 | fi
|
---|
[21487] | 4287 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 4288 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
|
---|
| 4289 | ac_res=$ac_cv_search_strerror
|
---|
| 4290 | if test "$ac_res" != no; then
|
---|
| 4291 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[16610] | 4292 |
|
---|
| 4293 | fi
|
---|
| 4294 |
|
---|
[21487] | 4295 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 4296 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
[16610] | 4297 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4298 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4299 | else
|
---|
| 4300 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4301 | /* confdefs.h. */
|
---|
| 4302 | _ACEOF
|
---|
| 4303 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4304 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4305 | /* end confdefs.h. */
|
---|
| 4306 | #include <stdlib.h>
|
---|
| 4307 | #include <stdarg.h>
|
---|
| 4308 | #include <string.h>
|
---|
| 4309 | #include <float.h>
|
---|
| 4310 |
|
---|
| 4311 | int
|
---|
| 4312 | main ()
|
---|
| 4313 | {
|
---|
| 4314 |
|
---|
| 4315 | ;
|
---|
| 4316 | return 0;
|
---|
| 4317 | }
|
---|
| 4318 | _ACEOF
|
---|
| 4319 | rm -f conftest.$ac_objext
|
---|
[21487] | 4320 | if { (ac_try="$ac_compile"
|
---|
| 4321 | case "(($ac_try" in
|
---|
| 4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4323 | *) ac_try_echo=$ac_try;;
|
---|
| 4324 | esac
|
---|
| 4325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4326 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 4327 | ac_status=$?
|
---|
| 4328 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4329 | rm -f conftest.er1
|
---|
| 4330 | cat conftest.err >&5
|
---|
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4332 | (exit $ac_status); } && {
|
---|
| 4333 | test -z "$ac_c_werror_flag" ||
|
---|
| 4334 | test ! -s conftest.err
|
---|
| 4335 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 4336 | ac_cv_header_stdc=yes
|
---|
| 4337 | else
|
---|
| 4338 | echo "$as_me: failed program was:" >&5
|
---|
| 4339 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4340 |
|
---|
[21487] | 4341 | ac_cv_header_stdc=no
|
---|
[16610] | 4342 | fi
|
---|
| 4343 |
|
---|
[21487] | 4344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4345 |
|
---|
[16610] | 4346 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4347 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 4348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4349 | /* confdefs.h. */
|
---|
| 4350 | _ACEOF
|
---|
| 4351 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4353 | /* end confdefs.h. */
|
---|
| 4354 | #include <string.h>
|
---|
| 4355 |
|
---|
| 4356 | _ACEOF
|
---|
| 4357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 4358 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 4359 | :
|
---|
| 4360 | else
|
---|
| 4361 | ac_cv_header_stdc=no
|
---|
| 4362 | fi
|
---|
| 4363 | rm -f conftest*
|
---|
| 4364 |
|
---|
| 4365 | fi
|
---|
| 4366 |
|
---|
| 4367 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4368 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 4369 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4370 | /* confdefs.h. */
|
---|
| 4371 | _ACEOF
|
---|
| 4372 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4373 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4374 | /* end confdefs.h. */
|
---|
| 4375 | #include <stdlib.h>
|
---|
| 4376 |
|
---|
| 4377 | _ACEOF
|
---|
| 4378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 4379 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 4380 | :
|
---|
| 4381 | else
|
---|
| 4382 | ac_cv_header_stdc=no
|
---|
| 4383 | fi
|
---|
| 4384 | rm -f conftest*
|
---|
| 4385 |
|
---|
| 4386 | fi
|
---|
| 4387 |
|
---|
| 4388 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4389 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 4390 | if test "$cross_compiling" = yes; then
|
---|
| 4391 | :
|
---|
| 4392 | else
|
---|
| 4393 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4394 | /* confdefs.h. */
|
---|
| 4395 | _ACEOF
|
---|
| 4396 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4397 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4398 | /* end confdefs.h. */
|
---|
| 4399 | #include <ctype.h>
|
---|
[21487] | 4400 | #include <stdlib.h>
|
---|
[16610] | 4401 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4402 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4403 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4404 | #else
|
---|
| 4405 | # define ISLOWER(c) \
|
---|
| 4406 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4407 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4408 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4409 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4410 | #endif
|
---|
| 4411 |
|
---|
| 4412 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4413 | int
|
---|
| 4414 | main ()
|
---|
| 4415 | {
|
---|
| 4416 | int i;
|
---|
| 4417 | for (i = 0; i < 256; i++)
|
---|
| 4418 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4419 | || toupper (i) != TOUPPER (i))
|
---|
[21487] | 4420 | return 2;
|
---|
| 4421 | return 0;
|
---|
[16610] | 4422 | }
|
---|
| 4423 | _ACEOF
|
---|
| 4424 | rm -f conftest$ac_exeext
|
---|
[21487] | 4425 | if { (ac_try="$ac_link"
|
---|
| 4426 | case "(($ac_try" in
|
---|
| 4427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4428 | *) ac_try_echo=$ac_try;;
|
---|
| 4429 | esac
|
---|
| 4430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4431 | (eval "$ac_link") 2>&5
|
---|
[16610] | 4432 | ac_status=$?
|
---|
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21487] | 4435 | { (case "(($ac_try" in
|
---|
| 4436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4437 | *) ac_try_echo=$ac_try;;
|
---|
| 4438 | esac
|
---|
| 4439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4440 | (eval "$ac_try") 2>&5
|
---|
[16610] | 4441 | ac_status=$?
|
---|
| 4442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4443 | (exit $ac_status); }; }; then
|
---|
| 4444 | :
|
---|
| 4445 | else
|
---|
| 4446 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 4447 | echo "$as_me: failed program was:" >&5
|
---|
| 4448 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4449 |
|
---|
| 4450 | ( exit $ac_status )
|
---|
| 4451 | ac_cv_header_stdc=no
|
---|
| 4452 | fi
|
---|
[21487] | 4453 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 4454 | fi
|
---|
[21487] | 4455 |
|
---|
| 4456 |
|
---|
[16610] | 4457 | fi
|
---|
| 4458 | fi
|
---|
[21487] | 4459 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 4460 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
[16610] | 4461 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4462 |
|
---|
| 4463 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4464 | #define STDC_HEADERS 1
|
---|
| 4465 | _ACEOF
|
---|
| 4466 |
|
---|
| 4467 | fi
|
---|
| 4468 |
|
---|
| 4469 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 4470 |
|
---|
| 4471 |
|
---|
| 4472 |
|
---|
| 4473 |
|
---|
| 4474 |
|
---|
| 4475 |
|
---|
| 4476 |
|
---|
| 4477 |
|
---|
| 4478 |
|
---|
| 4479 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4480 | inttypes.h stdint.h unistd.h
|
---|
| 4481 | do
|
---|
| 4482 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[21487] | 4483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
| 4485 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 4486 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4487 | else
|
---|
| 4488 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4489 | /* confdefs.h. */
|
---|
| 4490 | _ACEOF
|
---|
| 4491 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4492 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4493 | /* end confdefs.h. */
|
---|
| 4494 | $ac_includes_default
|
---|
| 4495 |
|
---|
| 4496 | #include <$ac_header>
|
---|
| 4497 | _ACEOF
|
---|
| 4498 | rm -f conftest.$ac_objext
|
---|
[21487] | 4499 | if { (ac_try="$ac_compile"
|
---|
| 4500 | case "(($ac_try" in
|
---|
| 4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4502 | *) ac_try_echo=$ac_try;;
|
---|
| 4503 | esac
|
---|
| 4504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4505 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 4506 | ac_status=$?
|
---|
| 4507 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4508 | rm -f conftest.er1
|
---|
| 4509 | cat conftest.err >&5
|
---|
| 4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4511 | (exit $ac_status); } && {
|
---|
| 4512 | test -z "$ac_c_werror_flag" ||
|
---|
| 4513 | test ! -s conftest.err
|
---|
| 4514 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 4515 | eval "$as_ac_Header=yes"
|
---|
| 4516 | else
|
---|
| 4517 | echo "$as_me: failed program was:" >&5
|
---|
| 4518 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4519 |
|
---|
[21487] | 4520 | eval "$as_ac_Header=no"
|
---|
[16610] | 4521 | fi
|
---|
[21487] | 4522 |
|
---|
| 4523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 4524 | fi
|
---|
[21487] | 4525 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 4526 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 4527 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 4528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4529 | cat >>confdefs.h <<_ACEOF
|
---|
| 4530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4531 | _ACEOF
|
---|
| 4532 |
|
---|
| 4533 | fi
|
---|
| 4534 |
|
---|
| 4535 | done
|
---|
| 4536 |
|
---|
| 4537 |
|
---|
| 4538 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[21487] | 4539 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4540 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
[16610] | 4541 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4542 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4543 | fi
|
---|
[21487] | 4544 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4545 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
[16610] | 4546 | else
|
---|
| 4547 | # Is the header compilable?
|
---|
[21487] | 4548 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 4549 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
|
---|
[16610] | 4550 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4551 | /* confdefs.h. */
|
---|
| 4552 | _ACEOF
|
---|
| 4553 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4554 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4555 | /* end confdefs.h. */
|
---|
| 4556 | $ac_includes_default
|
---|
| 4557 | #include <minix/config.h>
|
---|
| 4558 | _ACEOF
|
---|
| 4559 | rm -f conftest.$ac_objext
|
---|
[21487] | 4560 | if { (ac_try="$ac_compile"
|
---|
| 4561 | case "(($ac_try" in
|
---|
| 4562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4563 | *) ac_try_echo=$ac_try;;
|
---|
| 4564 | esac
|
---|
| 4565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4566 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 4567 | ac_status=$?
|
---|
| 4568 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4569 | rm -f conftest.er1
|
---|
| 4570 | cat conftest.err >&5
|
---|
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4572 | (exit $ac_status); } && {
|
---|
| 4573 | test -z "$ac_c_werror_flag" ||
|
---|
| 4574 | test ! -s conftest.err
|
---|
| 4575 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 4576 | ac_header_compiler=yes
|
---|
| 4577 | else
|
---|
| 4578 | echo "$as_me: failed program was:" >&5
|
---|
| 4579 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4580 |
|
---|
[21487] | 4581 | ac_header_compiler=no
|
---|
[16610] | 4582 | fi
|
---|
| 4583 |
|
---|
[21487] | 4584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4585 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4586 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
| 4587 |
|
---|
[16610] | 4588 | # Is the header present?
|
---|
[21487] | 4589 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 4590 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
|
---|
[16610] | 4591 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4592 | /* confdefs.h. */
|
---|
| 4593 | _ACEOF
|
---|
| 4594 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4595 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4596 | /* end confdefs.h. */
|
---|
| 4597 | #include <minix/config.h>
|
---|
| 4598 | _ACEOF
|
---|
[21487] | 4599 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 4600 | case "(($ac_try" in
|
---|
| 4601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4602 | *) ac_try_echo=$ac_try;;
|
---|
| 4603 | esac
|
---|
| 4604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4605 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[16610] | 4606 | ac_status=$?
|
---|
| 4607 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4608 | rm -f conftest.er1
|
---|
| 4609 | cat conftest.err >&5
|
---|
| 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4611 | (exit $ac_status); } >/dev/null && {
|
---|
| 4612 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 4613 | test ! -s conftest.err
|
---|
| 4614 | }; then
|
---|
[16610] | 4615 | ac_header_preproc=yes
|
---|
| 4616 | else
|
---|
| 4617 | echo "$as_me: failed program was:" >&5
|
---|
| 4618 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4619 |
|
---|
| 4620 | ac_header_preproc=no
|
---|
| 4621 | fi
|
---|
[21487] | 4622 |
|
---|
[16610] | 4623 | rm -f conftest.err conftest.$ac_ext
|
---|
[21487] | 4624 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4625 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
[16610] | 4626 |
|
---|
| 4627 | # So? What about this header?
|
---|
| 4628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4629 | yes:no: )
|
---|
| 4630 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4631 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4632 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4633 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 4634 | ac_header_preproc=yes
|
---|
| 4635 | ;;
|
---|
| 4636 | no:yes:* )
|
---|
| 4637 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4638 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4639 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4640 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4641 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4642 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4643 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4644 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4645 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4646 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4647 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4648 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
[21487] | 4649 |
|
---|
[16610] | 4650 | ;;
|
---|
| 4651 | esac
|
---|
[21487] | 4652 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4653 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
|
---|
[16610] | 4654 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4655 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4656 | else
|
---|
| 4657 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4658 | fi
|
---|
[21487] | 4659 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4660 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
|
---|
[16610] | 4661 |
|
---|
| 4662 | fi
|
---|
| 4663 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 4664 | MINIX=yes
|
---|
| 4665 | else
|
---|
| 4666 | MINIX=
|
---|
| 4667 | fi
|
---|
| 4668 |
|
---|
| 4669 |
|
---|
| 4670 | if test "$MINIX" = yes; then
|
---|
| 4671 |
|
---|
| 4672 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4673 | #define _POSIX_SOURCE 1
|
---|
| 4674 | _ACEOF
|
---|
| 4675 |
|
---|
| 4676 |
|
---|
| 4677 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4678 | #define _POSIX_1_SOURCE 2
|
---|
| 4679 | _ACEOF
|
---|
| 4680 |
|
---|
| 4681 |
|
---|
| 4682 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4683 | #define _MINIX 1
|
---|
| 4684 | _ACEOF
|
---|
| 4685 |
|
---|
| 4686 | fi
|
---|
| 4687 |
|
---|
[21487] | 4688 | { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4689 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
|
---|
[16612] | 4690 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4691 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4692 | else
|
---|
| 4693 | ac_cv_prog_cc_stdc=no
|
---|
| 4694 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4695 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4696 | # breaks some systems' header files.
|
---|
| 4697 | # AIX -qlanglvl=ansi
|
---|
| 4698 | # Ultrix and OSF/1 -std1
|
---|
| 4699 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4700 | # SVR4 -Xc
|
---|
| 4701 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4702 | do
|
---|
| 4703 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 4704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4705 | /* confdefs.h. */
|
---|
| 4706 | _ACEOF
|
---|
| 4707 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4709 | /* end confdefs.h. */
|
---|
| 4710 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4711 | choke me
|
---|
| 4712 | #endif
|
---|
| 4713 |
|
---|
| 4714 | int
|
---|
| 4715 | main ()
|
---|
| 4716 | {
|
---|
| 4717 | int test (int i, double x);
|
---|
| 4718 | struct s1 {int (*f) (int a);};
|
---|
| 4719 | struct s2 {int (*f) (double a);};
|
---|
| 4720 | ;
|
---|
| 4721 | return 0;
|
---|
| 4722 | }
|
---|
| 4723 | _ACEOF
|
---|
| 4724 | rm -f conftest.$ac_objext
|
---|
[21487] | 4725 | if { (ac_try="$ac_compile"
|
---|
| 4726 | case "(($ac_try" in
|
---|
| 4727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4728 | *) ac_try_echo=$ac_try;;
|
---|
| 4729 | esac
|
---|
| 4730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4731 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16612] | 4732 | ac_status=$?
|
---|
| 4733 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4734 | rm -f conftest.er1
|
---|
| 4735 | cat conftest.err >&5
|
---|
| 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4737 | (exit $ac_status); } && {
|
---|
| 4738 | test -z "$ac_c_werror_flag" ||
|
---|
| 4739 | test ! -s conftest.err
|
---|
| 4740 | } && test -s conftest.$ac_objext; then
|
---|
[16612] | 4741 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4742 | else
|
---|
| 4743 | echo "$as_me: failed program was:" >&5
|
---|
| 4744 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4745 |
|
---|
[21487] | 4746 |
|
---|
[16612] | 4747 | fi
|
---|
[21487] | 4748 |
|
---|
| 4749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16612] | 4750 | done
|
---|
| 4751 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4752 |
|
---|
| 4753 | fi
|
---|
| 4754 |
|
---|
[21487] | 4755 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4756 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; }
|
---|
[16612] | 4757 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4758 | x|xno) ;;
|
---|
| 4759 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4760 | esac
|
---|
| 4761 |
|
---|
| 4762 |
|
---|
[21487] | 4763 | { echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4764 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
|
---|
[16612] | 4765 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[21487] | 4766 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4767 | echo "${ECHO_T}yes" >&6; }
|
---|
[16612] | 4768 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4769 | #define PROTOTYPES 1
|
---|
| 4770 | _ACEOF
|
---|
| 4771 |
|
---|
| 4772 | U= ANSI2KNR=
|
---|
| 4773 | else
|
---|
[21487] | 4774 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4775 | echo "${ECHO_T}no" >&6; }
|
---|
[16612] | 4776 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4777 | fi
|
---|
| 4778 |
|
---|
[21487] | 4779 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4780 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
|
---|
[16610] | 4781 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4783 | else
|
---|
| 4784 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4785 | /* confdefs.h. */
|
---|
| 4786 | _ACEOF
|
---|
| 4787 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4788 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4789 | /* end confdefs.h. */
|
---|
| 4790 |
|
---|
| 4791 | int
|
---|
| 4792 | main ()
|
---|
| 4793 | {
|
---|
| 4794 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4795 | #ifndef __cplusplus
|
---|
| 4796 | /* Ultrix mips cc rejects this. */
|
---|
| 4797 | typedef int charset[2];
|
---|
[21487] | 4798 | const charset cs;
|
---|
[16610] | 4799 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[21487] | 4800 | char const *const *pcpcc;
|
---|
| 4801 | char **ppc;
|
---|
[16610] | 4802 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4803 | struct point {int x, y;};
|
---|
| 4804 | static struct point const zero = {0,0};
|
---|
| 4805 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4806 | It does not let you subtract one const X* pointer from another in
|
---|
| 4807 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4808 | expression */
|
---|
| 4809 | const char *g = "string";
|
---|
[21487] | 4810 | pcpcc = &g + (g ? g-g : 0);
|
---|
[16610] | 4811 | /* HPUX 7.0 cc rejects these. */
|
---|
[21487] | 4812 | ++pcpcc;
|
---|
| 4813 | ppc = (char**) pcpcc;
|
---|
| 4814 | pcpcc = (char const *const *) ppc;
|
---|
[16610] | 4815 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4816 | char *t;
|
---|
| 4817 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4818 |
|
---|
| 4819 | *t++ = 0;
|
---|
[21487] | 4820 | if (s) return 0;
|
---|
[16610] | 4821 | }
|
---|
| 4822 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4823 | int x[] = {25, 17};
|
---|
| 4824 | const int *foo = &x[0];
|
---|
| 4825 | ++foo;
|
---|
| 4826 | }
|
---|
| 4827 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4828 | typedef const int *iptr;
|
---|
| 4829 | iptr p = 0;
|
---|
| 4830 | ++p;
|
---|
| 4831 | }
|
---|
| 4832 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4833 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4834 | struct s { int j; const int *ap[3]; };
|
---|
| 4835 | struct s *b; b->j = 5;
|
---|
| 4836 | }
|
---|
| 4837 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4838 | const int foo = 10;
|
---|
[21487] | 4839 | if (!foo) return 0;
|
---|
[16610] | 4840 | }
|
---|
[21487] | 4841 | return !cs[0] && !zero.x;
|
---|
[16610] | 4842 | #endif
|
---|
| 4843 |
|
---|
| 4844 | ;
|
---|
| 4845 | return 0;
|
---|
| 4846 | }
|
---|
| 4847 | _ACEOF
|
---|
| 4848 | rm -f conftest.$ac_objext
|
---|
[21487] | 4849 | if { (ac_try="$ac_compile"
|
---|
| 4850 | case "(($ac_try" in
|
---|
| 4851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4852 | *) ac_try_echo=$ac_try;;
|
---|
| 4853 | esac
|
---|
| 4854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4855 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 4856 | ac_status=$?
|
---|
| 4857 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4858 | rm -f conftest.er1
|
---|
| 4859 | cat conftest.err >&5
|
---|
| 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4861 | (exit $ac_status); } && {
|
---|
| 4862 | test -z "$ac_c_werror_flag" ||
|
---|
| 4863 | test ! -s conftest.err
|
---|
| 4864 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 4865 | ac_cv_c_const=yes
|
---|
| 4866 | else
|
---|
| 4867 | echo "$as_me: failed program was:" >&5
|
---|
| 4868 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4869 |
|
---|
[21487] | 4870 | ac_cv_c_const=no
|
---|
[16610] | 4871 | fi
|
---|
[21487] | 4872 |
|
---|
| 4873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 4874 | fi
|
---|
[21487] | 4875 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4876 | echo "${ECHO_T}$ac_cv_c_const" >&6; }
|
---|
[16610] | 4877 | if test $ac_cv_c_const = no; then
|
---|
| 4878 |
|
---|
| 4879 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4880 | #define const
|
---|
| 4881 | _ACEOF
|
---|
| 4882 |
|
---|
| 4883 | fi
|
---|
| 4884 |
|
---|
[21487] | 4885 | { echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4886 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
|
---|
[16610] | 4887 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4889 | else
|
---|
| 4890 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4891 | /* confdefs.h. */
|
---|
| 4892 | _ACEOF
|
---|
| 4893 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4894 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4895 | /* end confdefs.h. */
|
---|
| 4896 | $ac_includes_default
|
---|
[21487] | 4897 | typedef off_t ac__type_new_;
|
---|
[16610] | 4898 | int
|
---|
| 4899 | main ()
|
---|
| 4900 | {
|
---|
[21487] | 4901 | if ((ac__type_new_ *) 0)
|
---|
[16610] | 4902 | return 0;
|
---|
[21487] | 4903 | if (sizeof (ac__type_new_))
|
---|
[16610] | 4904 | return 0;
|
---|
| 4905 | ;
|
---|
| 4906 | return 0;
|
---|
| 4907 | }
|
---|
| 4908 | _ACEOF
|
---|
| 4909 | rm -f conftest.$ac_objext
|
---|
[21487] | 4910 | if { (ac_try="$ac_compile"
|
---|
| 4911 | case "(($ac_try" in
|
---|
| 4912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4913 | *) ac_try_echo=$ac_try;;
|
---|
| 4914 | esac
|
---|
| 4915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4916 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 4917 | ac_status=$?
|
---|
| 4918 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4919 | rm -f conftest.er1
|
---|
| 4920 | cat conftest.err >&5
|
---|
| 4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4922 | (exit $ac_status); } && {
|
---|
| 4923 | test -z "$ac_c_werror_flag" ||
|
---|
| 4924 | test ! -s conftest.err
|
---|
| 4925 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 4926 | ac_cv_type_off_t=yes
|
---|
| 4927 | else
|
---|
| 4928 | echo "$as_me: failed program was:" >&5
|
---|
| 4929 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4930 |
|
---|
[21487] | 4931 | ac_cv_type_off_t=no
|
---|
[16610] | 4932 | fi
|
---|
[21487] | 4933 |
|
---|
| 4934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 4935 | fi
|
---|
[21487] | 4936 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4937 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
|
---|
[16610] | 4938 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4939 | :
|
---|
| 4940 | else
|
---|
| 4941 |
|
---|
| 4942 | cat >>confdefs.h <<_ACEOF
|
---|
[21487] | 4943 | #define off_t long int
|
---|
[16610] | 4944 | _ACEOF
|
---|
| 4945 |
|
---|
| 4946 | fi
|
---|
| 4947 |
|
---|
[21487] | 4948 | { echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4949 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
|
---|
[16610] | 4950 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4951 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4952 | else
|
---|
| 4953 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4954 | /* confdefs.h. */
|
---|
| 4955 | _ACEOF
|
---|
| 4956 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4957 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4958 | /* end confdefs.h. */
|
---|
| 4959 | $ac_includes_default
|
---|
[21487] | 4960 | typedef size_t ac__type_new_;
|
---|
[16610] | 4961 | int
|
---|
| 4962 | main ()
|
---|
| 4963 | {
|
---|
[21487] | 4964 | if ((ac__type_new_ *) 0)
|
---|
[16610] | 4965 | return 0;
|
---|
[21487] | 4966 | if (sizeof (ac__type_new_))
|
---|
[16610] | 4967 | return 0;
|
---|
| 4968 | ;
|
---|
| 4969 | return 0;
|
---|
| 4970 | }
|
---|
| 4971 | _ACEOF
|
---|
| 4972 | rm -f conftest.$ac_objext
|
---|
[21487] | 4973 | if { (ac_try="$ac_compile"
|
---|
| 4974 | case "(($ac_try" in
|
---|
| 4975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 4976 | *) ac_try_echo=$ac_try;;
|
---|
| 4977 | esac
|
---|
| 4978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 4979 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 4980 | ac_status=$?
|
---|
| 4981 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4982 | rm -f conftest.er1
|
---|
| 4983 | cat conftest.err >&5
|
---|
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 4985 | (exit $ac_status); } && {
|
---|
| 4986 | test -z "$ac_c_werror_flag" ||
|
---|
| 4987 | test ! -s conftest.err
|
---|
| 4988 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 4989 | ac_cv_type_size_t=yes
|
---|
| 4990 | else
|
---|
| 4991 | echo "$as_me: failed program was:" >&5
|
---|
| 4992 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4993 |
|
---|
[21487] | 4994 | ac_cv_type_size_t=no
|
---|
[16610] | 4995 | fi
|
---|
[21487] | 4996 |
|
---|
| 4997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 4998 | fi
|
---|
[21487] | 4999 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 5000 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
|
---|
[16610] | 5001 | if test $ac_cv_type_size_t = yes; then
|
---|
| 5002 | :
|
---|
| 5003 | else
|
---|
| 5004 |
|
---|
| 5005 | cat >>confdefs.h <<_ACEOF
|
---|
[21487] | 5006 | #define size_t unsigned int
|
---|
[16610] | 5007 | _ACEOF
|
---|
| 5008 |
|
---|
| 5009 | fi
|
---|
| 5010 |
|
---|
[21487] | 5011 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 5012 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
|
---|
[16610] | 5013 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 5014 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5015 | else
|
---|
| 5016 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5017 | /* confdefs.h. */
|
---|
| 5018 | _ACEOF
|
---|
| 5019 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5020 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5021 | /* end confdefs.h. */
|
---|
| 5022 | #include <sys/types.h>
|
---|
| 5023 | #include <sys/time.h>
|
---|
| 5024 | #include <time.h>
|
---|
| 5025 |
|
---|
| 5026 | int
|
---|
| 5027 | main ()
|
---|
| 5028 | {
|
---|
| 5029 | if ((struct tm *) 0)
|
---|
| 5030 | return 0;
|
---|
| 5031 | ;
|
---|
| 5032 | return 0;
|
---|
| 5033 | }
|
---|
| 5034 | _ACEOF
|
---|
| 5035 | rm -f conftest.$ac_objext
|
---|
[21487] | 5036 | if { (ac_try="$ac_compile"
|
---|
| 5037 | case "(($ac_try" in
|
---|
| 5038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5039 | *) ac_try_echo=$ac_try;;
|
---|
| 5040 | esac
|
---|
| 5041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5042 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 5043 | ac_status=$?
|
---|
| 5044 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5045 | rm -f conftest.er1
|
---|
| 5046 | cat conftest.err >&5
|
---|
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5048 | (exit $ac_status); } && {
|
---|
| 5049 | test -z "$ac_c_werror_flag" ||
|
---|
| 5050 | test ! -s conftest.err
|
---|
| 5051 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 5052 | ac_cv_header_time=yes
|
---|
| 5053 | else
|
---|
| 5054 | echo "$as_me: failed program was:" >&5
|
---|
| 5055 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5056 |
|
---|
[21487] | 5057 | ac_cv_header_time=no
|
---|
[16610] | 5058 | fi
|
---|
[21487] | 5059 |
|
---|
| 5060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 5061 | fi
|
---|
[21487] | 5062 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 5063 | echo "${ECHO_T}$ac_cv_header_time" >&6; }
|
---|
[16610] | 5064 | if test $ac_cv_header_time = yes; then
|
---|
| 5065 |
|
---|
| 5066 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5067 | #define TIME_WITH_SYS_TIME 1
|
---|
| 5068 | _ACEOF
|
---|
| 5069 |
|
---|
| 5070 | fi
|
---|
| 5071 |
|
---|
[21487] | 5072 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 5073 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
|
---|
[16610] | 5074 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 5075 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5076 | else
|
---|
| 5077 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5078 | /* confdefs.h. */
|
---|
| 5079 | _ACEOF
|
---|
| 5080 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5081 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5082 | /* end confdefs.h. */
|
---|
| 5083 | #include <sys/types.h>
|
---|
| 5084 | #include <time.h>
|
---|
| 5085 |
|
---|
| 5086 | int
|
---|
| 5087 | main ()
|
---|
| 5088 | {
|
---|
[21487] | 5089 | struct tm tm;
|
---|
| 5090 | int *p = &tm.tm_sec;
|
---|
| 5091 | return !p;
|
---|
[16610] | 5092 | ;
|
---|
| 5093 | return 0;
|
---|
| 5094 | }
|
---|
| 5095 | _ACEOF
|
---|
| 5096 | rm -f conftest.$ac_objext
|
---|
[21487] | 5097 | if { (ac_try="$ac_compile"
|
---|
| 5098 | case "(($ac_try" in
|
---|
| 5099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5100 | *) ac_try_echo=$ac_try;;
|
---|
| 5101 | esac
|
---|
| 5102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5103 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 5104 | ac_status=$?
|
---|
| 5105 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5106 | rm -f conftest.er1
|
---|
| 5107 | cat conftest.err >&5
|
---|
| 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5109 | (exit $ac_status); } && {
|
---|
| 5110 | test -z "$ac_c_werror_flag" ||
|
---|
| 5111 | test ! -s conftest.err
|
---|
| 5112 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 5113 | ac_cv_struct_tm=time.h
|
---|
| 5114 | else
|
---|
| 5115 | echo "$as_me: failed program was:" >&5
|
---|
| 5116 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5117 |
|
---|
[21487] | 5118 | ac_cv_struct_tm=sys/time.h
|
---|
[16610] | 5119 | fi
|
---|
[21487] | 5120 |
|
---|
| 5121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 5122 | fi
|
---|
[21487] | 5123 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 5124 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
|
---|
[16610] | 5125 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 5126 |
|
---|
| 5127 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5128 | #define TM_IN_SYS_TIME 1
|
---|
| 5129 | _ACEOF
|
---|
| 5130 |
|
---|
| 5131 | fi
|
---|
| 5132 |
|
---|
| 5133 |
|
---|
| 5134 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 5135 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5136 | /* confdefs.h. */
|
---|
| 5137 | _ACEOF
|
---|
| 5138 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5139 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5140 | /* end confdefs.h. */
|
---|
| 5141 | #include <stdio.h>
|
---|
| 5142 |
|
---|
| 5143 | int
|
---|
| 5144 | main ()
|
---|
| 5145 | {
|
---|
| 5146 | FILE *rubbish = popen("yes", "r");
|
---|
| 5147 | ;
|
---|
| 5148 | return 0;
|
---|
| 5149 | }
|
---|
| 5150 | _ACEOF
|
---|
| 5151 | rm -f conftest.$ac_objext
|
---|
[21487] | 5152 | if { (ac_try="$ac_compile"
|
---|
| 5153 | case "(($ac_try" in
|
---|
| 5154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5155 | *) ac_try_echo=$ac_try;;
|
---|
| 5156 | esac
|
---|
| 5157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5158 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 5159 | ac_status=$?
|
---|
| 5160 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5161 | rm -f conftest.er1
|
---|
| 5162 | cat conftest.err >&5
|
---|
| 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5164 | (exit $ac_status); } && {
|
---|
| 5165 | test -z "$ac_c_werror_flag" ||
|
---|
| 5166 | test ! -s conftest.err
|
---|
| 5167 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 5168 | :
|
---|
| 5169 | else
|
---|
| 5170 | echo "$as_me: failed program was:" >&5
|
---|
| 5171 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5172 |
|
---|
[21487] | 5173 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[16610] | 5174 | fi
|
---|
[21487] | 5175 |
|
---|
| 5176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 5177 | fi
|
---|
| 5178 |
|
---|
| 5179 |
|
---|
| 5180 |
|
---|
[21487] | 5181 | { echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 5182 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6; }
|
---|
[16610] | 5183 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 5184 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5185 | else
|
---|
| 5186 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5187 | LIBS="-lg $LIBS"
|
---|
| 5188 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5189 | /* confdefs.h. */
|
---|
| 5190 | _ACEOF
|
---|
| 5191 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5192 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5193 | /* end confdefs.h. */
|
---|
| 5194 |
|
---|
| 5195 |
|
---|
| 5196 | int
|
---|
| 5197 | main ()
|
---|
| 5198 | {
|
---|
[21487] | 5199 | return main ();
|
---|
[16610] | 5200 | ;
|
---|
| 5201 | return 0;
|
---|
| 5202 | }
|
---|
| 5203 | _ACEOF
|
---|
| 5204 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 5205 | if { (ac_try="$ac_link"
|
---|
| 5206 | case "(($ac_try" in
|
---|
| 5207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5208 | *) ac_try_echo=$ac_try;;
|
---|
| 5209 | esac
|
---|
| 5210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5211 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 5212 | ac_status=$?
|
---|
| 5213 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5214 | rm -f conftest.er1
|
---|
| 5215 | cat conftest.err >&5
|
---|
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5217 | (exit $ac_status); } && {
|
---|
| 5218 | test -z "$ac_c_werror_flag" ||
|
---|
| 5219 | test ! -s conftest.err
|
---|
| 5220 | } && test -s conftest$ac_exeext &&
|
---|
| 5221 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 5222 | ac_cv_lib_g_main=yes
|
---|
| 5223 | else
|
---|
| 5224 | echo "$as_me: failed program was:" >&5
|
---|
| 5225 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5226 |
|
---|
[21487] | 5227 | ac_cv_lib_g_main=no
|
---|
[16610] | 5228 | fi
|
---|
[21487] | 5229 |
|
---|
| 5230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 5231 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5232 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5233 | fi
|
---|
[21487] | 5234 | { echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 5235 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6; }
|
---|
[16610] | 5236 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 5237 | cat >>confdefs.h <<_ACEOF
|
---|
| 5238 | #define HAVE_LIBG 1
|
---|
| 5239 | _ACEOF
|
---|
| 5240 |
|
---|
| 5241 | LIBS="-lg $LIBS"
|
---|
| 5242 |
|
---|
| 5243 | fi
|
---|
| 5244 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
| 5245 |
|
---|
| 5246 |
|
---|
[21487] | 5247 | { echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 5248 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
|
---|
[16610] | 5249 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 5250 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5251 | else
|
---|
| 5252 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5253 | LIBS="-lm $LIBS"
|
---|
| 5254 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5255 | /* confdefs.h. */
|
---|
| 5256 | _ACEOF
|
---|
| 5257 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5258 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5259 | /* end confdefs.h. */
|
---|
| 5260 |
|
---|
| 5261 |
|
---|
| 5262 | int
|
---|
| 5263 | main ()
|
---|
| 5264 | {
|
---|
[21487] | 5265 | return main ();
|
---|
[16610] | 5266 | ;
|
---|
| 5267 | return 0;
|
---|
| 5268 | }
|
---|
| 5269 | _ACEOF
|
---|
| 5270 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 5271 | if { (ac_try="$ac_link"
|
---|
| 5272 | case "(($ac_try" in
|
---|
| 5273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5274 | *) ac_try_echo=$ac_try;;
|
---|
| 5275 | esac
|
---|
| 5276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5277 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 5278 | ac_status=$?
|
---|
| 5279 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5280 | rm -f conftest.er1
|
---|
| 5281 | cat conftest.err >&5
|
---|
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5283 | (exit $ac_status); } && {
|
---|
| 5284 | test -z "$ac_c_werror_flag" ||
|
---|
| 5285 | test ! -s conftest.err
|
---|
| 5286 | } && test -s conftest$ac_exeext &&
|
---|
| 5287 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 5288 | ac_cv_lib_m_main=yes
|
---|
| 5289 | else
|
---|
| 5290 | echo "$as_me: failed program was:" >&5
|
---|
| 5291 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5292 |
|
---|
[21487] | 5293 | ac_cv_lib_m_main=no
|
---|
[16610] | 5294 | fi
|
---|
[21487] | 5295 |
|
---|
| 5296 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 5297 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5298 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5299 | fi
|
---|
[21487] | 5300 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 5301 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
|
---|
[16610] | 5302 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 5303 | cat >>confdefs.h <<_ACEOF
|
---|
| 5304 | #define HAVE_LIBM 1
|
---|
| 5305 | _ACEOF
|
---|
| 5306 |
|
---|
| 5307 | LIBS="-lm $LIBS"
|
---|
| 5308 |
|
---|
| 5309 | fi
|
---|
| 5310 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
| 5311 |
|
---|
| 5312 |
|
---|
[21487] | 5313 | { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 5314 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
|
---|
[16610] | 5315 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 5316 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5317 | else
|
---|
| 5318 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5319 | LIBS="-lcrypt $LIBS"
|
---|
| 5320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5321 | /* confdefs.h. */
|
---|
| 5322 | _ACEOF
|
---|
| 5323 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5325 | /* end confdefs.h. */
|
---|
| 5326 |
|
---|
| 5327 |
|
---|
| 5328 | int
|
---|
| 5329 | main ()
|
---|
| 5330 | {
|
---|
[21487] | 5331 | return main ();
|
---|
[16610] | 5332 | ;
|
---|
| 5333 | return 0;
|
---|
| 5334 | }
|
---|
| 5335 | _ACEOF
|
---|
| 5336 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 5337 | if { (ac_try="$ac_link"
|
---|
| 5338 | case "(($ac_try" in
|
---|
| 5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5340 | *) ac_try_echo=$ac_try;;
|
---|
| 5341 | esac
|
---|
| 5342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5343 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 5344 | ac_status=$?
|
---|
| 5345 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5346 | rm -f conftest.er1
|
---|
| 5347 | cat conftest.err >&5
|
---|
| 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5349 | (exit $ac_status); } && {
|
---|
| 5350 | test -z "$ac_c_werror_flag" ||
|
---|
| 5351 | test ! -s conftest.err
|
---|
| 5352 | } && test -s conftest$ac_exeext &&
|
---|
| 5353 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 5354 | ac_cv_lib_crypt_main=yes
|
---|
| 5355 | else
|
---|
| 5356 | echo "$as_me: failed program was:" >&5
|
---|
| 5357 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5358 |
|
---|
[21487] | 5359 | ac_cv_lib_crypt_main=no
|
---|
[16610] | 5360 | fi
|
---|
[21487] | 5361 |
|
---|
| 5362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 5363 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5364 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5365 | fi
|
---|
[21487] | 5366 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 5367 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
|
---|
[16610] | 5368 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 5369 | cat >>confdefs.h <<_ACEOF
|
---|
| 5370 | #define HAVE_LIBCRYPT 1
|
---|
| 5371 | _ACEOF
|
---|
| 5372 |
|
---|
| 5373 | LIBS="-lcrypt $LIBS"
|
---|
| 5374 |
|
---|
| 5375 | fi
|
---|
| 5376 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
| 5377 |
|
---|
| 5378 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 5379 |
|
---|
[21487] | 5380 | { echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
| 5381 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6; }
|
---|
[16610] | 5382 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
| 5383 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5384 | else
|
---|
| 5385 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5386 | LIBS="-liconv $LIBS"
|
---|
| 5387 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5388 | /* confdefs.h. */
|
---|
| 5389 | _ACEOF
|
---|
| 5390 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5391 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5392 | /* end confdefs.h. */
|
---|
| 5393 |
|
---|
| 5394 |
|
---|
| 5395 | int
|
---|
| 5396 | main ()
|
---|
| 5397 | {
|
---|
[21487] | 5398 | return main ();
|
---|
[16610] | 5399 | ;
|
---|
| 5400 | return 0;
|
---|
| 5401 | }
|
---|
| 5402 | _ACEOF
|
---|
| 5403 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 5404 | if { (ac_try="$ac_link"
|
---|
| 5405 | case "(($ac_try" in
|
---|
| 5406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5407 | *) ac_try_echo=$ac_try;;
|
---|
| 5408 | esac
|
---|
| 5409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5410 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 5411 | ac_status=$?
|
---|
| 5412 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5413 | rm -f conftest.er1
|
---|
| 5414 | cat conftest.err >&5
|
---|
| 5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5416 | (exit $ac_status); } && {
|
---|
| 5417 | test -z "$ac_c_werror_flag" ||
|
---|
| 5418 | test ! -s conftest.err
|
---|
| 5419 | } && test -s conftest$ac_exeext &&
|
---|
| 5420 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 5421 | ac_cv_lib_iconv_main=yes
|
---|
| 5422 | else
|
---|
| 5423 | echo "$as_me: failed program was:" >&5
|
---|
| 5424 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5425 |
|
---|
[21487] | 5426 | ac_cv_lib_iconv_main=no
|
---|
[16610] | 5427 | fi
|
---|
[21487] | 5428 |
|
---|
| 5429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 5430 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5431 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5432 | fi
|
---|
[21487] | 5433 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
| 5434 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6; }
|
---|
[16610] | 5435 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
| 5436 | cat >>confdefs.h <<_ACEOF
|
---|
| 5437 | #define HAVE_LIBICONV 1
|
---|
| 5438 | _ACEOF
|
---|
| 5439 |
|
---|
| 5440 | LIBS="-liconv $LIBS"
|
---|
| 5441 |
|
---|
| 5442 | fi
|
---|
| 5443 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
| 5444 |
|
---|
| 5445 | fi
|
---|
| 5446 |
|
---|
| 5447 |
|
---|
| 5448 |
|
---|
| 5449 |
|
---|
| 5450 |
|
---|
| 5451 |
|
---|
| 5452 | ac_header_dirent=no
|
---|
| 5453 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 5454 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[21487] | 5455 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 5456 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
---|
| 5457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 5458 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5459 | else
|
---|
| 5460 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5461 | /* confdefs.h. */
|
---|
| 5462 | _ACEOF
|
---|
| 5463 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5464 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5465 | /* end confdefs.h. */
|
---|
| 5466 | #include <sys/types.h>
|
---|
| 5467 | #include <$ac_hdr>
|
---|
| 5468 |
|
---|
| 5469 | int
|
---|
| 5470 | main ()
|
---|
| 5471 | {
|
---|
| 5472 | if ((DIR *) 0)
|
---|
| 5473 | return 0;
|
---|
| 5474 | ;
|
---|
| 5475 | return 0;
|
---|
| 5476 | }
|
---|
| 5477 | _ACEOF
|
---|
| 5478 | rm -f conftest.$ac_objext
|
---|
[21487] | 5479 | if { (ac_try="$ac_compile"
|
---|
| 5480 | case "(($ac_try" in
|
---|
| 5481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5482 | *) ac_try_echo=$ac_try;;
|
---|
| 5483 | esac
|
---|
| 5484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5485 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 5486 | ac_status=$?
|
---|
| 5487 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5488 | rm -f conftest.er1
|
---|
| 5489 | cat conftest.err >&5
|
---|
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5491 | (exit $ac_status); } && {
|
---|
| 5492 | test -z "$ac_c_werror_flag" ||
|
---|
| 5493 | test ! -s conftest.err
|
---|
| 5494 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 5495 | eval "$as_ac_Header=yes"
|
---|
| 5496 | else
|
---|
| 5497 | echo "$as_me: failed program was:" >&5
|
---|
| 5498 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5499 |
|
---|
[21487] | 5500 | eval "$as_ac_Header=no"
|
---|
[16610] | 5501 | fi
|
---|
[21487] | 5502 |
|
---|
| 5503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 5504 | fi
|
---|
[21487] | 5505 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 5506 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 5507 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 5508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5509 | cat >>confdefs.h <<_ACEOF
|
---|
| 5510 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 5511 | _ACEOF
|
---|
| 5512 |
|
---|
| 5513 | ac_header_dirent=$ac_hdr; break
|
---|
| 5514 | fi
|
---|
| 5515 |
|
---|
| 5516 | done
|
---|
| 5517 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5518 | if test $ac_header_dirent = dirent.h; then
|
---|
[21487] | 5519 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5520 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
[16610] | 5521 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5522 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5523 | else
|
---|
| 5524 | ac_func_search_save_LIBS=$LIBS
|
---|
| 5525 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5526 | /* confdefs.h. */
|
---|
| 5527 | _ACEOF
|
---|
| 5528 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5529 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5530 | /* end confdefs.h. */
|
---|
| 5531 |
|
---|
[21487] | 5532 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5533 | Use char because int might match the return type of a GCC
|
---|
| 5534 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 5535 | #ifdef __cplusplus
|
---|
| 5536 | extern "C"
|
---|
| 5537 | #endif
|
---|
| 5538 | char opendir ();
|
---|
| 5539 | int
|
---|
| 5540 | main ()
|
---|
| 5541 | {
|
---|
[21487] | 5542 | return opendir ();
|
---|
[16610] | 5543 | ;
|
---|
| 5544 | return 0;
|
---|
| 5545 | }
|
---|
| 5546 | _ACEOF
|
---|
[21487] | 5547 | for ac_lib in '' dir; do
|
---|
| 5548 | if test -z "$ac_lib"; then
|
---|
| 5549 | ac_res="none required"
|
---|
| 5550 | else
|
---|
| 5551 | ac_res=-l$ac_lib
|
---|
| 5552 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5553 | fi
|
---|
| 5554 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5555 | if { (ac_try="$ac_link"
|
---|
| 5556 | case "(($ac_try" in
|
---|
| 5557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5558 | *) ac_try_echo=$ac_try;;
|
---|
| 5559 | esac
|
---|
| 5560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5561 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 5562 | ac_status=$?
|
---|
| 5563 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5564 | rm -f conftest.er1
|
---|
| 5565 | cat conftest.err >&5
|
---|
| 5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5567 | (exit $ac_status); } && {
|
---|
| 5568 | test -z "$ac_c_werror_flag" ||
|
---|
| 5569 | test ! -s conftest.err
|
---|
| 5570 | } && test -s conftest$ac_exeext &&
|
---|
| 5571 | $as_test_x conftest$ac_exeext; then
|
---|
| 5572 | ac_cv_search_opendir=$ac_res
|
---|
[16610] | 5573 | else
|
---|
| 5574 | echo "$as_me: failed program was:" >&5
|
---|
| 5575 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5576 |
|
---|
[21487] | 5577 |
|
---|
[16610] | 5578 | fi
|
---|
| 5579 |
|
---|
[21487] | 5580 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 5581 | conftest$ac_exeext
|
---|
| 5582 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5583 | break
|
---|
| 5584 | fi
|
---|
| 5585 | done
|
---|
| 5586 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5587 | :
|
---|
[16610] | 5588 | else
|
---|
[21487] | 5589 | ac_cv_search_opendir=no
|
---|
[16610] | 5590 | fi
|
---|
[21487] | 5591 | rm conftest.$ac_ext
|
---|
[16610] | 5592 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5593 | fi
|
---|
[21487] | 5594 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5595 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
| 5596 | ac_res=$ac_cv_search_opendir
|
---|
| 5597 | if test "$ac_res" != no; then
|
---|
| 5598 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[16610] | 5599 |
|
---|
| 5600 | fi
|
---|
| 5601 |
|
---|
| 5602 | else
|
---|
[21487] | 5603 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5604 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
[16610] | 5605 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5606 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5607 | else
|
---|
| 5608 | ac_func_search_save_LIBS=$LIBS
|
---|
| 5609 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5610 | /* confdefs.h. */
|
---|
| 5611 | _ACEOF
|
---|
| 5612 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5613 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5614 | /* end confdefs.h. */
|
---|
| 5615 |
|
---|
[21487] | 5616 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5617 | Use char because int might match the return type of a GCC
|
---|
| 5618 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 5619 | #ifdef __cplusplus
|
---|
| 5620 | extern "C"
|
---|
| 5621 | #endif
|
---|
| 5622 | char opendir ();
|
---|
| 5623 | int
|
---|
| 5624 | main ()
|
---|
| 5625 | {
|
---|
[21487] | 5626 | return opendir ();
|
---|
[16610] | 5627 | ;
|
---|
| 5628 | return 0;
|
---|
| 5629 | }
|
---|
| 5630 | _ACEOF
|
---|
[21487] | 5631 | for ac_lib in '' x; do
|
---|
| 5632 | if test -z "$ac_lib"; then
|
---|
| 5633 | ac_res="none required"
|
---|
| 5634 | else
|
---|
| 5635 | ac_res=-l$ac_lib
|
---|
| 5636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5637 | fi
|
---|
| 5638 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5639 | if { (ac_try="$ac_link"
|
---|
| 5640 | case "(($ac_try" in
|
---|
| 5641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5642 | *) ac_try_echo=$ac_try;;
|
---|
| 5643 | esac
|
---|
| 5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5645 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 5646 | ac_status=$?
|
---|
| 5647 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5648 | rm -f conftest.er1
|
---|
| 5649 | cat conftest.err >&5
|
---|
| 5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5651 | (exit $ac_status); } && {
|
---|
| 5652 | test -z "$ac_c_werror_flag" ||
|
---|
| 5653 | test ! -s conftest.err
|
---|
| 5654 | } && test -s conftest$ac_exeext &&
|
---|
| 5655 | $as_test_x conftest$ac_exeext; then
|
---|
| 5656 | ac_cv_search_opendir=$ac_res
|
---|
[16610] | 5657 | else
|
---|
| 5658 | echo "$as_me: failed program was:" >&5
|
---|
| 5659 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5660 |
|
---|
[21487] | 5661 |
|
---|
[16610] | 5662 | fi
|
---|
| 5663 |
|
---|
[21487] | 5664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
| 5665 | conftest$ac_exeext
|
---|
| 5666 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5667 | break
|
---|
| 5668 | fi
|
---|
| 5669 | done
|
---|
| 5670 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5671 | :
|
---|
[16610] | 5672 | else
|
---|
[21487] | 5673 | ac_cv_search_opendir=no
|
---|
[16610] | 5674 | fi
|
---|
[21487] | 5675 | rm conftest.$ac_ext
|
---|
[16610] | 5676 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5677 | fi
|
---|
[21487] | 5678 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5679 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
| 5680 | ac_res=$ac_cv_search_opendir
|
---|
| 5681 | if test "$ac_res" != no; then
|
---|
| 5682 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[16610] | 5683 |
|
---|
| 5684 | fi
|
---|
| 5685 |
|
---|
| 5686 | fi
|
---|
| 5687 |
|
---|
[21487] | 5688 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5689 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
[16610] | 5690 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5691 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5692 | else
|
---|
| 5693 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5694 | /* confdefs.h. */
|
---|
| 5695 | _ACEOF
|
---|
| 5696 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5697 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5698 | /* end confdefs.h. */
|
---|
| 5699 | #include <stdlib.h>
|
---|
| 5700 | #include <stdarg.h>
|
---|
| 5701 | #include <string.h>
|
---|
| 5702 | #include <float.h>
|
---|
| 5703 |
|
---|
| 5704 | int
|
---|
| 5705 | main ()
|
---|
| 5706 | {
|
---|
| 5707 |
|
---|
| 5708 | ;
|
---|
| 5709 | return 0;
|
---|
| 5710 | }
|
---|
| 5711 | _ACEOF
|
---|
| 5712 | rm -f conftest.$ac_objext
|
---|
[21487] | 5713 | if { (ac_try="$ac_compile"
|
---|
| 5714 | case "(($ac_try" in
|
---|
| 5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5716 | *) ac_try_echo=$ac_try;;
|
---|
| 5717 | esac
|
---|
| 5718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5719 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 5720 | ac_status=$?
|
---|
| 5721 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5722 | rm -f conftest.er1
|
---|
| 5723 | cat conftest.err >&5
|
---|
| 5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5725 | (exit $ac_status); } && {
|
---|
| 5726 | test -z "$ac_c_werror_flag" ||
|
---|
| 5727 | test ! -s conftest.err
|
---|
| 5728 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 5729 | ac_cv_header_stdc=yes
|
---|
| 5730 | else
|
---|
| 5731 | echo "$as_me: failed program was:" >&5
|
---|
| 5732 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5733 |
|
---|
[21487] | 5734 | ac_cv_header_stdc=no
|
---|
[16610] | 5735 | fi
|
---|
| 5736 |
|
---|
[21487] | 5737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5738 |
|
---|
[16610] | 5739 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5740 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 5741 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5742 | /* confdefs.h. */
|
---|
| 5743 | _ACEOF
|
---|
| 5744 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5745 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5746 | /* end confdefs.h. */
|
---|
| 5747 | #include <string.h>
|
---|
| 5748 |
|
---|
| 5749 | _ACEOF
|
---|
| 5750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5751 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5752 | :
|
---|
| 5753 | else
|
---|
| 5754 | ac_cv_header_stdc=no
|
---|
| 5755 | fi
|
---|
| 5756 | rm -f conftest*
|
---|
| 5757 |
|
---|
| 5758 | fi
|
---|
| 5759 |
|
---|
| 5760 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5761 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 5762 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5763 | /* confdefs.h. */
|
---|
| 5764 | _ACEOF
|
---|
| 5765 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5766 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5767 | /* end confdefs.h. */
|
---|
| 5768 | #include <stdlib.h>
|
---|
| 5769 |
|
---|
| 5770 | _ACEOF
|
---|
| 5771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5772 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5773 | :
|
---|
| 5774 | else
|
---|
| 5775 | ac_cv_header_stdc=no
|
---|
| 5776 | fi
|
---|
| 5777 | rm -f conftest*
|
---|
| 5778 |
|
---|
| 5779 | fi
|
---|
| 5780 |
|
---|
| 5781 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5782 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 5783 | if test "$cross_compiling" = yes; then
|
---|
| 5784 | :
|
---|
| 5785 | else
|
---|
| 5786 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5787 | /* confdefs.h. */
|
---|
| 5788 | _ACEOF
|
---|
| 5789 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5790 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5791 | /* end confdefs.h. */
|
---|
| 5792 | #include <ctype.h>
|
---|
[21487] | 5793 | #include <stdlib.h>
|
---|
[16610] | 5794 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5795 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5796 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5797 | #else
|
---|
| 5798 | # define ISLOWER(c) \
|
---|
| 5799 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5800 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5801 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5802 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5803 | #endif
|
---|
| 5804 |
|
---|
| 5805 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5806 | int
|
---|
| 5807 | main ()
|
---|
| 5808 | {
|
---|
| 5809 | int i;
|
---|
| 5810 | for (i = 0; i < 256; i++)
|
---|
| 5811 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5812 | || toupper (i) != TOUPPER (i))
|
---|
[21487] | 5813 | return 2;
|
---|
| 5814 | return 0;
|
---|
[16610] | 5815 | }
|
---|
| 5816 | _ACEOF
|
---|
| 5817 | rm -f conftest$ac_exeext
|
---|
[21487] | 5818 | if { (ac_try="$ac_link"
|
---|
| 5819 | case "(($ac_try" in
|
---|
| 5820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5821 | *) ac_try_echo=$ac_try;;
|
---|
| 5822 | esac
|
---|
| 5823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5824 | (eval "$ac_link") 2>&5
|
---|
[16610] | 5825 | ac_status=$?
|
---|
| 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21487] | 5828 | { (case "(($ac_try" in
|
---|
| 5829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5830 | *) ac_try_echo=$ac_try;;
|
---|
| 5831 | esac
|
---|
| 5832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5833 | (eval "$ac_try") 2>&5
|
---|
[16610] | 5834 | ac_status=$?
|
---|
| 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5836 | (exit $ac_status); }; }; then
|
---|
| 5837 | :
|
---|
| 5838 | else
|
---|
| 5839 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5840 | echo "$as_me: failed program was:" >&5
|
---|
| 5841 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5842 |
|
---|
| 5843 | ( exit $ac_status )
|
---|
| 5844 | ac_cv_header_stdc=no
|
---|
| 5845 | fi
|
---|
[21487] | 5846 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 5847 | fi
|
---|
[21487] | 5848 |
|
---|
| 5849 |
|
---|
[16610] | 5850 | fi
|
---|
| 5851 | fi
|
---|
[21487] | 5852 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5853 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
[16610] | 5854 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5855 |
|
---|
| 5856 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5857 | #define STDC_HEADERS 1
|
---|
| 5858 | _ACEOF
|
---|
| 5859 |
|
---|
| 5860 | fi
|
---|
| 5861 |
|
---|
| 5862 |
|
---|
| 5863 |
|
---|
| 5864 |
|
---|
| 5865 |
|
---|
| 5866 |
|
---|
| 5867 |
|
---|
| 5868 |
|
---|
| 5869 |
|
---|
| 5870 |
|
---|
| 5871 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
| 5872 | do
|
---|
| 5873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[21487] | 5874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
| 5875 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
| 5877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 5878 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5879 | fi
|
---|
[21487] | 5880 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 5881 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 5882 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 5883 | else
|
---|
| 5884 | # Is the header compilable?
|
---|
[21487] | 5885 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5886 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
[16610] | 5887 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5888 | /* confdefs.h. */
|
---|
| 5889 | _ACEOF
|
---|
| 5890 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5891 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5892 | /* end confdefs.h. */
|
---|
| 5893 | $ac_includes_default
|
---|
| 5894 | #include <$ac_header>
|
---|
| 5895 | _ACEOF
|
---|
| 5896 | rm -f conftest.$ac_objext
|
---|
[21487] | 5897 | if { (ac_try="$ac_compile"
|
---|
| 5898 | case "(($ac_try" in
|
---|
| 5899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5900 | *) ac_try_echo=$ac_try;;
|
---|
| 5901 | esac
|
---|
| 5902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5903 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 5904 | ac_status=$?
|
---|
| 5905 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5906 | rm -f conftest.er1
|
---|
| 5907 | cat conftest.err >&5
|
---|
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5909 | (exit $ac_status); } && {
|
---|
| 5910 | test -z "$ac_c_werror_flag" ||
|
---|
| 5911 | test ! -s conftest.err
|
---|
| 5912 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 5913 | ac_header_compiler=yes
|
---|
| 5914 | else
|
---|
| 5915 | echo "$as_me: failed program was:" >&5
|
---|
| 5916 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5917 |
|
---|
[21487] | 5918 | ac_header_compiler=no
|
---|
[16610] | 5919 | fi
|
---|
| 5920 |
|
---|
[21487] | 5921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5922 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5923 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
| 5924 |
|
---|
[16610] | 5925 | # Is the header present?
|
---|
[21487] | 5926 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5927 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
[16610] | 5928 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5929 | /* confdefs.h. */
|
---|
| 5930 | _ACEOF
|
---|
| 5931 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5932 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5933 | /* end confdefs.h. */
|
---|
| 5934 | #include <$ac_header>
|
---|
| 5935 | _ACEOF
|
---|
[21487] | 5936 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 5937 | case "(($ac_try" in
|
---|
| 5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 5939 | *) ac_try_echo=$ac_try;;
|
---|
| 5940 | esac
|
---|
| 5941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 5942 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
[16610] | 5943 | ac_status=$?
|
---|
| 5944 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5945 | rm -f conftest.er1
|
---|
| 5946 | cat conftest.err >&5
|
---|
| 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 5948 | (exit $ac_status); } >/dev/null && {
|
---|
| 5949 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 5950 | test ! -s conftest.err
|
---|
| 5951 | }; then
|
---|
[16610] | 5952 | ac_header_preproc=yes
|
---|
| 5953 | else
|
---|
| 5954 | echo "$as_me: failed program was:" >&5
|
---|
| 5955 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5956 |
|
---|
| 5957 | ac_header_preproc=no
|
---|
| 5958 | fi
|
---|
[21487] | 5959 |
|
---|
[16610] | 5960 | rm -f conftest.err conftest.$ac_ext
|
---|
[21487] | 5961 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5962 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
[16610] | 5963 |
|
---|
| 5964 | # So? What about this header?
|
---|
| 5965 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5966 | yes:no: )
|
---|
| 5967 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5968 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5969 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5970 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5971 | ac_header_preproc=yes
|
---|
| 5972 | ;;
|
---|
| 5973 | no:yes:* )
|
---|
| 5974 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5975 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5976 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5977 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5978 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5979 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5980 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5981 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5983 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5984 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5985 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
[21487] | 5986 |
|
---|
[16610] | 5987 | ;;
|
---|
| 5988 | esac
|
---|
[21487] | 5989 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
| 5991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 5992 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5993 | else
|
---|
| 5994 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5995 | fi
|
---|
[21487] | 5996 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
| 5997 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 5998 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 5999 |
|
---|
| 6000 | fi
|
---|
| 6001 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 6002 | cat >>confdefs.h <<_ACEOF
|
---|
| 6003 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 6004 | _ACEOF
|
---|
| 6005 |
|
---|
| 6006 | fi
|
---|
| 6007 |
|
---|
| 6008 | done
|
---|
| 6009 |
|
---|
| 6010 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6011 | /* confdefs.h. */
|
---|
| 6012 | _ACEOF
|
---|
| 6013 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6014 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6015 | /* end confdefs.h. */
|
---|
| 6016 | #include <stdio.h>
|
---|
| 6017 |
|
---|
| 6018 | _ACEOF
|
---|
| 6019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 6020 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 6021 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6022 | #define HAVE_FREAD_DECL 1
|
---|
| 6023 | _ACEOF
|
---|
| 6024 |
|
---|
| 6025 | fi
|
---|
| 6026 | rm -f conftest*
|
---|
| 6027 |
|
---|
| 6028 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6029 | /* confdefs.h. */
|
---|
| 6030 | _ACEOF
|
---|
| 6031 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6032 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6033 | /* end confdefs.h. */
|
---|
| 6034 | #include <stdio.h>
|
---|
| 6035 |
|
---|
| 6036 | _ACEOF
|
---|
| 6037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 6038 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 6039 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6040 | #define HAVE_FGETC_DECL 1
|
---|
| 6041 | _ACEOF
|
---|
| 6042 |
|
---|
| 6043 | fi
|
---|
| 6044 | rm -f conftest*
|
---|
| 6045 |
|
---|
| 6046 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6047 | /* confdefs.h. */
|
---|
| 6048 | _ACEOF
|
---|
| 6049 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6050 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6051 | /* end confdefs.h. */
|
---|
| 6052 | #include <sys/procfs.h>
|
---|
| 6053 |
|
---|
| 6054 | _ACEOF
|
---|
| 6055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 6056 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 6057 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6058 | #define HAVE_PR_BRKSIZE 1
|
---|
| 6059 | _ACEOF
|
---|
| 6060 |
|
---|
| 6061 | fi
|
---|
| 6062 | rm -f conftest*
|
---|
| 6063 |
|
---|
| 6064 |
|
---|
| 6065 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 6066 | # for constant arguments. Useless!
|
---|
[21487] | 6067 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 6068 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
|
---|
[16610] | 6069 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 6070 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6071 | else
|
---|
| 6072 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6073 | /* confdefs.h. */
|
---|
| 6074 | _ACEOF
|
---|
| 6075 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6076 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6077 | /* end confdefs.h. */
|
---|
| 6078 | #include <alloca.h>
|
---|
| 6079 | int
|
---|
| 6080 | main ()
|
---|
| 6081 | {
|
---|
| 6082 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[21487] | 6083 | if (p) return 0;
|
---|
[16610] | 6084 | ;
|
---|
| 6085 | return 0;
|
---|
| 6086 | }
|
---|
| 6087 | _ACEOF
|
---|
| 6088 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6089 | if { (ac_try="$ac_link"
|
---|
| 6090 | case "(($ac_try" in
|
---|
| 6091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6092 | *) ac_try_echo=$ac_try;;
|
---|
| 6093 | esac
|
---|
| 6094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6095 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6096 | ac_status=$?
|
---|
| 6097 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6098 | rm -f conftest.er1
|
---|
| 6099 | cat conftest.err >&5
|
---|
| 6100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6101 | (exit $ac_status); } && {
|
---|
| 6102 | test -z "$ac_c_werror_flag" ||
|
---|
| 6103 | test ! -s conftest.err
|
---|
| 6104 | } && test -s conftest$ac_exeext &&
|
---|
| 6105 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6106 | ac_cv_working_alloca_h=yes
|
---|
| 6107 | else
|
---|
| 6108 | echo "$as_me: failed program was:" >&5
|
---|
| 6109 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6110 |
|
---|
[21487] | 6111 | ac_cv_working_alloca_h=no
|
---|
[16610] | 6112 | fi
|
---|
[21487] | 6113 |
|
---|
| 6114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6115 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6116 | fi
|
---|
[21487] | 6117 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 6118 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
|
---|
[16610] | 6119 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 6120 |
|
---|
| 6121 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6122 | #define HAVE_ALLOCA_H 1
|
---|
| 6123 | _ACEOF
|
---|
| 6124 |
|
---|
| 6125 | fi
|
---|
| 6126 |
|
---|
[21487] | 6127 | { echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 6128 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
|
---|
[16610] | 6129 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 6130 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6131 | else
|
---|
| 6132 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6133 | /* confdefs.h. */
|
---|
| 6134 | _ACEOF
|
---|
| 6135 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6136 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6137 | /* end confdefs.h. */
|
---|
| 6138 | #ifdef __GNUC__
|
---|
| 6139 | # define alloca __builtin_alloca
|
---|
| 6140 | #else
|
---|
| 6141 | # ifdef _MSC_VER
|
---|
| 6142 | # include <malloc.h>
|
---|
| 6143 | # define alloca _alloca
|
---|
| 6144 | # else
|
---|
[21487] | 6145 | # ifdef HAVE_ALLOCA_H
|
---|
[16610] | 6146 | # include <alloca.h>
|
---|
| 6147 | # else
|
---|
| 6148 | # ifdef _AIX
|
---|
| 6149 | #pragma alloca
|
---|
| 6150 | # else
|
---|
| 6151 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 6152 | char *alloca ();
|
---|
| 6153 | # endif
|
---|
| 6154 | # endif
|
---|
| 6155 | # endif
|
---|
| 6156 | # endif
|
---|
| 6157 | #endif
|
---|
| 6158 |
|
---|
| 6159 | int
|
---|
| 6160 | main ()
|
---|
| 6161 | {
|
---|
| 6162 | char *p = (char *) alloca (1);
|
---|
[21487] | 6163 | if (p) return 0;
|
---|
[16610] | 6164 | ;
|
---|
| 6165 | return 0;
|
---|
| 6166 | }
|
---|
| 6167 | _ACEOF
|
---|
| 6168 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6169 | if { (ac_try="$ac_link"
|
---|
| 6170 | case "(($ac_try" in
|
---|
| 6171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6172 | *) ac_try_echo=$ac_try;;
|
---|
| 6173 | esac
|
---|
| 6174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6175 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6176 | ac_status=$?
|
---|
| 6177 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6178 | rm -f conftest.er1
|
---|
| 6179 | cat conftest.err >&5
|
---|
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6181 | (exit $ac_status); } && {
|
---|
| 6182 | test -z "$ac_c_werror_flag" ||
|
---|
| 6183 | test ! -s conftest.err
|
---|
| 6184 | } && test -s conftest$ac_exeext &&
|
---|
| 6185 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6186 | ac_cv_func_alloca_works=yes
|
---|
| 6187 | else
|
---|
| 6188 | echo "$as_me: failed program was:" >&5
|
---|
| 6189 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6190 |
|
---|
[21487] | 6191 | ac_cv_func_alloca_works=no
|
---|
[16610] | 6192 | fi
|
---|
[21487] | 6193 |
|
---|
| 6194 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6195 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6196 | fi
|
---|
[21487] | 6197 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 6198 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
|
---|
[16610] | 6199 |
|
---|
| 6200 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 6201 |
|
---|
| 6202 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6203 | #define HAVE_ALLOCA 1
|
---|
| 6204 | _ACEOF
|
---|
| 6205 |
|
---|
| 6206 | else
|
---|
| 6207 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 6208 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 6209 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 6210 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 6211 |
|
---|
[21487] | 6212 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[16610] | 6213 |
|
---|
| 6214 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6215 | #define C_ALLOCA 1
|
---|
| 6216 | _ACEOF
|
---|
| 6217 |
|
---|
| 6218 |
|
---|
[21487] | 6219 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 6220 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
|
---|
[16610] | 6221 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 6222 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6223 | else
|
---|
| 6224 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6225 | /* confdefs.h. */
|
---|
| 6226 | _ACEOF
|
---|
| 6227 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6228 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6229 | /* end confdefs.h. */
|
---|
[21487] | 6230 | #if defined CRAY && ! defined CRAY2
|
---|
[16610] | 6231 | webecray
|
---|
| 6232 | #else
|
---|
| 6233 | wenotbecray
|
---|
| 6234 | #endif
|
---|
| 6235 |
|
---|
| 6236 | _ACEOF
|
---|
| 6237 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 6238 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
| 6239 | ac_cv_os_cray=yes
|
---|
| 6240 | else
|
---|
| 6241 | ac_cv_os_cray=no
|
---|
| 6242 | fi
|
---|
| 6243 | rm -f conftest*
|
---|
| 6244 |
|
---|
| 6245 | fi
|
---|
[21487] | 6246 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 6247 | echo "${ECHO_T}$ac_cv_os_cray" >&6; }
|
---|
[16610] | 6248 | if test $ac_cv_os_cray = yes; then
|
---|
| 6249 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 6250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21487] | 6251 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
| 6253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 6254 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6255 | else
|
---|
| 6256 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6257 | /* confdefs.h. */
|
---|
| 6258 | _ACEOF
|
---|
| 6259 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6260 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6261 | /* end confdefs.h. */
|
---|
| 6262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6264 | #define $ac_func innocuous_$ac_func
|
---|
| 6265 |
|
---|
| 6266 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6267 | which can conflict with char $ac_func (); below.
|
---|
| 6268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6269 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6270 |
|
---|
| 6271 | #ifdef __STDC__
|
---|
| 6272 | # include <limits.h>
|
---|
| 6273 | #else
|
---|
| 6274 | # include <assert.h>
|
---|
| 6275 | #endif
|
---|
| 6276 |
|
---|
| 6277 | #undef $ac_func
|
---|
| 6278 |
|
---|
[21487] | 6279 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6280 | Use char because int might match the return type of a GCC
|
---|
| 6281 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 6282 | #ifdef __cplusplus
|
---|
| 6283 | extern "C"
|
---|
| 6284 | #endif
|
---|
| 6285 | char $ac_func ();
|
---|
| 6286 | /* The GNU C library defines this for functions which it implements
|
---|
| 6287 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6288 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 6289 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[16610] | 6290 | choke me
|
---|
| 6291 | #endif
|
---|
| 6292 |
|
---|
| 6293 | int
|
---|
| 6294 | main ()
|
---|
| 6295 | {
|
---|
[21487] | 6296 | return $ac_func ();
|
---|
[16610] | 6297 | ;
|
---|
| 6298 | return 0;
|
---|
| 6299 | }
|
---|
| 6300 | _ACEOF
|
---|
| 6301 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6302 | if { (ac_try="$ac_link"
|
---|
| 6303 | case "(($ac_try" in
|
---|
| 6304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6305 | *) ac_try_echo=$ac_try;;
|
---|
| 6306 | esac
|
---|
| 6307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6308 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6309 | ac_status=$?
|
---|
| 6310 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6311 | rm -f conftest.er1
|
---|
| 6312 | cat conftest.err >&5
|
---|
| 6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6314 | (exit $ac_status); } && {
|
---|
| 6315 | test -z "$ac_c_werror_flag" ||
|
---|
| 6316 | test ! -s conftest.err
|
---|
| 6317 | } && test -s conftest$ac_exeext &&
|
---|
| 6318 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6319 | eval "$as_ac_var=yes"
|
---|
| 6320 | else
|
---|
| 6321 | echo "$as_me: failed program was:" >&5
|
---|
| 6322 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6323 |
|
---|
[21487] | 6324 | eval "$as_ac_var=no"
|
---|
[16610] | 6325 | fi
|
---|
[21487] | 6326 |
|
---|
| 6327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6328 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6329 | fi
|
---|
[21487] | 6330 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6331 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6332 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 6333 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6334 |
|
---|
| 6335 | cat >>confdefs.h <<_ACEOF
|
---|
| 6336 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 6337 | _ACEOF
|
---|
| 6338 |
|
---|
| 6339 | break
|
---|
| 6340 | fi
|
---|
| 6341 |
|
---|
| 6342 | done
|
---|
| 6343 | fi
|
---|
| 6344 |
|
---|
[21487] | 6345 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 6346 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
|
---|
[16610] | 6347 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 6348 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6349 | else
|
---|
| 6350 | if test "$cross_compiling" = yes; then
|
---|
| 6351 | ac_cv_c_stack_direction=0
|
---|
| 6352 | else
|
---|
| 6353 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6354 | /* confdefs.h. */
|
---|
| 6355 | _ACEOF
|
---|
| 6356 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6357 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6358 | /* end confdefs.h. */
|
---|
[21487] | 6359 | $ac_includes_default
|
---|
[16610] | 6360 | int
|
---|
| 6361 | find_stack_direction ()
|
---|
| 6362 | {
|
---|
| 6363 | static char *addr = 0;
|
---|
| 6364 | auto char dummy;
|
---|
| 6365 | if (addr == 0)
|
---|
| 6366 | {
|
---|
| 6367 | addr = &dummy;
|
---|
| 6368 | return find_stack_direction ();
|
---|
| 6369 | }
|
---|
| 6370 | else
|
---|
| 6371 | return (&dummy > addr) ? 1 : -1;
|
---|
| 6372 | }
|
---|
| 6373 |
|
---|
| 6374 | int
|
---|
| 6375 | main ()
|
---|
| 6376 | {
|
---|
[21487] | 6377 | return find_stack_direction () < 0;
|
---|
[16610] | 6378 | }
|
---|
| 6379 | _ACEOF
|
---|
| 6380 | rm -f conftest$ac_exeext
|
---|
[21487] | 6381 | if { (ac_try="$ac_link"
|
---|
| 6382 | case "(($ac_try" in
|
---|
| 6383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6384 | *) ac_try_echo=$ac_try;;
|
---|
| 6385 | esac
|
---|
| 6386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6387 | (eval "$ac_link") 2>&5
|
---|
[16610] | 6388 | ac_status=$?
|
---|
| 6389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21487] | 6391 | { (case "(($ac_try" in
|
---|
| 6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6393 | *) ac_try_echo=$ac_try;;
|
---|
| 6394 | esac
|
---|
| 6395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6396 | (eval "$ac_try") 2>&5
|
---|
[16610] | 6397 | ac_status=$?
|
---|
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6399 | (exit $ac_status); }; }; then
|
---|
| 6400 | ac_cv_c_stack_direction=1
|
---|
| 6401 | else
|
---|
| 6402 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 6403 | echo "$as_me: failed program was:" >&5
|
---|
| 6404 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6405 |
|
---|
| 6406 | ( exit $ac_status )
|
---|
| 6407 | ac_cv_c_stack_direction=-1
|
---|
| 6408 | fi
|
---|
[21487] | 6409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 6410 | fi
|
---|
[21487] | 6411 |
|
---|
| 6412 |
|
---|
[16610] | 6413 | fi
|
---|
[21487] | 6414 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 6415 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
|
---|
[16610] | 6416 |
|
---|
| 6417 | cat >>confdefs.h <<_ACEOF
|
---|
| 6418 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 6419 | _ACEOF
|
---|
| 6420 |
|
---|
| 6421 |
|
---|
| 6422 | fi
|
---|
| 6423 |
|
---|
| 6424 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[21487] | 6425 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 6426 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
|
---|
[16610] | 6427 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 6428 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6429 | else
|
---|
| 6430 | ac_pattern="Autoconf.*'x'"
|
---|
| 6431 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6432 | /* confdefs.h. */
|
---|
| 6433 | _ACEOF
|
---|
| 6434 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6435 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6436 | /* end confdefs.h. */
|
---|
| 6437 | #include <sgtty.h>
|
---|
| 6438 | Autoconf TIOCGETP
|
---|
| 6439 | _ACEOF
|
---|
| 6440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 6441 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 6442 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6443 | else
|
---|
| 6444 | ac_cv_prog_gcc_traditional=no
|
---|
| 6445 | fi
|
---|
| 6446 | rm -f conftest*
|
---|
| 6447 |
|
---|
| 6448 |
|
---|
| 6449 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 6450 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6451 | /* confdefs.h. */
|
---|
| 6452 | _ACEOF
|
---|
| 6453 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6454 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6455 | /* end confdefs.h. */
|
---|
| 6456 | #include <termio.h>
|
---|
| 6457 | Autoconf TCGETA
|
---|
| 6458 | _ACEOF
|
---|
| 6459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 6460 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 6461 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6462 | fi
|
---|
| 6463 | rm -f conftest*
|
---|
| 6464 |
|
---|
| 6465 | fi
|
---|
| 6466 | fi
|
---|
[21487] | 6467 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 6468 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[16610] | 6469 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 6470 | CC="$CC -traditional"
|
---|
| 6471 | fi
|
---|
| 6472 | fi
|
---|
| 6473 |
|
---|
[21487] | 6474 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 6475 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
|
---|
[16610] | 6476 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 6477 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6478 | else
|
---|
| 6479 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6480 | /* confdefs.h. */
|
---|
| 6481 | _ACEOF
|
---|
| 6482 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6483 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6484 | /* end confdefs.h. */
|
---|
| 6485 | #include <sys/types.h>
|
---|
| 6486 | #include <signal.h>
|
---|
| 6487 |
|
---|
| 6488 | int
|
---|
| 6489 | main ()
|
---|
| 6490 | {
|
---|
[21487] | 6491 | return *(signal (0, 0)) (0) == 1;
|
---|
[16610] | 6492 | ;
|
---|
| 6493 | return 0;
|
---|
| 6494 | }
|
---|
| 6495 | _ACEOF
|
---|
| 6496 | rm -f conftest.$ac_objext
|
---|
[21487] | 6497 | if { (ac_try="$ac_compile"
|
---|
| 6498 | case "(($ac_try" in
|
---|
| 6499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6500 | *) ac_try_echo=$ac_try;;
|
---|
| 6501 | esac
|
---|
| 6502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6503 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 6504 | ac_status=$?
|
---|
| 6505 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6506 | rm -f conftest.er1
|
---|
| 6507 | cat conftest.err >&5
|
---|
| 6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6509 | (exit $ac_status); } && {
|
---|
| 6510 | test -z "$ac_c_werror_flag" ||
|
---|
| 6511 | test ! -s conftest.err
|
---|
| 6512 | } && test -s conftest.$ac_objext; then
|
---|
| 6513 | ac_cv_type_signal=int
|
---|
[16610] | 6514 | else
|
---|
| 6515 | echo "$as_me: failed program was:" >&5
|
---|
| 6516 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6517 |
|
---|
[21487] | 6518 | ac_cv_type_signal=void
|
---|
[16610] | 6519 | fi
|
---|
[21487] | 6520 |
|
---|
| 6521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 6522 | fi
|
---|
[21487] | 6523 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 6524 | echo "${ECHO_T}$ac_cv_type_signal" >&6; }
|
---|
[16610] | 6525 |
|
---|
| 6526 | cat >>confdefs.h <<_ACEOF
|
---|
| 6527 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 6528 | _ACEOF
|
---|
| 6529 |
|
---|
| 6530 |
|
---|
| 6531 |
|
---|
| 6532 | for ac_func in vprintf
|
---|
| 6533 | do
|
---|
| 6534 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21487] | 6535 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6536 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
| 6537 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6539 | else
|
---|
| 6540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6541 | /* confdefs.h. */
|
---|
| 6542 | _ACEOF
|
---|
| 6543 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6545 | /* end confdefs.h. */
|
---|
| 6546 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6548 | #define $ac_func innocuous_$ac_func
|
---|
| 6549 |
|
---|
| 6550 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6551 | which can conflict with char $ac_func (); below.
|
---|
| 6552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6553 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6554 |
|
---|
| 6555 | #ifdef __STDC__
|
---|
| 6556 | # include <limits.h>
|
---|
| 6557 | #else
|
---|
| 6558 | # include <assert.h>
|
---|
| 6559 | #endif
|
---|
| 6560 |
|
---|
| 6561 | #undef $ac_func
|
---|
| 6562 |
|
---|
[21487] | 6563 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6564 | Use char because int might match the return type of a GCC
|
---|
| 6565 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 6566 | #ifdef __cplusplus
|
---|
| 6567 | extern "C"
|
---|
| 6568 | #endif
|
---|
| 6569 | char $ac_func ();
|
---|
| 6570 | /* The GNU C library defines this for functions which it implements
|
---|
| 6571 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6572 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 6573 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[16610] | 6574 | choke me
|
---|
| 6575 | #endif
|
---|
| 6576 |
|
---|
| 6577 | int
|
---|
| 6578 | main ()
|
---|
| 6579 | {
|
---|
[21487] | 6580 | return $ac_func ();
|
---|
[16610] | 6581 | ;
|
---|
| 6582 | return 0;
|
---|
| 6583 | }
|
---|
| 6584 | _ACEOF
|
---|
| 6585 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6586 | if { (ac_try="$ac_link"
|
---|
| 6587 | case "(($ac_try" in
|
---|
| 6588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6589 | *) ac_try_echo=$ac_try;;
|
---|
| 6590 | esac
|
---|
| 6591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6592 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6593 | ac_status=$?
|
---|
| 6594 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6595 | rm -f conftest.er1
|
---|
| 6596 | cat conftest.err >&5
|
---|
| 6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6598 | (exit $ac_status); } && {
|
---|
| 6599 | test -z "$ac_c_werror_flag" ||
|
---|
| 6600 | test ! -s conftest.err
|
---|
| 6601 | } && test -s conftest$ac_exeext &&
|
---|
| 6602 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6603 | eval "$as_ac_var=yes"
|
---|
| 6604 | else
|
---|
| 6605 | echo "$as_me: failed program was:" >&5
|
---|
| 6606 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6607 |
|
---|
[21487] | 6608 | eval "$as_ac_var=no"
|
---|
[16610] | 6609 | fi
|
---|
[21487] | 6610 |
|
---|
| 6611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6612 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6613 | fi
|
---|
[21487] | 6614 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6615 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6616 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 6617 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6618 | cat >>confdefs.h <<_ACEOF
|
---|
| 6619 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6620 | _ACEOF
|
---|
| 6621 |
|
---|
[21487] | 6622 | { echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6623 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
|
---|
[16610] | 6624 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6625 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6626 | else
|
---|
| 6627 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6628 | /* confdefs.h. */
|
---|
| 6629 | _ACEOF
|
---|
| 6630 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6631 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6632 | /* end confdefs.h. */
|
---|
| 6633 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6635 | #define _doprnt innocuous__doprnt
|
---|
| 6636 |
|
---|
| 6637 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6638 | which can conflict with char _doprnt (); below.
|
---|
| 6639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6640 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6641 |
|
---|
| 6642 | #ifdef __STDC__
|
---|
| 6643 | # include <limits.h>
|
---|
| 6644 | #else
|
---|
| 6645 | # include <assert.h>
|
---|
| 6646 | #endif
|
---|
| 6647 |
|
---|
| 6648 | #undef _doprnt
|
---|
| 6649 |
|
---|
[21487] | 6650 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6651 | Use char because int might match the return type of a GCC
|
---|
| 6652 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 6653 | #ifdef __cplusplus
|
---|
| 6654 | extern "C"
|
---|
| 6655 | #endif
|
---|
| 6656 | char _doprnt ();
|
---|
| 6657 | /* The GNU C library defines this for functions which it implements
|
---|
| 6658 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6659 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 6660 | #if defined __stub__doprnt || defined __stub____doprnt
|
---|
[16610] | 6661 | choke me
|
---|
| 6662 | #endif
|
---|
| 6663 |
|
---|
| 6664 | int
|
---|
| 6665 | main ()
|
---|
| 6666 | {
|
---|
[21487] | 6667 | return _doprnt ();
|
---|
[16610] | 6668 | ;
|
---|
| 6669 | return 0;
|
---|
| 6670 | }
|
---|
| 6671 | _ACEOF
|
---|
| 6672 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6673 | if { (ac_try="$ac_link"
|
---|
| 6674 | case "(($ac_try" in
|
---|
| 6675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6676 | *) ac_try_echo=$ac_try;;
|
---|
| 6677 | esac
|
---|
| 6678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6679 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6680 | ac_status=$?
|
---|
| 6681 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6682 | rm -f conftest.er1
|
---|
| 6683 | cat conftest.err >&5
|
---|
| 6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6685 | (exit $ac_status); } && {
|
---|
| 6686 | test -z "$ac_c_werror_flag" ||
|
---|
| 6687 | test ! -s conftest.err
|
---|
| 6688 | } && test -s conftest$ac_exeext &&
|
---|
| 6689 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6690 | ac_cv_func__doprnt=yes
|
---|
| 6691 | else
|
---|
| 6692 | echo "$as_me: failed program was:" >&5
|
---|
| 6693 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6694 |
|
---|
[21487] | 6695 | ac_cv_func__doprnt=no
|
---|
[16610] | 6696 | fi
|
---|
[21487] | 6697 |
|
---|
| 6698 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6699 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6700 | fi
|
---|
[21487] | 6701 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6702 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
|
---|
[16610] | 6703 | if test $ac_cv_func__doprnt = yes; then
|
---|
| 6704 |
|
---|
| 6705 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6706 | #define HAVE_DOPRNT 1
|
---|
| 6707 | _ACEOF
|
---|
| 6708 |
|
---|
| 6709 | fi
|
---|
| 6710 |
|
---|
| 6711 | fi
|
---|
| 6712 | done
|
---|
| 6713 |
|
---|
| 6714 |
|
---|
| 6715 |
|
---|
| 6716 |
|
---|
| 6717 |
|
---|
| 6718 |
|
---|
| 6719 |
|
---|
| 6720 |
|
---|
| 6721 |
|
---|
| 6722 |
|
---|
| 6723 |
|
---|
| 6724 |
|
---|
| 6725 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6726 | do
|
---|
| 6727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21487] | 6728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
| 6730 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 6731 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6732 | else
|
---|
| 6733 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6734 | /* confdefs.h. */
|
---|
| 6735 | _ACEOF
|
---|
| 6736 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6737 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6738 | /* end confdefs.h. */
|
---|
| 6739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6741 | #define $ac_func innocuous_$ac_func
|
---|
| 6742 |
|
---|
| 6743 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6744 | which can conflict with char $ac_func (); below.
|
---|
| 6745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6746 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6747 |
|
---|
| 6748 | #ifdef __STDC__
|
---|
| 6749 | # include <limits.h>
|
---|
| 6750 | #else
|
---|
| 6751 | # include <assert.h>
|
---|
| 6752 | #endif
|
---|
| 6753 |
|
---|
| 6754 | #undef $ac_func
|
---|
| 6755 |
|
---|
[21487] | 6756 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6757 | Use char because int might match the return type of a GCC
|
---|
| 6758 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 6759 | #ifdef __cplusplus
|
---|
| 6760 | extern "C"
|
---|
| 6761 | #endif
|
---|
| 6762 | char $ac_func ();
|
---|
| 6763 | /* The GNU C library defines this for functions which it implements
|
---|
| 6764 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6765 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 6766 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[16610] | 6767 | choke me
|
---|
| 6768 | #endif
|
---|
| 6769 |
|
---|
| 6770 | int
|
---|
| 6771 | main ()
|
---|
| 6772 | {
|
---|
[21487] | 6773 | return $ac_func ();
|
---|
[16610] | 6774 | ;
|
---|
| 6775 | return 0;
|
---|
| 6776 | }
|
---|
| 6777 | _ACEOF
|
---|
| 6778 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6779 | if { (ac_try="$ac_link"
|
---|
| 6780 | case "(($ac_try" in
|
---|
| 6781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6782 | *) ac_try_echo=$ac_try;;
|
---|
| 6783 | esac
|
---|
| 6784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6785 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6786 | ac_status=$?
|
---|
| 6787 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6788 | rm -f conftest.er1
|
---|
| 6789 | cat conftest.err >&5
|
---|
| 6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6791 | (exit $ac_status); } && {
|
---|
| 6792 | test -z "$ac_c_werror_flag" ||
|
---|
| 6793 | test ! -s conftest.err
|
---|
| 6794 | } && test -s conftest$ac_exeext &&
|
---|
| 6795 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6796 | eval "$as_ac_var=yes"
|
---|
| 6797 | else
|
---|
| 6798 | echo "$as_me: failed program was:" >&5
|
---|
| 6799 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6800 |
|
---|
[21487] | 6801 | eval "$as_ac_var=no"
|
---|
[16610] | 6802 | fi
|
---|
[21487] | 6803 |
|
---|
| 6804 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6805 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6806 | fi
|
---|
[21487] | 6807 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6808 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6809 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 6810 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6811 | cat >>confdefs.h <<_ACEOF
|
---|
| 6812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6813 | _ACEOF
|
---|
| 6814 |
|
---|
| 6815 | fi
|
---|
| 6816 | done
|
---|
| 6817 |
|
---|
| 6818 |
|
---|
| 6819 |
|
---|
| 6820 |
|
---|
| 6821 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6822 | do
|
---|
| 6823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21487] | 6824 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
| 6826 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 6827 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6828 | else
|
---|
| 6829 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6830 | /* confdefs.h. */
|
---|
| 6831 | _ACEOF
|
---|
| 6832 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6833 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6834 | /* end confdefs.h. */
|
---|
| 6835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6837 | #define $ac_func innocuous_$ac_func
|
---|
| 6838 |
|
---|
| 6839 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6840 | which can conflict with char $ac_func (); below.
|
---|
| 6841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6842 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6843 |
|
---|
| 6844 | #ifdef __STDC__
|
---|
| 6845 | # include <limits.h>
|
---|
| 6846 | #else
|
---|
| 6847 | # include <assert.h>
|
---|
| 6848 | #endif
|
---|
| 6849 |
|
---|
| 6850 | #undef $ac_func
|
---|
| 6851 |
|
---|
[21487] | 6852 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6853 | Use char because int might match the return type of a GCC
|
---|
| 6854 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 6855 | #ifdef __cplusplus
|
---|
| 6856 | extern "C"
|
---|
| 6857 | #endif
|
---|
| 6858 | char $ac_func ();
|
---|
| 6859 | /* The GNU C library defines this for functions which it implements
|
---|
| 6860 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6861 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 6862 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[16610] | 6863 | choke me
|
---|
| 6864 | #endif
|
---|
| 6865 |
|
---|
| 6866 | int
|
---|
| 6867 | main ()
|
---|
| 6868 | {
|
---|
[21487] | 6869 | return $ac_func ();
|
---|
[16610] | 6870 | ;
|
---|
| 6871 | return 0;
|
---|
| 6872 | }
|
---|
| 6873 | _ACEOF
|
---|
| 6874 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6875 | if { (ac_try="$ac_link"
|
---|
| 6876 | case "(($ac_try" in
|
---|
| 6877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6878 | *) ac_try_echo=$ac_try;;
|
---|
| 6879 | esac
|
---|
| 6880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6881 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6882 | ac_status=$?
|
---|
| 6883 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6884 | rm -f conftest.er1
|
---|
| 6885 | cat conftest.err >&5
|
---|
| 6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6887 | (exit $ac_status); } && {
|
---|
| 6888 | test -z "$ac_c_werror_flag" ||
|
---|
| 6889 | test ! -s conftest.err
|
---|
| 6890 | } && test -s conftest$ac_exeext &&
|
---|
| 6891 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6892 | eval "$as_ac_var=yes"
|
---|
| 6893 | else
|
---|
| 6894 | echo "$as_me: failed program was:" >&5
|
---|
| 6895 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6896 |
|
---|
[21487] | 6897 | eval "$as_ac_var=no"
|
---|
[16610] | 6898 | fi
|
---|
[21487] | 6899 |
|
---|
| 6900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 6901 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6902 | fi
|
---|
[21487] | 6903 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 6904 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 6905 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 6906 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6907 | cat >>confdefs.h <<_ACEOF
|
---|
| 6908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6909 | _ACEOF
|
---|
| 6910 |
|
---|
| 6911 | else
|
---|
[21487] | 6912 | case " $LIBOBJS " in
|
---|
[16610] | 6913 | *" $ac_func.$ac_objext "* ) ;;
|
---|
[21487] | 6914 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
| 6915 | ;;
|
---|
[16610] | 6916 | esac
|
---|
| 6917 |
|
---|
| 6918 | fi
|
---|
| 6919 | done
|
---|
| 6920 |
|
---|
| 6921 |
|
---|
| 6922 |
|
---|
[21487] | 6923 | { echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6924 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6; }
|
---|
[16610] | 6925 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6927 | else
|
---|
| 6928 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6929 | /* confdefs.h. */
|
---|
| 6930 | _ACEOF
|
---|
| 6931 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6932 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6933 | /* end confdefs.h. */
|
---|
| 6934 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6936 | #define textdomain innocuous_textdomain
|
---|
| 6937 |
|
---|
| 6938 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6939 | which can conflict with char textdomain (); below.
|
---|
| 6940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6941 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6942 |
|
---|
| 6943 | #ifdef __STDC__
|
---|
| 6944 | # include <limits.h>
|
---|
| 6945 | #else
|
---|
| 6946 | # include <assert.h>
|
---|
| 6947 | #endif
|
---|
| 6948 |
|
---|
| 6949 | #undef textdomain
|
---|
| 6950 |
|
---|
[21487] | 6951 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 6952 | Use char because int might match the return type of a GCC
|
---|
| 6953 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 6954 | #ifdef __cplusplus
|
---|
| 6955 | extern "C"
|
---|
| 6956 | #endif
|
---|
| 6957 | char textdomain ();
|
---|
| 6958 | /* The GNU C library defines this for functions which it implements
|
---|
| 6959 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6960 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 6961 | #if defined __stub_textdomain || defined __stub___textdomain
|
---|
[16610] | 6962 | choke me
|
---|
| 6963 | #endif
|
---|
| 6964 |
|
---|
| 6965 | int
|
---|
| 6966 | main ()
|
---|
| 6967 | {
|
---|
[21487] | 6968 | return textdomain ();
|
---|
[16610] | 6969 | ;
|
---|
| 6970 | return 0;
|
---|
| 6971 | }
|
---|
| 6972 | _ACEOF
|
---|
| 6973 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 6974 | if { (ac_try="$ac_link"
|
---|
| 6975 | case "(($ac_try" in
|
---|
| 6976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 6977 | *) ac_try_echo=$ac_try;;
|
---|
| 6978 | esac
|
---|
| 6979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 6980 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 6981 | ac_status=$?
|
---|
| 6982 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6983 | rm -f conftest.er1
|
---|
| 6984 | cat conftest.err >&5
|
---|
| 6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 6986 | (exit $ac_status); } && {
|
---|
| 6987 | test -z "$ac_c_werror_flag" ||
|
---|
| 6988 | test ! -s conftest.err
|
---|
| 6989 | } && test -s conftest$ac_exeext &&
|
---|
| 6990 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 6991 | ac_cv_func_textdomain=yes
|
---|
| 6992 | else
|
---|
| 6993 | echo "$as_me: failed program was:" >&5
|
---|
| 6994 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6995 |
|
---|
[21487] | 6996 | ac_cv_func_textdomain=no
|
---|
[16610] | 6997 | fi
|
---|
[21487] | 6998 |
|
---|
| 6999 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 7000 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7001 | fi
|
---|
[21487] | 7002 | { echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 7003 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6; }
|
---|
[16610] | 7004 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 7005 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7006 | #define ENABLE_NLS 1
|
---|
| 7007 | _ACEOF
|
---|
| 7008 |
|
---|
| 7009 | fi
|
---|
| 7010 |
|
---|
| 7011 |
|
---|
| 7012 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 7013 | # ---------------------------------------------------------------------------
|
---|
[21487] | 7014 | { echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 7015 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6; }
|
---|
[16610] | 7016 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[21487] | 7017 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7018 | echo "${ECHO_T}yes" >&6; }
|
---|
| 7019 | case " $LIBOBJS " in
|
---|
[16610] | 7020 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[21487] | 7021 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 7022 | ;;
|
---|
[16610] | 7023 | esac
|
---|
| 7024 |
|
---|
| 7025 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7026 | #define HAVE_VALLOC 1
|
---|
| 7027 | _ACEOF
|
---|
| 7028 |
|
---|
| 7029 | else
|
---|
[21487] | 7030 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7031 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 7032 |
|
---|
| 7033 | for ac_func in valloc
|
---|
| 7034 | do
|
---|
| 7035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21487] | 7036 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 7037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
| 7038 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
[16610] | 7039 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7040 | else
|
---|
| 7041 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7042 | /* confdefs.h. */
|
---|
| 7043 | _ACEOF
|
---|
| 7044 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7045 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7046 | /* end confdefs.h. */
|
---|
| 7047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 7048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7049 | #define $ac_func innocuous_$ac_func
|
---|
| 7050 |
|
---|
| 7051 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7052 | which can conflict with char $ac_func (); below.
|
---|
| 7053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7054 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7055 |
|
---|
| 7056 | #ifdef __STDC__
|
---|
| 7057 | # include <limits.h>
|
---|
| 7058 | #else
|
---|
| 7059 | # include <assert.h>
|
---|
| 7060 | #endif
|
---|
| 7061 |
|
---|
| 7062 | #undef $ac_func
|
---|
| 7063 |
|
---|
[21487] | 7064 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 7065 | Use char because int might match the return type of a GCC
|
---|
| 7066 | builtin and then its argument prototype would still apply. */
|
---|
[16610] | 7067 | #ifdef __cplusplus
|
---|
| 7068 | extern "C"
|
---|
| 7069 | #endif
|
---|
| 7070 | char $ac_func ();
|
---|
| 7071 | /* The GNU C library defines this for functions which it implements
|
---|
| 7072 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7073 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 7074 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
[16610] | 7075 | choke me
|
---|
| 7076 | #endif
|
---|
| 7077 |
|
---|
| 7078 | int
|
---|
| 7079 | main ()
|
---|
| 7080 | {
|
---|
[21487] | 7081 | return $ac_func ();
|
---|
[16610] | 7082 | ;
|
---|
| 7083 | return 0;
|
---|
| 7084 | }
|
---|
| 7085 | _ACEOF
|
---|
| 7086 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 7087 | if { (ac_try="$ac_link"
|
---|
| 7088 | case "(($ac_try" in
|
---|
| 7089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7090 | *) ac_try_echo=$ac_try;;
|
---|
| 7091 | esac
|
---|
| 7092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7093 | (eval "$ac_link") 2>conftest.er1
|
---|
[16610] | 7094 | ac_status=$?
|
---|
| 7095 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7096 | rm -f conftest.er1
|
---|
| 7097 | cat conftest.err >&5
|
---|
| 7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7099 | (exit $ac_status); } && {
|
---|
| 7100 | test -z "$ac_c_werror_flag" ||
|
---|
| 7101 | test ! -s conftest.err
|
---|
| 7102 | } && test -s conftest$ac_exeext &&
|
---|
| 7103 | $as_test_x conftest$ac_exeext; then
|
---|
[16610] | 7104 | eval "$as_ac_var=yes"
|
---|
| 7105 | else
|
---|
| 7106 | echo "$as_me: failed program was:" >&5
|
---|
| 7107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7108 |
|
---|
[21487] | 7109 | eval "$as_ac_var=no"
|
---|
[16610] | 7110 | fi
|
---|
[21487] | 7111 |
|
---|
| 7112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16610] | 7113 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7114 | fi
|
---|
[21487] | 7115 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
| 7116 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
| 7117 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
[16610] | 7118 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 7119 | cat >>confdefs.h <<_ACEOF
|
---|
| 7120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 7121 | _ACEOF
|
---|
| 7122 |
|
---|
| 7123 | fi
|
---|
| 7124 | done
|
---|
| 7125 |
|
---|
| 7126 | fi
|
---|
| 7127 |
|
---|
| 7128 | # we cannot generate static libraries under Darwin
|
---|
[21487] | 7129 | { echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 7130 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6; }
|
---|
[16610] | 7131 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[21487] | 7132 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7133 | echo "${ECHO_T}yes" >&6; }
|
---|
[16610] | 7134 | STATIC=""
|
---|
| 7135 | else
|
---|
[21487] | 7136 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7137 | echo "${ECHO_T}no" >&6; }
|
---|
[16610] | 7138 | STATIC="-static "
|
---|
| 7139 | fi
|
---|
| 7140 |
|
---|
| 7141 |
|
---|
[21487] | 7142 | { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 7143 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
|
---|
[16610] | 7144 |
|
---|
[21487] | 7145 | # Check whether --with-dmalloc was given.
|
---|
[16612] | 7146 | if test "${with_dmalloc+set}" = set; then
|
---|
[21487] | 7147 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
| 7148 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7149 | echo "${ECHO_T}yes" >&6; }
|
---|
[16612] | 7150 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7151 | #define WITH_DMALLOC 1
|
---|
| 7152 | _ACEOF
|
---|
| 7153 |
|
---|
| 7154 | LIBS="$LIBS -ldmalloc"
|
---|
| 7155 | LDFLAGS="$LDFLAGS -g"
|
---|
| 7156 | else
|
---|
[21487] | 7157 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7158 | echo "${ECHO_T}no" >&6; }
|
---|
[16612] | 7159 | fi
|
---|
| 7160 | else
|
---|
[21487] | 7161 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7162 | echo "${ECHO_T}no" >&6; }
|
---|
| 7163 | fi
|
---|
[16612] | 7164 |
|
---|
| 7165 |
|
---|
[21487] | 7166 | { echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 7167 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6; }
|
---|
| 7168 |
|
---|
| 7169 | # Check whether --with-regex was given.
|
---|
[16612] | 7170 | if test "${with_regex+set}" = set; then
|
---|
[21487] | 7171 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[16612] | 7172 | ac_with_regex=1
|
---|
[21487] | 7173 | { echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 7174 | echo "${ECHO_T}regex" >&6; }
|
---|
[16612] | 7175 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7176 | #define WITH_REGEX 1
|
---|
| 7177 | _ACEOF
|
---|
| 7178 |
|
---|
[21487] | 7179 | case " $LIBOBJS " in
|
---|
[16612] | 7180 | *" regex.$ac_objext "* ) ;;
|
---|
[21487] | 7181 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 7182 | ;;
|
---|
[16612] | 7183 | esac
|
---|
| 7184 |
|
---|
| 7185 | fi
|
---|
[21487] | 7186 | fi
|
---|
| 7187 |
|
---|
[16612] | 7188 | if test -z "$ac_with_regex"; then
|
---|
[21487] | 7189 | { echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 7190 | echo "${ECHO_T}rx" >&6; }
|
---|
| 7191 | { echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 7192 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6; }
|
---|
[16612] | 7193 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 7194 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7195 | else
|
---|
| 7196 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7197 | /* confdefs.h. */
|
---|
| 7198 | _ACEOF
|
---|
| 7199 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7200 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7201 | /* end confdefs.h. */
|
---|
| 7202 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 7203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7204 | #define re_rx_search innocuous_re_rx_search
|
---|
| 7205 |
|
---|
| 7206 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7207 | which can conflict with char re_rx_search (); below.
|
---|
| 7208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7209 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7210 |
|
---|
| 7211 | #ifdef __STDC__
|
---|
| 7212 | # include <limits.h>
|
---|
| 7213 | #else
|
---|
| 7214 | # include <assert.h>
|
---|
| 7215 | #endif
|
---|
| 7216 |
|
---|
| 7217 | #undef re_rx_search
|
---|
| 7218 |
|
---|
[21487] | 7219 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 7220 | Use char because int might match the return type of a GCC
|
---|
| 7221 | builtin and then its argument prototype would still apply. */
|
---|
[16612] | 7222 | #ifdef __cplusplus
|
---|
| 7223 | extern "C"
|
---|
| 7224 | #endif
|
---|
| 7225 | char re_rx_search ();
|
---|
| 7226 | /* The GNU C library defines this for functions which it implements
|
---|
| 7227 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7228 | something starting with __ and the normal name is an alias. */
|
---|
[21487] | 7229 | #if defined __stub_re_rx_search || defined __stub___re_rx_search
|
---|
[16612] | 7230 | choke me
|
---|
| 7231 | #endif
|
---|
| 7232 |
|
---|
| 7233 | int
|
---|
| 7234 | main ()
|
---|
| 7235 | {
|
---|
[21487] | 7236 | return re_rx_search ();
|
---|
[16612] | 7237 | ;
|
---|
| 7238 | return 0;
|
---|
| 7239 | }
|
---|
| 7240 | _ACEOF
|
---|
| 7241 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21487] | 7242 | if { (ac_try="$ac_link"
|
---|
| 7243 | case "(($ac_try" in
|
---|
| 7244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7245 | *) ac_try_echo=$ac_try;;
|
---|
| 7246 | esac
|
---|
| 7247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7248 | (eval "$ac_link") 2>conftest.er1
|
---|
[16612] | 7249 | ac_status=$?
|
---|
| 7250 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7251 | rm -f conftest.er1
|
---|
| 7252 | cat conftest.err >&5
|
---|
| 7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7254 | (exit $ac_status); } && {
|
---|
| 7255 | test -z "$ac_c_werror_flag" ||
|
---|
| 7256 | test ! -s conftest.err
|
---|
| 7257 | } && test -s conftest$ac_exeext &&
|
---|
| 7258 | $as_test_x conftest$ac_exeext; then
|
---|
[16612] | 7259 | ac_cv_func_re_rx_search=yes
|
---|
| 7260 | else
|
---|
| 7261 | echo "$as_me: failed program was:" >&5
|
---|
| 7262 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7263 |
|
---|
[21487] | 7264 | ac_cv_func_re_rx_search=no
|
---|
[16612] | 7265 | fi
|
---|
[21487] | 7266 |
|
---|
| 7267 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
[16612] | 7268 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7269 | fi
|
---|
[21487] | 7270 | { echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 7271 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6; }
|
---|
[16612] | 7272 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 7273 | :
|
---|
| 7274 | else
|
---|
[21487] | 7275 | case " $LIBOBJS " in
|
---|
[16612] | 7276 | *" rx.$ac_objext "* ) ;;
|
---|
[21487] | 7277 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 7278 | ;;
|
---|
[16612] | 7279 | esac
|
---|
| 7280 |
|
---|
| 7281 | fi
|
---|
| 7282 |
|
---|
| 7283 | fi
|
---|
| 7284 |
|
---|
| 7285 |
|
---|
[16610] | 7286 | # ---------------------------------------------------------------------------
|
---|
| 7287 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[21487] | 7288 | case " $LIBOBJS " in
|
---|
[16610] | 7289 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[21487] | 7290 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 7291 | ;;
|
---|
[16610] | 7292 | esac
|
---|
| 7293 |
|
---|
[21487] | 7294 | case " $LIBOBJS " in
|
---|
[16610] | 7295 | *" error.$ac_objext "* ) ;;
|
---|
[21487] | 7296 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 7297 | ;;
|
---|
[16610] | 7298 | esac
|
---|
| 7299 |
|
---|
| 7300 | fi
|
---|
| 7301 |
|
---|
| 7302 |
|
---|
| 7303 | # ---------------------------------------------------------------------------
|
---|
| 7304 |
|
---|
[21487] | 7305 | ac_ext=cpp
|
---|
[16610] | 7306 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 7307 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 7308 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 7309 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 7310 |
|
---|
| 7311 |
|
---|
| 7312 | success=no
|
---|
[21487] | 7313 | { echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 7314 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6; }
|
---|
[16610] | 7315 |
|
---|
[21445] | 7316 |
|
---|
[16610] | 7317 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7318 | /* confdefs.h. */
|
---|
| 7319 | _ACEOF
|
---|
| 7320 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7321 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7322 | /* end confdefs.h. */
|
---|
| 7323 | #include <vector>
|
---|
| 7324 |
|
---|
| 7325 | int
|
---|
| 7326 | main ()
|
---|
| 7327 | {
|
---|
| 7328 |
|
---|
| 7329 | ;
|
---|
| 7330 | return 0;
|
---|
| 7331 | }
|
---|
| 7332 | _ACEOF
|
---|
| 7333 | rm -f conftest.$ac_objext
|
---|
[21487] | 7334 | if { (ac_try="$ac_compile"
|
---|
| 7335 | case "(($ac_try" in
|
---|
| 7336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7337 | *) ac_try_echo=$ac_try;;
|
---|
| 7338 | esac
|
---|
| 7339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7340 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 7341 | ac_status=$?
|
---|
| 7342 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7343 | rm -f conftest.er1
|
---|
| 7344 | cat conftest.err >&5
|
---|
| 7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7346 | (exit $ac_status); } && {
|
---|
| 7347 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7348 | test ! -s conftest.err
|
---|
| 7349 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 7350 | success=yes
|
---|
| 7351 | else
|
---|
| 7352 | echo "$as_me: failed program was:" >&5
|
---|
| 7353 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7354 |
|
---|
[21487] | 7355 |
|
---|
[16610] | 7356 | fi
|
---|
| 7357 |
|
---|
[21487] | 7358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7359 |
|
---|
[16610] | 7360 | if test $success = "no"; then
|
---|
| 7361 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7362 | /* confdefs.h. */
|
---|
| 7363 | _ACEOF
|
---|
| 7364 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7365 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7366 | /* end confdefs.h. */
|
---|
| 7367 | #include <vector.h>
|
---|
| 7368 |
|
---|
| 7369 | int
|
---|
| 7370 | main ()
|
---|
| 7371 | {
|
---|
| 7372 |
|
---|
| 7373 | ;
|
---|
| 7374 | return 0;
|
---|
| 7375 | }
|
---|
| 7376 | _ACEOF
|
---|
| 7377 | rm -f conftest.$ac_objext
|
---|
[21487] | 7378 | if { (ac_try="$ac_compile"
|
---|
| 7379 | case "(($ac_try" in
|
---|
| 7380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7381 | *) ac_try_echo=$ac_try;;
|
---|
| 7382 | esac
|
---|
| 7383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7384 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 7385 | ac_status=$?
|
---|
| 7386 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7387 | rm -f conftest.er1
|
---|
| 7388 | cat conftest.err >&5
|
---|
| 7389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7390 | (exit $ac_status); } && {
|
---|
| 7391 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7392 | test ! -s conftest.err
|
---|
| 7393 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 7394 | success="yes"
|
---|
| 7395 | else
|
---|
| 7396 | echo "$as_me: failed program was:" >&5
|
---|
| 7397 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7398 |
|
---|
[21487] | 7399 |
|
---|
[16610] | 7400 | fi
|
---|
[21487] | 7401 |
|
---|
| 7402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 7403 | fi
|
---|
| 7404 |
|
---|
| 7405 | if test $success = "no"; then
|
---|
| 7406 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7407 | /* confdefs.h. */
|
---|
| 7408 | _ACEOF
|
---|
| 7409 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7410 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7411 | /* end confdefs.h. */
|
---|
| 7412 | #include <ospace\\std\\vector>
|
---|
| 7413 |
|
---|
| 7414 | int
|
---|
| 7415 | main ()
|
---|
| 7416 | {
|
---|
| 7417 |
|
---|
| 7418 | ;
|
---|
| 7419 | return 0;
|
---|
| 7420 | }
|
---|
| 7421 | _ACEOF
|
---|
| 7422 | rm -f conftest.$ac_objext
|
---|
[21487] | 7423 | if { (ac_try="$ac_compile"
|
---|
| 7424 | case "(($ac_try" in
|
---|
| 7425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7426 | *) ac_try_echo=$ac_try;;
|
---|
| 7427 | esac
|
---|
| 7428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7429 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 7430 | ac_status=$?
|
---|
| 7431 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7432 | rm -f conftest.er1
|
---|
| 7433 | cat conftest.err >&5
|
---|
| 7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7435 | (exit $ac_status); } && {
|
---|
| 7436 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7437 | test ! -s conftest.err
|
---|
| 7438 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 7439 | success="yes"
|
---|
| 7440 | else
|
---|
| 7441 | echo "$as_me: failed program was:" >&5
|
---|
| 7442 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7443 |
|
---|
[21487] | 7444 |
|
---|
[16610] | 7445 | fi
|
---|
[21487] | 7446 |
|
---|
| 7447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 7448 | fi
|
---|
| 7449 |
|
---|
| 7450 | if test $success = yes; then
|
---|
[21487] | 7451 | { echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7452 | echo "${ECHO_T}\"no\"" >&6; }
|
---|
[16610] | 7453 | else
|
---|
[21487] | 7454 | { echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7455 | echo "${ECHO_T}\"yes\"" >&6; }
|
---|
[16610] | 7456 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7457 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7458 | { (exit 1); exit 1; }; }
|
---|
| 7459 | fi
|
---|
| 7460 |
|
---|
| 7461 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 7462 | # check for running bash under cygwin
|
---|
| 7463 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7464 | then
|
---|
| 7465 | gsdlos=windows
|
---|
| 7466 | fi
|
---|
| 7467 |
|
---|
| 7468 |
|
---|
| 7469 | # check for endianness
|
---|
[21487] | 7470 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7471 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
---|
[16610] | 7472 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7473 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7474 | else
|
---|
| 7475 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7476 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7477 | /* confdefs.h. */
|
---|
| 7478 | _ACEOF
|
---|
| 7479 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7480 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7481 | /* end confdefs.h. */
|
---|
| 7482 | #include <sys/types.h>
|
---|
| 7483 | #include <sys/param.h>
|
---|
| 7484 |
|
---|
| 7485 | int
|
---|
| 7486 | main ()
|
---|
| 7487 | {
|
---|
[21487] | 7488 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
---|
| 7489 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
---|
[16610] | 7490 | bogus endian macros
|
---|
| 7491 | #endif
|
---|
| 7492 |
|
---|
| 7493 | ;
|
---|
| 7494 | return 0;
|
---|
| 7495 | }
|
---|
| 7496 | _ACEOF
|
---|
| 7497 | rm -f conftest.$ac_objext
|
---|
[21487] | 7498 | if { (ac_try="$ac_compile"
|
---|
| 7499 | case "(($ac_try" in
|
---|
| 7500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7501 | *) ac_try_echo=$ac_try;;
|
---|
| 7502 | esac
|
---|
| 7503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7504 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 7505 | ac_status=$?
|
---|
| 7506 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7507 | rm -f conftest.er1
|
---|
| 7508 | cat conftest.err >&5
|
---|
| 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7510 | (exit $ac_status); } && {
|
---|
| 7511 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7512 | test ! -s conftest.err
|
---|
| 7513 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 7514 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7515 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7516 | /* confdefs.h. */
|
---|
| 7517 | _ACEOF
|
---|
| 7518 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7519 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7520 | /* end confdefs.h. */
|
---|
| 7521 | #include <sys/types.h>
|
---|
| 7522 | #include <sys/param.h>
|
---|
| 7523 |
|
---|
| 7524 | int
|
---|
| 7525 | main ()
|
---|
| 7526 | {
|
---|
| 7527 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7528 | not big endian
|
---|
| 7529 | #endif
|
---|
| 7530 |
|
---|
| 7531 | ;
|
---|
| 7532 | return 0;
|
---|
| 7533 | }
|
---|
| 7534 | _ACEOF
|
---|
| 7535 | rm -f conftest.$ac_objext
|
---|
[21487] | 7536 | if { (ac_try="$ac_compile"
|
---|
| 7537 | case "(($ac_try" in
|
---|
| 7538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7539 | *) ac_try_echo=$ac_try;;
|
---|
| 7540 | esac
|
---|
| 7541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7542 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 7543 | ac_status=$?
|
---|
| 7544 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7545 | rm -f conftest.er1
|
---|
| 7546 | cat conftest.err >&5
|
---|
| 7547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7548 | (exit $ac_status); } && {
|
---|
| 7549 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7550 | test ! -s conftest.err
|
---|
| 7551 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 7552 | ac_cv_c_bigendian=yes
|
---|
| 7553 | else
|
---|
| 7554 | echo "$as_me: failed program was:" >&5
|
---|
| 7555 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7556 |
|
---|
[21487] | 7557 | ac_cv_c_bigendian=no
|
---|
[16610] | 7558 | fi
|
---|
[21487] | 7559 |
|
---|
| 7560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 7561 | else
|
---|
| 7562 | echo "$as_me: failed program was:" >&5
|
---|
| 7563 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7564 |
|
---|
[21487] | 7565 | # It does not; compile a test program.
|
---|
[16610] | 7566 | if test "$cross_compiling" = yes; then
|
---|
| 7567 | # try to guess the endianness by grepping values into an object file
|
---|
| 7568 | ac_cv_c_bigendian=unknown
|
---|
| 7569 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7570 | /* confdefs.h. */
|
---|
| 7571 | _ACEOF
|
---|
| 7572 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7573 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7574 | /* end confdefs.h. */
|
---|
[21487] | 7575 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7576 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
[16610] | 7577 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
[21487] | 7578 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7579 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
[16610] | 7580 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7581 | int
|
---|
| 7582 | main ()
|
---|
| 7583 | {
|
---|
| 7584 | _ascii (); _ebcdic ();
|
---|
| 7585 | ;
|
---|
| 7586 | return 0;
|
---|
| 7587 | }
|
---|
| 7588 | _ACEOF
|
---|
| 7589 | rm -f conftest.$ac_objext
|
---|
[21487] | 7590 | if { (ac_try="$ac_compile"
|
---|
| 7591 | case "(($ac_try" in
|
---|
| 7592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7593 | *) ac_try_echo=$ac_try;;
|
---|
| 7594 | esac
|
---|
| 7595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7596 | (eval "$ac_compile") 2>conftest.er1
|
---|
[16610] | 7597 | ac_status=$?
|
---|
| 7598 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7599 | rm -f conftest.er1
|
---|
| 7600 | cat conftest.err >&5
|
---|
| 7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21487] | 7602 | (exit $ac_status); } && {
|
---|
| 7603 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 7604 | test ! -s conftest.err
|
---|
| 7605 | } && test -s conftest.$ac_objext; then
|
---|
[16610] | 7606 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7607 | ac_cv_c_bigendian=yes
|
---|
| 7608 | fi
|
---|
| 7609 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7610 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7611 | ac_cv_c_bigendian=no
|
---|
| 7612 | else
|
---|
| 7613 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7614 | ac_cv_c_bigendian=unknown
|
---|
| 7615 | fi
|
---|
| 7616 | fi
|
---|
| 7617 | else
|
---|
| 7618 | echo "$as_me: failed program was:" >&5
|
---|
| 7619 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7620 |
|
---|
[21487] | 7621 |
|
---|
[16610] | 7622 | fi
|
---|
[21487] | 7623 |
|
---|
| 7624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 7625 | else
|
---|
| 7626 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7627 | /* confdefs.h. */
|
---|
| 7628 | _ACEOF
|
---|
| 7629 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7630 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7631 | /* end confdefs.h. */
|
---|
[21487] | 7632 | $ac_includes_default
|
---|
[16610] | 7633 | int
|
---|
| 7634 | main ()
|
---|
| 7635 | {
|
---|
[21487] | 7636 |
|
---|
[16610] | 7637 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7638 | union
|
---|
| 7639 | {
|
---|
[21487] | 7640 | long int l;
|
---|
| 7641 | char c[sizeof (long int)];
|
---|
[16610] | 7642 | } u;
|
---|
| 7643 | u.l = 1;
|
---|
[21487] | 7644 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 7645 |
|
---|
| 7646 | ;
|
---|
| 7647 | return 0;
|
---|
[16610] | 7648 | }
|
---|
| 7649 | _ACEOF
|
---|
| 7650 | rm -f conftest$ac_exeext
|
---|
[21487] | 7651 | if { (ac_try="$ac_link"
|
---|
| 7652 | case "(($ac_try" in
|
---|
| 7653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7654 | *) ac_try_echo=$ac_try;;
|
---|
| 7655 | esac
|
---|
| 7656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7657 | (eval "$ac_link") 2>&5
|
---|
[16610] | 7658 | ac_status=$?
|
---|
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21487] | 7661 | { (case "(($ac_try" in
|
---|
| 7662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 7663 | *) ac_try_echo=$ac_try;;
|
---|
| 7664 | esac
|
---|
| 7665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
| 7666 | (eval "$ac_try") 2>&5
|
---|
[16610] | 7667 | ac_status=$?
|
---|
| 7668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7669 | (exit $ac_status); }; }; then
|
---|
| 7670 | ac_cv_c_bigendian=no
|
---|
| 7671 | else
|
---|
| 7672 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7673 | echo "$as_me: failed program was:" >&5
|
---|
| 7674 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7675 |
|
---|
| 7676 | ( exit $ac_status )
|
---|
| 7677 | ac_cv_c_bigendian=yes
|
---|
| 7678 | fi
|
---|
[21487] | 7679 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 7680 | fi
|
---|
[21487] | 7681 |
|
---|
| 7682 |
|
---|
[16610] | 7683 | fi
|
---|
[21487] | 7684 |
|
---|
| 7685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16610] | 7686 | fi
|
---|
[21487] | 7687 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7688 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
---|
[16610] | 7689 | case $ac_cv_c_bigendian in
|
---|
| 7690 | yes)
|
---|
| 7691 |
|
---|
| 7692 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7693 | #define WORDS_BIGENDIAN 1
|
---|
| 7694 | _ACEOF
|
---|
| 7695 | ;;
|
---|
| 7696 | no)
|
---|
| 7697 | ;;
|
---|
| 7698 | *)
|
---|
| 7699 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7700 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7701 | echo "$as_me: error: unknown endianness
|
---|
| 7702 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7703 | { (exit 1); exit 1; }; } ;;
|
---|
| 7704 | esac
|
---|
| 7705 |
|
---|
| 7706 | # ---------------------------------------------------------------------------
|
---|
| 7707 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[21487] | 7708 | case " $LIBOBJS " in
|
---|
[16610] | 7709 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[21487] | 7710 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
| 7711 | ;;
|
---|
[16610] | 7712 | esac
|
---|
| 7713 |
|
---|
[21487] | 7714 | case " $LIBOBJS " in
|
---|
[16610] | 7715 | *" error.$ac_objext "* ) ;;
|
---|
[21487] | 7716 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 7717 | ;;
|
---|
[16610] | 7718 | esac
|
---|
| 7719 |
|
---|
| 7720 | fi
|
---|
| 7721 |
|
---|
| 7722 | # ---------------------------------------------------------------------------
|
---|
| 7723 |
|
---|
| 7724 | moduleDirs=""
|
---|
| 7725 | MODULEDIRS=""
|
---|
[21445] | 7726 | if test -d modules ; then
|
---|
[16610] | 7727 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7728 | if test -d "$x"; then
|
---|
| 7729 | d="$x/Makefile.in"
|
---|
| 7730 | if test -e "$d"; then
|
---|
| 7731 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7732 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7733 | fi
|
---|
| 7734 | fi
|
---|
| 7735 | done
|
---|
| 7736 | echo "Making $moduleDirs in modules directory"
|
---|
| 7737 |
|
---|
| 7738 | fi
|
---|
| 7739 |
|
---|
| 7740 |
|
---|
| 7741 | # ---------------------------------------------------------------------------
|
---|
| 7742 |
|
---|
| 7743 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 7744 | gsdlprefix=`pwd`
|
---|
| 7745 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos "
|
---|
| 7746 | subdirs="$subdirs common-src runtime-src"
|
---|
| 7747 |
|
---|
| 7748 |
|
---|
| 7749 | # the list of folders in the src folder
|
---|
| 7750 | srclist="common-src/Makefile \
|
---|
| 7751 | runtime-src/Makefile"
|
---|
| 7752 |
|
---|
[21487] | 7753 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
| 7754 |
|
---|
[16610] | 7755 | cat >confcache <<\_ACEOF
|
---|
| 7756 | # This file is a shell script that caches the results of configure
|
---|
| 7757 | # tests run on this system so they can be shared between configure
|
---|
| 7758 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7759 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7760 | # want to keep, you may remove or edit it.
|
---|
| 7761 | #
|
---|
| 7762 | # config.status only pays attention to the cache file if you give it
|
---|
| 7763 | # the --recheck option to rerun configure.
|
---|
| 7764 | #
|
---|
| 7765 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7766 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7767 | # following values.
|
---|
| 7768 |
|
---|
| 7769 | _ACEOF
|
---|
| 7770 |
|
---|
| 7771 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7772 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[21487] | 7773 | # So, we kill variables containing newlines.
|
---|
[16610] | 7774 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7775 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[21487] | 7776 | (
|
---|
| 7777 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 7778 | eval ac_val=\$$ac_var
|
---|
| 7779 | case $ac_val in #(
|
---|
| 7780 | *${as_nl}*)
|
---|
| 7781 | case $ac_var in #(
|
---|
| 7782 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
| 7783 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
| 7784 | esac
|
---|
| 7785 | case $ac_var in #(
|
---|
| 7786 | _ | IFS | as_nl) ;; #(
|
---|
| 7787 | *) $as_unset $ac_var ;;
|
---|
| 7788 | esac ;;
|
---|
| 7789 | esac
|
---|
| 7790 | done
|
---|
| 7791 |
|
---|
[16610] | 7792 | (set) 2>&1 |
|
---|
[21487] | 7793 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 7794 | *${as_nl}ac_space=\ *)
|
---|
[16610] | 7795 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7796 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7797 | sed -n \
|
---|
| 7798 | "s/'/'\\\\''/g;
|
---|
| 7799 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[21487] | 7800 | ;; #(
|
---|
[16610] | 7801 | *)
|
---|
| 7802 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[21487] | 7803 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[16610] | 7804 | ;;
|
---|
[21487] | 7805 | esac |
|
---|
| 7806 | sort
|
---|
| 7807 | ) |
|
---|
[16610] | 7808 | sed '
|
---|
[21487] | 7809 | /^ac_cv_env_/b end
|
---|
[16610] | 7810 | t clear
|
---|
[21487] | 7811 | :clear
|
---|
[16610] | 7812 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7813 | t end
|
---|
[21487] | 7814 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7815 | :end' >>confcache
|
---|
| 7816 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 7817 | if test -w "$cache_file"; then
|
---|
| 7818 | test "x$cache_file" != "x/dev/null" &&
|
---|
| 7819 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
| 7820 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[16610] | 7821 | cat confcache >$cache_file
|
---|
| 7822 | else
|
---|
[21487] | 7823 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
| 7824 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[16610] | 7825 | fi
|
---|
| 7826 | fi
|
---|
| 7827 | rm -f confcache
|
---|
| 7828 |
|
---|
| 7829 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7830 | # Let make expand exec_prefix.
|
---|
| 7831 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7832 |
|
---|
| 7833 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7834 |
|
---|
| 7835 | ac_libobjs=
|
---|
| 7836 | ac_ltlibobjs=
|
---|
| 7837 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7838 | # 1. Remove the extension, and $U if already installed.
|
---|
[21487] | 7839 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 7840 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
| 7841 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 7842 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 7843 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 7844 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[16610] | 7845 | done
|
---|
| 7846 | LIBOBJS=$ac_libobjs
|
---|
| 7847 |
|
---|
| 7848 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7849 |
|
---|
| 7850 |
|
---|
| 7851 |
|
---|
| 7852 | : ${CONFIG_STATUS=./config.status}
|
---|
| 7853 | ac_clean_files_save=$ac_clean_files
|
---|
| 7854 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7855 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7856 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7857 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7858 | #! $SHELL
|
---|
| 7859 | # Generated by $as_me.
|
---|
| 7860 | # Run this file to recreate the current configuration.
|
---|
| 7861 | # Compiler output produced by configure, useful for debugging
|
---|
| 7862 | # configure, is in config.log if it exists.
|
---|
| 7863 |
|
---|
| 7864 | debug=false
|
---|
| 7865 | ac_cs_recheck=false
|
---|
| 7866 | ac_cs_silent=false
|
---|
| 7867 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7868 | _ACEOF
|
---|
| 7869 |
|
---|
| 7870 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7871 | ## --------------------- ##
|
---|
| 7872 | ## M4sh Initialization. ##
|
---|
| 7873 | ## --------------------- ##
|
---|
| 7874 |
|
---|
[21487] | 7875 | # Be more Bourne compatible
|
---|
| 7876 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16610] | 7877 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7878 | emulate sh
|
---|
| 7879 | NULLCMD=:
|
---|
| 7880 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7881 | # is contrary to our usage. Disable this feature.
|
---|
| 7882 | alias -g '${1+"$@"}'='"$@"'
|
---|
[21487] | 7883 | setopt NO_GLOB_SUBST
|
---|
| 7884 | else
|
---|
| 7885 | case `(set -o) 2>/dev/null` in
|
---|
| 7886 | *posix*) set -o posix ;;
|
---|
| 7887 | esac
|
---|
| 7888 |
|
---|
[16610] | 7889 | fi
|
---|
| 7890 |
|
---|
[21487] | 7891 |
|
---|
| 7892 |
|
---|
| 7893 |
|
---|
| 7894 | # PATH needs CR
|
---|
| 7895 | # Avoid depending upon Character Ranges.
|
---|
| 7896 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7897 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7898 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7899 | as_cr_digits='0123456789'
|
---|
| 7900 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7901 |
|
---|
| 7902 | # The user is always right.
|
---|
| 7903 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7904 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7905 | echo "exit 0" >>conf$$.sh
|
---|
| 7906 | chmod +x conf$$.sh
|
---|
| 7907 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7908 | PATH_SEPARATOR=';'
|
---|
| 7909 | else
|
---|
| 7910 | PATH_SEPARATOR=:
|
---|
| 7911 | fi
|
---|
| 7912 | rm -f conf$$.sh
|
---|
| 7913 | fi
|
---|
| 7914 |
|
---|
[16610] | 7915 | # Support unset when possible.
|
---|
| 7916 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7917 | as_unset=unset
|
---|
| 7918 | else
|
---|
| 7919 | as_unset=false
|
---|
| 7920 | fi
|
---|
| 7921 |
|
---|
| 7922 |
|
---|
[21487] | 7923 | # IFS
|
---|
| 7924 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 7925 | # there to prevent editors from complaining about space-tab.
|
---|
| 7926 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 7927 | # splitting by setting IFS to empty value.)
|
---|
| 7928 | as_nl='
|
---|
| 7929 | '
|
---|
| 7930 | IFS=" "" $as_nl"
|
---|
| 7931 |
|
---|
| 7932 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 7933 | case $0 in
|
---|
| 7934 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7935 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7936 | for as_dir in $PATH
|
---|
| 7937 | do
|
---|
| 7938 | IFS=$as_save_IFS
|
---|
| 7939 | test -z "$as_dir" && as_dir=.
|
---|
| 7940 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7941 | done
|
---|
| 7942 | IFS=$as_save_IFS
|
---|
| 7943 |
|
---|
| 7944 | ;;
|
---|
| 7945 | esac
|
---|
| 7946 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7947 | # in which case we are not to be found in the path.
|
---|
| 7948 | if test "x$as_myself" = x; then
|
---|
| 7949 | as_myself=$0
|
---|
| 7950 | fi
|
---|
| 7951 | if test ! -f "$as_myself"; then
|
---|
| 7952 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 7953 | { (exit 1); exit 1; }
|
---|
| 7954 | fi
|
---|
| 7955 |
|
---|
[16610] | 7956 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[21487] | 7957 | for as_var in ENV MAIL MAILPATH
|
---|
| 7958 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
| 7959 | done
|
---|
[16610] | 7960 | PS1='$ '
|
---|
| 7961 | PS2='> '
|
---|
| 7962 | PS4='+ '
|
---|
| 7963 |
|
---|
| 7964 | # NLS nuisances.
|
---|
| 7965 | for as_var in \
|
---|
| 7966 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7967 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7968 | LC_TELEPHONE LC_TIME
|
---|
| 7969 | do
|
---|
| 7970 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7971 | eval $as_var=C; export $as_var
|
---|
| 7972 | else
|
---|
[21487] | 7973 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
[16610] | 7974 | fi
|
---|
| 7975 | done
|
---|
| 7976 |
|
---|
| 7977 | # Required to use basename.
|
---|
[21487] | 7978 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 7979 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[16610] | 7980 | as_expr=expr
|
---|
| 7981 | else
|
---|
| 7982 | as_expr=false
|
---|
| 7983 | fi
|
---|
| 7984 |
|
---|
[21487] | 7985 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[16610] | 7986 | as_basename=basename
|
---|
| 7987 | else
|
---|
| 7988 | as_basename=false
|
---|
| 7989 | fi
|
---|
| 7990 |
|
---|
| 7991 |
|
---|
| 7992 | # Name of the executable.
|
---|
[21487] | 7993 | as_me=`$as_basename -- "$0" ||
|
---|
[16610] | 7994 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7995 | X"$0" : 'X\(//\)$' \| \
|
---|
[21487] | 7996 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[16610] | 7997 | echo X/"$0" |
|
---|
[21487] | 7998 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 7999 | s//\1/
|
---|
| 8000 | q
|
---|
| 8001 | }
|
---|
| 8002 | /^X\/\(\/\/\)$/{
|
---|
| 8003 | s//\1/
|
---|
| 8004 | q
|
---|
| 8005 | }
|
---|
| 8006 | /^X\/\(\/\).*/{
|
---|
| 8007 | s//\1/
|
---|
| 8008 | q
|
---|
| 8009 | }
|
---|
| 8010 | s/.*/./; q'`
|
---|
[16610] | 8011 |
|
---|
[21487] | 8012 | # CDPATH.
|
---|
| 8013 | $as_unset CDPATH
|
---|
[16610] | 8014 |
|
---|
| 8015 |
|
---|
| 8016 |
|
---|
| 8017 | as_lineno_1=$LINENO
|
---|
| 8018 | as_lineno_2=$LINENO
|
---|
| 8019 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[21487] | 8020 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
[16610] | 8021 |
|
---|
| 8022 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 8023 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[21487] | 8024 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
| 8025 | # does the real work. The second script uses 'N' to pair each
|
---|
| 8026 | # line-number line with the line containing $LINENO, and appends
|
---|
| 8027 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
| 8028 | # case at line end.
|
---|
[16610] | 8029 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[21487] | 8030 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
| 8031 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 8032 | sed -n '
|
---|
| 8033 | p
|
---|
| 8034 | /[$]LINENO/=
|
---|
| 8035 | ' <$as_myself |
|
---|
[16610] | 8036 | sed '
|
---|
[21487] | 8037 | s/[$]LINENO.*/&-/
|
---|
| 8038 | t lineno
|
---|
| 8039 | b
|
---|
| 8040 | :lineno
|
---|
[16610] | 8041 | N
|
---|
[21487] | 8042 | :loop
|
---|
| 8043 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[16610] | 8044 | t loop
|
---|
[21487] | 8045 | s/-\n.*//
|
---|
[16610] | 8046 | ' >$as_me.lineno &&
|
---|
[21487] | 8047 | chmod +x "$as_me.lineno" ||
|
---|
| 8048 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
[16610] | 8049 | { (exit 1); exit 1; }; }
|
---|
| 8050 |
|
---|
| 8051 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 8052 | # (the dirname of $[0] is not the place where we might find the
|
---|
[21487] | 8053 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 8054 | . "./$as_me.lineno"
|
---|
[16610] | 8055 | # Exit status is that of the last command.
|
---|
| 8056 | exit
|
---|
| 8057 | }
|
---|
| 8058 |
|
---|
| 8059 |
|
---|
[21487] | 8060 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 8061 | as_dirname=dirname
|
---|
| 8062 | else
|
---|
| 8063 | as_dirname=false
|
---|
| 8064 | fi
|
---|
| 8065 |
|
---|
| 8066 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 8067 | case `echo -n x` in
|
---|
| 8068 | -n*)
|
---|
| 8069 | case `echo 'x\c'` in
|
---|
| 8070 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 8071 | *) ECHO_C='\c';;
|
---|
| 8072 | esac;;
|
---|
| 8073 | *)
|
---|
| 8074 | ECHO_N='-n';;
|
---|
[16610] | 8075 | esac
|
---|
| 8076 |
|
---|
[21487] | 8077 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 8078 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[16610] | 8079 | as_expr=expr
|
---|
| 8080 | else
|
---|
| 8081 | as_expr=false
|
---|
| 8082 | fi
|
---|
| 8083 |
|
---|
| 8084 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[21487] | 8085 | if test -d conf$$.dir; then
|
---|
| 8086 | rm -f conf$$.dir/conf$$.file
|
---|
| 8087 | else
|
---|
| 8088 | rm -f conf$$.dir
|
---|
| 8089 | mkdir conf$$.dir
|
---|
| 8090 | fi
|
---|
[16610] | 8091 | echo >conf$$.file
|
---|
| 8092 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
[21487] | 8093 | as_ln_s='ln -s'
|
---|
| 8094 | # ... but there are two gotchas:
|
---|
| 8095 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 8096 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 8097 | # In both cases, we have to default to `cp -p'.
|
---|
| 8098 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
[16610] | 8099 | as_ln_s='cp -p'
|
---|
| 8100 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8101 | as_ln_s=ln
|
---|
| 8102 | else
|
---|
| 8103 | as_ln_s='cp -p'
|
---|
| 8104 | fi
|
---|
[21487] | 8105 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 8106 | rmdir conf$$.dir 2>/dev/null
|
---|
[16610] | 8107 |
|
---|
| 8108 | if mkdir -p . 2>/dev/null; then
|
---|
| 8109 | as_mkdir_p=:
|
---|
| 8110 | else
|
---|
| 8111 | test -d ./-p && rmdir ./-p
|
---|
| 8112 | as_mkdir_p=false
|
---|
| 8113 | fi
|
---|
| 8114 |
|
---|
[21487] | 8115 | if test -x / >/dev/null 2>&1; then
|
---|
| 8116 | as_test_x='test -x'
|
---|
| 8117 | else
|
---|
| 8118 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 8119 | as_ls_L_option=L
|
---|
| 8120 | else
|
---|
| 8121 | as_ls_L_option=
|
---|
| 8122 | fi
|
---|
| 8123 | as_test_x='
|
---|
| 8124 | eval sh -c '\''
|
---|
| 8125 | if test -d "$1"; then
|
---|
| 8126 | test -d "$1/.";
|
---|
| 8127 | else
|
---|
| 8128 | case $1 in
|
---|
| 8129 | -*)set "./$1";;
|
---|
| 8130 | esac;
|
---|
| 8131 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
| 8132 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 8133 | '\'' sh
|
---|
| 8134 | '
|
---|
| 8135 | fi
|
---|
| 8136 | as_executable_p=$as_test_x
|
---|
[16610] | 8137 |
|
---|
| 8138 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 8139 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8140 |
|
---|
| 8141 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8142 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8143 |
|
---|
| 8144 |
|
---|
| 8145 | exec 6>&1
|
---|
| 8146 |
|
---|
[21487] | 8147 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
[16610] | 8148 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[21487] | 8149 | # values after options handling.
|
---|
| 8150 | ac_log="
|
---|
[16610] | 8151 | This file was extended by $as_me, which was
|
---|
[21487] | 8152 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
[16610] | 8153 |
|
---|
| 8154 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8155 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8156 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8157 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8158 | $ $0 $@
|
---|
| 8159 |
|
---|
[21487] | 8160 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 8161 | "
|
---|
| 8162 |
|
---|
[16610] | 8163 | _ACEOF
|
---|
| 8164 |
|
---|
[21487] | 8165 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[16610] | 8166 | # Files that config.status was made for.
|
---|
[21487] | 8167 | config_files="$ac_config_files"
|
---|
| 8168 | config_headers="$ac_config_headers"
|
---|
[16610] | 8169 |
|
---|
[21487] | 8170 | _ACEOF
|
---|
[16610] | 8171 |
|
---|
| 8172 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8173 | ac_cs_usage="\
|
---|
| 8174 | \`$as_me' instantiates files from templates according to the
|
---|
| 8175 | current configuration.
|
---|
| 8176 |
|
---|
| 8177 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 8178 |
|
---|
| 8179 | -h, --help print this help, then exit
|
---|
[21487] | 8180 | -V, --version print version number and configuration settings, then exit
|
---|
[16610] | 8181 | -q, --quiet do not print progress messages
|
---|
| 8182 | -d, --debug don't remove temporary files
|
---|
| 8183 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 8184 | --file=FILE[:TEMPLATE]
|
---|
| 8185 | instantiate the configuration file FILE
|
---|
| 8186 | --header=FILE[:TEMPLATE]
|
---|
| 8187 | instantiate the configuration header FILE
|
---|
| 8188 |
|
---|
| 8189 | Configuration files:
|
---|
| 8190 | $config_files
|
---|
| 8191 |
|
---|
| 8192 | Configuration headers:
|
---|
| 8193 | $config_headers
|
---|
| 8194 |
|
---|
| 8195 | Report bugs to <[email protected]>."
|
---|
[21487] | 8196 |
|
---|
[16610] | 8197 | _ACEOF
|
---|
| 8198 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8199 | ac_cs_version="\\
|
---|
| 8200 | config.status
|
---|
[21487] | 8201 | configured by $0, generated by GNU Autoconf 2.61,
|
---|
| 8202 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[16610] | 8203 |
|
---|
[21487] | 8204 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
[16610] | 8205 | This config.status script is free software; the Free Software Foundation
|
---|
| 8206 | gives unlimited permission to copy, distribute and modify it."
|
---|
[21487] | 8207 |
|
---|
| 8208 | ac_pwd='$ac_pwd'
|
---|
| 8209 | srcdir='$srcdir'
|
---|
| 8210 | INSTALL='$INSTALL'
|
---|
[16610] | 8211 | _ACEOF
|
---|
| 8212 |
|
---|
| 8213 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8214 | # If no file are specified by the user, then we need to provide default
|
---|
| 8215 | # value. By we need to know if files were specified by the user.
|
---|
| 8216 | ac_need_defaults=:
|
---|
| 8217 | while test $# != 0
|
---|
| 8218 | do
|
---|
| 8219 | case $1 in
|
---|
| 8220 | --*=*)
|
---|
[21487] | 8221 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 8222 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[16610] | 8223 | ac_shift=:
|
---|
| 8224 | ;;
|
---|
[21487] | 8225 | *)
|
---|
[16610] | 8226 | ac_option=$1
|
---|
| 8227 | ac_optarg=$2
|
---|
| 8228 | ac_shift=shift
|
---|
| 8229 | ;;
|
---|
| 8230 | esac
|
---|
| 8231 |
|
---|
| 8232 | case $ac_option in
|
---|
| 8233 | # Handling of the options.
|
---|
| 8234 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 8235 | ac_cs_recheck=: ;;
|
---|
[21487] | 8236 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 8237 | echo "$ac_cs_version"; exit ;;
|
---|
| 8238 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[16610] | 8239 | debug=: ;;
|
---|
| 8240 | --file | --fil | --fi | --f )
|
---|
| 8241 | $ac_shift
|
---|
| 8242 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 8243 | ac_need_defaults=false;;
|
---|
| 8244 | --header | --heade | --head | --hea )
|
---|
| 8245 | $ac_shift
|
---|
| 8246 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 8247 | ac_need_defaults=false;;
|
---|
[21487] | 8248 | --he | --h)
|
---|
| 8249 | # Conflict between --help and --header
|
---|
| 8250 | { echo "$as_me: error: ambiguous option: $1
|
---|
| 8251 | Try \`$0 --help' for more information." >&2
|
---|
| 8252 | { (exit 1); exit 1; }; };;
|
---|
| 8253 | --help | --hel | -h )
|
---|
| 8254 | echo "$ac_cs_usage"; exit ;;
|
---|
[16610] | 8255 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8256 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8257 | ac_cs_silent=: ;;
|
---|
| 8258 |
|
---|
| 8259 | # This is an error.
|
---|
[21487] | 8260 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
| 8261 | Try \`$0 --help' for more information." >&2
|
---|
[16610] | 8262 | { (exit 1); exit 1; }; } ;;
|
---|
| 8263 |
|
---|
[21487] | 8264 | *) ac_config_targets="$ac_config_targets $1"
|
---|
| 8265 | ac_need_defaults=false ;;
|
---|
[16610] | 8266 |
|
---|
| 8267 | esac
|
---|
| 8268 | shift
|
---|
| 8269 | done
|
---|
| 8270 |
|
---|
| 8271 | ac_configure_extra_args=
|
---|
| 8272 |
|
---|
| 8273 | if $ac_cs_silent; then
|
---|
| 8274 | exec 6>/dev/null
|
---|
| 8275 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8276 | fi
|
---|
| 8277 |
|
---|
| 8278 | _ACEOF
|
---|
| 8279 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8280 | if \$ac_cs_recheck; then
|
---|
[21487] | 8281 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8282 | CONFIG_SHELL=$SHELL
|
---|
| 8283 | export CONFIG_SHELL
|
---|
| 8284 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[16610] | 8285 | fi
|
---|
| 8286 |
|
---|
| 8287 | _ACEOF
|
---|
[21487] | 8288 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8289 | exec 5>>config.log
|
---|
| 8290 | {
|
---|
| 8291 | echo
|
---|
| 8292 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8293 | ## Running $as_me. ##
|
---|
| 8294 | _ASBOX
|
---|
| 8295 | echo "$ac_log"
|
---|
| 8296 | } >&5
|
---|
[16610] | 8297 |
|
---|
[21487] | 8298 | _ACEOF
|
---|
| 8299 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8300 | _ACEOF
|
---|
[16610] | 8301 |
|
---|
[21487] | 8302 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16610] | 8303 |
|
---|
[21487] | 8304 | # Handling of arguments.
|
---|
[16610] | 8305 | for ac_config_target in $ac_config_targets
|
---|
| 8306 | do
|
---|
[21487] | 8307 | case $ac_config_target in
|
---|
| 8308 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8309 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8310 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 8311 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 8312 |
|
---|
[16610] | 8313 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8314 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8315 | { (exit 1); exit 1; }; };;
|
---|
| 8316 | esac
|
---|
| 8317 | done
|
---|
| 8318 |
|
---|
[21487] | 8319 |
|
---|
[16610] | 8320 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8321 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8322 | # We use the long form for the default assignment because of an extremely
|
---|
| 8323 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8324 | if $ac_need_defaults; then
|
---|
| 8325 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8326 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8327 | fi
|
---|
| 8328 |
|
---|
| 8329 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[21487] | 8330 | # simply because there is no reason against having it here, and in addition,
|
---|
[16610] | 8331 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[21487] | 8332 | # Hook for its removal unless debugging.
|
---|
| 8333 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 8334 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[16610] | 8335 | $debug ||
|
---|
| 8336 | {
|
---|
[21487] | 8337 | tmp=
|
---|
| 8338 | trap 'exit_status=$?
|
---|
| 8339 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
| 8340 | ' 0
|
---|
[16610] | 8341 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 8342 | }
|
---|
| 8343 | # Create a (secure) tmp directory for tmp files.
|
---|
| 8344 |
|
---|
| 8345 | {
|
---|
[21487] | 8346 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[16610] | 8347 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8348 | } ||
|
---|
| 8349 | {
|
---|
[21487] | 8350 | tmp=./conf$$-$RANDOM
|
---|
| 8351 | (umask 077 && mkdir "$tmp")
|
---|
[16610] | 8352 | } ||
|
---|
| 8353 | {
|
---|
| 8354 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 8355 | { (exit 1); exit 1; }
|
---|
| 8356 | }
|
---|
| 8357 |
|
---|
| 8358 | #
|
---|
[21487] | 8359 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
[16610] | 8360 | #
|
---|
| 8361 |
|
---|
| 8362 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8363 | # This happens for instance when ./config.status config.h
|
---|
[21487] | 8364 | if test -n "$CONFIG_FILES"; then
|
---|
[16610] | 8365 |
|
---|
| 8366 | _ACEOF
|
---|
| 8367 |
|
---|
[21487] | 8368 |
|
---|
| 8369 |
|
---|
| 8370 | ac_delim='%!_!# '
|
---|
| 8371 | for ac_last_try in false false false false false :; do
|
---|
| 8372 | cat >conf$$subs.sed <<_ACEOF
|
---|
| 8373 | SHELL!$SHELL$ac_delim
|
---|
| 8374 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
| 8375 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
| 8376 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
| 8377 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
| 8378 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
| 8379 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
| 8380 | exec_prefix!$exec_prefix$ac_delim
|
---|
| 8381 | prefix!$prefix$ac_delim
|
---|
| 8382 | program_transform_name!$program_transform_name$ac_delim
|
---|
| 8383 | bindir!$bindir$ac_delim
|
---|
| 8384 | sbindir!$sbindir$ac_delim
|
---|
| 8385 | libexecdir!$libexecdir$ac_delim
|
---|
| 8386 | datarootdir!$datarootdir$ac_delim
|
---|
| 8387 | datadir!$datadir$ac_delim
|
---|
| 8388 | sysconfdir!$sysconfdir$ac_delim
|
---|
| 8389 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
| 8390 | localstatedir!$localstatedir$ac_delim
|
---|
| 8391 | includedir!$includedir$ac_delim
|
---|
| 8392 | oldincludedir!$oldincludedir$ac_delim
|
---|
| 8393 | docdir!$docdir$ac_delim
|
---|
| 8394 | infodir!$infodir$ac_delim
|
---|
| 8395 | htmldir!$htmldir$ac_delim
|
---|
| 8396 | dvidir!$dvidir$ac_delim
|
---|
| 8397 | pdfdir!$pdfdir$ac_delim
|
---|
| 8398 | psdir!$psdir$ac_delim
|
---|
| 8399 | libdir!$libdir$ac_delim
|
---|
| 8400 | localedir!$localedir$ac_delim
|
---|
| 8401 | mandir!$mandir$ac_delim
|
---|
| 8402 | DEFS!$DEFS$ac_delim
|
---|
| 8403 | ECHO_C!$ECHO_C$ac_delim
|
---|
| 8404 | ECHO_N!$ECHO_N$ac_delim
|
---|
| 8405 | ECHO_T!$ECHO_T$ac_delim
|
---|
| 8406 | LIBS!$LIBS$ac_delim
|
---|
| 8407 | build_alias!$build_alias$ac_delim
|
---|
| 8408 | host_alias!$host_alias$ac_delim
|
---|
| 8409 | target_alias!$target_alias$ac_delim
|
---|
| 8410 | PACKAGE!$PACKAGE$ac_delim
|
---|
| 8411 | VERSION!$VERSION$ac_delim
|
---|
| 8412 | USE_FASTCGI!$USE_FASTCGI$ac_delim
|
---|
| 8413 | USE_LANGACTION!$USE_LANGACTION$ac_delim
|
---|
| 8414 | USE_CORBA!$USE_CORBA$ac_delim
|
---|
| 8415 | MICO_DIR!$MICO_DIR$ac_delim
|
---|
| 8416 | USE_Z3950!$USE_Z3950$ac_delim
|
---|
| 8417 | USE_YAZ!$USE_YAZ$ac_delim
|
---|
| 8418 | ENABLE_ACCENTFOLD!$ENABLE_ACCENTFOLD$ac_delim
|
---|
| 8419 | ENABLE_JDBM!$ENABLE_JDBM$ac_delim
|
---|
| 8420 | USE_SQLITE!$USE_SQLITE$ac_delim
|
---|
| 8421 | ENABLE_JNI!$ENABLE_JNI$ac_delim
|
---|
| 8422 | ENABLE_MG!$ENABLE_MG$ac_delim
|
---|
| 8423 | ENABLE_MGPP!$ENABLE_MGPP$ac_delim
|
---|
| 8424 | ENABLE_LUCENE!$ENABLE_LUCENE$ac_delim
|
---|
| 8425 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
| 8426 | CFLAGS!$CFLAGS$ac_delim
|
---|
| 8427 | CC!$CC$ac_delim
|
---|
| 8428 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
| 8429 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
| 8430 | EXEEXT!$EXEEXT$ac_delim
|
---|
| 8431 | OBJEXT!$OBJEXT$ac_delim
|
---|
| 8432 | CXX!$CXX$ac_delim
|
---|
| 8433 | CXXFLAGS!$CXXFLAGS$ac_delim
|
---|
| 8434 | ac_ct_CXX!$ac_ct_CXX$ac_delim
|
---|
| 8435 | AWK!$AWK$ac_delim
|
---|
| 8436 | YACC!$YACC$ac_delim
|
---|
| 8437 | YFLAGS!$YFLAGS$ac_delim
|
---|
| 8438 | build!$build$ac_delim
|
---|
| 8439 | build_cpu!$build_cpu$ac_delim
|
---|
| 8440 | build_vendor!$build_vendor$ac_delim
|
---|
| 8441 | build_os!$build_os$ac_delim
|
---|
| 8442 | host!$host$ac_delim
|
---|
| 8443 | host_cpu!$host_cpu$ac_delim
|
---|
| 8444 | host_vendor!$host_vendor$ac_delim
|
---|
| 8445 | host_os!$host_os$ac_delim
|
---|
| 8446 | target!$target$ac_delim
|
---|
| 8447 | target_cpu!$target_cpu$ac_delim
|
---|
| 8448 | target_vendor!$target_vendor$ac_delim
|
---|
| 8449 | target_os!$target_os$ac_delim
|
---|
| 8450 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
| 8451 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
| 8452 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
| 8453 | LN_S!$LN_S$ac_delim
|
---|
| 8454 | SET_MAKE!$SET_MAKE$ac_delim
|
---|
| 8455 | RANLIB!$RANLIB$ac_delim
|
---|
| 8456 | COMPAT32BITFLAGS!$COMPAT32BITFLAGS$ac_delim
|
---|
| 8457 | MICO_VER!$MICO_VER$ac_delim
|
---|
| 8458 | CPP!$CPP$ac_delim
|
---|
| 8459 | GREP!$GREP$ac_delim
|
---|
| 8460 | EGREP!$EGREP$ac_delim
|
---|
| 8461 | U!$U$ac_delim
|
---|
| 8462 | ANSI2KNR!$ANSI2KNR$ac_delim
|
---|
| 8463 | ALLOCA!$ALLOCA$ac_delim
|
---|
| 8464 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
| 8465 | STATIC!$STATIC$ac_delim
|
---|
| 8466 | gsdlos!$gsdlos$ac_delim
|
---|
| 8467 | MODULEDIRS!$MODULEDIRS$ac_delim
|
---|
| 8468 | subdirs!$subdirs$ac_delim
|
---|
| 8469 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
| 8470 | _ACEOF
|
---|
| 8471 |
|
---|
| 8472 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
---|
| 8473 | break
|
---|
| 8474 | elif $ac_last_try; then
|
---|
| 8475 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
| 8476 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
| 8477 | { (exit 1); exit 1; }; }
|
---|
| 8478 | else
|
---|
| 8479 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[16610] | 8480 | fi
|
---|
[21487] | 8481 | done
|
---|
[16610] | 8482 |
|
---|
[21487] | 8483 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
| 8484 | if test -n "$ac_eof"; then
|
---|
| 8485 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
| 8486 | ac_eof=`expr $ac_eof + 1`
|
---|
| 8487 | fi
|
---|
| 8488 |
|
---|
| 8489 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8490 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
| 8491 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[16610] | 8492 | _ACEOF
|
---|
[21487] | 8493 | sed '
|
---|
| 8494 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
| 8495 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
| 8496 | :n
|
---|
| 8497 | t n
|
---|
| 8498 | s/'"$ac_delim"'$/,g/; t
|
---|
| 8499 | s/$/\\/; p
|
---|
| 8500 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
| 8501 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
| 8502 | rm -f conf$$subs.sed
|
---|
| 8503 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8504 | CEOF$ac_eof
|
---|
| 8505 | _ACEOF
|
---|
| 8506 |
|
---|
| 8507 |
|
---|
| 8508 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 8509 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 8510 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 8511 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 8512 | if test "x$srcdir" = x.; then
|
---|
| 8513 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 8514 | s/:*\$(srcdir):*/:/
|
---|
| 8515 | s/:*\${srcdir}:*/:/
|
---|
| 8516 | s/:*@srcdir@:*/:/
|
---|
| 8517 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
| 8518 | s/:*$//
|
---|
| 8519 | s/^[^=]*=[ ]*$//
|
---|
| 8520 | }'
|
---|
| 8521 | fi
|
---|
| 8522 |
|
---|
[16610] | 8523 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21487] | 8524 | fi # test -n "$CONFIG_FILES"
|
---|
| 8525 |
|
---|
| 8526 |
|
---|
| 8527 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
|
---|
| 8528 | do
|
---|
| 8529 | case $ac_tag in
|
---|
| 8530 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[16610] | 8531 | esac
|
---|
[21487] | 8532 | case $ac_mode$ac_tag in
|
---|
| 8533 | :[FHL]*:*);;
|
---|
| 8534 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
| 8535 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
| 8536 | { (exit 1); exit 1; }; };;
|
---|
| 8537 | :[FH]-) ac_tag=-:-;;
|
---|
| 8538 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 8539 | esac
|
---|
| 8540 | ac_save_IFS=$IFS
|
---|
| 8541 | IFS=:
|
---|
| 8542 | set x $ac_tag
|
---|
| 8543 | IFS=$ac_save_IFS
|
---|
| 8544 | shift
|
---|
| 8545 | ac_file=$1
|
---|
| 8546 | shift
|
---|
[16610] | 8547 |
|
---|
[21487] | 8548 | case $ac_mode in
|
---|
| 8549 | :L) ac_source=$1;;
|
---|
| 8550 | :[FH])
|
---|
| 8551 | ac_file_inputs=
|
---|
| 8552 | for ac_f
|
---|
| 8553 | do
|
---|
| 8554 | case $ac_f in
|
---|
| 8555 | -) ac_f="$tmp/stdin";;
|
---|
| 8556 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 8557 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 8558 | # because $ac_f cannot contain `:'.
|
---|
| 8559 | test -f "$ac_f" ||
|
---|
| 8560 | case $ac_f in
|
---|
| 8561 | [\\/$]*) false;;
|
---|
| 8562 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 8563 | esac ||
|
---|
| 8564 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
| 8565 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
| 8566 | { (exit 1); exit 1; }; };;
|
---|
| 8567 | esac
|
---|
| 8568 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
| 8569 | done
|
---|
| 8570 |
|
---|
| 8571 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8572 | # use $as_me), people would be surprised to read:
|
---|
| 8573 | # /* config.h. Generated by config.status. */
|
---|
| 8574 | configure_input="Generated from "`IFS=:
|
---|
| 8575 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
| 8576 | if test x"$ac_file" != x-; then
|
---|
| 8577 | configure_input="$ac_file. $configure_input"
|
---|
| 8578 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8579 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8580 | fi
|
---|
| 8581 |
|
---|
| 8582 | case $ac_tag in
|
---|
| 8583 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
| 8584 | esac
|
---|
| 8585 | ;;
|
---|
| 8586 | esac
|
---|
| 8587 |
|
---|
| 8588 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[16610] | 8589 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8590 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8591 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[21487] | 8592 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[16610] | 8593 | echo X"$ac_file" |
|
---|
[21487] | 8594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 8595 | s//\1/
|
---|
| 8596 | q
|
---|
| 8597 | }
|
---|
| 8598 | /^X\(\/\/\)[^/].*/{
|
---|
| 8599 | s//\1/
|
---|
| 8600 | q
|
---|
| 8601 | }
|
---|
| 8602 | /^X\(\/\/\)$/{
|
---|
| 8603 | s//\1/
|
---|
| 8604 | q
|
---|
| 8605 | }
|
---|
| 8606 | /^X\(\/\).*/{
|
---|
| 8607 | s//\1/
|
---|
| 8608 | q
|
---|
| 8609 | }
|
---|
| 8610 | s/.*/./; q'`
|
---|
| 8611 | { as_dir="$ac_dir"
|
---|
| 8612 | case $as_dir in #(
|
---|
| 8613 | -*) as_dir=./$as_dir;;
|
---|
| 8614 | esac
|
---|
| 8615 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
[16610] | 8616 | as_dirs=
|
---|
[21487] | 8617 | while :; do
|
---|
| 8618 | case $as_dir in #(
|
---|
| 8619 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
| 8620 | *) as_qdir=$as_dir;;
|
---|
| 8621 | esac
|
---|
| 8622 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 8623 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
[16610] | 8624 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8625 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8626 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[21487] | 8627 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[16610] | 8628 | echo X"$as_dir" |
|
---|
[21487] | 8629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 8630 | s//\1/
|
---|
| 8631 | q
|
---|
| 8632 | }
|
---|
| 8633 | /^X\(\/\/\)[^/].*/{
|
---|
| 8634 | s//\1/
|
---|
| 8635 | q
|
---|
| 8636 | }
|
---|
| 8637 | /^X\(\/\/\)$/{
|
---|
| 8638 | s//\1/
|
---|
| 8639 | q
|
---|
| 8640 | }
|
---|
| 8641 | /^X\(\/\).*/{
|
---|
| 8642 | s//\1/
|
---|
| 8643 | q
|
---|
| 8644 | }
|
---|
| 8645 | s/.*/./; q'`
|
---|
| 8646 | test -d "$as_dir" && break
|
---|
[16610] | 8647 | done
|
---|
[21487] | 8648 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 8649 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
| 8650 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
[16610] | 8651 | { (exit 1); exit 1; }; }; }
|
---|
| 8652 | ac_builddir=.
|
---|
| 8653 |
|
---|
[21487] | 8654 | case "$ac_dir" in
|
---|
| 8655 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 8656 | *)
|
---|
[16610] | 8657 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21487] | 8658 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 8659 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
| 8660 | case $ac_top_builddir_sub in
|
---|
| 8661 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 8662 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 8663 | esac ;;
|
---|
| 8664 | esac
|
---|
| 8665 | ac_abs_top_builddir=$ac_pwd
|
---|
| 8666 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 8667 | # for backward compatibility:
|
---|
| 8668 | ac_top_builddir=$ac_top_build_prefix
|
---|
[16610] | 8669 |
|
---|
| 8670 | case $srcdir in
|
---|
[21487] | 8671 | .) # We are building in place.
|
---|
[16610] | 8672 | ac_srcdir=.
|
---|
[21487] | 8673 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 8674 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 8675 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[16610] | 8676 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21487] | 8677 | ac_top_srcdir=$srcdir
|
---|
| 8678 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 8679 | *) # Relative name.
|
---|
| 8680 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 8681 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 8682 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[16610] | 8683 | esac
|
---|
[21487] | 8684 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[16610] | 8685 |
|
---|
| 8686 |
|
---|
[21487] | 8687 | case $ac_mode in
|
---|
| 8688 | :F)
|
---|
| 8689 | #
|
---|
| 8690 | # CONFIG_FILE
|
---|
| 8691 | #
|
---|
[16610] | 8692 |
|
---|
| 8693 | case $INSTALL in
|
---|
| 8694 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[21487] | 8695 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[16610] | 8696 | esac
|
---|
[21487] | 8697 | _ACEOF
|
---|
[16610] | 8698 |
|
---|
[21487] | 8699 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8700 | # If the template does not know about datarootdir, expand it.
|
---|
| 8701 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 8702 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
[16610] | 8703 |
|
---|
[21487] | 8704 | case `sed -n '/datarootdir/ {
|
---|
| 8705 | p
|
---|
| 8706 | q
|
---|
| 8707 | }
|
---|
| 8708 | /@datadir@/p
|
---|
| 8709 | /@docdir@/p
|
---|
| 8710 | /@infodir@/p
|
---|
| 8711 | /@localedir@/p
|
---|
| 8712 | /@mandir@/p
|
---|
| 8713 | ' $ac_file_inputs` in
|
---|
| 8714 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 8715 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
| 8716 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 8717 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
[16610] | 8718 | _ACEOF
|
---|
| 8719 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[21487] | 8720 | ac_datarootdir_hack='
|
---|
| 8721 | s&@datadir@&$datadir&g
|
---|
| 8722 | s&@docdir@&$docdir&g
|
---|
| 8723 | s&@infodir@&$infodir&g
|
---|
| 8724 | s&@localedir@&$localedir&g
|
---|
| 8725 | s&@mandir@&$mandir&g
|
---|
| 8726 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 8727 | esac
|
---|
| 8728 | _ACEOF
|
---|
| 8729 |
|
---|
| 8730 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 8731 | # Shell code in configure.ac might set extrasub.
|
---|
| 8732 | # FIXME: do we really want to maintain this feature?
|
---|
| 8733 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[16610] | 8734 | sed "$ac_vpsub
|
---|
| 8735 | $extrasub
|
---|
| 8736 | _ACEOF
|
---|
| 8737 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8738 | :t
|
---|
| 8739 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[21487] | 8740 | s&@configure_input@&$configure_input&;t t
|
---|
| 8741 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 8742 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 8743 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 8744 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 8745 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 8746 | s&@builddir@&$ac_builddir&;t t
|
---|
| 8747 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 8748 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 8749 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 8750 | $ac_datarootdir_hack
|
---|
| 8751 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
|
---|
[16610] | 8752 |
|
---|
[21487] | 8753 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 8754 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 8755 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 8756 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 8757 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
| 8758 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 8759 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
[16610] | 8760 |
|
---|
[21487] | 8761 | rm -f "$tmp/stdin"
|
---|
[16610] | 8762 | case $ac_file in
|
---|
[21487] | 8763 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
| 8764 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
[16610] | 8765 | esac
|
---|
[21487] | 8766 | ;;
|
---|
| 8767 | :H)
|
---|
| 8768 | #
|
---|
| 8769 | # CONFIG_HEADER
|
---|
| 8770 | #
|
---|
| 8771 | _ACEOF
|
---|
[16610] | 8772 |
|
---|
[21487] | 8773 | # Transform confdefs.h into a sed script `conftest.defines', that
|
---|
| 8774 | # substitutes the proper values into config.h.in to produce config.h.
|
---|
| 8775 | rm -f conftest.defines conftest.tail
|
---|
| 8776 | # First, append a space to every undef/define line, to ease matching.
|
---|
| 8777 | echo 's/$/ /' >conftest.defines
|
---|
| 8778 | # Then, protect against being on the right side of a sed subst, or in
|
---|
| 8779 | # an unquoted here document, in config.status. If some macros were
|
---|
| 8780 | # called several times there might be several #defines for the same
|
---|
| 8781 | # symbol, which is useless. But do not sort them, since the last
|
---|
| 8782 | # AC_DEFINE must be honored.
|
---|
| 8783 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 8784 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
---|
| 8785 | # NAME is the cpp macro being defined, VALUE is the value it is being given.
|
---|
| 8786 | # PARAMS is the parameter list in the macro definition--in most cases, it's
|
---|
| 8787 | # just an empty string.
|
---|
| 8788 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
---|
| 8789 | ac_dB='\\)[ (].*,\\1define\\2'
|
---|
| 8790 | ac_dC=' '
|
---|
| 8791 | ac_dD=' ,'
|
---|
[16610] | 8792 |
|
---|
[21487] | 8793 | uniq confdefs.h |
|
---|
| 8794 | sed -n '
|
---|
| 8795 | t rset
|
---|
| 8796 | :rset
|
---|
| 8797 | s/^[ ]*#[ ]*define[ ][ ]*//
|
---|
| 8798 | t ok
|
---|
| 8799 | d
|
---|
| 8800 | :ok
|
---|
| 8801 | s/[\\&,]/\\&/g
|
---|
| 8802 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
---|
| 8803 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
---|
| 8804 | ' >>conftest.defines
|
---|
[16610] | 8805 |
|
---|
[21487] | 8806 | # Remove the space that was appended to ease matching.
|
---|
| 8807 | # Then replace #undef with comments. This is necessary, for
|
---|
[16610] | 8808 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8809 | # on some systems where configure will not decide to define it.
|
---|
[21487] | 8810 | # (The regexp can be short, since the line contains either #define or #undef.)
|
---|
| 8811 | echo 's/ $//
|
---|
| 8812 | s,^[ #]*u.*,/* & */,' >>conftest.defines
|
---|
[16610] | 8813 |
|
---|
[21487] | 8814 | # Break up conftest.defines:
|
---|
| 8815 | ac_max_sed_lines=50
|
---|
| 8816 |
|
---|
| 8817 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
---|
| 8818 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
---|
| 8819 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
---|
| 8820 | # et cetera.
|
---|
| 8821 | ac_in='$ac_file_inputs'
|
---|
| 8822 | ac_out='"$tmp/out1"'
|
---|
| 8823 | ac_nxt='"$tmp/out2"'
|
---|
| 8824 |
|
---|
| 8825 | while :
|
---|
[16610] | 8826 | do
|
---|
[21487] | 8827 | # Write a here document:
|
---|
| 8828 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8829 | # First, check the format of the line:
|
---|
| 8830 | cat >"\$tmp/defines.sed" <<\\CEOF
|
---|
| 8831 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
---|
| 8832 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
---|
| 8833 | b
|
---|
| 8834 | :def
|
---|
| 8835 | _ACEOF
|
---|
| 8836 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
[16610] | 8837 | echo 'CEOF
|
---|
[21487] | 8838 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
---|
| 8839 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
---|
| 8840 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
---|
| 8841 | grep . conftest.tail >/dev/null || break
|
---|
[16610] | 8842 | rm -f conftest.defines
|
---|
| 8843 | mv conftest.tail conftest.defines
|
---|
| 8844 | done
|
---|
[21487] | 8845 | rm -f conftest.defines conftest.tail
|
---|
[16610] | 8846 |
|
---|
[21487] | 8847 | echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
---|
[16610] | 8848 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8849 | if test x"$ac_file" != x-; then
|
---|
[21487] | 8850 | echo "/* $configure_input */" >"$tmp/config.h"
|
---|
| 8851 | cat "$ac_result" >>"$tmp/config.h"
|
---|
| 8852 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
---|
[16610] | 8853 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8854 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8855 | else
|
---|
| 8856 | rm -f $ac_file
|
---|
[21487] | 8857 | mv "$tmp/config.h" $ac_file
|
---|
[16610] | 8858 | fi
|
---|
| 8859 | else
|
---|
[21487] | 8860 | echo "/* $configure_input */"
|
---|
| 8861 | cat "$ac_result"
|
---|
[16610] | 8862 | fi
|
---|
[21487] | 8863 | rm -f "$tmp/out12"
|
---|
| 8864 | ;;
|
---|
[16610] | 8865 |
|
---|
| 8866 |
|
---|
[21487] | 8867 | esac
|
---|
| 8868 |
|
---|
| 8869 | done # for ac_tag
|
---|
| 8870 |
|
---|
| 8871 |
|
---|
[16610] | 8872 | { (exit 0); exit 0; }
|
---|
| 8873 | _ACEOF
|
---|
| 8874 | chmod +x $CONFIG_STATUS
|
---|
| 8875 | ac_clean_files=$ac_clean_files_save
|
---|
| 8876 |
|
---|
| 8877 |
|
---|
| 8878 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8879 | # config.status does its own redirection, appending to config.log.
|
---|
| 8880 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8881 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8882 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8883 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8884 | # appended to by config.status. When coming back to configure, we
|
---|
| 8885 | # need to make the FD available again.
|
---|
| 8886 | if test "$no_create" != yes; then
|
---|
| 8887 | ac_cs_success=:
|
---|
| 8888 | ac_config_status_args=
|
---|
| 8889 | test "$silent" = yes &&
|
---|
| 8890 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8891 | exec 5>/dev/null
|
---|
| 8892 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8893 | exec 5>>config.log
|
---|
| 8894 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8895 | # would make configure fail if this is the last instruction.
|
---|
| 8896 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8897 | fi
|
---|
| 8898 |
|
---|
| 8899 | #
|
---|
| 8900 | # CONFIG_SUBDIRS section.
|
---|
| 8901 | #
|
---|
| 8902 | if test "$no_recursion" != yes; then
|
---|
| 8903 |
|
---|
| 8904 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8905 | ac_sub_configure_args=
|
---|
| 8906 | ac_prev=
|
---|
[21487] | 8907 | eval "set x $ac_configure_args"
|
---|
| 8908 | shift
|
---|
| 8909 | for ac_arg
|
---|
| 8910 | do
|
---|
[16610] | 8911 | if test -n "$ac_prev"; then
|
---|
| 8912 | ac_prev=
|
---|
| 8913 | continue
|
---|
| 8914 | fi
|
---|
| 8915 | case $ac_arg in
|
---|
| 8916 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8917 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8918 | ac_prev=cache_file ;;
|
---|
| 8919 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 8920 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8921 | | --c=*)
|
---|
| 8922 | ;;
|
---|
| 8923 | --config-cache | -C)
|
---|
| 8924 | ;;
|
---|
| 8925 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8926 | ac_prev=srcdir ;;
|
---|
| 8927 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8928 | ;;
|
---|
| 8929 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8930 | ac_prev=prefix ;;
|
---|
| 8931 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8932 | ;;
|
---|
[21487] | 8933 | *)
|
---|
| 8934 | case $ac_arg in
|
---|
| 8935 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 8936 | esac
|
---|
| 8937 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
|
---|
[16610] | 8938 | esac
|
---|
| 8939 | done
|
---|
| 8940 |
|
---|
| 8941 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8942 | # in subdir configurations.
|
---|
[21487] | 8943 | ac_arg="--prefix=$prefix"
|
---|
| 8944 | case $ac_arg in
|
---|
| 8945 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 8946 | esac
|
---|
| 8947 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
[16610] | 8948 |
|
---|
[21487] | 8949 | # Pass --silent
|
---|
| 8950 | if test "$silent" = yes; then
|
---|
| 8951 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
| 8952 | fi
|
---|
| 8953 |
|
---|
[16610] | 8954 | ac_popdir=`pwd`
|
---|
| 8955 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8956 |
|
---|
| 8957 | # Do not complain, so a configure script can configure whichever
|
---|
| 8958 | # parts of a large source tree are present.
|
---|
[21487] | 8959 | test -d "$srcdir/$ac_dir" || continue
|
---|
[16610] | 8960 |
|
---|
[21487] | 8961 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
| 8962 | echo "$as_me:$LINENO: $ac_msg" >&5
|
---|
| 8963 | echo "$ac_msg" >&6
|
---|
| 8964 | { as_dir="$ac_dir"
|
---|
| 8965 | case $as_dir in #(
|
---|
| 8966 | -*) as_dir=./$as_dir;;
|
---|
| 8967 | esac
|
---|
| 8968 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
[16610] | 8969 | as_dirs=
|
---|
[21487] | 8970 | while :; do
|
---|
| 8971 | case $as_dir in #(
|
---|
| 8972 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
| 8973 | *) as_qdir=$as_dir;;
|
---|
| 8974 | esac
|
---|
| 8975 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 8976 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
[16610] | 8977 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8978 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8979 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[21487] | 8980 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
[16610] | 8981 | echo X"$as_dir" |
|
---|
[21487] | 8982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 8983 | s//\1/
|
---|
| 8984 | q
|
---|
| 8985 | }
|
---|
| 8986 | /^X\(\/\/\)[^/].*/{
|
---|
| 8987 | s//\1/
|
---|
| 8988 | q
|
---|
| 8989 | }
|
---|
| 8990 | /^X\(\/\/\)$/{
|
---|
| 8991 | s//\1/
|
---|
| 8992 | q
|
---|
| 8993 | }
|
---|
| 8994 | /^X\(\/\).*/{
|
---|
| 8995 | s//\1/
|
---|
| 8996 | q
|
---|
| 8997 | }
|
---|
| 8998 | s/.*/./; q'`
|
---|
| 8999 | test -d "$as_dir" && break
|
---|
[16610] | 9000 | done
|
---|
[21487] | 9001 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 9002 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
| 9003 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
[16610] | 9004 | { (exit 1); exit 1; }; }; }
|
---|
| 9005 | ac_builddir=.
|
---|
| 9006 |
|
---|
[21487] | 9007 | case "$ac_dir" in
|
---|
| 9008 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 9009 | *)
|
---|
[16610] | 9010 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21487] | 9011 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 9012 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
| 9013 | case $ac_top_builddir_sub in
|
---|
| 9014 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 9015 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 9016 | esac ;;
|
---|
| 9017 | esac
|
---|
| 9018 | ac_abs_top_builddir=$ac_pwd
|
---|
| 9019 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 9020 | # for backward compatibility:
|
---|
| 9021 | ac_top_builddir=$ac_top_build_prefix
|
---|
[16610] | 9022 |
|
---|
| 9023 | case $srcdir in
|
---|
[21487] | 9024 | .) # We are building in place.
|
---|
[16610] | 9025 | ac_srcdir=.
|
---|
[21487] | 9026 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 9027 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 9028 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[16610] | 9029 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21487] | 9030 | ac_top_srcdir=$srcdir
|
---|
| 9031 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 9032 | *) # Relative name.
|
---|
| 9033 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 9034 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 9035 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[16610] | 9036 | esac
|
---|
[21487] | 9037 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[16610] | 9038 |
|
---|
| 9039 |
|
---|
[21487] | 9040 | cd "$ac_dir"
|
---|
[16610] | 9041 |
|
---|
| 9042 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[21487] | 9043 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 9044 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
| 9045 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 9046 | ac_sub_configure=$ac_srcdir/configure
|
---|
| 9047 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
| 9048 | # This should be Cygnus configure.
|
---|
| 9049 | ac_sub_configure=$ac_aux_dir/configure
|
---|
[16610] | 9050 | else
|
---|
| 9051 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 9052 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
| 9053 | ac_sub_configure=
|
---|
| 9054 | fi
|
---|
| 9055 |
|
---|
| 9056 | # The recursion is here.
|
---|
| 9057 | if test -n "$ac_sub_configure"; then
|
---|
| 9058 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 9059 | case $cache_file in
|
---|
| 9060 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[21487] | 9061 | *) # Relative name.
|
---|
| 9062 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
[16610] | 9063 | esac
|
---|
| 9064 |
|
---|
[21487] | 9065 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 9066 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[16610] | 9067 | # The eval makes quoting arguments work.
|
---|
[21487] | 9068 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
| 9069 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
[16610] | 9070 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 9071 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 9072 | { (exit 1); exit 1; }; }
|
---|
| 9073 | fi
|
---|
| 9074 |
|
---|
[21487] | 9075 | cd "$ac_popdir"
|
---|
[16610] | 9076 | done
|
---|
| 9077 | fi
|
---|
| 9078 |
|
---|
| 9079 |
|
---|
| 9080 |
|
---|