[749] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[914] | 3 | # Generated by GNU Autoconf 2.61 for vizservers 0.1. |
---|
[749] | 4 | # |
---|
| 5 | # Report bugs to <rappture@nanohub.org>. |
---|
| 6 | # |
---|
[914] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
[749] | 9 | # This configure script is free software; the Free Software Foundation |
---|
| 10 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 11 | ## --------------------- ## |
---|
| 12 | ## M4sh Initialization. ## |
---|
| 13 | ## --------------------- ## |
---|
| 14 | |
---|
[914] | 15 | # Be more Bourne compatible |
---|
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[749] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 18 | emulate sh |
---|
| 19 | NULLCMD=: |
---|
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 21 | # is contrary to our usage. Disable this feature. |
---|
| 22 | alias -g '${1+"$@"}'='"$@"' |
---|
[914] | 23 | setopt NO_GLOB_SUBST |
---|
| 24 | else |
---|
| 25 | case `(set -o) 2>/dev/null` in |
---|
| 26 | *posix*) set -o posix ;; |
---|
| 27 | esac |
---|
| 28 | |
---|
[749] | 29 | fi |
---|
| 30 | |
---|
[914] | 31 | |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | # PATH needs CR |
---|
| 35 | # Avoid depending upon Character Ranges. |
---|
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 39 | as_cr_digits='0123456789' |
---|
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 41 | |
---|
| 42 | # The user is always right. |
---|
| 43 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 44 | echo "#! /bin/sh" >conf$$.sh |
---|
| 45 | echo "exit 0" >>conf$$.sh |
---|
| 46 | chmod +x conf$$.sh |
---|
| 47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 48 | PATH_SEPARATOR=';' |
---|
| 49 | else |
---|
| 50 | PATH_SEPARATOR=: |
---|
| 51 | fi |
---|
| 52 | rm -f conf$$.sh |
---|
| 53 | fi |
---|
| 54 | |
---|
[749] | 55 | # Support unset when possible. |
---|
| 56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 57 | as_unset=unset |
---|
| 58 | else |
---|
| 59 | as_unset=false |
---|
| 60 | fi |
---|
| 61 | |
---|
| 62 | |
---|
[914] | 63 | # IFS |
---|
| 64 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 65 | # there to prevent editors from complaining about space-tab. |
---|
| 66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 67 | # splitting by setting IFS to empty value.) |
---|
| 68 | as_nl=' |
---|
| 69 | ' |
---|
| 70 | IFS=" "" $as_nl" |
---|
| 71 | |
---|
| 72 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 73 | case $0 in |
---|
| 74 | *[\\/]* ) as_myself=$0 ;; |
---|
| 75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 76 | for as_dir in $PATH |
---|
| 77 | do |
---|
| 78 | IFS=$as_save_IFS |
---|
| 79 | test -z "$as_dir" && as_dir=. |
---|
| 80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 81 | done |
---|
| 82 | IFS=$as_save_IFS |
---|
| 83 | |
---|
| 84 | ;; |
---|
| 85 | esac |
---|
| 86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 87 | # in which case we are not to be found in the path. |
---|
| 88 | if test "x$as_myself" = x; then |
---|
| 89 | as_myself=$0 |
---|
| 90 | fi |
---|
| 91 | if test ! -f "$as_myself"; then |
---|
| 92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 93 | { (exit 1); exit 1; } |
---|
| 94 | fi |
---|
| 95 | |
---|
[749] | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
[914] | 97 | for as_var in ENV MAIL MAILPATH |
---|
| 98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 99 | done |
---|
[749] | 100 | PS1='$ ' |
---|
| 101 | PS2='> ' |
---|
| 102 | PS4='+ ' |
---|
| 103 | |
---|
| 104 | # NLS nuisances. |
---|
| 105 | for as_var in \ |
---|
| 106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 108 | LC_TELEPHONE LC_TIME |
---|
| 109 | do |
---|
| 110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 111 | eval $as_var=C; export $as_var |
---|
| 112 | else |
---|
[914] | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
[749] | 114 | fi |
---|
| 115 | done |
---|
| 116 | |
---|
| 117 | # Required to use basename. |
---|
[914] | 118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[749] | 120 | as_expr=expr |
---|
| 121 | else |
---|
| 122 | as_expr=false |
---|
| 123 | fi |
---|
| 124 | |
---|
[914] | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
[749] | 126 | as_basename=basename |
---|
| 127 | else |
---|
| 128 | as_basename=false |
---|
| 129 | fi |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | # Name of the executable. |
---|
[914] | 133 | as_me=`$as_basename -- "$0" || |
---|
[749] | 134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 135 | X"$0" : 'X\(//\)$' \| \ |
---|
[914] | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
[749] | 137 | echo X/"$0" | |
---|
[914] | 138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 139 | s//\1/ |
---|
| 140 | q |
---|
| 141 | } |
---|
| 142 | /^X\/\(\/\/\)$/{ |
---|
| 143 | s//\1/ |
---|
| 144 | q |
---|
| 145 | } |
---|
| 146 | /^X\/\(\/\).*/{ |
---|
| 147 | s//\1/ |
---|
| 148 | q |
---|
| 149 | } |
---|
| 150 | s/.*/./; q'` |
---|
[749] | 151 | |
---|
[914] | 152 | # CDPATH. |
---|
| 153 | $as_unset CDPATH |
---|
[749] | 154 | |
---|
| 155 | |
---|
[914] | 156 | if test "x$CONFIG_SHELL" = x; then |
---|
| 157 | if (eval ":") 2>/dev/null; then |
---|
| 158 | as_have_required=yes |
---|
| 159 | else |
---|
| 160 | as_have_required=no |
---|
[749] | 161 | fi |
---|
| 162 | |
---|
[914] | 163 | if test $as_have_required = yes && (eval ": |
---|
| 164 | (as_func_return () { |
---|
| 165 | (exit \$1) |
---|
| 166 | } |
---|
| 167 | as_func_success () { |
---|
| 168 | as_func_return 0 |
---|
| 169 | } |
---|
| 170 | as_func_failure () { |
---|
| 171 | as_func_return 1 |
---|
| 172 | } |
---|
| 173 | as_func_ret_success () { |
---|
| 174 | return 0 |
---|
| 175 | } |
---|
| 176 | as_func_ret_failure () { |
---|
| 177 | return 1 |
---|
| 178 | } |
---|
[749] | 179 | |
---|
[914] | 180 | exitcode=0 |
---|
| 181 | if as_func_success; then |
---|
| 182 | : |
---|
| 183 | else |
---|
| 184 | exitcode=1 |
---|
| 185 | echo as_func_success failed. |
---|
| 186 | fi |
---|
[749] | 187 | |
---|
[914] | 188 | if as_func_failure; then |
---|
| 189 | exitcode=1 |
---|
| 190 | echo as_func_failure succeeded. |
---|
| 191 | fi |
---|
| 192 | |
---|
| 193 | if as_func_ret_success; then |
---|
| 194 | : |
---|
| 195 | else |
---|
| 196 | exitcode=1 |
---|
| 197 | echo as_func_ret_success failed. |
---|
| 198 | fi |
---|
| 199 | |
---|
| 200 | if as_func_ret_failure; then |
---|
| 201 | exitcode=1 |
---|
| 202 | echo as_func_ret_failure succeeded. |
---|
| 203 | fi |
---|
| 204 | |
---|
| 205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 206 | : |
---|
| 207 | else |
---|
| 208 | exitcode=1 |
---|
| 209 | echo positional parameters were not saved. |
---|
| 210 | fi |
---|
| 211 | |
---|
| 212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
| 213 | |
---|
| 214 | ( |
---|
| 215 | as_lineno_1=\$LINENO |
---|
| 216 | as_lineno_2=\$LINENO |
---|
| 217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
| 218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
| 219 | ") 2> /dev/null; then |
---|
| 220 | : |
---|
| 221 | else |
---|
| 222 | as_candidate_shells= |
---|
[749] | 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 225 | do |
---|
| 226 | IFS=$as_save_IFS |
---|
| 227 | test -z "$as_dir" && as_dir=. |
---|
[914] | 228 | case $as_dir in |
---|
[749] | 229 | /*) |
---|
[914] | 230 | for as_base in sh bash ksh sh5; do |
---|
| 231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
| 232 | done;; |
---|
| 233 | esac |
---|
| 234 | done |
---|
| 235 | IFS=$as_save_IFS |
---|
| 236 | |
---|
| 237 | |
---|
| 238 | for as_shell in $as_candidate_shells $SHELL; do |
---|
| 239 | # Try only shells that exist, to save several forks. |
---|
| 240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
| 241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
| 242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 243 | emulate sh |
---|
| 244 | NULLCMD=: |
---|
| 245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 246 | # is contrary to our usage. Disable this feature. |
---|
| 247 | alias -g '${1+"$@"}'='"$@"' |
---|
| 248 | setopt NO_GLOB_SUBST |
---|
| 249 | else |
---|
| 250 | case `(set -o) 2>/dev/null` in |
---|
| 251 | *posix*) set -o posix ;; |
---|
| 252 | esac |
---|
| 253 | |
---|
| 254 | fi |
---|
| 255 | |
---|
| 256 | |
---|
| 257 | : |
---|
| 258 | _ASEOF |
---|
| 259 | }; then |
---|
| 260 | CONFIG_SHELL=$as_shell |
---|
| 261 | as_have_required=yes |
---|
| 262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
| 263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 264 | emulate sh |
---|
| 265 | NULLCMD=: |
---|
| 266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 267 | # is contrary to our usage. Disable this feature. |
---|
| 268 | alias -g '${1+"$@"}'='"$@"' |
---|
| 269 | setopt NO_GLOB_SUBST |
---|
| 270 | else |
---|
| 271 | case `(set -o) 2>/dev/null` in |
---|
| 272 | *posix*) set -o posix ;; |
---|
| 273 | esac |
---|
| 274 | |
---|
| 275 | fi |
---|
| 276 | |
---|
| 277 | |
---|
| 278 | : |
---|
| 279 | (as_func_return () { |
---|
| 280 | (exit $1) |
---|
| 281 | } |
---|
| 282 | as_func_success () { |
---|
| 283 | as_func_return 0 |
---|
| 284 | } |
---|
| 285 | as_func_failure () { |
---|
| 286 | as_func_return 1 |
---|
| 287 | } |
---|
| 288 | as_func_ret_success () { |
---|
| 289 | return 0 |
---|
| 290 | } |
---|
| 291 | as_func_ret_failure () { |
---|
| 292 | return 1 |
---|
| 293 | } |
---|
| 294 | |
---|
| 295 | exitcode=0 |
---|
| 296 | if as_func_success; then |
---|
| 297 | : |
---|
| 298 | else |
---|
| 299 | exitcode=1 |
---|
| 300 | echo as_func_success failed. |
---|
| 301 | fi |
---|
| 302 | |
---|
| 303 | if as_func_failure; then |
---|
| 304 | exitcode=1 |
---|
| 305 | echo as_func_failure succeeded. |
---|
| 306 | fi |
---|
| 307 | |
---|
| 308 | if as_func_ret_success; then |
---|
| 309 | : |
---|
| 310 | else |
---|
| 311 | exitcode=1 |
---|
| 312 | echo as_func_ret_success failed. |
---|
| 313 | fi |
---|
| 314 | |
---|
| 315 | if as_func_ret_failure; then |
---|
| 316 | exitcode=1 |
---|
| 317 | echo as_func_ret_failure succeeded. |
---|
| 318 | fi |
---|
| 319 | |
---|
| 320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
| 321 | : |
---|
| 322 | else |
---|
| 323 | exitcode=1 |
---|
| 324 | echo positional parameters were not saved. |
---|
| 325 | fi |
---|
| 326 | |
---|
| 327 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
| 328 | |
---|
| 329 | ( |
---|
[749] | 330 | as_lineno_1=$LINENO |
---|
| 331 | as_lineno_2=$LINENO |
---|
| 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
[914] | 333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
[749] | 334 | |
---|
[914] | 335 | _ASEOF |
---|
| 336 | }; then |
---|
| 337 | break |
---|
| 338 | fi |
---|
| 339 | |
---|
| 340 | fi |
---|
| 341 | |
---|
| 342 | done |
---|
| 343 | |
---|
| 344 | if test "x$CONFIG_SHELL" != x; then |
---|
| 345 | for as_var in BASH_ENV ENV |
---|
| 346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 347 | done |
---|
| 348 | export CONFIG_SHELL |
---|
| 349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
| 350 | fi |
---|
| 351 | |
---|
| 352 | |
---|
| 353 | if test $as_have_required = no; then |
---|
| 354 | echo This script requires a shell more modern than all the |
---|
| 355 | echo shells that I found on your system. Please install a |
---|
| 356 | echo modern shell, or manually run the script under such a |
---|
| 357 | echo shell if you do have one. |
---|
| 358 | { (exit 1); exit 1; } |
---|
| 359 | fi |
---|
| 360 | |
---|
| 361 | |
---|
| 362 | fi |
---|
| 363 | |
---|
| 364 | fi |
---|
| 365 | |
---|
| 366 | |
---|
| 367 | |
---|
| 368 | (eval "as_func_return () { |
---|
| 369 | (exit \$1) |
---|
| 370 | } |
---|
| 371 | as_func_success () { |
---|
| 372 | as_func_return 0 |
---|
| 373 | } |
---|
| 374 | as_func_failure () { |
---|
| 375 | as_func_return 1 |
---|
| 376 | } |
---|
| 377 | as_func_ret_success () { |
---|
| 378 | return 0 |
---|
| 379 | } |
---|
| 380 | as_func_ret_failure () { |
---|
| 381 | return 1 |
---|
| 382 | } |
---|
| 383 | |
---|
| 384 | exitcode=0 |
---|
| 385 | if as_func_success; then |
---|
| 386 | : |
---|
| 387 | else |
---|
| 388 | exitcode=1 |
---|
| 389 | echo as_func_success failed. |
---|
| 390 | fi |
---|
| 391 | |
---|
| 392 | if as_func_failure; then |
---|
| 393 | exitcode=1 |
---|
| 394 | echo as_func_failure succeeded. |
---|
| 395 | fi |
---|
| 396 | |
---|
| 397 | if as_func_ret_success; then |
---|
| 398 | : |
---|
| 399 | else |
---|
| 400 | exitcode=1 |
---|
| 401 | echo as_func_ret_success failed. |
---|
| 402 | fi |
---|
| 403 | |
---|
| 404 | if as_func_ret_failure; then |
---|
| 405 | exitcode=1 |
---|
| 406 | echo as_func_ret_failure succeeded. |
---|
| 407 | fi |
---|
| 408 | |
---|
| 409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
| 410 | : |
---|
| 411 | else |
---|
| 412 | exitcode=1 |
---|
| 413 | echo positional parameters were not saved. |
---|
| 414 | fi |
---|
| 415 | |
---|
| 416 | test \$exitcode = 0") || { |
---|
| 417 | echo No shell found that supports shell functions. |
---|
| 418 | echo Please tell autoconf@gnu.org about your system, |
---|
| 419 | echo including any error possibly output before this |
---|
| 420 | echo message |
---|
| 421 | } |
---|
| 422 | |
---|
| 423 | |
---|
| 424 | |
---|
| 425 | as_lineno_1=$LINENO |
---|
| 426 | as_lineno_2=$LINENO |
---|
| 427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
| 429 | |
---|
[749] | 430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 431 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
[914] | 432 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 433 | # does the real work. The second script uses 'N' to pair each |
---|
| 434 | # line-number line with the line containing $LINENO, and appends |
---|
| 435 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 436 | # case at line end. |
---|
[749] | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
[914] | 438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 440 | sed -n ' |
---|
| 441 | p |
---|
| 442 | /[$]LINENO/= |
---|
| 443 | ' <$as_myself | |
---|
[749] | 444 | sed ' |
---|
[914] | 445 | s/[$]LINENO.*/&-/ |
---|
| 446 | t lineno |
---|
| 447 | b |
---|
| 448 | :lineno |
---|
[749] | 449 | N |
---|
[914] | 450 | :loop |
---|
| 451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
[749] | 452 | t loop |
---|
[914] | 453 | s/-\n.*// |
---|
[749] | 454 | ' >$as_me.lineno && |
---|
[914] | 455 | chmod +x "$as_me.lineno" || |
---|
[749] | 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 457 | { (exit 1); exit 1; }; } |
---|
| 458 | |
---|
| 459 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 460 | # (the dirname of $[0] is not the place where we might find the |
---|
[914] | 461 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 462 | . "./$as_me.lineno" |
---|
[749] | 463 | # Exit status is that of the last command. |
---|
| 464 | exit |
---|
| 465 | } |
---|
| 466 | |
---|
| 467 | |
---|
[914] | 468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 469 | as_dirname=dirname |
---|
| 470 | else |
---|
| 471 | as_dirname=false |
---|
| 472 | fi |
---|
| 473 | |
---|
| 474 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 475 | case `echo -n x` in |
---|
| 476 | -n*) |
---|
| 477 | case `echo 'x\c'` in |
---|
| 478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 479 | *) ECHO_C='\c';; |
---|
| 480 | esac;; |
---|
| 481 | *) |
---|
| 482 | ECHO_N='-n';; |
---|
[749] | 483 | esac |
---|
| 484 | |
---|
[914] | 485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[749] | 487 | as_expr=expr |
---|
| 488 | else |
---|
| 489 | as_expr=false |
---|
| 490 | fi |
---|
| 491 | |
---|
| 492 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[914] | 493 | if test -d conf$$.dir; then |
---|
| 494 | rm -f conf$$.dir/conf$$.file |
---|
| 495 | else |
---|
| 496 | rm -f conf$$.dir |
---|
| 497 | mkdir conf$$.dir |
---|
| 498 | fi |
---|
[749] | 499 | echo >conf$$.file |
---|
| 500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
[914] | 501 | as_ln_s='ln -s' |
---|
| 502 | # ... but there are two gotchas: |
---|
| 503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 505 | # In both cases, we have to default to `cp -p'. |
---|
| 506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
[749] | 507 | as_ln_s='cp -p' |
---|
| 508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 509 | as_ln_s=ln |
---|
| 510 | else |
---|
| 511 | as_ln_s='cp -p' |
---|
| 512 | fi |
---|
[914] | 513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 514 | rmdir conf$$.dir 2>/dev/null |
---|
[749] | 515 | |
---|
| 516 | if mkdir -p . 2>/dev/null; then |
---|
| 517 | as_mkdir_p=: |
---|
| 518 | else |
---|
| 519 | test -d ./-p && rmdir ./-p |
---|
| 520 | as_mkdir_p=false |
---|
| 521 | fi |
---|
| 522 | |
---|
[914] | 523 | if test -x / >/dev/null 2>&1; then |
---|
| 524 | as_test_x='test -x' |
---|
| 525 | else |
---|
| 526 | if ls -dL / >/dev/null 2>&1; then |
---|
| 527 | as_ls_L_option=L |
---|
| 528 | else |
---|
| 529 | as_ls_L_option= |
---|
| 530 | fi |
---|
| 531 | as_test_x=' |
---|
| 532 | eval sh -c '\'' |
---|
| 533 | if test -d "$1"; then |
---|
| 534 | test -d "$1/."; |
---|
| 535 | else |
---|
| 536 | case $1 in |
---|
| 537 | -*)set "./$1";; |
---|
| 538 | esac; |
---|
| 539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
| 540 | ???[sx]*):;;*)false;;esac;fi |
---|
| 541 | '\'' sh |
---|
| 542 | ' |
---|
| 543 | fi |
---|
| 544 | as_executable_p=$as_test_x |
---|
[749] | 545 | |
---|
| 546 | # Sed expression to map a string onto a valid CPP name. |
---|
| 547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 548 | |
---|
| 549 | # Sed expression to map a string onto a valid variable name. |
---|
| 550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 551 | |
---|
| 552 | |
---|
| 553 | |
---|
[914] | 554 | exec 7<&0 </dev/null 6>&1 |
---|
[749] | 555 | |
---|
| 556 | # Name of the host. |
---|
| 557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 558 | # so uname gets run too. |
---|
| 559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 560 | |
---|
| 561 | # |
---|
| 562 | # Initializations. |
---|
| 563 | # |
---|
| 564 | ac_default_prefix=/usr/local |
---|
[914] | 565 | ac_clean_files= |
---|
[749] | 566 | ac_config_libobj_dir=. |
---|
[914] | 567 | LIBOBJS= |
---|
[749] | 568 | cross_compiling=no |
---|
| 569 | subdirs= |
---|
| 570 | MFLAGS= |
---|
| 571 | MAKEFLAGS= |
---|
| 572 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 573 | |
---|
| 574 | # Identity of this package. |
---|
| 575 | PACKAGE_NAME='vizservers' |
---|
| 576 | PACKAGE_TARNAME='vizservers' |
---|
| 577 | PACKAGE_VERSION='0.1' |
---|
| 578 | PACKAGE_STRING='vizservers 0.1' |
---|
| 579 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
| 580 | |
---|
| 581 | # Factoring default headers for most tests. |
---|
| 582 | ac_includes_default="\ |
---|
| 583 | #include <stdio.h> |
---|
[914] | 584 | #ifdef HAVE_SYS_TYPES_H |
---|
[749] | 585 | # include <sys/types.h> |
---|
| 586 | #endif |
---|
[914] | 587 | #ifdef HAVE_SYS_STAT_H |
---|
[749] | 588 | # include <sys/stat.h> |
---|
| 589 | #endif |
---|
[914] | 590 | #ifdef STDC_HEADERS |
---|
[749] | 591 | # include <stdlib.h> |
---|
| 592 | # include <stddef.h> |
---|
| 593 | #else |
---|
[914] | 594 | # ifdef HAVE_STDLIB_H |
---|
[749] | 595 | # include <stdlib.h> |
---|
| 596 | # endif |
---|
| 597 | #endif |
---|
[914] | 598 | #ifdef HAVE_STRING_H |
---|
| 599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
[749] | 600 | # include <memory.h> |
---|
| 601 | # endif |
---|
| 602 | # include <string.h> |
---|
| 603 | #endif |
---|
[914] | 604 | #ifdef HAVE_STRINGS_H |
---|
[749] | 605 | # include <strings.h> |
---|
| 606 | #endif |
---|
[914] | 607 | #ifdef HAVE_INTTYPES_H |
---|
[749] | 608 | # include <inttypes.h> |
---|
| 609 | #endif |
---|
[914] | 610 | #ifdef HAVE_STDINT_H |
---|
| 611 | # include <stdint.h> |
---|
| 612 | #endif |
---|
| 613 | #ifdef HAVE_UNISTD_H |
---|
[749] | 614 | # include <unistd.h> |
---|
| 615 | #endif" |
---|
| 616 | |
---|
[914] | 617 | ac_subst_vars='SHELL |
---|
| 618 | PATH_SEPARATOR |
---|
| 619 | PACKAGE_NAME |
---|
| 620 | PACKAGE_TARNAME |
---|
| 621 | PACKAGE_VERSION |
---|
| 622 | PACKAGE_STRING |
---|
| 623 | PACKAGE_BUGREPORT |
---|
| 624 | exec_prefix |
---|
| 625 | prefix |
---|
| 626 | program_transform_name |
---|
| 627 | bindir |
---|
| 628 | sbindir |
---|
| 629 | libexecdir |
---|
| 630 | datarootdir |
---|
| 631 | datadir |
---|
| 632 | sysconfdir |
---|
| 633 | sharedstatedir |
---|
| 634 | localstatedir |
---|
| 635 | includedir |
---|
| 636 | oldincludedir |
---|
| 637 | docdir |
---|
| 638 | infodir |
---|
| 639 | htmldir |
---|
| 640 | dvidir |
---|
| 641 | pdfdir |
---|
| 642 | psdir |
---|
| 643 | libdir |
---|
| 644 | localedir |
---|
| 645 | mandir |
---|
| 646 | DEFS |
---|
| 647 | ECHO_C |
---|
| 648 | ECHO_N |
---|
| 649 | ECHO_T |
---|
| 650 | LIBS |
---|
| 651 | build_alias |
---|
| 652 | host_alias |
---|
| 653 | target_alias |
---|
| 654 | VERSION |
---|
| 655 | LIB_SEARCH_DIRS |
---|
| 656 | INSTALL_PROGRAM |
---|
| 657 | INSTALL_SCRIPT |
---|
| 658 | INSTALL_DATA |
---|
| 659 | SET_MAKE |
---|
| 660 | CC |
---|
| 661 | CFLAGS |
---|
| 662 | LDFLAGS |
---|
| 663 | CPPFLAGS |
---|
| 664 | ac_ct_CC |
---|
| 665 | EXEEXT |
---|
| 666 | OBJEXT |
---|
| 667 | RANLIB |
---|
| 668 | CXX |
---|
| 669 | CXXFLAGS |
---|
| 670 | ac_ct_CXX |
---|
| 671 | CXXCPP |
---|
| 672 | GREP |
---|
| 673 | EGREP |
---|
[940] | 674 | SUBDIRS |
---|
[914] | 675 | TCL_LIB_DIR |
---|
| 676 | TCL_LIB |
---|
| 677 | TCL_LIB_VERSION |
---|
| 678 | TCL_INCL_DIR |
---|
| 679 | RP2_INCL_DIR |
---|
| 680 | RP_DIR |
---|
[944] | 681 | DX_DIR |
---|
[914] | 682 | LIBOBJS |
---|
| 683 | LTLIBOBJS' |
---|
[749] | 684 | ac_subst_files='' |
---|
[914] | 685 | ac_precious_vars='build_alias |
---|
| 686 | host_alias |
---|
| 687 | target_alias |
---|
| 688 | CC |
---|
| 689 | CFLAGS |
---|
| 690 | LDFLAGS |
---|
| 691 | LIBS |
---|
| 692 | CPPFLAGS |
---|
| 693 | CXX |
---|
| 694 | CXXFLAGS |
---|
| 695 | CCC |
---|
| 696 | CXXCPP' |
---|
[749] | 697 | |
---|
[914] | 698 | |
---|
[749] | 699 | # Initialize some variables set by options. |
---|
| 700 | ac_init_help= |
---|
| 701 | ac_init_version=false |
---|
| 702 | # The variables have the same names as the options, with |
---|
| 703 | # dashes changed to underlines. |
---|
| 704 | cache_file=/dev/null |
---|
| 705 | exec_prefix=NONE |
---|
| 706 | no_create= |
---|
| 707 | no_recursion= |
---|
| 708 | prefix=NONE |
---|
| 709 | program_prefix=NONE |
---|
| 710 | program_suffix=NONE |
---|
| 711 | program_transform_name=s,x,x, |
---|
| 712 | silent= |
---|
| 713 | site= |
---|
| 714 | srcdir= |
---|
| 715 | verbose= |
---|
| 716 | x_includes=NONE |
---|
| 717 | x_libraries=NONE |
---|
| 718 | |
---|
| 719 | # Installation directory options. |
---|
| 720 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 721 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 722 | # by default will actually change. |
---|
| 723 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
[914] | 724 | # (The list follows the same order as the GNU Coding Standards.) |
---|
[749] | 725 | bindir='${exec_prefix}/bin' |
---|
| 726 | sbindir='${exec_prefix}/sbin' |
---|
| 727 | libexecdir='${exec_prefix}/libexec' |
---|
[914] | 728 | datarootdir='${prefix}/share' |
---|
| 729 | datadir='${datarootdir}' |
---|
[749] | 730 | sysconfdir='${prefix}/etc' |
---|
| 731 | sharedstatedir='${prefix}/com' |
---|
| 732 | localstatedir='${prefix}/var' |
---|
| 733 | includedir='${prefix}/include' |
---|
| 734 | oldincludedir='/usr/include' |
---|
[914] | 735 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
| 736 | infodir='${datarootdir}/info' |
---|
| 737 | htmldir='${docdir}' |
---|
| 738 | dvidir='${docdir}' |
---|
| 739 | pdfdir='${docdir}' |
---|
| 740 | psdir='${docdir}' |
---|
| 741 | libdir='${exec_prefix}/lib' |
---|
| 742 | localedir='${datarootdir}/locale' |
---|
| 743 | mandir='${datarootdir}/man' |
---|
[749] | 744 | |
---|
| 745 | ac_prev= |
---|
[914] | 746 | ac_dashdash= |
---|
[749] | 747 | for ac_option |
---|
| 748 | do |
---|
| 749 | # If the previous option needs an argument, assign it. |
---|
| 750 | if test -n "$ac_prev"; then |
---|
[914] | 751 | eval $ac_prev=\$ac_option |
---|
[749] | 752 | ac_prev= |
---|
| 753 | continue |
---|
| 754 | fi |
---|
| 755 | |
---|
[914] | 756 | case $ac_option in |
---|
| 757 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
| 758 | *) ac_optarg=yes ;; |
---|
| 759 | esac |
---|
[749] | 760 | |
---|
| 761 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 762 | |
---|
[914] | 763 | case $ac_dashdash$ac_option in |
---|
| 764 | --) |
---|
| 765 | ac_dashdash=yes ;; |
---|
[749] | 766 | |
---|
| 767 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 768 | ac_prev=bindir ;; |
---|
| 769 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 770 | bindir=$ac_optarg ;; |
---|
| 771 | |
---|
| 772 | -build | --build | --buil | --bui | --bu) |
---|
| 773 | ac_prev=build_alias ;; |
---|
| 774 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 775 | build_alias=$ac_optarg ;; |
---|
| 776 | |
---|
| 777 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 778 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 779 | ac_prev=cache_file ;; |
---|
| 780 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 781 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 782 | cache_file=$ac_optarg ;; |
---|
| 783 | |
---|
| 784 | --config-cache | -C) |
---|
| 785 | cache_file=config.cache ;; |
---|
| 786 | |
---|
[914] | 787 | -datadir | --datadir | --datadi | --datad) |
---|
[749] | 788 | ac_prev=datadir ;; |
---|
[914] | 789 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
[749] | 790 | datadir=$ac_optarg ;; |
---|
| 791 | |
---|
[914] | 792 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
| 793 | | --dataroo | --dataro | --datar) |
---|
| 794 | ac_prev=datarootdir ;; |
---|
| 795 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
| 796 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
| 797 | datarootdir=$ac_optarg ;; |
---|
| 798 | |
---|
[749] | 799 | -disable-* | --disable-*) |
---|
| 800 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 801 | # Reject names that are not valid shell variable names. |
---|
[914] | 802 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[749] | 803 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 804 | { (exit 1); exit 1; }; } |
---|
[914] | 805 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
| 806 | eval enable_$ac_feature=no ;; |
---|
[749] | 807 | |
---|
[914] | 808 | -docdir | --docdir | --docdi | --doc | --do) |
---|
| 809 | ac_prev=docdir ;; |
---|
| 810 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
| 811 | docdir=$ac_optarg ;; |
---|
| 812 | |
---|
| 813 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
| 814 | ac_prev=dvidir ;; |
---|
| 815 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
| 816 | dvidir=$ac_optarg ;; |
---|
| 817 | |
---|
[749] | 818 | -enable-* | --enable-*) |
---|
| 819 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 820 | # Reject names that are not valid shell variable names. |
---|
[914] | 821 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[749] | 822 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 823 | { (exit 1); exit 1; }; } |
---|
[914] | 824 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
| 825 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
[749] | 826 | |
---|
| 827 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 828 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 829 | | --exec | --exe | --ex) |
---|
| 830 | ac_prev=exec_prefix ;; |
---|
| 831 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 832 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 833 | | --exec=* | --exe=* | --ex=*) |
---|
| 834 | exec_prefix=$ac_optarg ;; |
---|
| 835 | |
---|
| 836 | -gas | --gas | --ga | --g) |
---|
| 837 | # Obsolete; use --with-gas. |
---|
| 838 | with_gas=yes ;; |
---|
| 839 | |
---|
| 840 | -help | --help | --hel | --he | -h) |
---|
| 841 | ac_init_help=long ;; |
---|
| 842 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 843 | ac_init_help=recursive ;; |
---|
| 844 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 845 | ac_init_help=short ;; |
---|
| 846 | |
---|
| 847 | -host | --host | --hos | --ho) |
---|
| 848 | ac_prev=host_alias ;; |
---|
| 849 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 850 | host_alias=$ac_optarg ;; |
---|
| 851 | |
---|
[914] | 852 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
| 853 | ac_prev=htmldir ;; |
---|
| 854 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
| 855 | | --ht=*) |
---|
| 856 | htmldir=$ac_optarg ;; |
---|
| 857 | |
---|
[749] | 858 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 859 | | --includ | --inclu | --incl | --inc) |
---|
| 860 | ac_prev=includedir ;; |
---|
| 861 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 862 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 863 | includedir=$ac_optarg ;; |
---|
| 864 | |
---|
| 865 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 866 | ac_prev=infodir ;; |
---|
| 867 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 868 | infodir=$ac_optarg ;; |
---|
| 869 | |
---|
| 870 | -libdir | --libdir | --libdi | --libd) |
---|
| 871 | ac_prev=libdir ;; |
---|
| 872 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 873 | libdir=$ac_optarg ;; |
---|
| 874 | |
---|
| 875 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 876 | | --libexe | --libex | --libe) |
---|
| 877 | ac_prev=libexecdir ;; |
---|
| 878 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 879 | | --libexe=* | --libex=* | --libe=*) |
---|
| 880 | libexecdir=$ac_optarg ;; |
---|
| 881 | |
---|
[914] | 882 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
| 883 | ac_prev=localedir ;; |
---|
| 884 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
| 885 | localedir=$ac_optarg ;; |
---|
| 886 | |
---|
[749] | 887 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
[914] | 888 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
[749] | 889 | ac_prev=localstatedir ;; |
---|
| 890 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
[914] | 891 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
[749] | 892 | localstatedir=$ac_optarg ;; |
---|
| 893 | |
---|
| 894 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 895 | ac_prev=mandir ;; |
---|
| 896 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 897 | mandir=$ac_optarg ;; |
---|
| 898 | |
---|
| 899 | -nfp | --nfp | --nf) |
---|
| 900 | # Obsolete; use --without-fp. |
---|
| 901 | with_fp=no ;; |
---|
| 902 | |
---|
| 903 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 904 | | --no-cr | --no-c | -n) |
---|
| 905 | no_create=yes ;; |
---|
| 906 | |
---|
| 907 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 908 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 909 | no_recursion=yes ;; |
---|
| 910 | |
---|
| 911 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 912 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 913 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 914 | ac_prev=oldincludedir ;; |
---|
| 915 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 916 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 917 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 918 | oldincludedir=$ac_optarg ;; |
---|
| 919 | |
---|
| 920 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 921 | ac_prev=prefix ;; |
---|
| 922 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 923 | prefix=$ac_optarg ;; |
---|
| 924 | |
---|
| 925 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 926 | | --program-pre | --program-pr | --program-p) |
---|
| 927 | ac_prev=program_prefix ;; |
---|
| 928 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 929 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 930 | program_prefix=$ac_optarg ;; |
---|
| 931 | |
---|
| 932 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 933 | | --program-suf | --program-su | --program-s) |
---|
| 934 | ac_prev=program_suffix ;; |
---|
| 935 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 936 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 937 | program_suffix=$ac_optarg ;; |
---|
| 938 | |
---|
| 939 | -program-transform-name | --program-transform-name \ |
---|
| 940 | | --program-transform-nam | --program-transform-na \ |
---|
| 941 | | --program-transform-n | --program-transform- \ |
---|
| 942 | | --program-transform | --program-transfor \ |
---|
| 943 | | --program-transfo | --program-transf \ |
---|
| 944 | | --program-trans | --program-tran \ |
---|
| 945 | | --progr-tra | --program-tr | --program-t) |
---|
| 946 | ac_prev=program_transform_name ;; |
---|
| 947 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 948 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 949 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 950 | | --program-transform=* | --program-transfor=* \ |
---|
| 951 | | --program-transfo=* | --program-transf=* \ |
---|
| 952 | | --program-trans=* | --program-tran=* \ |
---|
| 953 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 954 | program_transform_name=$ac_optarg ;; |
---|
| 955 | |
---|
[914] | 956 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
| 957 | ac_prev=pdfdir ;; |
---|
| 958 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
| 959 | pdfdir=$ac_optarg ;; |
---|
| 960 | |
---|
| 961 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
| 962 | ac_prev=psdir ;; |
---|
| 963 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
| 964 | psdir=$ac_optarg ;; |
---|
| 965 | |
---|
[749] | 966 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 967 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 968 | silent=yes ;; |
---|
| 969 | |
---|
| 970 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 971 | ac_prev=sbindir ;; |
---|
| 972 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 973 | | --sbi=* | --sb=*) |
---|
| 974 | sbindir=$ac_optarg ;; |
---|
| 975 | |
---|
| 976 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 977 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 978 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 979 | | --sha | --sh) |
---|
| 980 | ac_prev=sharedstatedir ;; |
---|
| 981 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 982 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 983 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 984 | | --sha=* | --sh=*) |
---|
| 985 | sharedstatedir=$ac_optarg ;; |
---|
| 986 | |
---|
| 987 | -site | --site | --sit) |
---|
| 988 | ac_prev=site ;; |
---|
| 989 | -site=* | --site=* | --sit=*) |
---|
| 990 | site=$ac_optarg ;; |
---|
| 991 | |
---|
| 992 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 993 | ac_prev=srcdir ;; |
---|
| 994 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 995 | srcdir=$ac_optarg ;; |
---|
| 996 | |
---|
| 997 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 998 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 999 | ac_prev=sysconfdir ;; |
---|
| 1000 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 1001 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 1002 | sysconfdir=$ac_optarg ;; |
---|
| 1003 | |
---|
| 1004 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 1005 | ac_prev=target_alias ;; |
---|
| 1006 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 1007 | target_alias=$ac_optarg ;; |
---|
| 1008 | |
---|
| 1009 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 1010 | verbose=yes ;; |
---|
| 1011 | |
---|
| 1012 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 1013 | ac_init_version=: ;; |
---|
| 1014 | |
---|
| 1015 | -with-* | --with-*) |
---|
| 1016 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 1017 | # Reject names that are not valid shell variable names. |
---|
[914] | 1018 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[749] | 1019 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 1020 | { (exit 1); exit 1; }; } |
---|
[914] | 1021 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
| 1022 | eval with_$ac_package=\$ac_optarg ;; |
---|
[749] | 1023 | |
---|
| 1024 | -without-* | --without-*) |
---|
| 1025 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 1026 | # Reject names that are not valid shell variable names. |
---|
[914] | 1027 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
[749] | 1028 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 1029 | { (exit 1); exit 1; }; } |
---|
[914] | 1030 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
| 1031 | eval with_$ac_package=no ;; |
---|
[749] | 1032 | |
---|
| 1033 | --x) |
---|
| 1034 | # Obsolete; use --with-x. |
---|
| 1035 | with_x=yes ;; |
---|
| 1036 | |
---|
| 1037 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 1038 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 1039 | ac_prev=x_includes ;; |
---|
| 1040 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 1041 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 1042 | x_includes=$ac_optarg ;; |
---|
| 1043 | |
---|
| 1044 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 1045 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 1046 | ac_prev=x_libraries ;; |
---|
| 1047 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 1048 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 1049 | x_libraries=$ac_optarg ;; |
---|
| 1050 | |
---|
| 1051 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 1052 | Try \`$0 --help' for more information." >&2 |
---|
| 1053 | { (exit 1); exit 1; }; } |
---|
| 1054 | ;; |
---|
| 1055 | |
---|
| 1056 | *=*) |
---|
| 1057 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 1058 | # Reject names that are not valid shell variable names. |
---|
| 1059 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 1060 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 1061 | { (exit 1); exit 1; }; } |
---|
[914] | 1062 | eval $ac_envvar=\$ac_optarg |
---|
[749] | 1063 | export $ac_envvar ;; |
---|
| 1064 | |
---|
| 1065 | *) |
---|
| 1066 | # FIXME: should be removed in autoconf 3.0. |
---|
| 1067 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 1068 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 1069 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 1070 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 1071 | ;; |
---|
| 1072 | |
---|
| 1073 | esac |
---|
| 1074 | done |
---|
| 1075 | |
---|
| 1076 | if test -n "$ac_prev"; then |
---|
| 1077 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 1078 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 1079 | { (exit 1); exit 1; }; } |
---|
| 1080 | fi |
---|
| 1081 | |
---|
[914] | 1082 | # Be sure to have absolute directory names. |
---|
| 1083 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
| 1084 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
| 1085 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
| 1086 | libdir localedir mandir |
---|
[749] | 1087 | do |
---|
[914] | 1088 | eval ac_val=\$$ac_var |
---|
[749] | 1089 | case $ac_val in |
---|
[914] | 1090 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
| 1091 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
[749] | 1092 | esac |
---|
[914] | 1093 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 1094 | { (exit 1); exit 1; }; } |
---|
[749] | 1095 | done |
---|
| 1096 | |
---|
| 1097 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 1098 | # used to hold the argument of --host etc. |
---|
| 1099 | # FIXME: To remove some day. |
---|
| 1100 | build=$build_alias |
---|
| 1101 | host=$host_alias |
---|
| 1102 | target=$target_alias |
---|
| 1103 | |
---|
| 1104 | # FIXME: To remove some day. |
---|
| 1105 | if test "x$host_alias" != x; then |
---|
| 1106 | if test "x$build_alias" = x; then |
---|
| 1107 | cross_compiling=maybe |
---|
| 1108 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 1109 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 1110 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 1111 | cross_compiling=yes |
---|
| 1112 | fi |
---|
| 1113 | fi |
---|
| 1114 | |
---|
| 1115 | ac_tool_prefix= |
---|
| 1116 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 1117 | |
---|
| 1118 | test "$silent" = yes && exec 6>/dev/null |
---|
| 1119 | |
---|
| 1120 | |
---|
[914] | 1121 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
| 1122 | ac_ls_di=`ls -di .` && |
---|
| 1123 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
| 1124 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
| 1125 | { (exit 1); exit 1; }; } |
---|
| 1126 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
| 1127 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
| 1128 | { (exit 1); exit 1; }; } |
---|
| 1129 | |
---|
| 1130 | |
---|
[749] | 1131 | # Find the source files, if location was not specified. |
---|
| 1132 | if test -z "$srcdir"; then |
---|
| 1133 | ac_srcdir_defaulted=yes |
---|
[914] | 1134 | # Try the directory containing this script, then the parent directory. |
---|
| 1135 | ac_confdir=`$as_dirname -- "$0" || |
---|
[749] | 1136 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 1137 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 1138 | X"$0" : 'X\(//\)$' \| \ |
---|
[914] | 1139 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
[749] | 1140 | echo X"$0" | |
---|
[914] | 1141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 1142 | s//\1/ |
---|
| 1143 | q |
---|
| 1144 | } |
---|
| 1145 | /^X\(\/\/\)[^/].*/{ |
---|
| 1146 | s//\1/ |
---|
| 1147 | q |
---|
| 1148 | } |
---|
| 1149 | /^X\(\/\/\)$/{ |
---|
| 1150 | s//\1/ |
---|
| 1151 | q |
---|
| 1152 | } |
---|
| 1153 | /^X\(\/\).*/{ |
---|
| 1154 | s//\1/ |
---|
| 1155 | q |
---|
| 1156 | } |
---|
| 1157 | s/.*/./; q'` |
---|
[749] | 1158 | srcdir=$ac_confdir |
---|
[914] | 1159 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
[749] | 1160 | srcdir=.. |
---|
| 1161 | fi |
---|
| 1162 | else |
---|
| 1163 | ac_srcdir_defaulted=no |
---|
| 1164 | fi |
---|
[914] | 1165 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
| 1166 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
| 1167 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
[749] | 1168 | { (exit 1); exit 1; }; } |
---|
[914] | 1169 | fi |
---|
| 1170 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
| 1171 | ac_abs_confdir=`( |
---|
| 1172 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
[749] | 1173 | { (exit 1); exit 1; }; } |
---|
[914] | 1174 | pwd)` |
---|
| 1175 | # When building in place, set srcdir=. |
---|
| 1176 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
| 1177 | srcdir=. |
---|
[749] | 1178 | fi |
---|
[914] | 1179 | # Remove unnecessary trailing slashes from srcdir. |
---|
| 1180 | # Double slashes in file names in object file debugging info |
---|
| 1181 | # mess up M-x gdb in Emacs. |
---|
| 1182 | case $srcdir in |
---|
| 1183 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
| 1184 | esac |
---|
| 1185 | for ac_var in $ac_precious_vars; do |
---|
| 1186 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1187 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
| 1188 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
| 1189 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
| 1190 | done |
---|
[749] | 1191 | |
---|
| 1192 | # |
---|
| 1193 | # Report the --help message. |
---|
| 1194 | # |
---|
| 1195 | if test "$ac_init_help" = "long"; then |
---|
| 1196 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 1197 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 1198 | cat <<_ACEOF |
---|
| 1199 | \`configure' configures vizservers 0.1 to adapt to many kinds of systems. |
---|
| 1200 | |
---|
| 1201 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 1202 | |
---|
| 1203 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 1204 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 1205 | |
---|
| 1206 | Defaults for the options are specified in brackets. |
---|
| 1207 | |
---|
| 1208 | Configuration: |
---|
| 1209 | -h, --help display this help and exit |
---|
| 1210 | --help=short display options specific to this package |
---|
| 1211 | --help=recursive display the short help of all the included packages |
---|
| 1212 | -V, --version display version information and exit |
---|
| 1213 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 1214 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 1215 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 1216 | -n, --no-create do not create output files |
---|
| 1217 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 1218 | |
---|
| 1219 | Installation directories: |
---|
| 1220 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 1221 | [$ac_default_prefix] |
---|
| 1222 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 1223 | [PREFIX] |
---|
| 1224 | |
---|
| 1225 | By default, \`make install' will install all the files in |
---|
| 1226 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 1227 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 1228 | for instance \`--prefix=\$HOME'. |
---|
| 1229 | |
---|
| 1230 | For better control, use the options below. |
---|
| 1231 | |
---|
| 1232 | Fine tuning of the installation directories: |
---|
| 1233 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 1234 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 1235 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 1236 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 1237 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 1238 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 1239 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 1240 | --includedir=DIR C header files [PREFIX/include] |
---|
| 1241 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
[914] | 1242 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
| 1243 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
| 1244 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
| 1245 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
| 1246 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
| 1247 | --docdir=DIR documentation root [DATAROOTDIR/doc/vizservers] |
---|
| 1248 | --htmldir=DIR html documentation [DOCDIR] |
---|
| 1249 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
| 1250 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
| 1251 | --psdir=DIR ps documentation [DOCDIR] |
---|
[749] | 1252 | _ACEOF |
---|
| 1253 | |
---|
| 1254 | cat <<\_ACEOF |
---|
| 1255 | _ACEOF |
---|
| 1256 | fi |
---|
| 1257 | |
---|
| 1258 | if test -n "$ac_init_help"; then |
---|
| 1259 | case $ac_init_help in |
---|
| 1260 | short | recursive ) echo "Configuration of vizservers 0.1:";; |
---|
| 1261 | esac |
---|
| 1262 | cat <<\_ACEOF |
---|
| 1263 | |
---|
| 1264 | Optional Packages: |
---|
| 1265 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 1266 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[914] | 1267 | --with-tcllib=DIR location of Tcl binary library libtclstubs.a |
---|
[749] | 1268 | [default=/usr/lib] |
---|
[914] | 1269 | --with-tclinclude=DIR location of tcl.h header file [default=/usr/include] |
---|
| 1270 | --with-rappture=DIR location of rappture files lib/librappture2.a and |
---|
[749] | 1271 | include/rappture2/rappture2.h [default=/usr] |
---|
| 1272 | |
---|
| 1273 | Some influential environment variables: |
---|
| 1274 | CC C compiler command |
---|
| 1275 | CFLAGS C compiler flags |
---|
| 1276 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 1277 | nonstandard directory <lib dir> |
---|
[914] | 1278 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
| 1279 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
| 1280 | you have headers in a nonstandard directory <include dir> |
---|
[749] | 1281 | CXX C++ compiler command |
---|
| 1282 | CXXFLAGS C++ compiler flags |
---|
| 1283 | CXXCPP C++ preprocessor |
---|
| 1284 | |
---|
| 1285 | Use these variables to override the choices made by `configure' or to help |
---|
| 1286 | it to find libraries and programs with nonstandard names/locations. |
---|
| 1287 | |
---|
| 1288 | Report bugs to <rappture@nanohub.org>. |
---|
| 1289 | _ACEOF |
---|
[914] | 1290 | ac_status=$? |
---|
[749] | 1291 | fi |
---|
| 1292 | |
---|
| 1293 | if test "$ac_init_help" = "recursive"; then |
---|
| 1294 | # If there are subdirs, report their specific --help. |
---|
| 1295 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
[914] | 1296 | test -d "$ac_dir" || continue |
---|
[749] | 1297 | ac_builddir=. |
---|
| 1298 | |
---|
[914] | 1299 | case "$ac_dir" in |
---|
| 1300 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1301 | *) |
---|
[749] | 1302 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
[914] | 1303 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 1304 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
| 1305 | case $ac_top_builddir_sub in |
---|
| 1306 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 1307 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 1308 | esac ;; |
---|
| 1309 | esac |
---|
| 1310 | ac_abs_top_builddir=$ac_pwd |
---|
| 1311 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 1312 | # for backward compatibility: |
---|
| 1313 | ac_top_builddir=$ac_top_build_prefix |
---|
[749] | 1314 | |
---|
| 1315 | case $srcdir in |
---|
[914] | 1316 | .) # We are building in place. |
---|
[749] | 1317 | ac_srcdir=. |
---|
[914] | 1318 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 1319 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 1320 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[749] | 1321 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[914] | 1322 | ac_top_srcdir=$srcdir |
---|
| 1323 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 1324 | *) # Relative name. |
---|
| 1325 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 1326 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 1327 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[749] | 1328 | esac |
---|
[914] | 1329 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[749] | 1330 | |
---|
[914] | 1331 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
| 1332 | # Check for guested configure. |
---|
| 1333 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
| 1334 | echo && |
---|
| 1335 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
| 1336 | elif test -f "$ac_srcdir/configure"; then |
---|
| 1337 | echo && |
---|
| 1338 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
[749] | 1339 | else |
---|
| 1340 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
[914] | 1341 | fi || ac_status=$? |
---|
| 1342 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
[749] | 1343 | done |
---|
| 1344 | fi |
---|
| 1345 | |
---|
[914] | 1346 | test -n "$ac_init_help" && exit $ac_status |
---|
[749] | 1347 | if $ac_init_version; then |
---|
| 1348 | cat <<\_ACEOF |
---|
| 1349 | vizservers configure 0.1 |
---|
[914] | 1350 | generated by GNU Autoconf 2.61 |
---|
[749] | 1351 | |
---|
[914] | 1352 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
| 1353 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
[749] | 1354 | This configure script is free software; the Free Software Foundation |
---|
| 1355 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1356 | _ACEOF |
---|
[914] | 1357 | exit |
---|
[749] | 1358 | fi |
---|
[914] | 1359 | cat >config.log <<_ACEOF |
---|
[749] | 1360 | This file contains any messages produced by compilers while |
---|
| 1361 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1362 | |
---|
| 1363 | It was created by vizservers $as_me 0.1, which was |
---|
[914] | 1364 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
[749] | 1365 | |
---|
| 1366 | $ $0 $@ |
---|
| 1367 | |
---|
| 1368 | _ACEOF |
---|
[914] | 1369 | exec 5>>config.log |
---|
[749] | 1370 | { |
---|
| 1371 | cat <<_ASUNAME |
---|
| 1372 | ## --------- ## |
---|
| 1373 | ## Platform. ## |
---|
| 1374 | ## --------- ## |
---|
| 1375 | |
---|
| 1376 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1377 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1378 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1379 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1380 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1381 | |
---|
| 1382 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1383 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1384 | |
---|
| 1385 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1386 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1387 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
[914] | 1388 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
[749] | 1389 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1390 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1391 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1392 | |
---|
| 1393 | _ASUNAME |
---|
| 1394 | |
---|
| 1395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1396 | for as_dir in $PATH |
---|
| 1397 | do |
---|
| 1398 | IFS=$as_save_IFS |
---|
| 1399 | test -z "$as_dir" && as_dir=. |
---|
| 1400 | echo "PATH: $as_dir" |
---|
| 1401 | done |
---|
[914] | 1402 | IFS=$as_save_IFS |
---|
[749] | 1403 | |
---|
| 1404 | } >&5 |
---|
| 1405 | |
---|
| 1406 | cat >&5 <<_ACEOF |
---|
| 1407 | |
---|
| 1408 | |
---|
| 1409 | ## ----------- ## |
---|
| 1410 | ## Core tests. ## |
---|
| 1411 | ## ----------- ## |
---|
| 1412 | |
---|
| 1413 | _ACEOF |
---|
| 1414 | |
---|
| 1415 | |
---|
| 1416 | # Keep a trace of the command line. |
---|
| 1417 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1418 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1419 | # Also quote any args containing shell meta-characters. |
---|
| 1420 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1421 | ac_configure_args= |
---|
| 1422 | ac_configure_args0= |
---|
| 1423 | ac_configure_args1= |
---|
| 1424 | ac_must_keep_next=false |
---|
| 1425 | for ac_pass in 1 2 |
---|
| 1426 | do |
---|
| 1427 | for ac_arg |
---|
| 1428 | do |
---|
| 1429 | case $ac_arg in |
---|
| 1430 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1431 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1432 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1433 | continue ;; |
---|
[914] | 1434 | *\'*) |
---|
[749] | 1435 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1436 | esac |
---|
| 1437 | case $ac_pass in |
---|
| 1438 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1439 | 2) |
---|
| 1440 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1441 | if test $ac_must_keep_next = true; then |
---|
| 1442 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1443 | else |
---|
| 1444 | case $ac_arg in |
---|
| 1445 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1446 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1447 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1448 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1449 | case "$ac_configure_args0 " in |
---|
| 1450 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1451 | esac |
---|
| 1452 | ;; |
---|
| 1453 | -* ) ac_must_keep_next=true ;; |
---|
| 1454 | esac |
---|
| 1455 | fi |
---|
[914] | 1456 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
[749] | 1457 | ;; |
---|
| 1458 | esac |
---|
| 1459 | done |
---|
| 1460 | done |
---|
| 1461 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1462 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1463 | |
---|
| 1464 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1465 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1466 | # would cause problems or look ugly. |
---|
[914] | 1467 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
| 1468 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
[749] | 1469 | trap 'exit_status=$? |
---|
| 1470 | # Save into config.log some information that might help in debugging. |
---|
| 1471 | { |
---|
| 1472 | echo |
---|
| 1473 | |
---|
| 1474 | cat <<\_ASBOX |
---|
| 1475 | ## ---------------- ## |
---|
| 1476 | ## Cache variables. ## |
---|
| 1477 | ## ---------------- ## |
---|
| 1478 | _ASBOX |
---|
| 1479 | echo |
---|
| 1480 | # The following way of writing the cache mishandles newlines in values, |
---|
[914] | 1481 | ( |
---|
| 1482 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
| 1483 | eval ac_val=\$$ac_var |
---|
| 1484 | case $ac_val in #( |
---|
| 1485 | *${as_nl}*) |
---|
| 1486 | case $ac_var in #( |
---|
| 1487 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
| 1488 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
| 1489 | esac |
---|
| 1490 | case $ac_var in #( |
---|
| 1491 | _ | IFS | as_nl) ;; #( |
---|
| 1492 | *) $as_unset $ac_var ;; |
---|
| 1493 | esac ;; |
---|
| 1494 | esac |
---|
| 1495 | done |
---|
[749] | 1496 | (set) 2>&1 | |
---|
[914] | 1497 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
| 1498 | *${as_nl}ac_space=\ *) |
---|
[749] | 1499 | sed -n \ |
---|
[914] | 1500 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
| 1501 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
| 1502 | ;; #( |
---|
[749] | 1503 | *) |
---|
[914] | 1504 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[749] | 1505 | ;; |
---|
[914] | 1506 | esac | |
---|
| 1507 | sort |
---|
| 1508 | ) |
---|
[749] | 1509 | echo |
---|
| 1510 | |
---|
| 1511 | cat <<\_ASBOX |
---|
| 1512 | ## ----------------- ## |
---|
| 1513 | ## Output variables. ## |
---|
| 1514 | ## ----------------- ## |
---|
| 1515 | _ASBOX |
---|
| 1516 | echo |
---|
| 1517 | for ac_var in $ac_subst_vars |
---|
| 1518 | do |
---|
[914] | 1519 | eval ac_val=\$$ac_var |
---|
| 1520 | case $ac_val in |
---|
| 1521 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1522 | esac |
---|
| 1523 | echo "$ac_var='\''$ac_val'\''" |
---|
[749] | 1524 | done | sort |
---|
| 1525 | echo |
---|
| 1526 | |
---|
| 1527 | if test -n "$ac_subst_files"; then |
---|
| 1528 | cat <<\_ASBOX |
---|
[914] | 1529 | ## ------------------- ## |
---|
| 1530 | ## File substitutions. ## |
---|
| 1531 | ## ------------------- ## |
---|
[749] | 1532 | _ASBOX |
---|
| 1533 | echo |
---|
| 1534 | for ac_var in $ac_subst_files |
---|
| 1535 | do |
---|
[914] | 1536 | eval ac_val=\$$ac_var |
---|
| 1537 | case $ac_val in |
---|
| 1538 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
| 1539 | esac |
---|
| 1540 | echo "$ac_var='\''$ac_val'\''" |
---|
[749] | 1541 | done | sort |
---|
| 1542 | echo |
---|
| 1543 | fi |
---|
| 1544 | |
---|
| 1545 | if test -s confdefs.h; then |
---|
| 1546 | cat <<\_ASBOX |
---|
| 1547 | ## ----------- ## |
---|
| 1548 | ## confdefs.h. ## |
---|
| 1549 | ## ----------- ## |
---|
| 1550 | _ASBOX |
---|
| 1551 | echo |
---|
[914] | 1552 | cat confdefs.h |
---|
[749] | 1553 | echo |
---|
| 1554 | fi |
---|
| 1555 | test "$ac_signal" != 0 && |
---|
| 1556 | echo "$as_me: caught signal $ac_signal" |
---|
| 1557 | echo "$as_me: exit $exit_status" |
---|
| 1558 | } >&5 |
---|
[914] | 1559 | rm -f core *.core core.conftest.* && |
---|
| 1560 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
[749] | 1561 | exit $exit_status |
---|
[914] | 1562 | ' 0 |
---|
[749] | 1563 | for ac_signal in 1 2 13 15; do |
---|
| 1564 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1565 | done |
---|
| 1566 | ac_signal=0 |
---|
| 1567 | |
---|
| 1568 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
[914] | 1569 | rm -f -r conftest* confdefs.h |
---|
[749] | 1570 | |
---|
| 1571 | # Predefined preprocessor variables. |
---|
| 1572 | |
---|
| 1573 | cat >>confdefs.h <<_ACEOF |
---|
| 1574 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1575 | _ACEOF |
---|
| 1576 | |
---|
| 1577 | |
---|
| 1578 | cat >>confdefs.h <<_ACEOF |
---|
| 1579 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1580 | _ACEOF |
---|
| 1581 | |
---|
| 1582 | |
---|
| 1583 | cat >>confdefs.h <<_ACEOF |
---|
| 1584 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1585 | _ACEOF |
---|
| 1586 | |
---|
| 1587 | |
---|
| 1588 | cat >>confdefs.h <<_ACEOF |
---|
| 1589 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1590 | _ACEOF |
---|
| 1591 | |
---|
| 1592 | |
---|
| 1593 | cat >>confdefs.h <<_ACEOF |
---|
| 1594 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1595 | _ACEOF |
---|
| 1596 | |
---|
| 1597 | |
---|
| 1598 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1599 | # Prefer explicitly selected file to automatically selected ones. |
---|
[914] | 1600 | if test -n "$CONFIG_SITE"; then |
---|
| 1601 | set x "$CONFIG_SITE" |
---|
| 1602 | elif test "x$prefix" != xNONE; then |
---|
| 1603 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
| 1604 | else |
---|
| 1605 | set x "$ac_default_prefix/share/config.site" \ |
---|
| 1606 | "$ac_default_prefix/etc/config.site" |
---|
[749] | 1607 | fi |
---|
[914] | 1608 | shift |
---|
| 1609 | for ac_site_file |
---|
| 1610 | do |
---|
[749] | 1611 | if test -r "$ac_site_file"; then |
---|
| 1612 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1613 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1614 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1615 | . "$ac_site_file" |
---|
| 1616 | fi |
---|
| 1617 | done |
---|
| 1618 | |
---|
| 1619 | if test -r "$cache_file"; then |
---|
| 1620 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1621 | # files actually), so we avoid doing that. |
---|
| 1622 | if test -f "$cache_file"; then |
---|
| 1623 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1624 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1625 | case $cache_file in |
---|
[914] | 1626 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
| 1627 | *) . "./$cache_file";; |
---|
[749] | 1628 | esac |
---|
| 1629 | fi |
---|
| 1630 | else |
---|
| 1631 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1632 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1633 | >$cache_file |
---|
| 1634 | fi |
---|
| 1635 | |
---|
| 1636 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1637 | # value. |
---|
| 1638 | ac_cache_corrupted=false |
---|
[914] | 1639 | for ac_var in $ac_precious_vars; do |
---|
[749] | 1640 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1641 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
[914] | 1642 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
| 1643 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
[749] | 1644 | case $ac_old_set,$ac_new_set in |
---|
| 1645 | set,) |
---|
| 1646 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1647 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1648 | ac_cache_corrupted=: ;; |
---|
| 1649 | ,set) |
---|
| 1650 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1651 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1652 | ac_cache_corrupted=: ;; |
---|
| 1653 | ,);; |
---|
| 1654 | *) |
---|
| 1655 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1656 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1657 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1658 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1659 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1660 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1661 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1662 | ac_cache_corrupted=: |
---|
| 1663 | fi;; |
---|
| 1664 | esac |
---|
| 1665 | # Pass precious variables to config.status. |
---|
| 1666 | if test "$ac_new_set" = set; then |
---|
| 1667 | case $ac_new_val in |
---|
[914] | 1668 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
[749] | 1669 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1670 | esac |
---|
| 1671 | case " $ac_configure_args " in |
---|
| 1672 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1673 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1674 | esac |
---|
| 1675 | fi |
---|
| 1676 | done |
---|
| 1677 | if $ac_cache_corrupted; then |
---|
| 1678 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1679 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1680 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1681 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1682 | { (exit 1); exit 1; }; } |
---|
| 1683 | fi |
---|
| 1684 | |
---|
| 1685 | |
---|
| 1686 | |
---|
| 1687 | |
---|
| 1688 | |
---|
| 1689 | |
---|
| 1690 | |
---|
| 1691 | |
---|
| 1692 | |
---|
| 1693 | |
---|
| 1694 | |
---|
| 1695 | |
---|
| 1696 | |
---|
| 1697 | |
---|
| 1698 | |
---|
| 1699 | |
---|
| 1700 | |
---|
| 1701 | |
---|
| 1702 | |
---|
| 1703 | |
---|
| 1704 | |
---|
| 1705 | |
---|
| 1706 | |
---|
| 1707 | |
---|
| 1708 | |
---|
[914] | 1709 | ac_ext=c |
---|
| 1710 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
[749] | 1714 | |
---|
| 1715 | |
---|
| 1716 | |
---|
| 1717 | VERSION=0.0.1 |
---|
| 1718 | |
---|
| 1719 | |
---|
| 1720 | #------------------------------------------------------------------------ |
---|
| 1721 | # Handle the --prefix=... option |
---|
| 1722 | #------------------------------------------------------------------------ |
---|
| 1723 | |
---|
| 1724 | if test "${prefix}" = "NONE"; then |
---|
| 1725 | prefix=/usr/local |
---|
| 1726 | fi |
---|
| 1727 | if test "${exec_prefix}" = "NONE"; then |
---|
| 1728 | exec_prefix=$prefix |
---|
| 1729 | fi |
---|
| 1730 | |
---|
| 1731 | if test "${libdir}" != "${prefix}/lib"; then |
---|
| 1732 | LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}" |
---|
| 1733 | else |
---|
| 1734 | LIB_SEARCH_DIRS="-L ${libdir}" |
---|
| 1735 | fi |
---|
| 1736 | |
---|
| 1737 | |
---|
| 1738 | |
---|
| 1739 | ac_aux_dir= |
---|
[914] | 1740 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
| 1741 | if test -f "$ac_dir/install-sh"; then |
---|
[749] | 1742 | ac_aux_dir=$ac_dir |
---|
| 1743 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1744 | break |
---|
[914] | 1745 | elif test -f "$ac_dir/install.sh"; then |
---|
[749] | 1746 | ac_aux_dir=$ac_dir |
---|
| 1747 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1748 | break |
---|
[914] | 1749 | elif test -f "$ac_dir/shtool"; then |
---|
[749] | 1750 | ac_aux_dir=$ac_dir |
---|
| 1751 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1752 | break |
---|
| 1753 | fi |
---|
| 1754 | done |
---|
| 1755 | if test -z "$ac_aux_dir"; then |
---|
[914] | 1756 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
---|
| 1757 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
---|
[749] | 1758 | { (exit 1); exit 1; }; } |
---|
| 1759 | fi |
---|
| 1760 | |
---|
[914] | 1761 | # These three variables are undocumented and unsupported, |
---|
| 1762 | # and are intended to be withdrawn in a future Autoconf release. |
---|
| 1763 | # They can cause serious problems if a builder's source tree is in a directory |
---|
| 1764 | # whose full name contains unusual characters. |
---|
| 1765 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
| 1766 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
| 1767 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
| 1768 | |
---|
| 1769 | |
---|
[749] | 1770 | # Find a good install program. We prefer a C program (faster), |
---|
| 1771 | # so one script is as good as another. But avoid the broken or |
---|
| 1772 | # incompatible versions: |
---|
| 1773 | # SysV /etc/install, /usr/sbin/install |
---|
| 1774 | # SunOS /usr/etc/install |
---|
| 1775 | # IRIX /sbin/install |
---|
| 1776 | # AIX /bin/install |
---|
| 1777 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1778 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1779 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1780 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1781 | # OS/2's system install, which has a completely different semantic |
---|
| 1782 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
[914] | 1783 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1784 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
[749] | 1785 | if test -z "$INSTALL"; then |
---|
| 1786 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1788 | else |
---|
| 1789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1790 | for as_dir in $PATH |
---|
| 1791 | do |
---|
| 1792 | IFS=$as_save_IFS |
---|
| 1793 | test -z "$as_dir" && as_dir=. |
---|
| 1794 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1795 | case $as_dir/ in |
---|
| 1796 | ./ | .// | /cC/* | \ |
---|
| 1797 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1798 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1799 | /usr/ucb/* ) ;; |
---|
| 1800 | *) |
---|
| 1801 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1802 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1803 | # by default. |
---|
| 1804 | for ac_prog in ginstall scoinst install; do |
---|
| 1805 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 1806 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
[749] | 1807 | if test $ac_prog = install && |
---|
| 1808 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1809 | # AIX install. It has an incompatible calling convention. |
---|
| 1810 | : |
---|
| 1811 | elif test $ac_prog = install && |
---|
| 1812 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1813 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1814 | : |
---|
| 1815 | else |
---|
| 1816 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1817 | break 3 |
---|
| 1818 | fi |
---|
| 1819 | fi |
---|
| 1820 | done |
---|
| 1821 | done |
---|
| 1822 | ;; |
---|
| 1823 | esac |
---|
| 1824 | done |
---|
[914] | 1825 | IFS=$as_save_IFS |
---|
[749] | 1826 | |
---|
| 1827 | |
---|
| 1828 | fi |
---|
| 1829 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1830 | INSTALL=$ac_cv_path_install |
---|
| 1831 | else |
---|
[914] | 1832 | # As a last resort, use the slow shell script. Don't cache a |
---|
| 1833 | # value for INSTALL within a source directory, because that will |
---|
[749] | 1834 | # break other packages using the cache if that directory is |
---|
[914] | 1835 | # removed, or if the value is a relative name. |
---|
[749] | 1836 | INSTALL=$ac_install_sh |
---|
| 1837 | fi |
---|
| 1838 | fi |
---|
[914] | 1839 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1840 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
[749] | 1841 | |
---|
| 1842 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1843 | # It thinks the first close brace ends the variable substitution. |
---|
| 1844 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1845 | |
---|
| 1846 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1847 | |
---|
| 1848 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1849 | |
---|
[914] | 1850 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1851 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
---|
| 1852 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
| 1853 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 1854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1855 | else |
---|
| 1856 | cat >conftest.make <<\_ACEOF |
---|
[914] | 1857 | SHELL = /bin/sh |
---|
[749] | 1858 | all: |
---|
[914] | 1859 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
[749] | 1860 | _ACEOF |
---|
| 1861 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
[914] | 1862 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
| 1863 | *@@@%%%=?*=@@@%%%*) |
---|
| 1864 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
| 1865 | *) |
---|
| 1866 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
| 1867 | esac |
---|
[749] | 1868 | rm -f conftest.make |
---|
| 1869 | fi |
---|
[914] | 1870 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
| 1871 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1872 | echo "${ECHO_T}yes" >&6; } |
---|
[749] | 1873 | SET_MAKE= |
---|
| 1874 | else |
---|
[914] | 1875 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1876 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 1877 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1878 | fi |
---|
| 1879 | |
---|
| 1880 | |
---|
| 1881 | ac_ext=c |
---|
| 1882 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1886 | if test -n "$ac_tool_prefix"; then |
---|
| 1887 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1888 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
[914] | 1889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 1891 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1893 | else |
---|
| 1894 | if test -n "$CC"; then |
---|
| 1895 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1896 | else |
---|
| 1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1898 | for as_dir in $PATH |
---|
| 1899 | do |
---|
| 1900 | IFS=$as_save_IFS |
---|
| 1901 | test -z "$as_dir" && as_dir=. |
---|
| 1902 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 1903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 1904 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1906 | break 2 |
---|
| 1907 | fi |
---|
| 1908 | done |
---|
| 1909 | done |
---|
[914] | 1910 | IFS=$as_save_IFS |
---|
[749] | 1911 | |
---|
| 1912 | fi |
---|
| 1913 | fi |
---|
| 1914 | CC=$ac_cv_prog_CC |
---|
| 1915 | if test -n "$CC"; then |
---|
[914] | 1916 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1917 | echo "${ECHO_T}$CC" >&6; } |
---|
[749] | 1918 | else |
---|
[914] | 1919 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1920 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 1921 | fi |
---|
| 1922 | |
---|
[914] | 1923 | |
---|
[749] | 1924 | fi |
---|
| 1925 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1926 | ac_ct_CC=$CC |
---|
| 1927 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1928 | set dummy gcc; ac_word=$2 |
---|
[914] | 1929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 1931 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1933 | else |
---|
| 1934 | if test -n "$ac_ct_CC"; then |
---|
| 1935 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1936 | else |
---|
| 1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1938 | for as_dir in $PATH |
---|
| 1939 | do |
---|
| 1940 | IFS=$as_save_IFS |
---|
| 1941 | test -z "$as_dir" && as_dir=. |
---|
| 1942 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 1943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 1944 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 1945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1946 | break 2 |
---|
| 1947 | fi |
---|
| 1948 | done |
---|
| 1949 | done |
---|
[914] | 1950 | IFS=$as_save_IFS |
---|
[749] | 1951 | |
---|
| 1952 | fi |
---|
| 1953 | fi |
---|
| 1954 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1955 | if test -n "$ac_ct_CC"; then |
---|
[914] | 1956 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1957 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
[749] | 1958 | else |
---|
[914] | 1959 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1960 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 1961 | fi |
---|
| 1962 | |
---|
[914] | 1963 | if test "x$ac_ct_CC" = x; then |
---|
| 1964 | CC="" |
---|
| 1965 | else |
---|
| 1966 | case $cross_compiling:$ac_tool_warned in |
---|
| 1967 | yes:) |
---|
| 1968 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 1969 | whose name does not start with the host triplet. If you think this |
---|
| 1970 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 1971 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 1972 | whose name does not start with the host triplet. If you think this |
---|
| 1973 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 1974 | ac_tool_warned=yes ;; |
---|
| 1975 | esac |
---|
| 1976 | CC=$ac_ct_CC |
---|
| 1977 | fi |
---|
[749] | 1978 | else |
---|
| 1979 | CC="$ac_cv_prog_CC" |
---|
| 1980 | fi |
---|
| 1981 | |
---|
| 1982 | if test -z "$CC"; then |
---|
[914] | 1983 | if test -n "$ac_tool_prefix"; then |
---|
| 1984 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
[749] | 1985 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
[914] | 1986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 1988 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1990 | else |
---|
| 1991 | if test -n "$CC"; then |
---|
| 1992 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1993 | else |
---|
| 1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1995 | for as_dir in $PATH |
---|
| 1996 | do |
---|
| 1997 | IFS=$as_save_IFS |
---|
| 1998 | test -z "$as_dir" && as_dir=. |
---|
| 1999 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 2000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 2001 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2003 | break 2 |
---|
| 2004 | fi |
---|
| 2005 | done |
---|
| 2006 | done |
---|
[914] | 2007 | IFS=$as_save_IFS |
---|
[749] | 2008 | |
---|
| 2009 | fi |
---|
| 2010 | fi |
---|
| 2011 | CC=$ac_cv_prog_CC |
---|
| 2012 | if test -n "$CC"; then |
---|
[914] | 2013 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2014 | echo "${ECHO_T}$CC" >&6; } |
---|
[749] | 2015 | else |
---|
[914] | 2016 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2017 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 2018 | fi |
---|
| 2019 | |
---|
[914] | 2020 | |
---|
[749] | 2021 | fi |
---|
| 2022 | fi |
---|
| 2023 | if test -z "$CC"; then |
---|
| 2024 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2025 | set dummy cc; ac_word=$2 |
---|
[914] | 2026 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 2028 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2030 | else |
---|
| 2031 | if test -n "$CC"; then |
---|
| 2032 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2033 | else |
---|
| 2034 | ac_prog_rejected=no |
---|
| 2035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2036 | for as_dir in $PATH |
---|
| 2037 | do |
---|
| 2038 | IFS=$as_save_IFS |
---|
| 2039 | test -z "$as_dir" && as_dir=. |
---|
| 2040 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 2041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 2042 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2043 | ac_prog_rejected=yes |
---|
| 2044 | continue |
---|
| 2045 | fi |
---|
| 2046 | ac_cv_prog_CC="cc" |
---|
| 2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2048 | break 2 |
---|
| 2049 | fi |
---|
| 2050 | done |
---|
| 2051 | done |
---|
[914] | 2052 | IFS=$as_save_IFS |
---|
[749] | 2053 | |
---|
| 2054 | if test $ac_prog_rejected = yes; then |
---|
| 2055 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2056 | set dummy $ac_cv_prog_CC |
---|
| 2057 | shift |
---|
| 2058 | if test $# != 0; then |
---|
| 2059 | # We chose a different compiler from the bogus one. |
---|
| 2060 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2061 | # first if we set CC to just the basename; use the full file name. |
---|
| 2062 | shift |
---|
| 2063 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2064 | fi |
---|
| 2065 | fi |
---|
| 2066 | fi |
---|
| 2067 | fi |
---|
| 2068 | CC=$ac_cv_prog_CC |
---|
| 2069 | if test -n "$CC"; then |
---|
[914] | 2070 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2071 | echo "${ECHO_T}$CC" >&6; } |
---|
[749] | 2072 | else |
---|
[914] | 2073 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2074 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 2075 | fi |
---|
| 2076 | |
---|
[914] | 2077 | |
---|
[749] | 2078 | fi |
---|
| 2079 | if test -z "$CC"; then |
---|
| 2080 | if test -n "$ac_tool_prefix"; then |
---|
[914] | 2081 | for ac_prog in cl.exe |
---|
[749] | 2082 | do |
---|
| 2083 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2084 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[914] | 2085 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 2087 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2089 | else |
---|
| 2090 | if test -n "$CC"; then |
---|
| 2091 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2092 | else |
---|
| 2093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2094 | for as_dir in $PATH |
---|
| 2095 | do |
---|
| 2096 | IFS=$as_save_IFS |
---|
| 2097 | test -z "$as_dir" && as_dir=. |
---|
| 2098 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 2099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 2100 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2102 | break 2 |
---|
| 2103 | fi |
---|
| 2104 | done |
---|
| 2105 | done |
---|
[914] | 2106 | IFS=$as_save_IFS |
---|
[749] | 2107 | |
---|
| 2108 | fi |
---|
| 2109 | fi |
---|
| 2110 | CC=$ac_cv_prog_CC |
---|
| 2111 | if test -n "$CC"; then |
---|
[914] | 2112 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2113 | echo "${ECHO_T}$CC" >&6; } |
---|
[749] | 2114 | else |
---|
[914] | 2115 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2116 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 2117 | fi |
---|
| 2118 | |
---|
[914] | 2119 | |
---|
[749] | 2120 | test -n "$CC" && break |
---|
| 2121 | done |
---|
| 2122 | fi |
---|
| 2123 | if test -z "$CC"; then |
---|
| 2124 | ac_ct_CC=$CC |
---|
[914] | 2125 | for ac_prog in cl.exe |
---|
[749] | 2126 | do |
---|
| 2127 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2128 | set dummy $ac_prog; ac_word=$2 |
---|
[914] | 2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 2131 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2133 | else |
---|
| 2134 | if test -n "$ac_ct_CC"; then |
---|
| 2135 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2136 | else |
---|
| 2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2138 | for as_dir in $PATH |
---|
| 2139 | do |
---|
| 2140 | IFS=$as_save_IFS |
---|
| 2141 | test -z "$as_dir" && as_dir=. |
---|
| 2142 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 2143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 2144 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2146 | break 2 |
---|
| 2147 | fi |
---|
| 2148 | done |
---|
| 2149 | done |
---|
[914] | 2150 | IFS=$as_save_IFS |
---|
[749] | 2151 | |
---|
| 2152 | fi |
---|
| 2153 | fi |
---|
| 2154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2155 | if test -n "$ac_ct_CC"; then |
---|
[914] | 2156 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2157 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
[749] | 2158 | else |
---|
[914] | 2159 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2160 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 2161 | fi |
---|
| 2162 | |
---|
[914] | 2163 | |
---|
[749] | 2164 | test -n "$ac_ct_CC" && break |
---|
| 2165 | done |
---|
| 2166 | |
---|
[914] | 2167 | if test "x$ac_ct_CC" = x; then |
---|
| 2168 | CC="" |
---|
| 2169 | else |
---|
| 2170 | case $cross_compiling:$ac_tool_warned in |
---|
| 2171 | yes:) |
---|
| 2172 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2173 | whose name does not start with the host triplet. If you think this |
---|
| 2174 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2175 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2176 | whose name does not start with the host triplet. If you think this |
---|
| 2177 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2178 | ac_tool_warned=yes ;; |
---|
| 2179 | esac |
---|
| 2180 | CC=$ac_ct_CC |
---|
| 2181 | fi |
---|
[749] | 2182 | fi |
---|
| 2183 | |
---|
| 2184 | fi |
---|
| 2185 | |
---|
| 2186 | |
---|
| 2187 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2188 | See \`config.log' for more details." >&5 |
---|
| 2189 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2190 | See \`config.log' for more details." >&2;} |
---|
| 2191 | { (exit 1); exit 1; }; } |
---|
| 2192 | |
---|
| 2193 | # Provide some information about the compiler. |
---|
[914] | 2194 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
[749] | 2195 | ac_compiler=`set X $ac_compile; echo $2` |
---|
[914] | 2196 | { (ac_try="$ac_compiler --version >&5" |
---|
| 2197 | case "(($ac_try" in |
---|
| 2198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2199 | *) ac_try_echo=$ac_try;; |
---|
| 2200 | esac |
---|
| 2201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2202 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
[749] | 2203 | ac_status=$? |
---|
| 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2205 | (exit $ac_status); } |
---|
[914] | 2206 | { (ac_try="$ac_compiler -v >&5" |
---|
| 2207 | case "(($ac_try" in |
---|
| 2208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2209 | *) ac_try_echo=$ac_try;; |
---|
| 2210 | esac |
---|
| 2211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2212 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
[749] | 2213 | ac_status=$? |
---|
| 2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2215 | (exit $ac_status); } |
---|
[914] | 2216 | { (ac_try="$ac_compiler -V >&5" |
---|
| 2217 | case "(($ac_try" in |
---|
| 2218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2219 | *) ac_try_echo=$ac_try;; |
---|
| 2220 | esac |
---|
| 2221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2222 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
[749] | 2223 | ac_status=$? |
---|
| 2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2225 | (exit $ac_status); } |
---|
| 2226 | |
---|
| 2227 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2228 | /* confdefs.h. */ |
---|
| 2229 | _ACEOF |
---|
| 2230 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2231 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2232 | /* end confdefs.h. */ |
---|
| 2233 | |
---|
| 2234 | int |
---|
| 2235 | main () |
---|
| 2236 | { |
---|
| 2237 | |
---|
| 2238 | ; |
---|
| 2239 | return 0; |
---|
| 2240 | } |
---|
| 2241 | _ACEOF |
---|
| 2242 | ac_clean_files_save=$ac_clean_files |
---|
| 2243 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 2244 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2245 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2246 | # of exeext. |
---|
[914] | 2247 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
| 2248 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
---|
[749] | 2249 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
[914] | 2250 | # |
---|
| 2251 | # List of possible output files, starting from the most likely. |
---|
| 2252 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
| 2253 | # only as a last resort. b.out is created by i960 compilers. |
---|
| 2254 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
| 2255 | # |
---|
| 2256 | # The IRIX 6 linker writes into existing files which may not be |
---|
| 2257 | # executable, retaining their permissions. Remove them first so a |
---|
| 2258 | # subsequent execution test works. |
---|
| 2259 | ac_rmfiles= |
---|
| 2260 | for ac_file in $ac_files |
---|
| 2261 | do |
---|
| 2262 | case $ac_file in |
---|
| 2263 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
| 2264 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
| 2265 | esac |
---|
| 2266 | done |
---|
| 2267 | rm -f $ac_rmfiles |
---|
| 2268 | |
---|
| 2269 | if { (ac_try="$ac_link_default" |
---|
| 2270 | case "(($ac_try" in |
---|
| 2271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2272 | *) ac_try_echo=$ac_try;; |
---|
| 2273 | esac |
---|
| 2274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2275 | (eval "$ac_link_default") 2>&5 |
---|
[749] | 2276 | ac_status=$? |
---|
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2278 | (exit $ac_status); }; then |
---|
[914] | 2279 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
| 2280 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
| 2281 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
| 2282 | # so that the user can short-circuit this test for compilers unknown to |
---|
| 2283 | # Autoconf. |
---|
| 2284 | for ac_file in $ac_files '' |
---|
[749] | 2285 | do |
---|
| 2286 | test -f "$ac_file" || continue |
---|
| 2287 | case $ac_file in |
---|
[914] | 2288 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
[749] | 2289 | ;; |
---|
| 2290 | [ab].out ) |
---|
| 2291 | # We found the default executable, but exeext='' is most |
---|
| 2292 | # certainly right. |
---|
| 2293 | break;; |
---|
| 2294 | *.* ) |
---|
[914] | 2295 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
| 2296 | then :; else |
---|
| 2297 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2298 | fi |
---|
| 2299 | # We set ac_cv_exeext here because the later test for it is not |
---|
| 2300 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
| 2301 | # argument, so we may need to know it at that point already. |
---|
| 2302 | # Even if this section looks crufty: it has the advantage of |
---|
| 2303 | # actually working. |
---|
[749] | 2304 | break;; |
---|
| 2305 | * ) |
---|
| 2306 | break;; |
---|
| 2307 | esac |
---|
| 2308 | done |
---|
[914] | 2309 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
| 2310 | |
---|
[749] | 2311 | else |
---|
[914] | 2312 | ac_file='' |
---|
| 2313 | fi |
---|
| 2314 | |
---|
| 2315 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2316 | echo "${ECHO_T}$ac_file" >&6; } |
---|
| 2317 | if test -z "$ac_file"; then |
---|
[749] | 2318 | echo "$as_me: failed program was:" >&5 |
---|
| 2319 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2320 | |
---|
| 2321 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
| 2322 | See \`config.log' for more details." >&5 |
---|
| 2323 | echo "$as_me: error: C compiler cannot create executables |
---|
| 2324 | See \`config.log' for more details." >&2;} |
---|
| 2325 | { (exit 77); exit 77; }; } |
---|
| 2326 | fi |
---|
| 2327 | |
---|
| 2328 | ac_exeext=$ac_cv_exeext |
---|
| 2329 | |
---|
[914] | 2330 | # Check that the compiler produces executables we can run. If not, either |
---|
[749] | 2331 | # the compiler is broken, or we cross compile. |
---|
[914] | 2332 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 2333 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
---|
[749] | 2334 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2335 | # If not cross compiling, check that we can run a simple program. |
---|
| 2336 | if test "$cross_compiling" != yes; then |
---|
| 2337 | if { ac_try='./$ac_file' |
---|
[914] | 2338 | { (case "(($ac_try" in |
---|
| 2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2340 | *) ac_try_echo=$ac_try;; |
---|
| 2341 | esac |
---|
| 2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2343 | (eval "$ac_try") 2>&5 |
---|
[749] | 2344 | ac_status=$? |
---|
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2346 | (exit $ac_status); }; }; then |
---|
| 2347 | cross_compiling=no |
---|
| 2348 | else |
---|
| 2349 | if test "$cross_compiling" = maybe; then |
---|
| 2350 | cross_compiling=yes |
---|
| 2351 | else |
---|
| 2352 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
| 2353 | If you meant to cross compile, use \`--host'. |
---|
| 2354 | See \`config.log' for more details." >&5 |
---|
| 2355 | echo "$as_me: error: cannot run C compiled programs. |
---|
| 2356 | If you meant to cross compile, use \`--host'. |
---|
| 2357 | See \`config.log' for more details." >&2;} |
---|
| 2358 | { (exit 1); exit 1; }; } |
---|
| 2359 | fi |
---|
| 2360 | fi |
---|
| 2361 | fi |
---|
[914] | 2362 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2363 | echo "${ECHO_T}yes" >&6; } |
---|
[749] | 2364 | |
---|
| 2365 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2366 | ac_clean_files=$ac_clean_files_save |
---|
[914] | 2367 | # Check that the compiler produces executables we can run. If not, either |
---|
[749] | 2368 | # the compiler is broken, or we cross compile. |
---|
[914] | 2369 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2370 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
| 2371 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2372 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
[749] | 2373 | |
---|
[914] | 2374 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2375 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
| 2376 | if { (ac_try="$ac_link" |
---|
| 2377 | case "(($ac_try" in |
---|
| 2378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2379 | *) ac_try_echo=$ac_try;; |
---|
| 2380 | esac |
---|
| 2381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2382 | (eval "$ac_link") 2>&5 |
---|
[749] | 2383 | ac_status=$? |
---|
| 2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2385 | (exit $ac_status); }; then |
---|
| 2386 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2387 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2388 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2389 | # `rm'. |
---|
| 2390 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2391 | test -f "$ac_file" || continue |
---|
| 2392 | case $ac_file in |
---|
[914] | 2393 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
[749] | 2394 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2395 | break;; |
---|
| 2396 | * ) break;; |
---|
| 2397 | esac |
---|
| 2398 | done |
---|
| 2399 | else |
---|
| 2400 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2401 | See \`config.log' for more details." >&5 |
---|
| 2402 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2403 | See \`config.log' for more details." >&2;} |
---|
| 2404 | { (exit 1); exit 1; }; } |
---|
| 2405 | fi |
---|
| 2406 | |
---|
| 2407 | rm -f conftest$ac_cv_exeext |
---|
[914] | 2408 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2409 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
[749] | 2410 | |
---|
| 2411 | rm -f conftest.$ac_ext |
---|
| 2412 | EXEEXT=$ac_cv_exeext |
---|
| 2413 | ac_exeext=$EXEEXT |
---|
[914] | 2414 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2415 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
[749] | 2416 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2418 | else |
---|
| 2419 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2420 | /* confdefs.h. */ |
---|
| 2421 | _ACEOF |
---|
| 2422 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2424 | /* end confdefs.h. */ |
---|
| 2425 | |
---|
| 2426 | int |
---|
| 2427 | main () |
---|
| 2428 | { |
---|
| 2429 | |
---|
| 2430 | ; |
---|
| 2431 | return 0; |
---|
| 2432 | } |
---|
| 2433 | _ACEOF |
---|
| 2434 | rm -f conftest.o conftest.obj |
---|
[914] | 2435 | if { (ac_try="$ac_compile" |
---|
| 2436 | case "(($ac_try" in |
---|
| 2437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2438 | *) ac_try_echo=$ac_try;; |
---|
| 2439 | esac |
---|
| 2440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2441 | (eval "$ac_compile") 2>&5 |
---|
[749] | 2442 | ac_status=$? |
---|
| 2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2444 | (exit $ac_status); }; then |
---|
[914] | 2445 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
| 2446 | test -f "$ac_file" || continue; |
---|
[749] | 2447 | case $ac_file in |
---|
[914] | 2448 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
[749] | 2449 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2450 | break;; |
---|
| 2451 | esac |
---|
| 2452 | done |
---|
| 2453 | else |
---|
| 2454 | echo "$as_me: failed program was:" >&5 |
---|
| 2455 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2456 | |
---|
| 2457 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2458 | See \`config.log' for more details." >&5 |
---|
| 2459 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2460 | See \`config.log' for more details." >&2;} |
---|
| 2461 | { (exit 1); exit 1; }; } |
---|
| 2462 | fi |
---|
| 2463 | |
---|
| 2464 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2465 | fi |
---|
[914] | 2466 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2467 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
[749] | 2468 | OBJEXT=$ac_cv_objext |
---|
| 2469 | ac_objext=$OBJEXT |
---|
[914] | 2470 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2471 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
[749] | 2472 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2474 | else |
---|
| 2475 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2476 | /* confdefs.h. */ |
---|
| 2477 | _ACEOF |
---|
| 2478 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2479 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2480 | /* end confdefs.h. */ |
---|
| 2481 | |
---|
| 2482 | int |
---|
| 2483 | main () |
---|
| 2484 | { |
---|
| 2485 | #ifndef __GNUC__ |
---|
| 2486 | choke me |
---|
| 2487 | #endif |
---|
| 2488 | |
---|
| 2489 | ; |
---|
| 2490 | return 0; |
---|
| 2491 | } |
---|
| 2492 | _ACEOF |
---|
| 2493 | rm -f conftest.$ac_objext |
---|
[914] | 2494 | if { (ac_try="$ac_compile" |
---|
| 2495 | case "(($ac_try" in |
---|
| 2496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2497 | *) ac_try_echo=$ac_try;; |
---|
| 2498 | esac |
---|
| 2499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2500 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 2501 | ac_status=$? |
---|
| 2502 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2503 | rm -f conftest.er1 |
---|
| 2504 | cat conftest.err >&5 |
---|
| 2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 2506 | (exit $ac_status); } && { |
---|
| 2507 | test -z "$ac_c_werror_flag" || |
---|
| 2508 | test ! -s conftest.err |
---|
| 2509 | } && test -s conftest.$ac_objext; then |
---|
[749] | 2510 | ac_compiler_gnu=yes |
---|
| 2511 | else |
---|
| 2512 | echo "$as_me: failed program was:" >&5 |
---|
| 2513 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2514 | |
---|
[914] | 2515 | ac_compiler_gnu=no |
---|
[749] | 2516 | fi |
---|
[914] | 2517 | |
---|
| 2518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[749] | 2519 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2520 | |
---|
| 2521 | fi |
---|
[914] | 2522 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2523 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
[749] | 2524 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2525 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2526 | ac_save_CFLAGS=$CFLAGS |
---|
[914] | 2527 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2528 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
[749] | 2529 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2531 | else |
---|
[914] | 2532 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
| 2533 | ac_c_werror_flag=yes |
---|
| 2534 | ac_cv_prog_cc_g=no |
---|
| 2535 | CFLAGS="-g" |
---|
| 2536 | cat >conftest.$ac_ext <<_ACEOF |
---|
[749] | 2537 | /* confdefs.h. */ |
---|
| 2538 | _ACEOF |
---|
| 2539 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2540 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2541 | /* end confdefs.h. */ |
---|
| 2542 | |
---|
| 2543 | int |
---|
| 2544 | main () |
---|
| 2545 | { |
---|
| 2546 | |
---|
| 2547 | ; |
---|
| 2548 | return 0; |
---|
| 2549 | } |
---|
| 2550 | _ACEOF |
---|
| 2551 | rm -f conftest.$ac_objext |
---|
[914] | 2552 | if { (ac_try="$ac_compile" |
---|
| 2553 | case "(($ac_try" in |
---|
| 2554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2555 | *) ac_try_echo=$ac_try;; |
---|
| 2556 | esac |
---|
| 2557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2558 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 2559 | ac_status=$? |
---|
| 2560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2561 | rm -f conftest.er1 |
---|
| 2562 | cat conftest.err >&5 |
---|
| 2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 2564 | (exit $ac_status); } && { |
---|
| 2565 | test -z "$ac_c_werror_flag" || |
---|
| 2566 | test ! -s conftest.err |
---|
| 2567 | } && test -s conftest.$ac_objext; then |
---|
| 2568 | ac_cv_prog_cc_g=yes |
---|
| 2569 | else |
---|
| 2570 | echo "$as_me: failed program was:" >&5 |
---|
| 2571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2572 | |
---|
| 2573 | CFLAGS="" |
---|
| 2574 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2575 | /* confdefs.h. */ |
---|
| 2576 | _ACEOF |
---|
| 2577 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2578 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2579 | /* end confdefs.h. */ |
---|
| 2580 | |
---|
| 2581 | int |
---|
| 2582 | main () |
---|
| 2583 | { |
---|
| 2584 | |
---|
| 2585 | ; |
---|
| 2586 | return 0; |
---|
| 2587 | } |
---|
| 2588 | _ACEOF |
---|
| 2589 | rm -f conftest.$ac_objext |
---|
| 2590 | if { (ac_try="$ac_compile" |
---|
| 2591 | case "(($ac_try" in |
---|
| 2592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2593 | *) ac_try_echo=$ac_try;; |
---|
| 2594 | esac |
---|
| 2595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2596 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 2597 | ac_status=$? |
---|
[914] | 2598 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2599 | rm -f conftest.er1 |
---|
| 2600 | cat conftest.err >&5 |
---|
[749] | 2601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 2602 | (exit $ac_status); } && { |
---|
| 2603 | test -z "$ac_c_werror_flag" || |
---|
| 2604 | test ! -s conftest.err |
---|
| 2605 | } && test -s conftest.$ac_objext; then |
---|
| 2606 | : |
---|
| 2607 | else |
---|
| 2608 | echo "$as_me: failed program was:" >&5 |
---|
| 2609 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2610 | |
---|
| 2611 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 2612 | CFLAGS="-g" |
---|
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2614 | /* confdefs.h. */ |
---|
| 2615 | _ACEOF |
---|
| 2616 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2618 | /* end confdefs.h. */ |
---|
| 2619 | |
---|
| 2620 | int |
---|
| 2621 | main () |
---|
| 2622 | { |
---|
| 2623 | |
---|
| 2624 | ; |
---|
| 2625 | return 0; |
---|
| 2626 | } |
---|
| 2627 | _ACEOF |
---|
| 2628 | rm -f conftest.$ac_objext |
---|
| 2629 | if { (ac_try="$ac_compile" |
---|
| 2630 | case "(($ac_try" in |
---|
| 2631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2632 | *) ac_try_echo=$ac_try;; |
---|
| 2633 | esac |
---|
| 2634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2635 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 2636 | ac_status=$? |
---|
[914] | 2637 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2638 | rm -f conftest.er1 |
---|
| 2639 | cat conftest.err >&5 |
---|
[749] | 2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 2641 | (exit $ac_status); } && { |
---|
| 2642 | test -z "$ac_c_werror_flag" || |
---|
| 2643 | test ! -s conftest.err |
---|
| 2644 | } && test -s conftest.$ac_objext; then |
---|
[749] | 2645 | ac_cv_prog_cc_g=yes |
---|
| 2646 | else |
---|
| 2647 | echo "$as_me: failed program was:" >&5 |
---|
| 2648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2649 | |
---|
[914] | 2650 | |
---|
[749] | 2651 | fi |
---|
[914] | 2652 | |
---|
| 2653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[749] | 2654 | fi |
---|
[914] | 2655 | |
---|
| 2656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2657 | fi |
---|
| 2658 | |
---|
| 2659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2660 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
| 2661 | fi |
---|
| 2662 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2663 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
[749] | 2664 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2665 | CFLAGS=$ac_save_CFLAGS |
---|
| 2666 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2667 | if test "$GCC" = yes; then |
---|
| 2668 | CFLAGS="-g -O2" |
---|
| 2669 | else |
---|
| 2670 | CFLAGS="-g" |
---|
| 2671 | fi |
---|
| 2672 | else |
---|
| 2673 | if test "$GCC" = yes; then |
---|
| 2674 | CFLAGS="-O2" |
---|
| 2675 | else |
---|
| 2676 | CFLAGS= |
---|
| 2677 | fi |
---|
| 2678 | fi |
---|
[914] | 2679 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
| 2680 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
| 2681 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
[749] | 2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2683 | else |
---|
[914] | 2684 | ac_cv_prog_cc_c89=no |
---|
[749] | 2685 | ac_save_CC=$CC |
---|
| 2686 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2687 | /* confdefs.h. */ |
---|
| 2688 | _ACEOF |
---|
| 2689 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2690 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2691 | /* end confdefs.h. */ |
---|
| 2692 | #include <stdarg.h> |
---|
| 2693 | #include <stdio.h> |
---|
| 2694 | #include <sys/types.h> |
---|
| 2695 | #include <sys/stat.h> |
---|
| 2696 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2697 | struct buf { int x; }; |
---|
| 2698 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2699 | static char *e (p, i) |
---|
| 2700 | char **p; |
---|
| 2701 | int i; |
---|
| 2702 | { |
---|
| 2703 | return p[i]; |
---|
| 2704 | } |
---|
| 2705 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2706 | { |
---|
| 2707 | char *s; |
---|
| 2708 | va_list v; |
---|
| 2709 | va_start (v,p); |
---|
| 2710 | s = g (p, va_arg (v,int)); |
---|
| 2711 | va_end (v); |
---|
| 2712 | return s; |
---|
| 2713 | } |
---|
| 2714 | |
---|
| 2715 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2716 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2717 | These don't provoke an error unfortunately, instead are silently treated |
---|
[914] | 2718 | as 'x'. The following induces an error, until -std is added to get |
---|
[749] | 2719 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2720 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
[914] | 2721 | that's true only with -std. */ |
---|
[749] | 2722 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2723 | |
---|
[914] | 2724 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
| 2725 | inside strings and character constants. */ |
---|
| 2726 | #define FOO(x) 'x' |
---|
| 2727 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
| 2728 | |
---|
[749] | 2729 | int test (int i, double x); |
---|
| 2730 | struct s1 {int (*f) (int a);}; |
---|
| 2731 | struct s2 {int (*f) (double a);}; |
---|
| 2732 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2733 | int argc; |
---|
| 2734 | char **argv; |
---|
| 2735 | int |
---|
| 2736 | main () |
---|
| 2737 | { |
---|
| 2738 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2739 | ; |
---|
| 2740 | return 0; |
---|
| 2741 | } |
---|
| 2742 | _ACEOF |
---|
[914] | 2743 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
| 2744 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
[749] | 2745 | do |
---|
| 2746 | CC="$ac_save_CC $ac_arg" |
---|
| 2747 | rm -f conftest.$ac_objext |
---|
[914] | 2748 | if { (ac_try="$ac_compile" |
---|
| 2749 | case "(($ac_try" in |
---|
| 2750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 2751 | *) ac_try_echo=$ac_try;; |
---|
| 2752 | esac |
---|
| 2753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 2754 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 2755 | ac_status=$? |
---|
| 2756 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2757 | rm -f conftest.er1 |
---|
| 2758 | cat conftest.err >&5 |
---|
| 2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 2760 | (exit $ac_status); } && { |
---|
| 2761 | test -z "$ac_c_werror_flag" || |
---|
| 2762 | test ! -s conftest.err |
---|
| 2763 | } && test -s conftest.$ac_objext; then |
---|
| 2764 | ac_cv_prog_cc_c89=$ac_arg |
---|
[749] | 2765 | else |
---|
| 2766 | echo "$as_me: failed program was:" >&5 |
---|
| 2767 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2768 | |
---|
[914] | 2769 | |
---|
[749] | 2770 | fi |
---|
[914] | 2771 | |
---|
| 2772 | rm -f core conftest.err conftest.$ac_objext |
---|
| 2773 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
[749] | 2774 | done |
---|
[914] | 2775 | rm -f conftest.$ac_ext |
---|
[749] | 2776 | CC=$ac_save_CC |
---|
| 2777 | |
---|
| 2778 | fi |
---|
[914] | 2779 | # AC_CACHE_VAL |
---|
| 2780 | case "x$ac_cv_prog_cc_c89" in |
---|
| 2781 | x) |
---|
| 2782 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2783 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
| 2784 | xno) |
---|
| 2785 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
| 2786 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
[749] | 2787 | *) |
---|
[914] | 2788 | CC="$CC $ac_cv_prog_cc_c89" |
---|
| 2789 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
| 2790 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
[749] | 2791 | esac |
---|
| 2792 | |
---|
| 2793 | |
---|
| 2794 | ac_ext=c |
---|
| 2795 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2799 | |
---|
| 2800 | ac_ext=c |
---|
| 2801 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2805 | |
---|
| 2806 | |
---|
[914] | 2807 | if test -n "$ac_tool_prefix"; then |
---|
| 2808 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2809 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 2810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2812 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2814 | else |
---|
| 2815 | if test -n "$RANLIB"; then |
---|
| 2816 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2817 | else |
---|
| 2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2819 | for as_dir in $PATH |
---|
| 2820 | do |
---|
| 2821 | IFS=$as_save_IFS |
---|
| 2822 | test -z "$as_dir" && as_dir=. |
---|
| 2823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2825 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 2826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2827 | break 2 |
---|
| 2828 | fi |
---|
| 2829 | done |
---|
| 2830 | done |
---|
| 2831 | IFS=$as_save_IFS |
---|
| 2832 | |
---|
| 2833 | fi |
---|
| 2834 | fi |
---|
| 2835 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2836 | if test -n "$RANLIB"; then |
---|
| 2837 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2838 | echo "${ECHO_T}$RANLIB" >&6; } |
---|
| 2839 | else |
---|
| 2840 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2841 | echo "${ECHO_T}no" >&6; } |
---|
| 2842 | fi |
---|
| 2843 | |
---|
| 2844 | |
---|
| 2845 | fi |
---|
| 2846 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2847 | ac_ct_RANLIB=$RANLIB |
---|
| 2848 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2849 | set dummy ranlib; ac_word=$2 |
---|
| 2850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
| 2852 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2854 | else |
---|
| 2855 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2856 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2857 | else |
---|
| 2858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2859 | for as_dir in $PATH |
---|
| 2860 | do |
---|
| 2861 | IFS=$as_save_IFS |
---|
| 2862 | test -z "$as_dir" && as_dir=. |
---|
| 2863 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
| 2865 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 2866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2867 | break 2 |
---|
| 2868 | fi |
---|
| 2869 | done |
---|
| 2870 | done |
---|
| 2871 | IFS=$as_save_IFS |
---|
| 2872 | |
---|
| 2873 | fi |
---|
| 2874 | fi |
---|
| 2875 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2876 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2877 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 2878 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
---|
| 2879 | else |
---|
| 2880 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2881 | echo "${ECHO_T}no" >&6; } |
---|
| 2882 | fi |
---|
| 2883 | |
---|
| 2884 | if test "x$ac_ct_RANLIB" = x; then |
---|
| 2885 | RANLIB=":" |
---|
| 2886 | else |
---|
| 2887 | case $cross_compiling:$ac_tool_warned in |
---|
| 2888 | yes:) |
---|
| 2889 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2890 | whose name does not start with the host triplet. If you think this |
---|
| 2891 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 2892 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 2893 | whose name does not start with the host triplet. If you think this |
---|
| 2894 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 2895 | ac_tool_warned=yes ;; |
---|
| 2896 | esac |
---|
| 2897 | RANLIB=$ac_ct_RANLIB |
---|
| 2898 | fi |
---|
| 2899 | else |
---|
| 2900 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2901 | fi |
---|
| 2902 | |
---|
| 2903 | |
---|
| 2904 | ac_ext=cpp |
---|
[749] | 2905 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 2906 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2907 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2908 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
[914] | 2909 | if test -z "$CXX"; then |
---|
| 2910 | if test -n "$CCC"; then |
---|
| 2911 | CXX=$CCC |
---|
| 2912 | else |
---|
| 2913 | if test -n "$ac_tool_prefix"; then |
---|
| 2914 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
[749] | 2915 | do |
---|
| 2916 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2917 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
[914] | 2918 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 2920 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 2921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2922 | else |
---|
| 2923 | if test -n "$CXX"; then |
---|
| 2924 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 2925 | else |
---|
| 2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2927 | for as_dir in $PATH |
---|
| 2928 | do |
---|
| 2929 | IFS=$as_save_IFS |
---|
| 2930 | test -z "$as_dir" && as_dir=. |
---|
| 2931 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 2932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 2933 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 2934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2935 | break 2 |
---|
| 2936 | fi |
---|
| 2937 | done |
---|
| 2938 | done |
---|
[914] | 2939 | IFS=$as_save_IFS |
---|
[749] | 2940 | |
---|
| 2941 | fi |
---|
| 2942 | fi |
---|
| 2943 | CXX=$ac_cv_prog_CXX |
---|
| 2944 | if test -n "$CXX"; then |
---|
[914] | 2945 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 2946 | echo "${ECHO_T}$CXX" >&6; } |
---|
[749] | 2947 | else |
---|
[914] | 2948 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2949 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 2950 | fi |
---|
| 2951 | |
---|
[914] | 2952 | |
---|
[749] | 2953 | test -n "$CXX" && break |
---|
| 2954 | done |
---|
| 2955 | fi |
---|
| 2956 | if test -z "$CXX"; then |
---|
| 2957 | ac_ct_CXX=$CXX |
---|
[914] | 2958 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
[749] | 2959 | do |
---|
| 2960 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2961 | set dummy $ac_prog; ac_word=$2 |
---|
[914] | 2962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
[749] | 2964 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 2965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2966 | else |
---|
| 2967 | if test -n "$ac_ct_CXX"; then |
---|
| 2968 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 2969 | else |
---|
| 2970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2971 | for as_dir in $PATH |
---|
| 2972 | do |
---|
| 2973 | IFS=$as_save_IFS |
---|
| 2974 | test -z "$as_dir" && as_dir=. |
---|
| 2975 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[914] | 2976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
[749] | 2977 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 2978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2979 | break 2 |
---|
| 2980 | fi |
---|
| 2981 | done |
---|
| 2982 | done |
---|
[914] | 2983 | IFS=$as_save_IFS |
---|
[749] | 2984 | |
---|
| 2985 | fi |
---|
| 2986 | fi |
---|
| 2987 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 2988 | if test -n "$ac_ct_CXX"; then |
---|
[914] | 2989 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 2990 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
---|
[749] | 2991 | else |
---|
[914] | 2992 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2993 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 2994 | fi |
---|
| 2995 | |
---|
[914] | 2996 | |
---|
[749] | 2997 | test -n "$ac_ct_CXX" && break |
---|
| 2998 | done |
---|
| 2999 | |
---|
[914] | 3000 | if test "x$ac_ct_CXX" = x; then |
---|
| 3001 | CXX="g++" |
---|
| 3002 | else |
---|
| 3003 | case $cross_compiling:$ac_tool_warned in |
---|
| 3004 | yes:) |
---|
| 3005 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 3006 | whose name does not start with the host triplet. If you think this |
---|
| 3007 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
| 3008 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
| 3009 | whose name does not start with the host triplet. If you think this |
---|
| 3010 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
| 3011 | ac_tool_warned=yes ;; |
---|
| 3012 | esac |
---|
| 3013 | CXX=$ac_ct_CXX |
---|
| 3014 | fi |
---|
[749] | 3015 | fi |
---|
| 3016 | |
---|
[914] | 3017 | fi |
---|
| 3018 | fi |
---|
[749] | 3019 | # Provide some information about the compiler. |
---|
[914] | 3020 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
---|
[749] | 3021 | ac_compiler=`set X $ac_compile; echo $2` |
---|
[914] | 3022 | { (ac_try="$ac_compiler --version >&5" |
---|
| 3023 | case "(($ac_try" in |
---|
| 3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3025 | *) ac_try_echo=$ac_try;; |
---|
| 3026 | esac |
---|
| 3027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3028 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
[749] | 3029 | ac_status=$? |
---|
| 3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3031 | (exit $ac_status); } |
---|
[914] | 3032 | { (ac_try="$ac_compiler -v >&5" |
---|
| 3033 | case "(($ac_try" in |
---|
| 3034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3035 | *) ac_try_echo=$ac_try;; |
---|
| 3036 | esac |
---|
| 3037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3038 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
[749] | 3039 | ac_status=$? |
---|
| 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3041 | (exit $ac_status); } |
---|
[914] | 3042 | { (ac_try="$ac_compiler -V >&5" |
---|
| 3043 | case "(($ac_try" in |
---|
| 3044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3045 | *) ac_try_echo=$ac_try;; |
---|
| 3046 | esac |
---|
| 3047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3048 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
[749] | 3049 | ac_status=$? |
---|
| 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3051 | (exit $ac_status); } |
---|
| 3052 | |
---|
[914] | 3053 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 3054 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
---|
[749] | 3055 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3057 | else |
---|
| 3058 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3059 | /* confdefs.h. */ |
---|
| 3060 | _ACEOF |
---|
| 3061 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3063 | /* end confdefs.h. */ |
---|
| 3064 | |
---|
| 3065 | int |
---|
| 3066 | main () |
---|
| 3067 | { |
---|
| 3068 | #ifndef __GNUC__ |
---|
| 3069 | choke me |
---|
| 3070 | #endif |
---|
| 3071 | |
---|
| 3072 | ; |
---|
| 3073 | return 0; |
---|
| 3074 | } |
---|
| 3075 | _ACEOF |
---|
| 3076 | rm -f conftest.$ac_objext |
---|
[914] | 3077 | if { (ac_try="$ac_compile" |
---|
| 3078 | case "(($ac_try" in |
---|
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3080 | *) ac_try_echo=$ac_try;; |
---|
| 3081 | esac |
---|
| 3082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3083 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 3084 | ac_status=$? |
---|
| 3085 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3086 | rm -f conftest.er1 |
---|
| 3087 | cat conftest.err >&5 |
---|
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3089 | (exit $ac_status); } && { |
---|
| 3090 | test -z "$ac_cxx_werror_flag" || |
---|
| 3091 | test ! -s conftest.err |
---|
| 3092 | } && test -s conftest.$ac_objext; then |
---|
[749] | 3093 | ac_compiler_gnu=yes |
---|
| 3094 | else |
---|
| 3095 | echo "$as_me: failed program was:" >&5 |
---|
| 3096 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3097 | |
---|
[914] | 3098 | ac_compiler_gnu=no |
---|
[749] | 3099 | fi |
---|
[914] | 3100 | |
---|
| 3101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[749] | 3102 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 3103 | |
---|
| 3104 | fi |
---|
[914] | 3105 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 3106 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
---|
[749] | 3107 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 3108 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 3109 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
[914] | 3110 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 3111 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
---|
[749] | 3112 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3114 | else |
---|
[914] | 3115 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
| 3116 | ac_cxx_werror_flag=yes |
---|
| 3117 | ac_cv_prog_cxx_g=no |
---|
| 3118 | CXXFLAGS="-g" |
---|
| 3119 | cat >conftest.$ac_ext <<_ACEOF |
---|
[749] | 3120 | /* confdefs.h. */ |
---|
| 3121 | _ACEOF |
---|
| 3122 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3123 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3124 | /* end confdefs.h. */ |
---|
| 3125 | |
---|
| 3126 | int |
---|
| 3127 | main () |
---|
| 3128 | { |
---|
| 3129 | |
---|
| 3130 | ; |
---|
| 3131 | return 0; |
---|
| 3132 | } |
---|
| 3133 | _ACEOF |
---|
| 3134 | rm -f conftest.$ac_objext |
---|
[914] | 3135 | if { (ac_try="$ac_compile" |
---|
| 3136 | case "(($ac_try" in |
---|
| 3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3138 | *) ac_try_echo=$ac_try;; |
---|
| 3139 | esac |
---|
| 3140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3141 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 3142 | ac_status=$? |
---|
| 3143 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3144 | rm -f conftest.er1 |
---|
| 3145 | cat conftest.err >&5 |
---|
| 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3147 | (exit $ac_status); } && { |
---|
| 3148 | test -z "$ac_cxx_werror_flag" || |
---|
| 3149 | test ! -s conftest.err |
---|
| 3150 | } && test -s conftest.$ac_objext; then |
---|
[749] | 3151 | ac_cv_prog_cxx_g=yes |
---|
| 3152 | else |
---|
| 3153 | echo "$as_me: failed program was:" >&5 |
---|
| 3154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3155 | |
---|
[914] | 3156 | CXXFLAGS="" |
---|
| 3157 | cat >conftest.$ac_ext <<_ACEOF |
---|
[749] | 3158 | /* confdefs.h. */ |
---|
| 3159 | _ACEOF |
---|
| 3160 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3161 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3162 | /* end confdefs.h. */ |
---|
[914] | 3163 | |
---|
[749] | 3164 | int |
---|
| 3165 | main () |
---|
| 3166 | { |
---|
[914] | 3167 | |
---|
[749] | 3168 | ; |
---|
| 3169 | return 0; |
---|
| 3170 | } |
---|
| 3171 | _ACEOF |
---|
| 3172 | rm -f conftest.$ac_objext |
---|
[914] | 3173 | if { (ac_try="$ac_compile" |
---|
| 3174 | case "(($ac_try" in |
---|
| 3175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3176 | *) ac_try_echo=$ac_try;; |
---|
| 3177 | esac |
---|
| 3178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3179 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 3180 | ac_status=$? |
---|
| 3181 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3182 | rm -f conftest.er1 |
---|
| 3183 | cat conftest.err >&5 |
---|
| 3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3185 | (exit $ac_status); } && { |
---|
| 3186 | test -z "$ac_cxx_werror_flag" || |
---|
| 3187 | test ! -s conftest.err |
---|
| 3188 | } && test -s conftest.$ac_objext; then |
---|
[749] | 3189 | : |
---|
| 3190 | else |
---|
| 3191 | echo "$as_me: failed program was:" >&5 |
---|
| 3192 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3193 | |
---|
[914] | 3194 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 3195 | CXXFLAGS="-g" |
---|
| 3196 | cat >conftest.$ac_ext <<_ACEOF |
---|
[749] | 3197 | /* confdefs.h. */ |
---|
| 3198 | _ACEOF |
---|
| 3199 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3201 | /* end confdefs.h. */ |
---|
[914] | 3202 | |
---|
[749] | 3203 | int |
---|
| 3204 | main () |
---|
| 3205 | { |
---|
[914] | 3206 | |
---|
[749] | 3207 | ; |
---|
| 3208 | return 0; |
---|
| 3209 | } |
---|
| 3210 | _ACEOF |
---|
| 3211 | rm -f conftest.$ac_objext |
---|
[914] | 3212 | if { (ac_try="$ac_compile" |
---|
| 3213 | case "(($ac_try" in |
---|
| 3214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3215 | *) ac_try_echo=$ac_try;; |
---|
| 3216 | esac |
---|
| 3217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3218 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 3219 | ac_status=$? |
---|
| 3220 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3221 | rm -f conftest.er1 |
---|
| 3222 | cat conftest.err >&5 |
---|
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3224 | (exit $ac_status); } && { |
---|
| 3225 | test -z "$ac_cxx_werror_flag" || |
---|
| 3226 | test ! -s conftest.err |
---|
| 3227 | } && test -s conftest.$ac_objext; then |
---|
| 3228 | ac_cv_prog_cxx_g=yes |
---|
[749] | 3229 | else |
---|
| 3230 | echo "$as_me: failed program was:" >&5 |
---|
| 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3232 | |
---|
[914] | 3233 | |
---|
[749] | 3234 | fi |
---|
[914] | 3235 | |
---|
| 3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[749] | 3237 | fi |
---|
| 3238 | |
---|
[914] | 3239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3240 | fi |
---|
| 3241 | |
---|
| 3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3243 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
| 3244 | fi |
---|
| 3245 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 3246 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
---|
| 3247 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 3248 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 3249 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 3250 | if test "$GXX" = yes; then |
---|
| 3251 | CXXFLAGS="-g -O2" |
---|
| 3252 | else |
---|
| 3253 | CXXFLAGS="-g" |
---|
| 3254 | fi |
---|
| 3255 | else |
---|
| 3256 | if test "$GXX" = yes; then |
---|
| 3257 | CXXFLAGS="-O2" |
---|
| 3258 | else |
---|
| 3259 | CXXFLAGS= |
---|
| 3260 | fi |
---|
| 3261 | fi |
---|
[749] | 3262 | ac_ext=c |
---|
| 3263 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3267 | |
---|
[914] | 3268 | ac_ext=cpp |
---|
[749] | 3269 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 3270 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3271 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3272 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 3273 | |
---|
| 3274 | |
---|
| 3275 | |
---|
[914] | 3276 | ac_ext=cpp |
---|
[749] | 3277 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 3278 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3279 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3280 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
[914] | 3281 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
| 3282 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
---|
[749] | 3283 | if test -z "$CXXCPP"; then |
---|
| 3284 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
| 3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3286 | else |
---|
| 3287 | # Double quotes because CXXCPP needs to be expanded |
---|
| 3288 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
| 3289 | do |
---|
| 3290 | ac_preproc_ok=false |
---|
| 3291 | for ac_cxx_preproc_warn_flag in '' yes |
---|
| 3292 | do |
---|
| 3293 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3294 | # with a fresh cross-compiler works. |
---|
| 3295 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3296 | # <limits.h> exists even on freestanding compilers. |
---|
| 3297 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3298 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3299 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3300 | /* confdefs.h. */ |
---|
| 3301 | _ACEOF |
---|
| 3302 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3303 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3304 | /* end confdefs.h. */ |
---|
| 3305 | #ifdef __STDC__ |
---|
| 3306 | # include <limits.h> |
---|
| 3307 | #else |
---|
| 3308 | # include <assert.h> |
---|
| 3309 | #endif |
---|
| 3310 | Syntax error |
---|
| 3311 | _ACEOF |
---|
[914] | 3312 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 3313 | case "(($ac_try" in |
---|
| 3314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3315 | *) ac_try_echo=$ac_try;; |
---|
| 3316 | esac |
---|
| 3317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3318 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 3319 | ac_status=$? |
---|
| 3320 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3321 | rm -f conftest.er1 |
---|
| 3322 | cat conftest.err >&5 |
---|
| 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3324 | (exit $ac_status); } >/dev/null && { |
---|
| 3325 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 3326 | test ! -s conftest.err |
---|
| 3327 | }; then |
---|
[749] | 3328 | : |
---|
| 3329 | else |
---|
| 3330 | echo "$as_me: failed program was:" >&5 |
---|
| 3331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3332 | |
---|
| 3333 | # Broken: fails on valid input. |
---|
| 3334 | continue |
---|
| 3335 | fi |
---|
[914] | 3336 | |
---|
[749] | 3337 | rm -f conftest.err conftest.$ac_ext |
---|
| 3338 | |
---|
[914] | 3339 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[749] | 3340 | # can be detected and how. |
---|
| 3341 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3342 | /* confdefs.h. */ |
---|
| 3343 | _ACEOF |
---|
| 3344 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3345 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3346 | /* end confdefs.h. */ |
---|
| 3347 | #include <ac_nonexistent.h> |
---|
| 3348 | _ACEOF |
---|
[914] | 3349 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 3350 | case "(($ac_try" in |
---|
| 3351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3352 | *) ac_try_echo=$ac_try;; |
---|
| 3353 | esac |
---|
| 3354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3355 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 3356 | ac_status=$? |
---|
| 3357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3358 | rm -f conftest.er1 |
---|
| 3359 | cat conftest.err >&5 |
---|
| 3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3361 | (exit $ac_status); } >/dev/null && { |
---|
| 3362 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 3363 | test ! -s conftest.err |
---|
| 3364 | }; then |
---|
[749] | 3365 | # Broken: success on invalid input. |
---|
| 3366 | continue |
---|
| 3367 | else |
---|
| 3368 | echo "$as_me: failed program was:" >&5 |
---|
| 3369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3370 | |
---|
| 3371 | # Passes both tests. |
---|
| 3372 | ac_preproc_ok=: |
---|
| 3373 | break |
---|
| 3374 | fi |
---|
[914] | 3375 | |
---|
[749] | 3376 | rm -f conftest.err conftest.$ac_ext |
---|
| 3377 | |
---|
| 3378 | done |
---|
| 3379 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3380 | rm -f conftest.err conftest.$ac_ext |
---|
| 3381 | if $ac_preproc_ok; then |
---|
| 3382 | break |
---|
| 3383 | fi |
---|
| 3384 | |
---|
| 3385 | done |
---|
| 3386 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
| 3387 | |
---|
| 3388 | fi |
---|
| 3389 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
| 3390 | else |
---|
| 3391 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
| 3392 | fi |
---|
[914] | 3393 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
| 3394 | echo "${ECHO_T}$CXXCPP" >&6; } |
---|
[749] | 3395 | ac_preproc_ok=false |
---|
| 3396 | for ac_cxx_preproc_warn_flag in '' yes |
---|
| 3397 | do |
---|
| 3398 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3399 | # with a fresh cross-compiler works. |
---|
| 3400 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3401 | # <limits.h> exists even on freestanding compilers. |
---|
| 3402 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3403 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3404 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3405 | /* confdefs.h. */ |
---|
| 3406 | _ACEOF |
---|
| 3407 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3409 | /* end confdefs.h. */ |
---|
| 3410 | #ifdef __STDC__ |
---|
| 3411 | # include <limits.h> |
---|
| 3412 | #else |
---|
| 3413 | # include <assert.h> |
---|
| 3414 | #endif |
---|
| 3415 | Syntax error |
---|
| 3416 | _ACEOF |
---|
[914] | 3417 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 3418 | case "(($ac_try" in |
---|
| 3419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3420 | *) ac_try_echo=$ac_try;; |
---|
| 3421 | esac |
---|
| 3422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3423 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 3424 | ac_status=$? |
---|
| 3425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3426 | rm -f conftest.er1 |
---|
| 3427 | cat conftest.err >&5 |
---|
| 3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3429 | (exit $ac_status); } >/dev/null && { |
---|
| 3430 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 3431 | test ! -s conftest.err |
---|
| 3432 | }; then |
---|
[749] | 3433 | : |
---|
| 3434 | else |
---|
| 3435 | echo "$as_me: failed program was:" >&5 |
---|
| 3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3437 | |
---|
| 3438 | # Broken: fails on valid input. |
---|
| 3439 | continue |
---|
| 3440 | fi |
---|
[914] | 3441 | |
---|
[749] | 3442 | rm -f conftest.err conftest.$ac_ext |
---|
| 3443 | |
---|
[914] | 3444 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
[749] | 3445 | # can be detected and how. |
---|
| 3446 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3447 | /* confdefs.h. */ |
---|
| 3448 | _ACEOF |
---|
| 3449 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3450 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3451 | /* end confdefs.h. */ |
---|
| 3452 | #include <ac_nonexistent.h> |
---|
| 3453 | _ACEOF |
---|
[914] | 3454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 3455 | case "(($ac_try" in |
---|
| 3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3457 | *) ac_try_echo=$ac_try;; |
---|
| 3458 | esac |
---|
| 3459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 3461 | ac_status=$? |
---|
| 3462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3463 | rm -f conftest.er1 |
---|
| 3464 | cat conftest.err >&5 |
---|
| 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3466 | (exit $ac_status); } >/dev/null && { |
---|
| 3467 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 3468 | test ! -s conftest.err |
---|
| 3469 | }; then |
---|
[749] | 3470 | # Broken: success on invalid input. |
---|
| 3471 | continue |
---|
| 3472 | else |
---|
| 3473 | echo "$as_me: failed program was:" >&5 |
---|
| 3474 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3475 | |
---|
| 3476 | # Passes both tests. |
---|
| 3477 | ac_preproc_ok=: |
---|
| 3478 | break |
---|
| 3479 | fi |
---|
[914] | 3480 | |
---|
[749] | 3481 | rm -f conftest.err conftest.$ac_ext |
---|
| 3482 | |
---|
| 3483 | done |
---|
| 3484 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3485 | rm -f conftest.err conftest.$ac_ext |
---|
| 3486 | if $ac_preproc_ok; then |
---|
| 3487 | : |
---|
| 3488 | else |
---|
| 3489 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
| 3490 | See \`config.log' for more details." >&5 |
---|
| 3491 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
| 3492 | See \`config.log' for more details." >&2;} |
---|
| 3493 | { (exit 1); exit 1; }; } |
---|
| 3494 | fi |
---|
| 3495 | |
---|
[914] | 3496 | ac_ext=cpp |
---|
[749] | 3497 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 3498 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3499 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3500 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 3501 | |
---|
| 3502 | |
---|
[914] | 3503 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
| 3504 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
| 3505 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
[749] | 3506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3507 | else |
---|
[914] | 3508 | # Extract the first word of "grep ggrep" to use in msg output |
---|
| 3509 | if test -z "$GREP"; then |
---|
| 3510 | set dummy grep ggrep; ac_prog_name=$2 |
---|
| 3511 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
| 3512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3513 | else |
---|
| 3514 | ac_path_GREP_found=false |
---|
| 3515 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3517 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3518 | do |
---|
| 3519 | IFS=$as_save_IFS |
---|
| 3520 | test -z "$as_dir" && as_dir=. |
---|
| 3521 | for ac_prog in grep ggrep; do |
---|
| 3522 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3523 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 3524 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
| 3525 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
| 3526 | # Check for GNU $ac_path_GREP |
---|
| 3527 | case `"$ac_path_GREP" --version 2>&1` in |
---|
| 3528 | *GNU*) |
---|
| 3529 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
| 3530 | *) |
---|
| 3531 | ac_count=0 |
---|
| 3532 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
| 3533 | while : |
---|
| 3534 | do |
---|
| 3535 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3536 | mv "conftest.tmp" "conftest.in" |
---|
| 3537 | cp "conftest.in" "conftest.nl" |
---|
| 3538 | echo 'GREP' >> "conftest.nl" |
---|
| 3539 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3540 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 3541 | ac_count=`expr $ac_count + 1` |
---|
| 3542 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
| 3543 | # Best one so far, save it but keep looking for a better one |
---|
| 3544 | ac_cv_path_GREP="$ac_path_GREP" |
---|
| 3545 | ac_path_GREP_max=$ac_count |
---|
[749] | 3546 | fi |
---|
[914] | 3547 | # 10*(2^10) chars as input seems more than enough |
---|
| 3548 | test $ac_count -gt 10 && break |
---|
| 3549 | done |
---|
| 3550 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3551 | esac |
---|
| 3552 | |
---|
| 3553 | |
---|
| 3554 | $ac_path_GREP_found && break 3 |
---|
| 3555 | done |
---|
| 3556 | done |
---|
| 3557 | |
---|
| 3558 | done |
---|
| 3559 | IFS=$as_save_IFS |
---|
| 3560 | |
---|
| 3561 | |
---|
[749] | 3562 | fi |
---|
| 3563 | |
---|
[914] | 3564 | GREP="$ac_cv_path_GREP" |
---|
| 3565 | if test -z "$GREP"; then |
---|
| 3566 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 3567 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 3568 | { (exit 1); exit 1; }; } |
---|
| 3569 | fi |
---|
[749] | 3570 | |
---|
[914] | 3571 | else |
---|
| 3572 | ac_cv_path_GREP=$GREP |
---|
| 3573 | fi |
---|
| 3574 | |
---|
| 3575 | |
---|
| 3576 | fi |
---|
| 3577 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
| 3578 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
| 3579 | GREP="$ac_cv_path_GREP" |
---|
| 3580 | |
---|
| 3581 | |
---|
| 3582 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3583 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
| 3584 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 3585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3586 | else |
---|
| 3587 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
| 3588 | then ac_cv_path_EGREP="$GREP -E" |
---|
| 3589 | else |
---|
| 3590 | # Extract the first word of "egrep" to use in msg output |
---|
| 3591 | if test -z "$EGREP"; then |
---|
| 3592 | set dummy egrep; ac_prog_name=$2 |
---|
| 3593 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
| 3594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3595 | else |
---|
| 3596 | ac_path_EGREP_found=false |
---|
| 3597 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
| 3598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3599 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
| 3600 | do |
---|
| 3601 | IFS=$as_save_IFS |
---|
| 3602 | test -z "$as_dir" && as_dir=. |
---|
| 3603 | for ac_prog in egrep; do |
---|
| 3604 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3605 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
| 3606 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
| 3607 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
| 3608 | # Check for GNU $ac_path_EGREP |
---|
| 3609 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
| 3610 | *GNU*) |
---|
| 3611 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
| 3612 | *) |
---|
| 3613 | ac_count=0 |
---|
| 3614 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
| 3615 | while : |
---|
| 3616 | do |
---|
| 3617 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
| 3618 | mv "conftest.tmp" "conftest.in" |
---|
| 3619 | cp "conftest.in" "conftest.nl" |
---|
| 3620 | echo 'EGREP' >> "conftest.nl" |
---|
| 3621 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
| 3622 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
| 3623 | ac_count=`expr $ac_count + 1` |
---|
| 3624 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
| 3625 | # Best one so far, save it but keep looking for a better one |
---|
| 3626 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
| 3627 | ac_path_EGREP_max=$ac_count |
---|
| 3628 | fi |
---|
| 3629 | # 10*(2^10) chars as input seems more than enough |
---|
| 3630 | test $ac_count -gt 10 && break |
---|
| 3631 | done |
---|
| 3632 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
| 3633 | esac |
---|
| 3634 | |
---|
| 3635 | |
---|
| 3636 | $ac_path_EGREP_found && break 3 |
---|
| 3637 | done |
---|
| 3638 | done |
---|
| 3639 | |
---|
| 3640 | done |
---|
| 3641 | IFS=$as_save_IFS |
---|
| 3642 | |
---|
| 3643 | |
---|
| 3644 | fi |
---|
| 3645 | |
---|
| 3646 | EGREP="$ac_cv_path_EGREP" |
---|
| 3647 | if test -z "$EGREP"; then |
---|
| 3648 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
| 3649 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
| 3650 | { (exit 1); exit 1; }; } |
---|
| 3651 | fi |
---|
| 3652 | |
---|
| 3653 | else |
---|
| 3654 | ac_cv_path_EGREP=$EGREP |
---|
| 3655 | fi |
---|
| 3656 | |
---|
| 3657 | |
---|
| 3658 | fi |
---|
| 3659 | fi |
---|
| 3660 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
| 3661 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
| 3662 | EGREP="$ac_cv_path_EGREP" |
---|
| 3663 | |
---|
| 3664 | |
---|
| 3665 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3666 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
[749] | 3667 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3669 | else |
---|
| 3670 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3671 | /* confdefs.h. */ |
---|
| 3672 | _ACEOF |
---|
| 3673 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3674 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3675 | /* end confdefs.h. */ |
---|
| 3676 | #include <stdlib.h> |
---|
| 3677 | #include <stdarg.h> |
---|
| 3678 | #include <string.h> |
---|
| 3679 | #include <float.h> |
---|
| 3680 | |
---|
| 3681 | int |
---|
| 3682 | main () |
---|
| 3683 | { |
---|
| 3684 | |
---|
| 3685 | ; |
---|
| 3686 | return 0; |
---|
| 3687 | } |
---|
| 3688 | _ACEOF |
---|
| 3689 | rm -f conftest.$ac_objext |
---|
[914] | 3690 | if { (ac_try="$ac_compile" |
---|
| 3691 | case "(($ac_try" in |
---|
| 3692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3693 | *) ac_try_echo=$ac_try;; |
---|
| 3694 | esac |
---|
| 3695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3696 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 3697 | ac_status=$? |
---|
| 3698 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3699 | rm -f conftest.er1 |
---|
| 3700 | cat conftest.err >&5 |
---|
| 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3702 | (exit $ac_status); } && { |
---|
| 3703 | test -z "$ac_cxx_werror_flag" || |
---|
| 3704 | test ! -s conftest.err |
---|
| 3705 | } && test -s conftest.$ac_objext; then |
---|
[749] | 3706 | ac_cv_header_stdc=yes |
---|
| 3707 | else |
---|
| 3708 | echo "$as_me: failed program was:" >&5 |
---|
| 3709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3710 | |
---|
[914] | 3711 | ac_cv_header_stdc=no |
---|
[749] | 3712 | fi |
---|
| 3713 | |
---|
[914] | 3714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3715 | |
---|
[749] | 3716 | if test $ac_cv_header_stdc = yes; then |
---|
| 3717 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3718 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3719 | /* confdefs.h. */ |
---|
| 3720 | _ACEOF |
---|
| 3721 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3722 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3723 | /* end confdefs.h. */ |
---|
| 3724 | #include <string.h> |
---|
| 3725 | |
---|
| 3726 | _ACEOF |
---|
| 3727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3728 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3729 | : |
---|
| 3730 | else |
---|
| 3731 | ac_cv_header_stdc=no |
---|
| 3732 | fi |
---|
| 3733 | rm -f conftest* |
---|
| 3734 | |
---|
| 3735 | fi |
---|
| 3736 | |
---|
| 3737 | if test $ac_cv_header_stdc = yes; then |
---|
| 3738 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3739 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3740 | /* confdefs.h. */ |
---|
| 3741 | _ACEOF |
---|
| 3742 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3743 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3744 | /* end confdefs.h. */ |
---|
| 3745 | #include <stdlib.h> |
---|
| 3746 | |
---|
| 3747 | _ACEOF |
---|
| 3748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3749 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3750 | : |
---|
| 3751 | else |
---|
| 3752 | ac_cv_header_stdc=no |
---|
| 3753 | fi |
---|
| 3754 | rm -f conftest* |
---|
| 3755 | |
---|
| 3756 | fi |
---|
| 3757 | |
---|
| 3758 | if test $ac_cv_header_stdc = yes; then |
---|
| 3759 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3760 | if test "$cross_compiling" = yes; then |
---|
| 3761 | : |
---|
| 3762 | else |
---|
| 3763 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3764 | /* confdefs.h. */ |
---|
| 3765 | _ACEOF |
---|
| 3766 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3768 | /* end confdefs.h. */ |
---|
| 3769 | #include <ctype.h> |
---|
[914] | 3770 | #include <stdlib.h> |
---|
[749] | 3771 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3772 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3773 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3774 | #else |
---|
| 3775 | # define ISLOWER(c) \ |
---|
| 3776 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3777 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3778 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3779 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3780 | #endif |
---|
| 3781 | |
---|
| 3782 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3783 | int |
---|
| 3784 | main () |
---|
| 3785 | { |
---|
| 3786 | int i; |
---|
| 3787 | for (i = 0; i < 256; i++) |
---|
| 3788 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3789 | || toupper (i) != TOUPPER (i)) |
---|
[914] | 3790 | return 2; |
---|
| 3791 | return 0; |
---|
[749] | 3792 | } |
---|
| 3793 | _ACEOF |
---|
| 3794 | rm -f conftest$ac_exeext |
---|
[914] | 3795 | if { (ac_try="$ac_link" |
---|
| 3796 | case "(($ac_try" in |
---|
| 3797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3798 | *) ac_try_echo=$ac_try;; |
---|
| 3799 | esac |
---|
| 3800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3801 | (eval "$ac_link") 2>&5 |
---|
[749] | 3802 | ac_status=$? |
---|
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[914] | 3805 | { (case "(($ac_try" in |
---|
| 3806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3807 | *) ac_try_echo=$ac_try;; |
---|
| 3808 | esac |
---|
| 3809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3810 | (eval "$ac_try") 2>&5 |
---|
[749] | 3811 | ac_status=$? |
---|
| 3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3813 | (exit $ac_status); }; }; then |
---|
| 3814 | : |
---|
| 3815 | else |
---|
| 3816 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3817 | echo "$as_me: failed program was:" >&5 |
---|
| 3818 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3819 | |
---|
| 3820 | ( exit $ac_status ) |
---|
| 3821 | ac_cv_header_stdc=no |
---|
| 3822 | fi |
---|
[914] | 3823 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[749] | 3824 | fi |
---|
[914] | 3825 | |
---|
| 3826 | |
---|
[749] | 3827 | fi |
---|
| 3828 | fi |
---|
[914] | 3829 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3830 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
[749] | 3831 | if test $ac_cv_header_stdc = yes; then |
---|
| 3832 | |
---|
| 3833 | cat >>confdefs.h <<\_ACEOF |
---|
| 3834 | #define STDC_HEADERS 1 |
---|
| 3835 | _ACEOF |
---|
| 3836 | |
---|
| 3837 | fi |
---|
| 3838 | |
---|
| 3839 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3840 | |
---|
| 3841 | |
---|
| 3842 | |
---|
| 3843 | |
---|
| 3844 | |
---|
| 3845 | |
---|
| 3846 | |
---|
| 3847 | |
---|
| 3848 | |
---|
| 3849 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3850 | inttypes.h stdint.h unistd.h |
---|
| 3851 | do |
---|
| 3852 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
[914] | 3853 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 3855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3857 | else |
---|
| 3858 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3859 | /* confdefs.h. */ |
---|
| 3860 | _ACEOF |
---|
| 3861 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3862 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3863 | /* end confdefs.h. */ |
---|
| 3864 | $ac_includes_default |
---|
| 3865 | |
---|
| 3866 | #include <$ac_header> |
---|
| 3867 | _ACEOF |
---|
| 3868 | rm -f conftest.$ac_objext |
---|
[914] | 3869 | if { (ac_try="$ac_compile" |
---|
| 3870 | case "(($ac_try" in |
---|
| 3871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3872 | *) ac_try_echo=$ac_try;; |
---|
| 3873 | esac |
---|
| 3874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3875 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 3876 | ac_status=$? |
---|
| 3877 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3878 | rm -f conftest.er1 |
---|
| 3879 | cat conftest.err >&5 |
---|
| 3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 3881 | (exit $ac_status); } && { |
---|
| 3882 | test -z "$ac_cxx_werror_flag" || |
---|
| 3883 | test ! -s conftest.err |
---|
| 3884 | } && test -s conftest.$ac_objext; then |
---|
[749] | 3885 | eval "$as_ac_Header=yes" |
---|
| 3886 | else |
---|
| 3887 | echo "$as_me: failed program was:" >&5 |
---|
| 3888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3889 | |
---|
[914] | 3890 | eval "$as_ac_Header=no" |
---|
[749] | 3891 | fi |
---|
[914] | 3892 | |
---|
| 3893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[749] | 3894 | fi |
---|
[914] | 3895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 3896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 3897 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 3898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3899 | cat >>confdefs.h <<_ACEOF |
---|
| 3900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3901 | _ACEOF |
---|
| 3902 | |
---|
| 3903 | fi |
---|
| 3904 | |
---|
| 3905 | done |
---|
| 3906 | |
---|
| 3907 | |
---|
[940] | 3908 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
---|
| 3909 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
---|
| 3910 | if test "${ac_cv_c_bigendian+set}" = set; then |
---|
| 3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3912 | else |
---|
| 3913 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
| 3914 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3915 | /* confdefs.h. */ |
---|
| 3916 | _ACEOF |
---|
| 3917 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3919 | /* end confdefs.h. */ |
---|
| 3920 | #include <sys/types.h> |
---|
| 3921 | #include <sys/param.h> |
---|
[749] | 3922 | |
---|
[940] | 3923 | int |
---|
| 3924 | main () |
---|
| 3925 | { |
---|
| 3926 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
---|
| 3927 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
---|
| 3928 | bogus endian macros |
---|
| 3929 | #endif |
---|
| 3930 | |
---|
| 3931 | ; |
---|
| 3932 | return 0; |
---|
| 3933 | } |
---|
| 3934 | _ACEOF |
---|
| 3935 | rm -f conftest.$ac_objext |
---|
| 3936 | if { (ac_try="$ac_compile" |
---|
| 3937 | case "(($ac_try" in |
---|
| 3938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3939 | *) ac_try_echo=$ac_try;; |
---|
| 3940 | esac |
---|
| 3941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3942 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3943 | ac_status=$? |
---|
| 3944 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3945 | rm -f conftest.er1 |
---|
| 3946 | cat conftest.err >&5 |
---|
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3948 | (exit $ac_status); } && { |
---|
| 3949 | test -z "$ac_cxx_werror_flag" || |
---|
| 3950 | test ! -s conftest.err |
---|
| 3951 | } && test -s conftest.$ac_objext; then |
---|
| 3952 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
| 3953 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3954 | /* confdefs.h. */ |
---|
| 3955 | _ACEOF |
---|
| 3956 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3957 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3958 | /* end confdefs.h. */ |
---|
| 3959 | #include <sys/types.h> |
---|
| 3960 | #include <sys/param.h> |
---|
| 3961 | |
---|
| 3962 | int |
---|
| 3963 | main () |
---|
| 3964 | { |
---|
| 3965 | #if BYTE_ORDER != BIG_ENDIAN |
---|
| 3966 | not big endian |
---|
| 3967 | #endif |
---|
| 3968 | |
---|
| 3969 | ; |
---|
| 3970 | return 0; |
---|
| 3971 | } |
---|
| 3972 | _ACEOF |
---|
| 3973 | rm -f conftest.$ac_objext |
---|
| 3974 | if { (ac_try="$ac_compile" |
---|
| 3975 | case "(($ac_try" in |
---|
| 3976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 3977 | *) ac_try_echo=$ac_try;; |
---|
| 3978 | esac |
---|
| 3979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 3980 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 3981 | ac_status=$? |
---|
| 3982 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3983 | rm -f conftest.er1 |
---|
| 3984 | cat conftest.err >&5 |
---|
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3986 | (exit $ac_status); } && { |
---|
| 3987 | test -z "$ac_cxx_werror_flag" || |
---|
| 3988 | test ! -s conftest.err |
---|
| 3989 | } && test -s conftest.$ac_objext; then |
---|
| 3990 | ac_cv_c_bigendian=yes |
---|
| 3991 | else |
---|
| 3992 | echo "$as_me: failed program was:" >&5 |
---|
| 3993 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3994 | |
---|
| 3995 | ac_cv_c_bigendian=no |
---|
| 3996 | fi |
---|
| 3997 | |
---|
| 3998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3999 | else |
---|
| 4000 | echo "$as_me: failed program was:" >&5 |
---|
| 4001 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4002 | |
---|
| 4003 | # It does not; compile a test program. |
---|
| 4004 | if test "$cross_compiling" = yes; then |
---|
| 4005 | # try to guess the endianness by grepping values into an object file |
---|
| 4006 | ac_cv_c_bigendian=unknown |
---|
| 4007 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4008 | /* confdefs.h. */ |
---|
| 4009 | _ACEOF |
---|
| 4010 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4011 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4012 | /* end confdefs.h. */ |
---|
| 4013 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
| 4014 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
| 4015 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
---|
| 4016 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
| 4017 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
| 4018 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
---|
| 4019 | int |
---|
| 4020 | main () |
---|
| 4021 | { |
---|
| 4022 | _ascii (); _ebcdic (); |
---|
| 4023 | ; |
---|
| 4024 | return 0; |
---|
| 4025 | } |
---|
| 4026 | _ACEOF |
---|
| 4027 | rm -f conftest.$ac_objext |
---|
| 4028 | if { (ac_try="$ac_compile" |
---|
| 4029 | case "(($ac_try" in |
---|
| 4030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4031 | *) ac_try_echo=$ac_try;; |
---|
| 4032 | esac |
---|
| 4033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4034 | (eval "$ac_compile") 2>conftest.er1 |
---|
| 4035 | ac_status=$? |
---|
| 4036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4037 | rm -f conftest.er1 |
---|
| 4038 | cat conftest.err >&5 |
---|
| 4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4040 | (exit $ac_status); } && { |
---|
| 4041 | test -z "$ac_cxx_werror_flag" || |
---|
| 4042 | test ! -s conftest.err |
---|
| 4043 | } && test -s conftest.$ac_objext; then |
---|
| 4044 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
---|
| 4045 | ac_cv_c_bigendian=yes |
---|
| 4046 | fi |
---|
| 4047 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
| 4048 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
| 4049 | ac_cv_c_bigendian=no |
---|
| 4050 | else |
---|
| 4051 | # finding both strings is unlikely to happen, but who knows? |
---|
| 4052 | ac_cv_c_bigendian=unknown |
---|
| 4053 | fi |
---|
| 4054 | fi |
---|
| 4055 | else |
---|
| 4056 | echo "$as_me: failed program was:" >&5 |
---|
| 4057 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4058 | |
---|
| 4059 | |
---|
| 4060 | fi |
---|
| 4061 | |
---|
| 4062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4063 | else |
---|
| 4064 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4065 | /* confdefs.h. */ |
---|
| 4066 | _ACEOF |
---|
| 4067 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4069 | /* end confdefs.h. */ |
---|
| 4070 | $ac_includes_default |
---|
| 4071 | int |
---|
| 4072 | main () |
---|
| 4073 | { |
---|
| 4074 | |
---|
| 4075 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
| 4076 | union |
---|
| 4077 | { |
---|
| 4078 | long int l; |
---|
| 4079 | char c[sizeof (long int)]; |
---|
| 4080 | } u; |
---|
| 4081 | u.l = 1; |
---|
| 4082 | return u.c[sizeof (long int) - 1] == 1; |
---|
| 4083 | |
---|
| 4084 | ; |
---|
| 4085 | return 0; |
---|
| 4086 | } |
---|
| 4087 | _ACEOF |
---|
| 4088 | rm -f conftest$ac_exeext |
---|
| 4089 | if { (ac_try="$ac_link" |
---|
| 4090 | case "(($ac_try" in |
---|
| 4091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4092 | *) ac_try_echo=$ac_try;; |
---|
| 4093 | esac |
---|
| 4094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4095 | (eval "$ac_link") 2>&5 |
---|
| 4096 | ac_status=$? |
---|
| 4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4098 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4099 | { (case "(($ac_try" in |
---|
| 4100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4101 | *) ac_try_echo=$ac_try;; |
---|
| 4102 | esac |
---|
| 4103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4104 | (eval "$ac_try") 2>&5 |
---|
| 4105 | ac_status=$? |
---|
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4107 | (exit $ac_status); }; }; then |
---|
| 4108 | ac_cv_c_bigendian=no |
---|
| 4109 | else |
---|
| 4110 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4111 | echo "$as_me: failed program was:" >&5 |
---|
| 4112 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4113 | |
---|
| 4114 | ( exit $ac_status ) |
---|
| 4115 | ac_cv_c_bigendian=yes |
---|
| 4116 | fi |
---|
| 4117 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 4118 | fi |
---|
| 4119 | |
---|
| 4120 | |
---|
| 4121 | fi |
---|
| 4122 | |
---|
| 4123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4124 | fi |
---|
| 4125 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
---|
| 4126 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
---|
| 4127 | case $ac_cv_c_bigendian in |
---|
| 4128 | yes) |
---|
| 4129 | |
---|
| 4130 | cat >>confdefs.h <<\_ACEOF |
---|
| 4131 | #define WORDS_BIGENDIAN 1 |
---|
| 4132 | _ACEOF |
---|
| 4133 | ;; |
---|
| 4134 | no) |
---|
| 4135 | ;; |
---|
| 4136 | *) |
---|
| 4137 | { { echo "$as_me:$LINENO: error: unknown endianness |
---|
| 4138 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
---|
| 4139 | echo "$as_me: error: unknown endianness |
---|
| 4140 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
---|
| 4141 | { (exit 1); exit 1; }; } ;; |
---|
| 4142 | esac |
---|
| 4143 | |
---|
| 4144 | |
---|
| 4145 | SUBDIRS="nanoscale nanovis pymolproxy" |
---|
| 4146 | |
---|
| 4147 | |
---|
| 4148 | |
---|
| 4149 | # Check whether --with-tcllib was given. |
---|
| 4150 | if test "${with_tcllib+set}" = set; then |
---|
| 4151 | withval=$with_tcllib; with_tcllib=$withval |
---|
| 4152 | else |
---|
| 4153 | with_tcllib=/usr/lib |
---|
| 4154 | fi |
---|
| 4155 | |
---|
| 4156 | |
---|
| 4157 | TCL_LIB_DIR="" |
---|
| 4158 | TCL_LIB="" |
---|
| 4159 | TCL_LIB_VERSION="" |
---|
| 4160 | { echo "$as_me:$LINENO: checking for tcl binary libraries" >&5 |
---|
| 4161 | echo $ECHO_N "checking for tcl binary libraries... $ECHO_C" >&6; } |
---|
| 4162 | if test "x$with_tcllib" != "x" ; then |
---|
| 4163 | if test -f "$with_tcllib" |
---|
| 4164 | then |
---|
| 4165 | if test -n `basename $with_tcllib | grep libtcl0-9\.0-9.so` |
---|
| 4166 | then |
---|
| 4167 | TCL_LIB_DIR="$with_tcllib" |
---|
| 4168 | fi |
---|
| 4169 | else |
---|
| 4170 | if test -d "$with_tcllib" |
---|
| 4171 | then |
---|
| 4172 | if test -x "$with_tcllib/`ls $with_tcllib | grep libtcl0-9\.0-9\.so$`" |
---|
| 4173 | then |
---|
| 4174 | TCL_LIB_DIR="$with_tcllib" |
---|
| 4175 | else |
---|
| 4176 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4177 | echo "${ECHO_T}no" >&6; } |
---|
| 4178 | { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries, try using --with-tcllib" >&5 |
---|
| 4179 | echo "$as_me: error: cannot find tcl binary libraries, try using --with-tcllib" >&2;} |
---|
| 4180 | { (exit 1); exit 1; }; } |
---|
| 4181 | fi |
---|
| 4182 | else |
---|
| 4183 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4184 | echo "${ECHO_T}no" >&6; } |
---|
| 4185 | { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&5 |
---|
| 4186 | echo "$as_me: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&2;} |
---|
| 4187 | { (exit 1); exit 1; }; } |
---|
| 4188 | fi |
---|
| 4189 | fi |
---|
| 4190 | else |
---|
| 4191 | |
---|
[749] | 4192 | for ac_header in tcl.h |
---|
| 4193 | do |
---|
| 4194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
[914] | 4195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 4196 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 4198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4200 | fi |
---|
[914] | 4201 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 4202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 4203 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 4204 | else |
---|
| 4205 | # Is the header compilable? |
---|
[914] | 4206 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4207 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
[749] | 4208 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4209 | /* confdefs.h. */ |
---|
| 4210 | _ACEOF |
---|
| 4211 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4212 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4213 | /* end confdefs.h. */ |
---|
| 4214 | $ac_includes_default |
---|
| 4215 | #include <$ac_header> |
---|
| 4216 | _ACEOF |
---|
| 4217 | rm -f conftest.$ac_objext |
---|
[914] | 4218 | if { (ac_try="$ac_compile" |
---|
| 4219 | case "(($ac_try" in |
---|
| 4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4221 | *) ac_try_echo=$ac_try;; |
---|
| 4222 | esac |
---|
| 4223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4224 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 4225 | ac_status=$? |
---|
| 4226 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4227 | rm -f conftest.er1 |
---|
| 4228 | cat conftest.err >&5 |
---|
| 4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 4230 | (exit $ac_status); } && { |
---|
| 4231 | test -z "$ac_cxx_werror_flag" || |
---|
| 4232 | test ! -s conftest.err |
---|
| 4233 | } && test -s conftest.$ac_objext; then |
---|
[749] | 4234 | ac_header_compiler=yes |
---|
| 4235 | else |
---|
| 4236 | echo "$as_me: failed program was:" >&5 |
---|
| 4237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4238 | |
---|
[914] | 4239 | ac_header_compiler=no |
---|
[749] | 4240 | fi |
---|
| 4241 | |
---|
[914] | 4242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4243 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4244 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4245 | |
---|
[749] | 4246 | # Is the header present? |
---|
[914] | 4247 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4248 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
[749] | 4249 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4250 | /* confdefs.h. */ |
---|
| 4251 | _ACEOF |
---|
| 4252 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4253 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4254 | /* end confdefs.h. */ |
---|
| 4255 | #include <$ac_header> |
---|
| 4256 | _ACEOF |
---|
[914] | 4257 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4258 | case "(($ac_try" in |
---|
| 4259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4260 | *) ac_try_echo=$ac_try;; |
---|
| 4261 | esac |
---|
| 4262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4263 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 4264 | ac_status=$? |
---|
| 4265 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4266 | rm -f conftest.er1 |
---|
| 4267 | cat conftest.err >&5 |
---|
| 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 4269 | (exit $ac_status); } >/dev/null && { |
---|
| 4270 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 4271 | test ! -s conftest.err |
---|
| 4272 | }; then |
---|
[749] | 4273 | ac_header_preproc=yes |
---|
| 4274 | else |
---|
| 4275 | echo "$as_me: failed program was:" >&5 |
---|
| 4276 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4277 | |
---|
| 4278 | ac_header_preproc=no |
---|
| 4279 | fi |
---|
[914] | 4280 | |
---|
[749] | 4281 | rm -f conftest.err conftest.$ac_ext |
---|
[914] | 4282 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4283 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
[749] | 4284 | |
---|
| 4285 | # So? What about this header? |
---|
| 4286 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
---|
| 4287 | yes:no: ) |
---|
| 4288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4292 | ac_header_preproc=yes |
---|
| 4293 | ;; |
---|
| 4294 | no:yes:* ) |
---|
| 4295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
[914] | 4307 | ( cat <<\_ASBOX |
---|
[749] | 4308 | ## ----------------------------------- ## |
---|
| 4309 | ## Report this to rappture@nanohub.org ## |
---|
| 4310 | ## ----------------------------------- ## |
---|
| 4311 | _ASBOX |
---|
[914] | 4312 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[749] | 4313 | ;; |
---|
| 4314 | esac |
---|
[914] | 4315 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 4317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 4318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4319 | else |
---|
| 4320 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4321 | fi |
---|
[914] | 4322 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 4323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 4324 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 4325 | |
---|
| 4326 | fi |
---|
| 4327 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4328 | cat >>confdefs.h <<_ACEOF |
---|
| 4329 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4330 | _ACEOF |
---|
| 4331 | |
---|
| 4332 | else |
---|
| 4333 | { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 |
---|
| 4334 | echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} |
---|
| 4335 | { (exit 1); exit 1; }; } |
---|
| 4336 | fi |
---|
| 4337 | |
---|
| 4338 | done |
---|
| 4339 | |
---|
| 4340 | fi |
---|
| 4341 | # TCL_LIB=$(ls ${TCL_LIB_DIR} | grep -o libtcl[0-9]\.[0-9]) |
---|
| 4342 | # TCL_LIB=`ls ${TCL_LIB_DIR} | awk '/libtcl([0-9]\.?[0-9])?\.so/ { print }'` |
---|
| 4343 | # TCL_LIB=`ls ${TCL_LIB_DIR} | sed -e '/libtcl([0-9]\.?[0-9])?\.so$/ {p}'` |
---|
| 4344 | # TCL_LIB_VERSION=$(echo ${TCL_LIB} | sed -e s/libtcl// -e s/\.so//) |
---|
[914] | 4345 | { echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&5 |
---|
| 4346 | echo "${ECHO_T}${TCL_LIB_DIR}/${TCL_LIB}" >&6; } |
---|
[749] | 4347 | # echo TCL_LIB_DIR = ${TCL_LIB_DIR} |
---|
| 4348 | # echo TCL_LIB = ${TCL_LIB} |
---|
| 4349 | # echo TCL_LIB_VERSION = ${TCL_LIB_VERSION} |
---|
| 4350 | |
---|
| 4351 | |
---|
| 4352 | |
---|
| 4353 | |
---|
| 4354 | |
---|
[914] | 4355 | # Check whether --with-tclinclude was given. |
---|
[749] | 4356 | if test "${with_tclinclude+set}" = set; then |
---|
[914] | 4357 | withval=$with_tclinclude; with_tclinclude=$withval |
---|
[749] | 4358 | else |
---|
| 4359 | with_tclinclude=/usr/include |
---|
[914] | 4360 | fi |
---|
[749] | 4361 | |
---|
[914] | 4362 | |
---|
[749] | 4363 | TCL_INCL_DIR="" |
---|
[914] | 4364 | { echo "$as_me:$LINENO: checking for tcl.h" >&5 |
---|
| 4365 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; } |
---|
[749] | 4366 | if test "x$with_tclinclude" != "x" ; then |
---|
| 4367 | if test -f "$with_tclinclude" |
---|
| 4368 | then |
---|
| 4369 | if test `basename $with_tclinclude` = "tcl.h" |
---|
| 4370 | then |
---|
| 4371 | TCL_INCL_DIR="`dirname $with_tclinclude`" |
---|
| 4372 | fi |
---|
| 4373 | else |
---|
| 4374 | if test -d "$with_tclinclude" |
---|
| 4375 | then |
---|
| 4376 | if test -r "$with_tclinclude/tcl.h" |
---|
| 4377 | then |
---|
| 4378 | TCL_INCL_DIR="$with_tclinclude" |
---|
| 4379 | else |
---|
| 4380 | if test -r "$with_tclinclude/tcl${TCL_LIB_VERSION}/tcl.h" |
---|
| 4381 | then |
---|
| 4382 | TCL_INCL_DIR="$with_tclinclude/tcl${TCL_LIB_VERSION}" |
---|
| 4383 | else |
---|
[914] | 4384 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4385 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 4386 | { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 |
---|
| 4387 | echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} |
---|
| 4388 | { (exit 1); exit 1; }; } |
---|
| 4389 | fi |
---|
| 4390 | fi |
---|
| 4391 | else |
---|
[914] | 4392 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4393 | echo "${ECHO_T}no" >&6; } |
---|
[749] | 4394 | { { echo "$as_me:$LINENO: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&5 |
---|
| 4395 | echo "$as_me: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&2;} |
---|
| 4396 | { (exit 1); exit 1; }; } |
---|
| 4397 | fi |
---|
| 4398 | fi |
---|
| 4399 | else |
---|
| 4400 | |
---|
| 4401 | for ac_header in tcl.h |
---|
| 4402 | do |
---|
| 4403 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
[914] | 4404 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 4405 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 4407 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 4408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4409 | fi |
---|
[914] | 4410 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 4411 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 4412 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 4413 | else |
---|
| 4414 | # Is the header compilable? |
---|
[914] | 4415 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4416 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
[749] | 4417 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4418 | /* confdefs.h. */ |
---|
| 4419 | _ACEOF |
---|
| 4420 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4421 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4422 | /* end confdefs.h. */ |
---|
| 4423 | $ac_includes_default |
---|
| 4424 | #include <$ac_header> |
---|
| 4425 | _ACEOF |
---|
| 4426 | rm -f conftest.$ac_objext |
---|
[914] | 4427 | if { (ac_try="$ac_compile" |
---|
| 4428 | case "(($ac_try" in |
---|
| 4429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4430 | *) ac_try_echo=$ac_try;; |
---|
| 4431 | esac |
---|
| 4432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4433 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 4434 | ac_status=$? |
---|
| 4435 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4436 | rm -f conftest.er1 |
---|
| 4437 | cat conftest.err >&5 |
---|
| 4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 4439 | (exit $ac_status); } && { |
---|
| 4440 | test -z "$ac_cxx_werror_flag" || |
---|
| 4441 | test ! -s conftest.err |
---|
| 4442 | } && test -s conftest.$ac_objext; then |
---|
[749] | 4443 | ac_header_compiler=yes |
---|
| 4444 | else |
---|
| 4445 | echo "$as_me: failed program was:" >&5 |
---|
| 4446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4447 | |
---|
[914] | 4448 | ac_header_compiler=no |
---|
[749] | 4449 | fi |
---|
| 4450 | |
---|
[914] | 4451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4452 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4453 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4454 | |
---|
[749] | 4455 | # Is the header present? |
---|
[914] | 4456 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4457 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
[749] | 4458 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4459 | /* confdefs.h. */ |
---|
| 4460 | _ACEOF |
---|
| 4461 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4462 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4463 | /* end confdefs.h. */ |
---|
| 4464 | #include <$ac_header> |
---|
| 4465 | _ACEOF |
---|
[914] | 4466 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4467 | case "(($ac_try" in |
---|
| 4468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4469 | *) ac_try_echo=$ac_try;; |
---|
| 4470 | esac |
---|
| 4471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4472 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 4473 | ac_status=$? |
---|
| 4474 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4475 | rm -f conftest.er1 |
---|
| 4476 | cat conftest.err >&5 |
---|
| 4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 4478 | (exit $ac_status); } >/dev/null && { |
---|
| 4479 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 4480 | test ! -s conftest.err |
---|
| 4481 | }; then |
---|
[749] | 4482 | ac_header_preproc=yes |
---|
| 4483 | else |
---|
| 4484 | echo "$as_me: failed program was:" >&5 |
---|
| 4485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4486 | |
---|
| 4487 | ac_header_preproc=no |
---|
| 4488 | fi |
---|
[914] | 4489 | |
---|
[749] | 4490 | rm -f conftest.err conftest.$ac_ext |
---|
[914] | 4491 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4492 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
[749] | 4493 | |
---|
| 4494 | # So? What about this header? |
---|
| 4495 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
---|
| 4496 | yes:no: ) |
---|
| 4497 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4498 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4500 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4501 | ac_header_preproc=yes |
---|
| 4502 | ;; |
---|
| 4503 | no:yes:* ) |
---|
| 4504 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4505 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4506 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4507 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4508 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4509 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4510 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4511 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4513 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4514 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4515 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
[914] | 4516 | ( cat <<\_ASBOX |
---|
[749] | 4517 | ## ----------------------------------- ## |
---|
| 4518 | ## Report this to rappture@nanohub.org ## |
---|
| 4519 | ## ----------------------------------- ## |
---|
| 4520 | _ASBOX |
---|
[914] | 4521 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[749] | 4522 | ;; |
---|
| 4523 | esac |
---|
[914] | 4524 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 4526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 4527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4528 | else |
---|
| 4529 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4530 | fi |
---|
[914] | 4531 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 4532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 4533 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 4534 | |
---|
| 4535 | fi |
---|
| 4536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4537 | cat >>confdefs.h <<_ACEOF |
---|
| 4538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4539 | _ACEOF |
---|
| 4540 | |
---|
| 4541 | else |
---|
| 4542 | { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 |
---|
| 4543 | echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} |
---|
| 4544 | { (exit 1); exit 1; }; } |
---|
| 4545 | fi |
---|
| 4546 | |
---|
| 4547 | done |
---|
| 4548 | |
---|
| 4549 | fi |
---|
[914] | 4550 | { echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&5 |
---|
| 4551 | echo "${ECHO_T}${TCL_INCL_DIR}" >&6; } |
---|
[749] | 4552 | |
---|
| 4553 | |
---|
| 4554 | |
---|
[914] | 4555 | # Check whether --with-rappture was given. |
---|
[749] | 4556 | if test "${with_rappture+set}" = set; then |
---|
[914] | 4557 | withval=$with_rappture; with_rappture=$withval |
---|
[749] | 4558 | else |
---|
| 4559 | with_rappture=/usr |
---|
[914] | 4560 | fi |
---|
[749] | 4561 | |
---|
[914] | 4562 | |
---|
[749] | 4563 | RP2_INCL_DIR="" |
---|
| 4564 | RP_DIR="" |
---|
[914] | 4565 | { echo "$as_me:$LINENO: checking for rappture" >&5 |
---|
| 4566 | echo $ECHO_N "checking for rappture... $ECHO_C" >&6; } |
---|
[749] | 4567 | if test "x$with_rappture" != "x" ; then |
---|
[751] | 4568 | if test "x$with_rappture" != "xprefix" ; then |
---|
| 4569 | if test -f "$with_rappture" |
---|
| 4570 | then |
---|
[914] | 4571 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4572 | echo "${ECHO_T}no" >&6; } |
---|
[751] | 4573 | { { echo "$as_me:$LINENO: error: please provide --with-rappture with directory" >&5 |
---|
[749] | 4574 | echo "$as_me: error: please provide --with-rappture with directory" >&2;} |
---|
| 4575 | { (exit 1); exit 1; }; } |
---|
[751] | 4576 | else |
---|
| 4577 | if test -d "$with_rappture" |
---|
[749] | 4578 | then |
---|
[751] | 4579 | if test -r "$with_rappture/include/rappture2/rappture2.h" -a -r "$with_rappture/lib/librappture2.a" |
---|
| 4580 | then |
---|
| 4581 | RP2_INCL_DIR="$with_rappture/include/rappture2" |
---|
| 4582 | RP_DIR="$with_rappture" |
---|
[914] | 4583 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 4584 | echo "${ECHO_T}yes" >&6; } |
---|
[751] | 4585 | else |
---|
[914] | 4586 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4587 | echo "${ECHO_T}no" >&6; } |
---|
[751] | 4588 | { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&5 |
---|
[749] | 4589 | echo "$as_me: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&2;} |
---|
| 4590 | { (exit 1); exit 1; }; } |
---|
[751] | 4591 | fi |
---|
| 4592 | else |
---|
[914] | 4593 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4594 | echo "${ECHO_T}no" >&6; } |
---|
[751] | 4595 | { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&5 |
---|
[749] | 4596 | echo "$as_me: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&2;} |
---|
| 4597 | { (exit 1); exit 1; }; } |
---|
[751] | 4598 | fi |
---|
[749] | 4599 | fi |
---|
[751] | 4600 | else |
---|
| 4601 | RP2_INCL_DIR="$prefix/include/rappture2" |
---|
| 4602 | RP_DIR="$prefix" |
---|
[914] | 4603 | { echo "$as_me:$LINENO: result: set to prefix" >&5 |
---|
| 4604 | echo "${ECHO_T}set to prefix" >&6; } |
---|
[749] | 4605 | fi |
---|
| 4606 | else |
---|
| 4607 | |
---|
| 4608 | for ac_header in rappture.h |
---|
| 4609 | do |
---|
| 4610 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
[914] | 4611 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
| 4612 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 4614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4616 | fi |
---|
[914] | 4617 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 4618 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 4619 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 4620 | else |
---|
| 4621 | # Is the header compilable? |
---|
[914] | 4622 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4623 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
[749] | 4624 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4625 | /* confdefs.h. */ |
---|
| 4626 | _ACEOF |
---|
| 4627 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4628 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4629 | /* end confdefs.h. */ |
---|
| 4630 | $ac_includes_default |
---|
| 4631 | #include <$ac_header> |
---|
| 4632 | _ACEOF |
---|
| 4633 | rm -f conftest.$ac_objext |
---|
[914] | 4634 | if { (ac_try="$ac_compile" |
---|
| 4635 | case "(($ac_try" in |
---|
| 4636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4637 | *) ac_try_echo=$ac_try;; |
---|
| 4638 | esac |
---|
| 4639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4640 | (eval "$ac_compile") 2>conftest.er1 |
---|
[749] | 4641 | ac_status=$? |
---|
| 4642 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4643 | rm -f conftest.er1 |
---|
| 4644 | cat conftest.err >&5 |
---|
| 4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 4646 | (exit $ac_status); } && { |
---|
| 4647 | test -z "$ac_cxx_werror_flag" || |
---|
| 4648 | test ! -s conftest.err |
---|
| 4649 | } && test -s conftest.$ac_objext; then |
---|
[749] | 4650 | ac_header_compiler=yes |
---|
| 4651 | else |
---|
| 4652 | echo "$as_me: failed program was:" >&5 |
---|
| 4653 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4654 | |
---|
[914] | 4655 | ac_header_compiler=no |
---|
[749] | 4656 | fi |
---|
| 4657 | |
---|
[914] | 4658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4659 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4660 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
| 4661 | |
---|
[749] | 4662 | # Is the header present? |
---|
[914] | 4663 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4664 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
[749] | 4665 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4666 | /* confdefs.h. */ |
---|
| 4667 | _ACEOF |
---|
| 4668 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4670 | /* end confdefs.h. */ |
---|
| 4671 | #include <$ac_header> |
---|
| 4672 | _ACEOF |
---|
[914] | 4673 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
| 4674 | case "(($ac_try" in |
---|
| 4675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
| 4676 | *) ac_try_echo=$ac_try;; |
---|
| 4677 | esac |
---|
| 4678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
| 4679 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
[749] | 4680 | ac_status=$? |
---|
| 4681 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4682 | rm -f conftest.er1 |
---|
| 4683 | cat conftest.err >&5 |
---|
| 4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[914] | 4685 | (exit $ac_status); } >/dev/null && { |
---|
| 4686 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
| 4687 | test ! -s conftest.err |
---|
| 4688 | }; then |
---|
[749] | 4689 | ac_header_preproc=yes |
---|
| 4690 | else |
---|
| 4691 | echo "$as_me: failed program was:" >&5 |
---|
| 4692 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4693 | |
---|
| 4694 | ac_header_preproc=no |
---|
| 4695 | fi |
---|
[914] | 4696 | |
---|
[749] | 4697 | rm -f conftest.err conftest.$ac_ext |
---|
[914] | 4698 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4699 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
[749] | 4700 | |
---|
| 4701 | # So? What about this header? |
---|
| 4702 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
---|
| 4703 | yes:no: ) |
---|
| 4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4708 | ac_header_preproc=yes |
---|
| 4709 | ;; |
---|
| 4710 | no:yes:* ) |
---|
| 4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
[914] | 4723 | ( cat <<\_ASBOX |
---|
[749] | 4724 | ## ----------------------------------- ## |
---|
| 4725 | ## Report this to rappture@nanohub.org ## |
---|
| 4726 | ## ----------------------------------- ## |
---|
| 4727 | _ASBOX |
---|
[914] | 4728 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[749] | 4729 | ;; |
---|
| 4730 | esac |
---|
[914] | 4731 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
| 4733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
[749] | 4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4735 | else |
---|
| 4736 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4737 | fi |
---|
[914] | 4738 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
| 4739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
| 4740 | echo "${ECHO_T}$ac_res" >&6; } |
---|
[749] | 4741 | |
---|
| 4742 | fi |
---|
| 4743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4744 | cat >>confdefs.h <<_ACEOF |
---|
| 4745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4746 | _ACEOF |
---|
| 4747 | |
---|
| 4748 | else |
---|
| 4749 | { { echo "$as_me:$LINENO: error: cannot find rappture.h, try using --with-rappture" >&5 |
---|
| 4750 | echo "$as_me: error: cannot find rappture.h, try using --with-rappture" >&2;} |
---|
| 4751 | { (exit 1); exit 1; }; } |
---|
| 4752 | fi |
---|
| 4753 | |
---|
| 4754 | done |
---|
| 4755 | |
---|
[944] | 4756 | |
---|
| 4757 | |
---|
[749] | 4758 | fi |
---|
[914] | 4759 | { echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5 |
---|
| 4760 | echo "${ECHO_T}${RP_DIR}/include" >&6; } |
---|
[749] | 4761 | |
---|
| 4762 | |
---|
| 4763 | |
---|
[944] | 4764 | { echo "$as_me:$LINENO: checking for DX installation" >&5 |
---|
| 4765 | echo $ECHO_N "checking for DX installation... $ECHO_C" >&6; } |
---|
| 4766 | DX_DIR="" |
---|
| 4767 | for dir in \ |
---|
| 4768 | /apps/rappture \ |
---|
| 4769 | /usr/dx \ |
---|
| 4770 | /usr |
---|
| 4771 | do |
---|
| 4772 | if test -r "${dir}/include/dx/dx.h" ; then |
---|
| 4773 | DX_DIR="$dir" |
---|
| 4774 | break |
---|
| 4775 | fi |
---|
| 4776 | done |
---|
| 4777 | if test "x${DX_DIR}" = "x" ; then |
---|
| 4778 | { { echo "$as_me:$LINENO: error: can't find OpenDX installation" >&5 |
---|
| 4779 | echo "$as_me: error: can't find OpenDX installation" >&2;} |
---|
| 4780 | { (exit 1); exit 1; }; } |
---|
| 4781 | fi |
---|
| 4782 | if test "${DX_DIR}" = "/usr" ; then |
---|
| 4783 | DX_DIR="" |
---|
| 4784 | fi |
---|
[749] | 4785 | |
---|
[944] | 4786 | { echo "$as_me:$LINENO: result: ${DX_DIR}" >&5 |
---|
| 4787 | echo "${ECHO_T}${DX_DIR}" >&6; } |
---|
[749] | 4788 | |
---|
[944] | 4789 | |
---|
| 4790 | |
---|
[940] | 4791 | ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile start_viz.sh" |
---|
[914] | 4792 | |
---|
[749] | 4793 | cat >confcache <<\_ACEOF |
---|
| 4794 | # This file is a shell script that caches the results of configure |
---|
| 4795 | # tests run on this system so they can be shared between configure |
---|
| 4796 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 4797 | # It is not useful on other systems. If it contains results you don't |
---|
| 4798 | # want to keep, you may remove or edit it. |
---|
| 4799 | # |
---|
| 4800 | # config.status only pays attention to the cache file if you give it |
---|
| 4801 | # the --recheck option to rerun configure. |
---|
| 4802 | # |
---|
| 4803 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 4804 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 4805 | # following values. |
---|
| 4806 | |
---|
| 4807 | _ACEOF |
---|
| 4808 | |
---|
| 4809 | # The following way of writing the cache mishandles newlines in values, |
---|
| 4810 | # but we know of no workaround that is simple, portable, and efficient. |
---|
[914] | 4811 | # So, we kill variables containing newlines. |
---|
[749] | 4812 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 4813 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
[914] | 4814 | ( |
---|
| 4815 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
| 4816 | eval ac_val=\$$ac_var |
---|
| 4817 | case $ac_val in #( |
---|
| 4818 | *${as_nl}*) |
---|
| 4819 | case $ac_var in #( |
---|
| 4820 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
| 4821 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
| 4822 | esac |
---|
| 4823 | case $ac_var in #( |
---|
| 4824 | _ | IFS | as_nl) ;; #( |
---|
| 4825 | *) $as_unset $ac_var ;; |
---|
| 4826 | esac ;; |
---|
| 4827 | esac |
---|
| 4828 | done |
---|
| 4829 | |
---|
[749] | 4830 | (set) 2>&1 | |
---|
[914] | 4831 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
| 4832 | *${as_nl}ac_space=\ *) |
---|
[749] | 4833 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 4834 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 4835 | sed -n \ |
---|
| 4836 | "s/'/'\\\\''/g; |
---|
| 4837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
[914] | 4838 | ;; #( |
---|
[749] | 4839 | *) |
---|
| 4840 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
[914] | 4841 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
[749] | 4842 | ;; |
---|
[914] | 4843 | esac | |
---|
| 4844 | sort |
---|
| 4845 | ) | |
---|
[749] | 4846 | sed ' |
---|
[914] | 4847 | /^ac_cv_env_/b end |
---|
[749] | 4848 | t clear |
---|
[914] | 4849 | :clear |
---|
[749] | 4850 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 4851 | t end |
---|
[914] | 4852 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 4853 | :end' >>confcache |
---|
| 4854 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
| 4855 | if test -w "$cache_file"; then |
---|
| 4856 | test "x$cache_file" != "x/dev/null" && |
---|
| 4857 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
| 4858 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
[749] | 4859 | cat confcache >$cache_file |
---|
| 4860 | else |
---|
[914] | 4861 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
| 4862 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
[749] | 4863 | fi |
---|
| 4864 | fi |
---|
| 4865 | rm -f confcache |
---|
| 4866 | |
---|
| 4867 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 4868 | # Let make expand exec_prefix. |
---|
| 4869 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 4870 | |
---|
| 4871 | # Transform confdefs.h into DEFS. |
---|
| 4872 | # Protect against shell expansion while executing Makefile rules. |
---|
| 4873 | # Protect against Makefile macro expansion. |
---|
| 4874 | # |
---|
| 4875 | # If the first sed substitution is executed (which looks for macros that |
---|
[914] | 4876 | # take arguments), then branch to the quote section. Otherwise, |
---|
[749] | 4877 | # look for a macro that doesn't take arguments. |
---|
[914] | 4878 | ac_script=' |
---|
[749] | 4879 | t clear |
---|
[914] | 4880 | :clear |
---|
| 4881 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
[749] | 4882 | t quote |
---|
[914] | 4883 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
[749] | 4884 | t quote |
---|
[914] | 4885 | b any |
---|
| 4886 | :quote |
---|
| 4887 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
| 4888 | s/\[/\\&/g |
---|
| 4889 | s/\]/\\&/g |
---|
| 4890 | s/\$/$$/g |
---|
| 4891 | H |
---|
| 4892 | :any |
---|
| 4893 | ${ |
---|
| 4894 | g |
---|
| 4895 | s/^\n// |
---|
| 4896 | s/\n/ /g |
---|
| 4897 | p |
---|
| 4898 | } |
---|
| 4899 | ' |
---|
| 4900 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
[749] | 4901 | |
---|
| 4902 | |
---|
| 4903 | ac_libobjs= |
---|
| 4904 | ac_ltlibobjs= |
---|
| 4905 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 4906 | # 1. Remove the extension, and $U if already installed. |
---|
[914] | 4907 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
| 4908 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
| 4909 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
| 4910 | # will be set to the directory where LIBOBJS objects are built. |
---|
| 4911 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
| 4912 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
[749] | 4913 | done |
---|
| 4914 | LIBOBJS=$ac_libobjs |
---|
| 4915 | |
---|
| 4916 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 4917 | |
---|
| 4918 | |
---|
| 4919 | |
---|
| 4920 | : ${CONFIG_STATUS=./config.status} |
---|
| 4921 | ac_clean_files_save=$ac_clean_files |
---|
| 4922 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 4923 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 4924 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 4925 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 4926 | #! $SHELL |
---|
| 4927 | # Generated by $as_me. |
---|
| 4928 | # Run this file to recreate the current configuration. |
---|
| 4929 | # Compiler output produced by configure, useful for debugging |
---|
| 4930 | # configure, is in config.log if it exists. |
---|
| 4931 | |
---|
| 4932 | debug=false |
---|
| 4933 | ac_cs_recheck=false |
---|
| 4934 | ac_cs_silent=false |
---|
| 4935 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 4936 | _ACEOF |
---|
| 4937 | |
---|
| 4938 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4939 | ## --------------------- ## |
---|
| 4940 | ## M4sh Initialization. ## |
---|
| 4941 | ## --------------------- ## |
---|
| 4942 | |
---|
[914] | 4943 | # Be more Bourne compatible |
---|
| 4944 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[749] | 4945 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 4946 | emulate sh |
---|
| 4947 | NULLCMD=: |
---|
| 4948 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 4949 | # is contrary to our usage. Disable this feature. |
---|
| 4950 | alias -g '${1+"$@"}'='"$@"' |
---|
[914] | 4951 | setopt NO_GLOB_SUBST |
---|
| 4952 | else |
---|
| 4953 | case `(set -o) 2>/dev/null` in |
---|
| 4954 | *posix*) set -o posix ;; |
---|
| 4955 | esac |
---|
| 4956 | |
---|
[749] | 4957 | fi |
---|
| 4958 | |
---|
[914] | 4959 | |
---|
| 4960 | |
---|
| 4961 | |
---|
| 4962 | # PATH needs CR |
---|
| 4963 | # Avoid depending upon Character Ranges. |
---|
| 4964 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 4965 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 4966 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 4967 | as_cr_digits='0123456789' |
---|
| 4968 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 4969 | |
---|
| 4970 | # The user is always right. |
---|
| 4971 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 4972 | echo "#! /bin/sh" >conf$$.sh |
---|
| 4973 | echo "exit 0" >>conf$$.sh |
---|
| 4974 | chmod +x conf$$.sh |
---|
| 4975 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 4976 | PATH_SEPARATOR=';' |
---|
| 4977 | else |
---|
| 4978 | PATH_SEPARATOR=: |
---|
| 4979 | fi |
---|
| 4980 | rm -f conf$$.sh |
---|
| 4981 | fi |
---|
| 4982 | |
---|
[749] | 4983 | # Support unset when possible. |
---|
| 4984 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 4985 | as_unset=unset |
---|
| 4986 | else |
---|
| 4987 | as_unset=false |
---|
| 4988 | fi |
---|
| 4989 | |
---|
| 4990 | |
---|
[914] | 4991 | # IFS |
---|
| 4992 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
| 4993 | # there to prevent editors from complaining about space-tab. |
---|
| 4994 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
| 4995 | # splitting by setting IFS to empty value.) |
---|
| 4996 | as_nl=' |
---|
| 4997 | ' |
---|
| 4998 | IFS=" "" $as_nl" |
---|
| 4999 | |
---|
| 5000 | # Find who we are. Look in the path if we contain no directory separator. |
---|
| 5001 | case $0 in |
---|
| 5002 | *[\\/]* ) as_myself=$0 ;; |
---|
| 5003 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5004 | for as_dir in $PATH |
---|
| 5005 | do |
---|
| 5006 | IFS=$as_save_IFS |
---|
| 5007 | test -z "$as_dir" && as_dir=. |
---|
| 5008 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 5009 | done |
---|
| 5010 | IFS=$as_save_IFS |
---|
| 5011 | |
---|
| 5012 | ;; |
---|
| 5013 | esac |
---|
| 5014 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 5015 | # in which case we are not to be found in the path. |
---|
| 5016 | if test "x$as_myself" = x; then |
---|
| 5017 | as_myself=$0 |
---|
| 5018 | fi |
---|
| 5019 | if test ! -f "$as_myself"; then |
---|
| 5020 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
| 5021 | { (exit 1); exit 1; } |
---|
| 5022 | fi |
---|
| 5023 | |
---|
[749] | 5024 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
[914] | 5025 | for as_var in ENV MAIL MAILPATH |
---|
| 5026 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
| 5027 | done |
---|
[749] | 5028 | PS1='$ ' |
---|
| 5029 | PS2='> ' |
---|
| 5030 | PS4='+ ' |
---|
| 5031 | |
---|
| 5032 | # NLS nuisances. |
---|
| 5033 | for as_var in \ |
---|
| 5034 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 5035 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 5036 | LC_TELEPHONE LC_TIME |
---|
| 5037 | do |
---|
| 5038 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 5039 | eval $as_var=C; export $as_var |
---|
| 5040 | else |
---|
[914] | 5041 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
[749] | 5042 | fi |
---|
| 5043 | done |
---|
| 5044 | |
---|
| 5045 | # Required to use basename. |
---|
[914] | 5046 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 5047 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[749] | 5048 | as_expr=expr |
---|
| 5049 | else |
---|
| 5050 | as_expr=false |
---|
| 5051 | fi |
---|
| 5052 | |
---|
[914] | 5053 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
[749] | 5054 | as_basename=basename |
---|
| 5055 | else |
---|
| 5056 | as_basename=false |
---|
| 5057 | fi |
---|
| 5058 | |
---|
| 5059 | |
---|
| 5060 | # Name of the executable. |
---|
[914] | 5061 | as_me=`$as_basename -- "$0" || |
---|
[749] | 5062 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5063 | X"$0" : 'X\(//\)$' \| \ |
---|
[914] | 5064 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
[749] | 5065 | echo X/"$0" | |
---|
[914] | 5066 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
| 5067 | s//\1/ |
---|
| 5068 | q |
---|
| 5069 | } |
---|
| 5070 | /^X\/\(\/\/\)$/{ |
---|
| 5071 | s//\1/ |
---|
| 5072 | q |
---|
| 5073 | } |
---|
| 5074 | /^X\/\(\/\).*/{ |
---|
| 5075 | s//\1/ |
---|
| 5076 | q |
---|
| 5077 | } |
---|
| 5078 | s/.*/./; q'` |
---|
[749] | 5079 | |
---|
[914] | 5080 | # CDPATH. |
---|
| 5081 | $as_unset CDPATH |
---|
[749] | 5082 | |
---|
| 5083 | |
---|
| 5084 | |
---|
| 5085 | as_lineno_1=$LINENO |
---|
| 5086 | as_lineno_2=$LINENO |
---|
| 5087 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
[914] | 5088 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
[749] | 5089 | |
---|
| 5090 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 5091 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
[914] | 5092 | # line-number line after each line using $LINENO; the second 'sed' |
---|
| 5093 | # does the real work. The second script uses 'N' to pair each |
---|
| 5094 | # line-number line with the line containing $LINENO, and appends |
---|
| 5095 | # trailing '-' during substitution so that $LINENO is not a special |
---|
| 5096 | # case at line end. |
---|
[749] | 5097 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
[914] | 5098 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
| 5099 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
| 5100 | sed -n ' |
---|
| 5101 | p |
---|
| 5102 | /[$]LINENO/= |
---|
| 5103 | ' <$as_myself | |
---|
[749] | 5104 | sed ' |
---|
[914] | 5105 | s/[$]LINENO.*/&-/ |
---|
| 5106 | t lineno |
---|
| 5107 | b |
---|
| 5108 | :lineno |
---|
[749] | 5109 | N |
---|
[914] | 5110 | :loop |
---|
| 5111 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
[749] | 5112 | t loop |
---|
[914] | 5113 | s/-\n.*// |
---|
[749] | 5114 | ' >$as_me.lineno && |
---|
[914] | 5115 | chmod +x "$as_me.lineno" || |
---|
| 5116 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
[749] | 5117 | { (exit 1); exit 1; }; } |
---|
| 5118 | |
---|
| 5119 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 5120 | # (the dirname of $[0] is not the place where we might find the |
---|
[914] | 5121 | # original and so on. Autoconf is especially sensitive to this). |
---|
| 5122 | . "./$as_me.lineno" |
---|
[749] | 5123 | # Exit status is that of the last command. |
---|
| 5124 | exit |
---|
| 5125 | } |
---|
| 5126 | |
---|
| 5127 | |
---|
[914] | 5128 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
| 5129 | as_dirname=dirname |
---|
| 5130 | else |
---|
| 5131 | as_dirname=false |
---|
| 5132 | fi |
---|
| 5133 | |
---|
| 5134 | ECHO_C= ECHO_N= ECHO_T= |
---|
| 5135 | case `echo -n x` in |
---|
| 5136 | -n*) |
---|
| 5137 | case `echo 'x\c'` in |
---|
| 5138 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
| 5139 | *) ECHO_C='\c';; |
---|
| 5140 | esac;; |
---|
| 5141 | *) |
---|
| 5142 | ECHO_N='-n';; |
---|
[749] | 5143 | esac |
---|
| 5144 | |
---|
[914] | 5145 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
| 5146 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
[749] | 5147 | as_expr=expr |
---|
| 5148 | else |
---|
| 5149 | as_expr=false |
---|
| 5150 | fi |
---|
| 5151 | |
---|
| 5152 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[914] | 5153 | if test -d conf$$.dir; then |
---|
| 5154 | rm -f conf$$.dir/conf$$.file |
---|
| 5155 | else |
---|
| 5156 | rm -f conf$$.dir |
---|
| 5157 | mkdir conf$$.dir |
---|
| 5158 | fi |
---|
[749] | 5159 | echo >conf$$.file |
---|
| 5160 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
[914] | 5161 | as_ln_s='ln -s' |
---|
| 5162 | # ... but there are two gotchas: |
---|
| 5163 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
| 5164 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
| 5165 | # In both cases, we have to default to `cp -p'. |
---|
| 5166 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
[749] | 5167 | as_ln_s='cp -p' |
---|
| 5168 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 5169 | as_ln_s=ln |
---|
| 5170 | else |
---|
| 5171 | as_ln_s='cp -p' |
---|
| 5172 | fi |
---|
[914] | 5173 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
| 5174 | rmdir conf$$.dir 2>/dev/null |
---|
[749] | 5175 | |
---|
| 5176 | if mkdir -p . 2>/dev/null; then |
---|
| 5177 | as_mkdir_p=: |
---|
| 5178 | else |
---|
| 5179 | test -d ./-p && rmdir ./-p |
---|
| 5180 | as_mkdir_p=false |
---|
| 5181 | fi |
---|
| 5182 | |
---|
[914] | 5183 | if test -x / >/dev/null 2>&1; then |
---|
| 5184 | as_test_x='test -x' |
---|
| 5185 | else |
---|
| 5186 | if ls -dL / >/dev/null 2>&1; then |
---|
| 5187 | as_ls_L_option=L |
---|
| 5188 | else |
---|
| 5189 | as_ls_L_option= |
---|
| 5190 | fi |
---|
| 5191 | as_test_x=' |
---|
| 5192 | eval sh -c '\'' |
---|
| 5193 | if test -d "$1"; then |
---|
| 5194 | test -d "$1/."; |
---|
| 5195 | else |
---|
| 5196 | case $1 in |
---|
| 5197 | -*)set "./$1";; |
---|
| 5198 | esac; |
---|
| 5199 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
| 5200 | ???[sx]*):;;*)false;;esac;fi |
---|
| 5201 | '\'' sh |
---|
| 5202 | ' |
---|
| 5203 | fi |
---|
| 5204 | as_executable_p=$as_test_x |
---|
[749] | 5205 | |
---|
| 5206 | # Sed expression to map a string onto a valid CPP name. |
---|
| 5207 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5208 | |
---|
| 5209 | # Sed expression to map a string onto a valid variable name. |
---|
| 5210 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5211 | |
---|
| 5212 | |
---|
| 5213 | exec 6>&1 |
---|
| 5214 | |
---|
[914] | 5215 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
[749] | 5216 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
[914] | 5217 | # values after options handling. |
---|
| 5218 | ac_log=" |
---|
[749] | 5219 | This file was extended by vizservers $as_me 0.1, which was |
---|
[914] | 5220 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
[749] | 5221 | |
---|
| 5222 | CONFIG_FILES = $CONFIG_FILES |
---|
| 5223 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 5224 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 5225 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 5226 | $ $0 $@ |
---|
| 5227 | |
---|
[914] | 5228 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 5229 | " |
---|
| 5230 | |
---|
[749] | 5231 | _ACEOF |
---|
| 5232 | |
---|
[914] | 5233 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
[749] | 5234 | # Files that config.status was made for. |
---|
[914] | 5235 | config_files="$ac_config_files" |
---|
[749] | 5236 | |
---|
[914] | 5237 | _ACEOF |
---|
[749] | 5238 | |
---|
| 5239 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5240 | ac_cs_usage="\ |
---|
| 5241 | \`$as_me' instantiates files from templates according to the |
---|
| 5242 | current configuration. |
---|
| 5243 | |
---|
| 5244 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 5245 | |
---|
| 5246 | -h, --help print this help, then exit |
---|
[914] | 5247 | -V, --version print version number and configuration settings, then exit |
---|
[749] | 5248 | -q, --quiet do not print progress messages |
---|
| 5249 | -d, --debug don't remove temporary files |
---|
| 5250 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 5251 | --file=FILE[:TEMPLATE] |
---|
| 5252 | instantiate the configuration file FILE |
---|
| 5253 | |
---|
| 5254 | Configuration files: |
---|
| 5255 | $config_files |
---|
| 5256 | |
---|
| 5257 | Report bugs to <bug-autoconf@gnu.org>." |
---|
[914] | 5258 | |
---|
[749] | 5259 | _ACEOF |
---|
| 5260 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5261 | ac_cs_version="\\ |
---|
| 5262 | vizservers config.status 0.1 |
---|
[914] | 5263 | configured by $0, generated by GNU Autoconf 2.61, |
---|
| 5264 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
[749] | 5265 | |
---|
[914] | 5266 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
[749] | 5267 | This config.status script is free software; the Free Software Foundation |
---|
| 5268 | gives unlimited permission to copy, distribute and modify it." |
---|
[914] | 5269 | |
---|
| 5270 | ac_pwd='$ac_pwd' |
---|
| 5271 | srcdir='$srcdir' |
---|
| 5272 | INSTALL='$INSTALL' |
---|
[749] | 5273 | _ACEOF |
---|
| 5274 | |
---|
| 5275 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5276 | # If no file are specified by the user, then we need to provide default |
---|
| 5277 | # value. By we need to know if files were specified by the user. |
---|
| 5278 | ac_need_defaults=: |
---|
| 5279 | while test $# != 0 |
---|
| 5280 | do |
---|
| 5281 | case $1 in |
---|
| 5282 | --*=*) |
---|
[914] | 5283 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
| 5284 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
[749] | 5285 | ac_shift=: |
---|
| 5286 | ;; |
---|
[914] | 5287 | *) |
---|
[749] | 5288 | ac_option=$1 |
---|
| 5289 | ac_optarg=$2 |
---|
| 5290 | ac_shift=shift |
---|
| 5291 | ;; |
---|
| 5292 | esac |
---|
| 5293 | |
---|
| 5294 | case $ac_option in |
---|
| 5295 | # Handling of the options. |
---|
| 5296 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 5297 | ac_cs_recheck=: ;; |
---|
[914] | 5298 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
| 5299 | echo "$ac_cs_version"; exit ;; |
---|
| 5300 | --debug | --debu | --deb | --de | --d | -d ) |
---|
[749] | 5301 | debug=: ;; |
---|
| 5302 | --file | --fil | --fi | --f ) |
---|
| 5303 | $ac_shift |
---|
| 5304 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 5305 | ac_need_defaults=false;; |
---|
[914] | 5306 | --he | --h | --help | --hel | -h ) |
---|
| 5307 | echo "$ac_cs_usage"; exit ;; |
---|
[749] | 5308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 5309 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 5310 | ac_cs_silent=: ;; |
---|
| 5311 | |
---|
| 5312 | # This is an error. |
---|
[914] | 5313 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
| 5314 | Try \`$0 --help' for more information." >&2 |
---|
[749] | 5315 | { (exit 1); exit 1; }; } ;; |
---|
| 5316 | |
---|
[914] | 5317 | *) ac_config_targets="$ac_config_targets $1" |
---|
| 5318 | ac_need_defaults=false ;; |
---|
[749] | 5319 | |
---|
| 5320 | esac |
---|
| 5321 | shift |
---|
| 5322 | done |
---|
| 5323 | |
---|
| 5324 | ac_configure_extra_args= |
---|
| 5325 | |
---|
| 5326 | if $ac_cs_silent; then |
---|
| 5327 | exec 6>/dev/null |
---|
| 5328 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 5329 | fi |
---|
| 5330 | |
---|
| 5331 | _ACEOF |
---|
| 5332 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5333 | if \$ac_cs_recheck; then |
---|
[914] | 5334 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 5335 | CONFIG_SHELL=$SHELL |
---|
| 5336 | export CONFIG_SHELL |
---|
| 5337 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
[749] | 5338 | fi |
---|
| 5339 | |
---|
| 5340 | _ACEOF |
---|
[914] | 5341 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5342 | exec 5>>config.log |
---|
| 5343 | { |
---|
| 5344 | echo |
---|
| 5345 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 5346 | ## Running $as_me. ## |
---|
| 5347 | _ASBOX |
---|
| 5348 | echo "$ac_log" |
---|
| 5349 | } >&5 |
---|
[749] | 5350 | |
---|
[914] | 5351 | _ACEOF |
---|
| 5352 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5353 | _ACEOF |
---|
[749] | 5354 | |
---|
[914] | 5355 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
[749] | 5356 | |
---|
[914] | 5357 | # Handling of arguments. |
---|
[749] | 5358 | for ac_config_target in $ac_config_targets |
---|
| 5359 | do |
---|
[914] | 5360 | case $ac_config_target in |
---|
| 5361 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 5362 | "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;; |
---|
| 5363 | "nanovis/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;; |
---|
| 5364 | "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;; |
---|
| 5365 | "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;; |
---|
[916] | 5366 | "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;; |
---|
[940] | 5367 | "nanovis/transfer-function/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/transfer-function/Makefile" ;; |
---|
[914] | 5368 | "pymolproxy/Makefile") CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;; |
---|
| 5369 | "start_viz.sh") CONFIG_FILES="$CONFIG_FILES start_viz.sh" ;; |
---|
| 5370 | |
---|
[749] | 5371 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 5372 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 5373 | { (exit 1); exit 1; }; };; |
---|
| 5374 | esac |
---|
| 5375 | done |
---|
| 5376 | |
---|
[914] | 5377 | |
---|
[749] | 5378 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 5379 | # then the envvar interface is used. Set only those that are not. |
---|
| 5380 | # We use the long form for the default assignment because of an extremely |
---|
| 5381 | # bizarre bug on SunOS 4.1.3. |
---|
| 5382 | if $ac_need_defaults; then |
---|
| 5383 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 5384 | fi |
---|
| 5385 | |
---|
| 5386 | # Have a temporary directory for convenience. Make it in the build tree |
---|
[914] | 5387 | # simply because there is no reason against having it here, and in addition, |
---|
[749] | 5388 | # creating and moving files from /tmp can sometimes cause problems. |
---|
[914] | 5389 | # Hook for its removal unless debugging. |
---|
| 5390 | # Note that there is a small window in which the directory will not be cleaned: |
---|
| 5391 | # after its creation but before its name has been assigned to `$tmp'. |
---|
[749] | 5392 | $debug || |
---|
| 5393 | { |
---|
[914] | 5394 | tmp= |
---|
| 5395 | trap 'exit_status=$? |
---|
| 5396 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
| 5397 | ' 0 |
---|
[749] | 5398 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 5399 | } |
---|
| 5400 | # Create a (secure) tmp directory for tmp files. |
---|
| 5401 | |
---|
| 5402 | { |
---|
[914] | 5403 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
[749] | 5404 | test -n "$tmp" && test -d "$tmp" |
---|
| 5405 | } || |
---|
| 5406 | { |
---|
[914] | 5407 | tmp=./conf$$-$RANDOM |
---|
| 5408 | (umask 077 && mkdir "$tmp") |
---|
[749] | 5409 | } || |
---|
| 5410 | { |
---|
| 5411 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 5412 | { (exit 1); exit 1; } |
---|
| 5413 | } |
---|
| 5414 | |
---|
| 5415 | # |
---|
[914] | 5416 | # Set up the sed scripts for CONFIG_FILES section. |
---|
[749] | 5417 | # |
---|
| 5418 | |
---|
| 5419 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 5420 | # This happens for instance when ./config.status config.h |
---|
[914] | 5421 | if test -n "$CONFIG_FILES"; then |
---|
[749] | 5422 | |
---|
| 5423 | _ACEOF |
---|
| 5424 | |
---|
[914] | 5425 | |
---|
| 5426 | |
---|
| 5427 | ac_delim='%!_!# ' |
---|
| 5428 | for ac_last_try in false false false false false :; do |
---|
| 5429 | cat >conf$$subs.sed <<_ACEOF |
---|
| 5430 | SHELL!$SHELL$ac_delim |
---|
| 5431 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
| 5432 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
| 5433 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
| 5434 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
| 5435 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
| 5436 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
| 5437 | exec_prefix!$exec_prefix$ac_delim |
---|
| 5438 | prefix!$prefix$ac_delim |
---|
| 5439 | program_transform_name!$program_transform_name$ac_delim |
---|
| 5440 | bindir!$bindir$ac_delim |
---|
| 5441 | sbindir!$sbindir$ac_delim |
---|
| 5442 | libexecdir!$libexecdir$ac_delim |
---|
| 5443 | datarootdir!$datarootdir$ac_delim |
---|
| 5444 | datadir!$datadir$ac_delim |
---|
| 5445 | sysconfdir!$sysconfdir$ac_delim |
---|
| 5446 | sharedstatedir!$sharedstatedir$ac_delim |
---|
| 5447 | localstatedir!$localstatedir$ac_delim |
---|
| 5448 | includedir!$includedir$ac_delim |
---|
| 5449 | oldincludedir!$oldincludedir$ac_delim |
---|
| 5450 | docdir!$docdir$ac_delim |
---|
| 5451 | infodir!$infodir$ac_delim |
---|
| 5452 | htmldir!$htmldir$ac_delim |
---|
| 5453 | dvidir!$dvidir$ac_delim |
---|
| 5454 | pdfdir!$pdfdir$ac_delim |
---|
| 5455 | psdir!$psdir$ac_delim |
---|
| 5456 | libdir!$libdir$ac_delim |
---|
| 5457 | localedir!$localedir$ac_delim |
---|
| 5458 | mandir!$mandir$ac_delim |
---|
| 5459 | DEFS!$DEFS$ac_delim |
---|
| 5460 | ECHO_C!$ECHO_C$ac_delim |
---|
| 5461 | ECHO_N!$ECHO_N$ac_delim |
---|
| 5462 | ECHO_T!$ECHO_T$ac_delim |
---|
| 5463 | LIBS!$LIBS$ac_delim |
---|
| 5464 | build_alias!$build_alias$ac_delim |
---|
| 5465 | host_alias!$host_alias$ac_delim |
---|
| 5466 | target_alias!$target_alias$ac_delim |
---|
| 5467 | VERSION!$VERSION$ac_delim |
---|
| 5468 | LIB_SEARCH_DIRS!$LIB_SEARCH_DIRS$ac_delim |
---|
| 5469 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
---|
| 5470 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
---|
| 5471 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
---|
| 5472 | SET_MAKE!$SET_MAKE$ac_delim |
---|
| 5473 | CC!$CC$ac_delim |
---|
| 5474 | CFLAGS!$CFLAGS$ac_delim |
---|
| 5475 | LDFLAGS!$LDFLAGS$ac_delim |
---|
| 5476 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
| 5477 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
| 5478 | EXEEXT!$EXEEXT$ac_delim |
---|
| 5479 | OBJEXT!$OBJEXT$ac_delim |
---|
| 5480 | RANLIB!$RANLIB$ac_delim |
---|
| 5481 | CXX!$CXX$ac_delim |
---|
| 5482 | CXXFLAGS!$CXXFLAGS$ac_delim |
---|
| 5483 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
---|
| 5484 | CXXCPP!$CXXCPP$ac_delim |
---|
| 5485 | GREP!$GREP$ac_delim |
---|
| 5486 | EGREP!$EGREP$ac_delim |
---|
[940] | 5487 | SUBDIRS!$SUBDIRS$ac_delim |
---|
[914] | 5488 | TCL_LIB_DIR!$TCL_LIB_DIR$ac_delim |
---|
| 5489 | TCL_LIB!$TCL_LIB$ac_delim |
---|
| 5490 | TCL_LIB_VERSION!$TCL_LIB_VERSION$ac_delim |
---|
| 5491 | TCL_INCL_DIR!$TCL_INCL_DIR$ac_delim |
---|
| 5492 | RP2_INCL_DIR!$RP2_INCL_DIR$ac_delim |
---|
| 5493 | RP_DIR!$RP_DIR$ac_delim |
---|
[944] | 5494 | DX_DIR!$DX_DIR$ac_delim |
---|
[914] | 5495 | LIBOBJS!$LIBOBJS$ac_delim |
---|
| 5496 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
| 5497 | _ACEOF |
---|
| 5498 | |
---|
[944] | 5499 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then |
---|
[914] | 5500 | break |
---|
| 5501 | elif $ac_last_try; then |
---|
| 5502 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
| 5503 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
| 5504 | { (exit 1); exit 1; }; } |
---|
| 5505 | else |
---|
| 5506 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
[749] | 5507 | fi |
---|
[914] | 5508 | done |
---|
[749] | 5509 | |
---|
[914] | 5510 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
| 5511 | if test -n "$ac_eof"; then |
---|
| 5512 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
| 5513 | ac_eof=`expr $ac_eof + 1` |
---|
| 5514 | fi |
---|
| 5515 | |
---|
| 5516 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5517 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
| 5518 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
[749] | 5519 | _ACEOF |
---|
[914] | 5520 | sed ' |
---|
| 5521 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
| 5522 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
| 5523 | :n |
---|
| 5524 | t n |
---|
| 5525 | s/'"$ac_delim"'$/,g/; t |
---|
| 5526 | s/$/\\/; p |
---|
| 5527 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
| 5528 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
| 5529 | rm -f conf$$subs.sed |
---|
| 5530 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5531 | :end |
---|
| 5532 | s/|#_!!_#|//g |
---|
| 5533 | CEOF$ac_eof |
---|
| 5534 | _ACEOF |
---|
| 5535 | |
---|
| 5536 | |
---|
| 5537 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 5538 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 5539 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 5540 | # (actually we leave an empty line to preserve line numbers). |
---|
| 5541 | if test "x$srcdir" = x.; then |
---|
| 5542 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 5543 | s/:*\$(srcdir):*/:/ |
---|
| 5544 | s/:*\${srcdir}:*/:/ |
---|
| 5545 | s/:*@srcdir@:*/:/ |
---|
| 5546 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
| 5547 | s/:*$// |
---|
| 5548 | s/^[^=]*=[ ]*$// |
---|
| 5549 | }' |
---|
| 5550 | fi |
---|
| 5551 | |
---|
[749] | 5552 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
[914] | 5553 | fi # test -n "$CONFIG_FILES" |
---|
| 5554 | |
---|
| 5555 | |
---|
| 5556 | for ac_tag in :F $CONFIG_FILES |
---|
| 5557 | do |
---|
| 5558 | case $ac_tag in |
---|
| 5559 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
[749] | 5560 | esac |
---|
[914] | 5561 | case $ac_mode$ac_tag in |
---|
| 5562 | :[FHL]*:*);; |
---|
| 5563 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
| 5564 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
| 5565 | { (exit 1); exit 1; }; };; |
---|
| 5566 | :[FH]-) ac_tag=-:-;; |
---|
| 5567 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
| 5568 | esac |
---|
| 5569 | ac_save_IFS=$IFS |
---|
| 5570 | IFS=: |
---|
| 5571 | set x $ac_tag |
---|
| 5572 | IFS=$ac_save_IFS |
---|
| 5573 | shift |
---|
| 5574 | ac_file=$1 |
---|
| 5575 | shift |
---|
[749] | 5576 | |
---|
[914] | 5577 | case $ac_mode in |
---|
| 5578 | :L) ac_source=$1;; |
---|
| 5579 | :[FH]) |
---|
| 5580 | ac_file_inputs= |
---|
| 5581 | for ac_f |
---|
| 5582 | do |
---|
| 5583 | case $ac_f in |
---|
| 5584 | -) ac_f="$tmp/stdin";; |
---|
| 5585 | *) # Look for the file first in the build tree, then in the source tree |
---|
| 5586 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
| 5587 | # because $ac_f cannot contain `:'. |
---|
| 5588 | test -f "$ac_f" || |
---|
| 5589 | case $ac_f in |
---|
| 5590 | [\\/$]*) false;; |
---|
| 5591 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
| 5592 | esac || |
---|
| 5593 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
| 5594 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
| 5595 | { (exit 1); exit 1; }; };; |
---|
| 5596 | esac |
---|
| 5597 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
| 5598 | done |
---|
| 5599 | |
---|
| 5600 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 5601 | # use $as_me), people would be surprised to read: |
---|
| 5602 | # /* config.h. Generated by config.status. */ |
---|
| 5603 | configure_input="Generated from "`IFS=: |
---|
| 5604 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
| 5605 | if test x"$ac_file" != x-; then |
---|
| 5606 | configure_input="$ac_file. $configure_input" |
---|
| 5607 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 5608 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 5609 | fi |
---|
| 5610 | |
---|
| 5611 | case $ac_tag in |
---|
| 5612 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
| 5613 | esac |
---|
| 5614 | ;; |
---|
| 5615 | esac |
---|
| 5616 | |
---|
| 5617 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
[749] | 5618 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5619 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 5620 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
[914] | 5621 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
[749] | 5622 | echo X"$ac_file" | |
---|
[914] | 5623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5624 | s//\1/ |
---|
| 5625 | q |
---|
| 5626 | } |
---|
| 5627 | /^X\(\/\/\)[^/].*/{ |
---|
| 5628 | s//\1/ |
---|
| 5629 | q |
---|
| 5630 | } |
---|
| 5631 | /^X\(\/\/\)$/{ |
---|
| 5632 | s//\1/ |
---|
| 5633 | q |
---|
| 5634 | } |
---|
| 5635 | /^X\(\/\).*/{ |
---|
| 5636 | s//\1/ |
---|
| 5637 | q |
---|
| 5638 | } |
---|
| 5639 | s/.*/./; q'` |
---|
| 5640 | { as_dir="$ac_dir" |
---|
| 5641 | case $as_dir in #( |
---|
| 5642 | -*) as_dir=./$as_dir;; |
---|
| 5643 | esac |
---|
| 5644 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
[749] | 5645 | as_dirs= |
---|
[914] | 5646 | while :; do |
---|
| 5647 | case $as_dir in #( |
---|
| 5648 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
| 5649 | *) as_qdir=$as_dir;; |
---|
| 5650 | esac |
---|
| 5651 | as_dirs="'$as_qdir' $as_dirs" |
---|
| 5652 | as_dir=`$as_dirname -- "$as_dir" || |
---|
[749] | 5653 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5654 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 5655 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
[914] | 5656 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
[749] | 5657 | echo X"$as_dir" | |
---|
[914] | 5658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
| 5659 | s//\1/ |
---|
| 5660 | q |
---|
| 5661 | } |
---|
| 5662 | /^X\(\/\/\)[^/].*/{ |
---|
| 5663 | s//\1/ |
---|
| 5664 | q |
---|
| 5665 | } |
---|
| 5666 | /^X\(\/\/\)$/{ |
---|
| 5667 | s//\1/ |
---|
| 5668 | q |
---|
| 5669 | } |
---|
| 5670 | /^X\(\/\).*/{ |
---|
| 5671 | s//\1/ |
---|
| 5672 | q |
---|
| 5673 | } |
---|
| 5674 | s/.*/./; q'` |
---|
| 5675 | test -d "$as_dir" && break |
---|
[749] | 5676 | done |
---|
[914] | 5677 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
| 5678 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
| 5679 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
[749] | 5680 | { (exit 1); exit 1; }; }; } |
---|
| 5681 | ac_builddir=. |
---|
| 5682 | |
---|
[914] | 5683 | case "$ac_dir" in |
---|
| 5684 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 5685 | *) |
---|
[749] | 5686 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
[914] | 5687 | # A ".." for each directory in $ac_dir_suffix. |
---|
| 5688 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
| 5689 | case $ac_top_builddir_sub in |
---|
| 5690 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
| 5691 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
| 5692 | esac ;; |
---|
| 5693 | esac |
---|
| 5694 | ac_abs_top_builddir=$ac_pwd |
---|
| 5695 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
| 5696 | # for backward compatibility: |
---|
| 5697 | ac_top_builddir=$ac_top_build_prefix |
---|
[749] | 5698 | |
---|
| 5699 | case $srcdir in |
---|
[914] | 5700 | .) # We are building in place. |
---|
[749] | 5701 | ac_srcdir=. |
---|
[914] | 5702 | ac_top_srcdir=$ac_top_builddir_sub |
---|
| 5703 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
| 5704 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
[749] | 5705 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
[914] | 5706 | ac_top_srcdir=$srcdir |
---|
| 5707 | ac_abs_top_srcdir=$srcdir ;; |
---|
| 5708 | *) # Relative name. |
---|
| 5709 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
| 5710 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
| 5711 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
[749] | 5712 | esac |
---|
[914] | 5713 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
[749] | 5714 | |
---|
| 5715 | |
---|
[914] | 5716 | case $ac_mode in |
---|
| 5717 | :F) |
---|
| 5718 | # |
---|
| 5719 | # CONFIG_FILE |
---|
| 5720 | # |
---|
[749] | 5721 | |
---|
| 5722 | case $INSTALL in |
---|
| 5723 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
[914] | 5724 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
[749] | 5725 | esac |
---|
[914] | 5726 | _ACEOF |
---|
[749] | 5727 | |
---|
[914] | 5728 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5729 | # If the template does not know about datarootdir, expand it. |
---|
| 5730 | # FIXME: This hack should be removed a few years after 2.60. |
---|
| 5731 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
[749] | 5732 | |
---|
[914] | 5733 | case `sed -n '/datarootdir/ { |
---|
| 5734 | p |
---|
| 5735 | q |
---|
| 5736 | } |
---|
| 5737 | /@datadir@/p |
---|
| 5738 | /@docdir@/p |
---|
| 5739 | /@infodir@/p |
---|
| 5740 | /@localedir@/p |
---|
| 5741 | /@mandir@/p |
---|
| 5742 | ' $ac_file_inputs` in |
---|
| 5743 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
| 5744 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
| 5745 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
| 5746 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
[749] | 5747 | _ACEOF |
---|
| 5748 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
[914] | 5749 | ac_datarootdir_hack=' |
---|
| 5750 | s&@datadir@&$datadir&g |
---|
| 5751 | s&@docdir@&$docdir&g |
---|
| 5752 | s&@infodir@&$infodir&g |
---|
| 5753 | s&@localedir@&$localedir&g |
---|
| 5754 | s&@mandir@&$mandir&g |
---|
| 5755 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
| 5756 | esac |
---|
| 5757 | _ACEOF |
---|
| 5758 | |
---|
| 5759 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
| 5760 | # Shell code in configure.ac might set extrasub. |
---|
| 5761 | # FIXME: do we really want to maintain this feature? |
---|
| 5762 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
[749] | 5763 | sed "$ac_vpsub |
---|
| 5764 | $extrasub |
---|
| 5765 | _ACEOF |
---|
| 5766 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5767 | :t |
---|
| 5768 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
[914] | 5769 | s&@configure_input@&$configure_input&;t t |
---|
| 5770 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
| 5771 | s&@srcdir@&$ac_srcdir&;t t |
---|
| 5772 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
| 5773 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
| 5774 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
| 5775 | s&@builddir@&$ac_builddir&;t t |
---|
| 5776 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
| 5777 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
| 5778 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
| 5779 | $ac_datarootdir_hack |
---|
| 5780 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
---|
[749] | 5781 | |
---|
[914] | 5782 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
| 5783 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
| 5784 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
| 5785 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 5786 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
| 5787 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
| 5788 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
[749] | 5789 | |
---|
[914] | 5790 | rm -f "$tmp/stdin" |
---|
| 5791 | case $ac_file in |
---|
| 5792 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
| 5793 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
| 5794 | esac |
---|
| 5795 | ;; |
---|
[749] | 5796 | |
---|
[914] | 5797 | |
---|
| 5798 | |
---|
| 5799 | esac |
---|
| 5800 | |
---|
| 5801 | done # for ac_tag |
---|
| 5802 | |
---|
| 5803 | |
---|
[749] | 5804 | { (exit 0); exit 0; } |
---|
| 5805 | _ACEOF |
---|
| 5806 | chmod +x $CONFIG_STATUS |
---|
| 5807 | ac_clean_files=$ac_clean_files_save |
---|
| 5808 | |
---|
| 5809 | |
---|
| 5810 | # configure is writing to config.log, and then calls config.status. |
---|
| 5811 | # config.status does its own redirection, appending to config.log. |
---|
| 5812 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 5813 | # by configure, so config.status won't be able to write to it; its |
---|
| 5814 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 5815 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 5816 | # appended to by config.status. When coming back to configure, we |
---|
| 5817 | # need to make the FD available again. |
---|
| 5818 | if test "$no_create" != yes; then |
---|
| 5819 | ac_cs_success=: |
---|
| 5820 | ac_config_status_args= |
---|
| 5821 | test "$silent" = yes && |
---|
| 5822 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 5823 | exec 5>/dev/null |
---|
| 5824 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 5825 | exec 5>>config.log |
---|
| 5826 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 5827 | # would make configure fail if this is the last instruction. |
---|
| 5828 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 5829 | fi |
---|
| 5830 | |
---|