| Line | Revision | Contents |
| 1 | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
|
| 3 | 20 | # Generated by GNU Autoconf 2.61. |
| 4 | 1 | # |
| 5 | 20 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
| 7 | 1 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
|
| 9 | 3 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
|
| 11 | ## --------------------- ## |
|
| 12 | ||
| 13 | 20 | # Be more Bourne compatible |
| 14 | 12 | DUALCASE=1; export DUALCASE # for MKS sh |
| 15 | 20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
| 16 | emulate sh |
|
| 17 | NULLCMD=: |
|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
| 19 | # is contrary to our usage. Disable this feature. |
|
| 20 | alias -g '${1+"$@"}'='"$@"'
|
|
| 21 | setopt NO_GLOB_SUBST |
|
| 22 | else |
|
| 23 | case `(set -o) 2>/dev/null` in |
|
| 24 | *posix*) set -o posix ;; |
|
| 25 | esac |
|
| 26 | ||
| 27 | fi |
|
| 28 | ||
| 29 | ||
| 30 | ||
| 31 | ||
| 32 | # PATH needs CR |
|
| 33 | # Avoid depending upon Character Ranges. |
|
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
| 37 | as_cr_digits='0123456789' |
|
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
| 39 | ||
| 40 | # The user is always right. |
|
| 41 | if test "${PATH_SEPARATOR+set}" != set; then
|
|
| 42 | echo "#! /bin/sh" >conf$$.sh |
|
| 43 | echo "exit 0" >>conf$$.sh |
|
| 44 | chmod +x conf$$.sh |
|
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
| 46 | PATH_SEPARATOR=';' |
|
| 47 | else |
|
| 48 | PATH_SEPARATOR=: |
|
| 49 | fi |
|
| 50 | rm -f conf$$.sh |
|
| 51 | fi |
|
| 52 | 3 | |
| 53 | # Support unset when possible. |
|
| 54 | 12 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | 3 | as_unset=unset |
| 56 | else |
|
| 57 | as_unset=false |
|
| 58 | fi |
|
| 59 | ||
| 60 | ||
| 61 | 20 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
|
| 63 | # there to prevent editors from complaining about space-tab. |
|
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
| 65 | # splitting by setting IFS to empty value.) |
|
| 66 | as_nl=' |
|
| 67 | ' |
|
| 68 | IFS=" "" $as_nl" |
|
| 69 | ||
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
|
| 71 | case $0 in |
|
| 72 | *[\\/]* ) as_myself=$0 ;; |
|
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 74 | for as_dir in $PATH |
|
| 75 | do |
|
| 76 | IFS=$as_save_IFS |
|
| 77 | test -z "$as_dir" && as_dir=. |
|
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
| 79 | done |
|
| 80 | IFS=$as_save_IFS |
|
| 81 | ||
| 82 | ;; |
|
| 83 | esac |
|
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
| 85 | # in which case we are not to be found in the path. |
|
| 86 | if test "x$as_myself" = x; then |
|
| 87 | as_myself=$0 |
|
| 88 | fi |
|
| 89 | if test ! -f "$as_myself"; then |
|
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
| 91 | { (exit 1); exit 1; }
|
|
| 92 | fi |
|
| 93 | ||
| 94 | 3 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | 20 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
| 97 | done |
|
| 98 | 3 | PS1='$ ' |
| 99 | PS2='> ' |
|
| 100 | PS4='+ ' |
|
| 101 | ||
| 102 | # NLS nuisances. |
|
| 103 | 4 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
| 106 | LC_TELEPHONE LC_TIME |
|
| 107 | 3 | do |
| 108 | 12 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | 3 | eval $as_var=C; export $as_var |
| 110 | else |
|
| 111 | 20 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 112 | 3 | fi |
| 113 | done |
|
| 114 | ||
| 115 | # Required to use basename. |
|
| 116 | 20 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
| 118 | 3 | as_expr=expr |
| 119 | else |
|
| 120 | as_expr=false |
|
| 121 | fi |
|
| 122 | ||
| 123 | 20 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | 3 | as_basename=basename |
| 125 | else |
|
| 126 | as_basename=false |
|
| 127 | fi |
|
| 128 | ||
| 129 | ||
| 130 | # Name of the executable. |
|
| 131 | 20 | as_me=`$as_basename -- "$0" || |
| 132 | 3 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
|
| 134 | 20 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | 3 | echo X/"$0" | |
| 136 | 20 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
| 137 | s//\1/ |
|
| 138 | q |
|
| 139 | } |
|
| 140 | /^X\/\(\/\/\)$/{
|
|
| 141 | s//\1/ |
|
| 142 | q |
|
| 143 | } |
|
| 144 | /^X\/\(\/\).*/{
|
|
| 145 | s//\1/ |
|
| 146 | q |
|
| 147 | } |
|
| 148 | s/.*/./; q'` |
|
| 149 | ||
| 150 | # CDPATH. |
|
| 151 | $as_unset CDPATH |
|
| 152 | ||
| 153 | ||
| 154 | if test "x$CONFIG_SHELL" = x; then |
|
| 155 | if (eval ":") 2>/dev/null; then |
|
| 156 | as_have_required=yes |
|
| 157 | else |
|
| 158 | as_have_required=no |
|
| 159 | fi |
|
| 160 | ||
| 161 | if test $as_have_required = yes && (eval ": |
|
| 162 | (as_func_return () {
|
|
| 163 | (exit \$1) |
|
| 164 | } |
|
| 165 | as_func_success () {
|
|
| 166 | as_func_return 0 |
|
| 167 | } |
|
| 168 | as_func_failure () {
|
|
| 169 | as_func_return 1 |
|
| 170 | } |
|
| 171 | as_func_ret_success () {
|
|
| 172 | return 0 |
|
| 173 | } |
|
| 174 | as_func_ret_failure () {
|
|
| 175 | return 1 |
|
| 176 | } |
|
| 177 | ||
| 178 | exitcode=0 |
|
| 179 | if as_func_success; then |
|
| 180 | : |
|
| 181 | else |
|
| 182 | exitcode=1 |
|
| 183 | echo as_func_success failed. |
|
| 184 | fi |
|
| 185 | ||
| 186 | if as_func_failure; then |
|
| 187 | exitcode=1 |
|
| 188 | echo as_func_failure succeeded. |
|
| 189 | fi |
|
| 190 | ||
| 191 | if as_func_ret_success; then |
|
| 192 | : |
|
| 193 | else |
|
| 194 | exitcode=1 |
|
| 195 | echo as_func_ret_success failed. |
|
| 196 | fi |
|
| 197 | ||
| 198 | if as_func_ret_failure; then |
|
| 199 | exitcode=1 |
|
| 200 | echo as_func_ret_failure succeeded. |
|
| 201 | fi |
|
| 202 | ||
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
| 204 | : |
|
| 205 | else |
|
| 206 | exitcode=1 |
|
| 207 | echo positional parameters were not saved. |
|
| 208 | fi |
|
| 209 | ||
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; }
|
|
| 211 | ||
| 212 | ( |
|
| 213 | as_lineno_1=\$LINENO |
|
| 214 | as_lineno_2=\$LINENO |
|
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
|
| 217 | ") 2> /dev/null; then |
|
| 218 | : |
|
| 219 | else |
|
| 220 | as_candidate_shells= |
|
| 221 | 3 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
| 223 | do |
|
| 224 | IFS=$as_save_IFS |
|
| 225 | test -z "$as_dir" && as_dir=. |
|
| 226 | 20 | case $as_dir in |
| 227 | 3 | /*) |
| 228 | 20 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
| 230 | done;; |
|
| 231 | esac |
|
| 232 | 3 | done |
| 233 | 20 | IFS=$as_save_IFS |
| 234 | ||
| 235 | ||
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
|
| 237 | # Try only shells that exist, to save several forks. |
|
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF
|
|
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
| 241 | emulate sh |
|
| 242 | NULLCMD=: |
|
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
| 244 | # is contrary to our usage. Disable this feature. |
|
| 245 | alias -g '${1+"$@"}'='"$@"'
|
|
| 246 | setopt NO_GLOB_SUBST |
|
| 247 | else |
|
| 248 | case `(set -o) 2>/dev/null` in |
|
| 249 | *posix*) set -o posix ;; |
|
| 250 | esac |
|
| 251 | ||
| 252 | fi |
|
| 253 | ||
| 254 | ||
| 255 | : |
|
| 256 | _ASEOF |
|
| 257 | }; then |
|
| 258 | CONFIG_SHELL=$as_shell |
|
| 259 | as_have_required=yes |
|
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF
|
|
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
| 262 | emulate sh |
|
| 263 | NULLCMD=: |
|
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
| 265 | # is contrary to our usage. Disable this feature. |
|
| 266 | alias -g '${1+"$@"}'='"$@"'
|
|
| 267 | setopt NO_GLOB_SUBST |
|
| 268 | else |
|
| 269 | case `(set -o) 2>/dev/null` in |
|
| 270 | *posix*) set -o posix ;; |
|
| 271 | esac |
|
| 272 | ||
| 273 | fi |
|
| 274 | ||
| 275 | ||
| 276 | : |
|
| 277 | (as_func_return () {
|
|
| 278 | (exit $1) |
|
| 279 | } |
|
| 280 | as_func_success () {
|
|
| 281 | as_func_return 0 |
|
| 282 | } |
|
| 283 | as_func_failure () {
|
|
| 284 | as_func_return 1 |
|
| 285 | } |
|
| 286 | as_func_ret_success () {
|
|
| 287 | return 0 |
|
| 288 | } |
|
| 289 | as_func_ret_failure () {
|
|
| 290 | return 1 |
|
| 291 | } |
|
| 292 | ||
| 293 | exitcode=0 |
|
| 294 | if as_func_success; then |
|
| 295 | : |
|
| 296 | else |
|
| 297 | exitcode=1 |
|
| 298 | echo as_func_success failed. |
|
| 299 | fi |
|
| 300 | ||
| 301 | if as_func_failure; then |
|
| 302 | exitcode=1 |
|
| 303 | echo as_func_failure succeeded. |
|
| 304 | fi |
|
| 305 | ||
| 306 | if as_func_ret_success; then |
|
| 307 | : |
|
| 308 | else |
|
| 309 | exitcode=1 |
|
| 310 | echo as_func_ret_success failed. |
|
| 311 | fi |
|
| 312 | ||
| 313 | if as_func_ret_failure; then |
|
| 314 | exitcode=1 |
|
| 315 | echo as_func_ret_failure succeeded. |
|
| 316 | fi |
|
| 317 | ||
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
| 319 | : |
|
| 320 | else |
|
| 321 | exitcode=1 |
|
| 322 | echo positional parameters were not saved. |
|
| 323 | fi |
|
| 324 | ||
| 325 | test $exitcode = 0) || { (exit 1); exit 1; }
|
|
| 326 | ||
| 327 | ( |
|
| 328 | as_lineno_1=$LINENO |
|
| 329 | as_lineno_2=$LINENO |
|
| 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
| 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
|
| 332 | ||
| 333 | _ASEOF |
|
| 334 | }; then |
|
| 335 | break |
|
| 336 | fi |
|
| 337 | ||
| 338 | fi |
|
| 339 | ||
| 340 | done |
|
| 341 | ||
| 342 | if test "x$CONFIG_SHELL" != x; then |
|
| 343 | for as_var in BASH_ENV ENV |
|
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
| 345 | done |
|
| 346 | export CONFIG_SHELL |
|
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
|
| 348 | fi |
|
| 349 | ||
| 350 | ||
| 351 | if test $as_have_required = no; then |
|
| 352 | echo This script requires a shell more modern than all the |
|
| 353 | echo shells that I found on your system. Please install a |
|
| 354 | echo modern shell, or manually run the script under such a |
|
| 355 | echo shell if you do have one. |
|
| 356 | { (exit 1); exit 1; }
|
|
| 357 | fi |
|
| 358 | ||
| 359 | ||
| 360 | fi |
|
| 361 | ||
| 362 | fi |
|
| 363 | ||
| 364 | ||
| 365 | ||
| 366 | (eval "as_func_return () {
|
|
| 367 | (exit \$1) |
|
| 368 | } |
|
| 369 | as_func_success () {
|
|
| 370 | as_func_return 0 |
|
| 371 | } |
|
| 372 | as_func_failure () {
|
|
| 373 | as_func_return 1 |
|
| 374 | } |
|
| 375 | as_func_ret_success () {
|
|
| 376 | return 0 |
|
| 377 | } |
|
| 378 | as_func_ret_failure () {
|
|
| 379 | return 1 |
|
| 380 | } |
|
| 381 | ||
| 382 | exitcode=0 |
|
| 383 | if as_func_success; then |
|
| 384 | : |
|
| 385 | else |
|
| 386 | exitcode=1 |
|
| 387 | echo as_func_success failed. |
|
| 388 | fi |
|
| 389 | ||
| 390 | if as_func_failure; then |
|
| 391 | exitcode=1 |
|
| 392 | echo as_func_failure succeeded. |
|
| 393 | fi |
|
| 394 | ||
| 395 | if as_func_ret_success; then |
|
| 396 | : |
|
| 397 | else |
|
| 398 | exitcode=1 |
|
| 399 | echo as_func_ret_success failed. |
|
| 400 | fi |
|
| 401 | ||
| 402 | if as_func_ret_failure; then |
|
| 403 | exitcode=1 |
|
| 404 | echo as_func_ret_failure succeeded. |
|
| 405 | fi |
|
| 406 | ||
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
| 408 | : |
|
| 409 | else |
|
| 410 | exitcode=1 |
|
| 411 | echo positional parameters were not saved. |
|
| 412 | fi |
|
| 413 | ||
| 414 | test \$exitcode = 0") || {
|
|
| 415 | echo No shell found that supports shell functions. |
|
| 416 | echo Please tell autoconf@gnu.org about your system, |
|
| 417 | echo including any error possibly output before this |
|
| 418 | echo message |
|
| 419 | } |
|
| 420 | ||
| 421 | ||
| 422 | ||
| 423 | as_lineno_1=$LINENO |
|
| 424 | as_lineno_2=$LINENO |
|
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
| 427 | 3 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
| 430 | 20 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
|
| 432 | # line-number line with the line containing $LINENO, and appends |
|
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
|
| 434 | # case at line end. |
|
| 435 | 3 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 436 | 20 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
| 438 | sed -n ' |
|
| 439 | p |
|
| 440 | /[$]LINENO/= |
|
| 441 | ' <$as_myself | |
|
| 442 | 3 | sed ' |
| 443 | 20 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
|
| 445 | b |
|
| 446 | :lineno |
|
| 447 | 3 | N |
| 448 | 20 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
| 450 | 3 | t loop |
| 451 | 20 | s/-\n.*// |
| 452 | 3 | ' >$as_me.lineno && |
| 453 | 20 | chmod +x "$as_me.lineno" || |
| 454 | 3 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
| 455 | { (exit 1); exit 1; }; }
|
|
| 456 | ||
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
|
| 458 | # (the dirname of $[0] is not the place where we might find the |
|
| 459 | 20 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
|
| 461 | 3 | # Exit status is that of the last command. |
| 462 | exit |
|
| 463 | } |
|
| 464 | ||
| 465 | ||
| 466 | 20 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
|
| 468 | else |
|
| 469 | as_dirname=false |
|
| 470 | fi |
|
| 471 | ||
| 472 | ECHO_C= ECHO_N= ECHO_T= |
|
| 473 | case `echo -n x` in |
|
| 474 | -n*) |
|
| 475 | case `echo 'x\c'` in |
|
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
| 477 | *) ECHO_C='\c';; |
|
| 478 | esac;; |
|
| 479 | *) |
|
| 480 | ECHO_N='-n';; |
|
| 481 | 3 | esac |
| 482 | ||
| 483 | 20 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
| 485 | 3 | as_expr=expr |
| 486 | else |
|
| 487 | as_expr=false |
|
| 488 | fi |
|
| 489 | ||
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
|
| 491 | 20 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
|
| 493 | else |
|
| 494 | rm -f conf$$.dir |
|
| 495 | mkdir conf$$.dir |
|
| 496 | fi |
|
| 497 | 3 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
| 499 | 20 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
|
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
| 503 | # In both cases, we have to default to `cp -p'. |
|
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
| 505 | 3 | as_ln_s='cp -p' |
| 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|
| 507 | as_ln_s=ln |
|
| 508 | else |
|
| 509 | as_ln_s='cp -p' |
|
| 510 | fi |
|
| 511 | 20 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
|
| 513 | 3 | |
| 514 | if mkdir -p . 2>/dev/null; then |
|
| 515 | as_mkdir_p=: |
|
| 516 | else |
|
| 517 | 12 | test -d ./-p && rmdir ./-p |
| 518 | 3 | as_mkdir_p=false |
| 519 | fi |
|
| 520 | ||
| 521 | 20 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
|
| 523 | else |
|
| 524 | if ls -dL / >/dev/null 2>&1; then |
|
| 525 | as_ls_L_option=L |
|
| 526 | else |
|
| 527 | as_ls_L_option= |
|
| 528 | fi |
|
| 529 | as_test_x=' |
|
| 530 | eval sh -c '\'' |
|
| 531 | if test -d "$1"; then |
|
| 532 | test -d "$1/."; |
|
| 533 | else |
|
| 534 | case $1 in |
|
| 535 | -*)set "./$1";; |
|
| 536 | esac; |
|
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
| 538 | ???[sx]*):;;*)false;;esac;fi |
|
| 539 | '\'' sh |
|
| 540 | ' |
|
| 541 | fi |
|
| 542 | as_executable_p=$as_test_x |
|
| 543 | 3 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
|
| 545 | 12 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | 3 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
|
| 548 | 12 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | 3 | |
| 550 | ||
| 551 | 20 | |
| 552 | exec 7<&0 </dev/null 6>&1 |
|
| 553 | 3 | |
| 554 | # Name of the host. |
|
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
| 556 | # so uname gets run too. |
|
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
| 558 | ||
| 559 | # |
|
| 560 | # Initializations. |
|
| 561 | # |
|
| 562 | 1 | ac_default_prefix=/usr/local |
| 563 | 20 | ac_clean_files= |
| 564 | 3 | ac_config_libobj_dir=. |
| 565 | 20 | LIBOBJS= |
| 566 | 3 | cross_compiling=no |
| 567 | subdirs= |
|
| 568 | MFLAGS= |
|
| 569 | MAKEFLAGS= |
|
| 570 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|
| 571 | ||
| 572 | # Identity of this package. |
|
| 573 | PACKAGE_NAME= |
|
| 574 | PACKAGE_TARNAME= |
|
| 575 | PACKAGE_VERSION= |
|
| 576 | PACKAGE_STRING= |
|
| 577 | PACKAGE_BUGREPORT= |
|
| 578 | ||
| 579 | ac_unique_file="mod_ldap_userdir.c" |
|
| 580 | # Factoring default headers for most tests. |
|
| 581 | ac_includes_default="\ |
|
| 582 | #include <stdio.h> |
|
| 583 | 20 | #ifdef HAVE_SYS_TYPES_H |
| 584 | 3 | # include <sys/types.h> |
| 585 | #endif |
|
| 586 | 20 | #ifdef HAVE_SYS_STAT_H |
| 587 | 3 | # include <sys/stat.h> |
| 588 | #endif |
|
| 589 | 20 | #ifdef STDC_HEADERS |
| 590 | 3 | # include <stdlib.h> |
| 591 | # include <stddef.h> |
|
| 592 | #else |
|
| 593 | 20 | # ifdef HAVE_STDLIB_H |
| 594 | 3 | # include <stdlib.h> |
| 595 | # endif |
|
| 596 | #endif |
|
| 597 | 20 | #ifdef HAVE_STRING_H |
| 598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
| 599 | 3 | # include <memory.h> |
| 600 | # endif |
|
| 601 | # include <string.h> |
|
| 602 | #endif |
|
| 603 | 20 | #ifdef HAVE_STRINGS_H |
| 604 | 3 | # include <strings.h> |
| 605 | #endif |
|
| 606 | 20 | #ifdef HAVE_INTTYPES_H |
| 607 | 3 | # include <inttypes.h> |
| 608 | 20 | #endif |
| 609 | #ifdef HAVE_STDINT_H |
|
| 610 | # include <stdint.h> |
|
| 611 | #endif |
|
| 612 | #ifdef HAVE_UNISTD_H |
|
| 613 | 3 | # include <unistd.h> |
| 614 | #endif" |
|
| 615 | ||
| 616 | 20 | ac_subst_vars='SHELL |
| 617 | PATH_SEPARATOR |
|
| 618 | PACKAGE_NAME |
|
| 619 | PACKAGE_TARNAME |
|
| 620 | PACKAGE_VERSION |
|
| 621 | PACKAGE_STRING |
|
| 622 | PACKAGE_BUGREPORT |
|
| 623 | exec_prefix |
|
| 624 | prefix |
|
| 625 | program_transform_name |
|
| 626 | bindir |
|
| 627 | sbindir |
|
| 628 | libexecdir |
|
| 629 | datarootdir |
|
| 630 | datadir |
|
| 631 | sysconfdir |
|
| 632 | sharedstatedir |
|
| 633 | localstatedir |
|
| 634 | includedir |
|
| 635 | oldincludedir |
|
| 636 | docdir |
|
| 637 | infodir |
|
| 638 | htmldir |
|
| 639 | dvidir |
|
| 640 | pdfdir |
|
| 641 | psdir |
|
| 642 | libdir |
|
| 643 | localedir |
|
| 644 | mandir |
|
| 645 | DEFS |
|
| 646 | ECHO_C |
|
| 647 | ECHO_N |
|
| 648 | ECHO_T |
|
| 649 | LIBS |
|
| 650 | build_alias |
|
| 651 | host_alias |
|
| 652 | target_alias |
|
| 653 | CC |
|
| 654 | CFLAGS |
|
| 655 | LDFLAGS |
|
| 656 | CPPFLAGS |
|
| 657 | ac_ct_CC |
|
| 658 | EXEEXT |
|
| 659 | OBJEXT |
|
| 660 | CPP |
|
| 661 | GREP |
|
| 662 | EGREP |
|
| 663 | APXS TARGET |
|
| 664 | CPPFLAGS LDFLAGS LIBS |
|
| 665 | TLS ACTIVATE |
|
| 666 | LIBOBJS |
|
| 667 | LTLIBOBJS' |
|
| 668 | 3 | ac_subst_files='' |
| 669 | 20 | ac_precious_vars='build_alias |
| 670 | host_alias |
|
| 671 | target_alias |
|
| 672 | CC |
|
| 673 | CFLAGS |
|
| 674 | LDFLAGS |
|
| 675 | LIBS |
|
| 676 | CPPFLAGS |
|
| 677 | CPP' |
|
| 678 | ||
| 679 | 1 | |
| 680 | # Initialize some variables set by options. |
|
| 681 | 3 | ac_init_help= |
| 682 | ac_init_version=false |
|
| 683 | 1 | # The variables have the same names as the options, with |
| 684 | # dashes changed to underlines. |
|
| 685 | 3 | cache_file=/dev/null |
| 686 | 1 | exec_prefix=NONE |
| 687 | no_create= |
|
| 688 | no_recursion= |
|
| 689 | prefix=NONE |
|
| 690 | program_prefix=NONE |
|
| 691 | program_suffix=NONE |
|
| 692 | program_transform_name=s,x,x, |
|
| 693 | silent= |
|
| 694 | site= |
|
| 695 | srcdir= |
|
| 696 | verbose= |
|
| 697 | x_includes=NONE |
|
| 698 | x_libraries=NONE |
|
| 699 | 3 | |
| 700 | # Installation directory options. |
|
| 701 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
| 702 | # and all the variables that are supposed to be based on exec_prefix |
|
| 703 | # by default will actually change. |
|
| 704 | # Use braces instead of parens because sh, perl, etc. also accept them. |
|
| 705 | 20 | # (The list follows the same order as the GNU Coding Standards.) |
| 706 | 1 | bindir='${exec_prefix}/bin'
|
| 707 | sbindir='${exec_prefix}/sbin'
|
|
| 708 | libexecdir='${exec_prefix}/libexec'
|
|
| 709 | 20 | datarootdir='${prefix}/share'
|
| 710 | datadir='${datarootdir}'
|
|
| 711 | 1 | sysconfdir='${prefix}/etc'
|
| 712 | sharedstatedir='${prefix}/com'
|
|
| 713 | localstatedir='${prefix}/var'
|
|
| 714 | includedir='${prefix}/include'
|
|
| 715 | oldincludedir='/usr/include' |
|
| 716 | 20 | docdir='${datarootdir}/doc/${PACKAGE}'
|
| 717 | infodir='${datarootdir}/info'
|
|
| 718 | htmldir='${docdir}'
|
|
| 719 | dvidir='${docdir}'
|
|
| 720 | pdfdir='${docdir}'
|
|
| 721 | psdir='${docdir}'
|
|
| 722 | libdir='${exec_prefix}/lib'
|
|
| 723 | localedir='${datarootdir}/locale'
|
|
| 724 | mandir='${datarootdir}/man'
|
|
| 725 | 1 | |
| 726 | ac_prev= |
|
| 727 | 20 | ac_dashdash= |
| 728 | 1 | for ac_option |
| 729 | do |
|
| 730 | # If the previous option needs an argument, assign it. |
|
| 731 | if test -n "$ac_prev"; then |
|
| 732 | 20 | eval $ac_prev=\$ac_option |
| 733 | 1 | ac_prev= |
| 734 | continue |
|
| 735 | fi |
|
| 736 | ||
| 737 | 20 | case $ac_option in |
| 738 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
| 739 | *) ac_optarg=yes ;; |
|
| 740 | esac |
|
| 741 | 1 | |
| 742 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|
| 743 | ||
| 744 | 20 | case $ac_dashdash$ac_option in |
| 745 | --) |
|
| 746 | ac_dashdash=yes ;; |
|
| 747 | 1 | |
| 748 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
| 749 | ac_prev=bindir ;; |
|
| 750 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
| 751 | 3 | bindir=$ac_optarg ;; |
| 752 | 1 | |
| 753 | -build | --build | --buil | --bui | --bu) |
|
| 754 | 3 | ac_prev=build_alias ;; |
| 755 | 1 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 756 | 3 | build_alias=$ac_optarg ;; |
| 757 | 1 | |
| 758 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
| 759 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
| 760 | ac_prev=cache_file ;; |
|
| 761 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
| 762 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
| 763 | 3 | cache_file=$ac_optarg ;; |
| 764 | ||
| 765 | --config-cache | -C) |
|
| 766 | cache_file=config.cache ;; |
|
| 767 | 1 | |
| 768 | 20 | -datadir | --datadir | --datadi | --datad) |
| 769 | 1 | ac_prev=datadir ;; |
| 770 | 20 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 771 | 3 | datadir=$ac_optarg ;; |
| 772 | 1 | |
| 773 | 20 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 774 | | --dataroo | --dataro | --datar) |
|
| 775 | ac_prev=datarootdir ;; |
|
| 776 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
| 777 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
| 778 | datarootdir=$ac_optarg ;; |
|
| 779 | ||
| 780 | 1 | -disable-* | --disable-*) |
| 781 | 3 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 782 | 1 | # Reject names that are not valid shell variable names. |
| 783 | 20 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 784 | 3 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
| 785 | { (exit 1); exit 1; }; }
|
|
| 786 | 20 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 787 | eval enable_$ac_feature=no ;; |
|
| 788 | ||
| 789 | -docdir | --docdir | --docdi | --doc | --do) |
|
| 790 | ac_prev=docdir ;; |
|
| 791 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
| 792 | docdir=$ac_optarg ;; |
|
| 793 | ||
| 794 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
| 795 | ac_prev=dvidir ;; |
|
| 796 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
| 797 | dvidir=$ac_optarg ;; |
|
| 798 | 1 | |
| 799 | -enable-* | --enable-*) |
|
| 800 | 3 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 801 | 1 | # Reject names that are not valid shell variable names. |
| 802 | 20 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 803 | 3 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
| 804 | { (exit 1); exit 1; }; }
|
|
| 805 | 20 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 806 | eval enable_$ac_feature=\$ac_optarg ;; |
|
| 807 | 1 | |
| 808 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
| 809 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
| 810 | | --exec | --exe | --ex) |
|
| 811 | ac_prev=exec_prefix ;; |
|
| 812 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
| 813 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
| 814 | | --exec=* | --exe=* | --ex=*) |
|
| 815 | 3 | exec_prefix=$ac_optarg ;; |
| 816 | 1 | |
| 817 | -gas | --gas | --ga | --g) |
|
| 818 | # Obsolete; use --with-gas. |
|
| 819 | with_gas=yes ;; |
|
| 820 | ||
| 821 | 3 | -help | --help | --hel | --he | -h) |
| 822 | ac_init_help=long ;; |
|
| 823 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
| 824 | ac_init_help=recursive ;; |
|
| 825 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
| 826 | ac_init_help=short ;; |
|
| 827 | 1 | |
| 828 | -host | --host | --hos | --ho) |
|
| 829 | 3 | ac_prev=host_alias ;; |
| 830 | 1 | -host=* | --host=* | --hos=* | --ho=*) |
| 831 | 3 | host_alias=$ac_optarg ;; |
| 832 | 1 | |
| 833 | 20 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 834 | ac_prev=htmldir ;; |
|
| 835 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
| 836 | | --ht=*) |
|
| 837 | htmldir=$ac_optarg ;; |
|
| 838 | ||
| 839 | 1 | -includedir | --includedir | --includedi | --included | --include \ |
| 840 | | --includ | --inclu | --incl | --inc) |
|
| 841 | ac_prev=includedir ;; |
|
| 842 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
| 843 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
|
| 844 | 3 | includedir=$ac_optarg ;; |
| 845 | 1 | |
| 846 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
|
| 847 | ac_prev=infodir ;; |
|
| 848 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
| 849 | 3 | infodir=$ac_optarg ;; |
| 850 | 1 | |
| 851 | -libdir | --libdir | --libdi | --libd) |
|
| 852 | ac_prev=libdir ;; |
|
| 853 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
| 854 | 3 | libdir=$ac_optarg ;; |
| 855 | 1 | |
| 856 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
| 857 | | --libexe | --libex | --libe) |
|
| 858 | ac_prev=libexecdir ;; |
|
| 859 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
| 860 | | --libexe=* | --libex=* | --libe=*) |
|
| 861 | 3 | libexecdir=$ac_optarg ;; |
| 862 | 1 | |
| 863 | 20 | -localedir | --localedir | --localedi | --localed | --locale) |
| 864 | ac_prev=localedir ;; |
|
| 865 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
| 866 | localedir=$ac_optarg ;; |
|
| 867 | ||
| 868 | 1 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 869 | 20 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 870 | 1 | ac_prev=localstatedir ;; |
| 871 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
| 872 | 20 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 873 | 3 | localstatedir=$ac_optarg ;; |
| 874 | 1 | |
| 875 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
| 876 | ac_prev=mandir ;; |
|
| 877 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
| 878 | 3 | mandir=$ac_optarg ;; |
| 879 | 1 | |
| 880 | -nfp | --nfp | --nf) |
|
| 881 | # Obsolete; use --without-fp. |
|
| 882 | with_fp=no ;; |
|
| 883 | ||
| 884 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
| 885 | 3 | | --no-cr | --no-c | -n) |
| 886 | 1 | no_create=yes ;; |
| 887 | ||
| 888 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
| 889 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
| 890 | no_recursion=yes ;; |
|
| 891 | ||
| 892 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
| 893 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
| 894 | | --oldin | --oldi | --old | --ol | --o) |
|
| 895 | ac_prev=oldincludedir ;; |
|
| 896 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
| 897 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
| 898 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
| 899 | 3 | oldincludedir=$ac_optarg ;; |
| 900 | 1 | |
| 901 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
| 902 | ac_prev=prefix ;; |
|
| 903 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
| 904 | 3 | prefix=$ac_optarg ;; |
| 905 | 1 | |
| 906 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
| 907 | | --program-pre | --program-pr | --program-p) |
|
| 908 | ac_prev=program_prefix ;; |
|
| 909 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
| 910 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
| 911 | 3 | program_prefix=$ac_optarg ;; |
| 912 | 1 | |
| 913 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
| 914 | | --program-suf | --program-su | --program-s) |
|
| 915 | ac_prev=program_suffix ;; |
|
| 916 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
| 917 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
| 918 | 3 | program_suffix=$ac_optarg ;; |
| 919 | 1 | |
| 920 | -program-transform-name | --program-transform-name \ |
|
| 921 | | --program-transform-nam | --program-transform-na \ |
|
| 922 | | --program-transform-n | --program-transform- \ |
|
| 923 | | --program-transform | --program-transfor \ |
|
| 924 | | --program-transfo | --program-transf \ |
|
| 925 | | --program-trans | --program-tran \ |
|
| 926 | | --progr-tra | --program-tr | --program-t) |
|
| 927 | ac_prev=program_transform_name ;; |
|
| 928 | -program-transform-name=* | --program-transform-name=* \ |
|
| 929 | | --program-transform-nam=* | --program-transform-na=* \ |
|
| 930 | | --program-transform-n=* | --program-transform-=* \ |
|
| 931 | | --program-transform=* | --program-transfor=* \ |
|
| 932 | | --program-transfo=* | --program-transf=* \ |
|
| 933 | | --program-trans=* | --program-tran=* \ |
|
| 934 | | --progr-tra=* | --program-tr=* | --program-t=*) |
|
| 935 | 3 | program_transform_name=$ac_optarg ;; |
| 936 | 1 | |
| 937 | 20 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 938 | ac_prev=pdfdir ;; |
|
| 939 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
| 940 | pdfdir=$ac_optarg ;; |
|
| 941 | ||
| 942 | -psdir | --psdir | --psdi | --psd | --ps) |
|
| 943 | ac_prev=psdir ;; |
|
| 944 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
| 945 | psdir=$ac_optarg ;; |
|
| 946 | ||
| 947 | 1 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 948 | | -silent | --silent | --silen | --sile | --sil) |
|
| 949 | silent=yes ;; |
|
| 950 | ||
| 951 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
| 952 | ac_prev=sbindir ;; |
|
| 953 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
| 954 | | --sbi=* | --sb=*) |
|
| 955 | 3 | sbindir=$ac_optarg ;; |
| 956 | 1 | |
| 957 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
| 958 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
| 959 | | --sharedst | --shareds | --shared | --share | --shar \ |
|
| 960 | | --sha | --sh) |
|
| 961 | ac_prev=sharedstatedir ;; |
|
| 962 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
| 963 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
| 964 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
| 965 | | --sha=* | --sh=*) |
|
| 966 | 3 | sharedstatedir=$ac_optarg ;; |
| 967 | 1 | |
| 968 | -site | --site | --sit) |
|
| 969 | ac_prev=site ;; |
|
| 970 | -site=* | --site=* | --sit=*) |
|
| 971 | 3 | site=$ac_optarg ;; |
| 972 | 1 | |
| 973 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
| 974 | ac_prev=srcdir ;; |
|
| 975 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
| 976 | 3 | srcdir=$ac_optarg ;; |
| 977 | 1 | |
| 978 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
| 979 | | --syscon | --sysco | --sysc | --sys | --sy) |
|
| 980 | ac_prev=sysconfdir ;; |
|
| 981 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
| 982 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
| 983 | 3 | sysconfdir=$ac_optarg ;; |
| 984 | 1 | |
| 985 | -target | --target | --targe | --targ | --tar | --ta | --t) |
|
| 986 | 3 | ac_prev=target_alias ;; |
| 987 | 1 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 988 | 3 | target_alias=$ac_optarg ;; |
| 989 | 1 | |
| 990 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
| 991 | verbose=yes ;; |
|
| 992 | ||
| 993 | 3 | -version | --version | --versio | --versi | --vers | -V) |
| 994 | ac_init_version=: ;; |
|
| 995 | 1 | |
| 996 | -with-* | --with-*) |
|
| 997 | 3 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 998 | 1 | # Reject names that are not valid shell variable names. |
| 999 | 20 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1000 | 3 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
| 1001 | { (exit 1); exit 1; }; }
|
|
| 1002 | 20 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1003 | eval with_$ac_package=\$ac_optarg ;; |
|
| 1004 | 1 | |
| 1005 | -without-* | --without-*) |
|
| 1006 | 3 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1007 | 1 | # Reject names that are not valid shell variable names. |
| 1008 | 20 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1009 | 3 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
| 1010 | { (exit 1); exit 1; }; }
|
|
| 1011 | 20 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1012 | eval with_$ac_package=no ;; |
|
| 1013 | 1 | |
| 1014 | --x) |
|
| 1015 | # Obsolete; use --with-x. |
|
| 1016 | with_x=yes ;; |
|
| 1017 | ||
| 1018 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
| 1019 | | --x-incl | --x-inc | --x-in | --x-i) |
|
| 1020 | ac_prev=x_includes ;; |
|
| 1021 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
| 1022 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
| 1023 | 3 | x_includes=$ac_optarg ;; |
| 1024 | 1 | |
| 1025 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
| 1026 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
| 1027 | ac_prev=x_libraries ;; |
|
| 1028 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
| 1029 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
| 1030 | 3 | x_libraries=$ac_optarg ;; |
| 1031 | 1 | |
| 1032 | 3 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
| 1033 | Try \`$0 --help' for more information." >&2 |
|
| 1034 | { (exit 1); exit 1; }; }
|
|
| 1035 | 1 | ;; |
| 1036 | ||
| 1037 | 3 | *=*) |
| 1038 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
| 1039 | # Reject names that are not valid shell variable names. |
|
| 1040 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
| 1041 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
|
| 1042 | { (exit 1); exit 1; }; }
|
|
| 1043 | 20 | eval $ac_envvar=\$ac_optarg |
| 1044 | 3 | export $ac_envvar ;; |
| 1045 | ||
| 1046 | 1 | *) |
| 1047 | 3 | # FIXME: should be removed in autoconf 3.0. |
| 1048 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
| 1049 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
| 1050 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
| 1051 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
|
| 1052 | 1 | ;; |
| 1053 | ||
| 1054 | esac |
|
| 1055 | done |
|
| 1056 | ||
| 1057 | if test -n "$ac_prev"; then |
|
| 1058 | 3 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1059 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
|
| 1060 | { (exit 1); exit 1; }; }
|
|
| 1061 | fi |
|
| 1062 | ||
| 1063 | 20 | # Be sure to have absolute directory names. |
| 1064 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
| 1065 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
| 1066 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
| 1067 | libdir localedir mandir |
|
| 1068 | do |
|
| 1069 | eval ac_val=\$$ac_var |
|
| 1070 | case $ac_val in |
|
| 1071 | [\\/$]* | ?:[\\/]* ) continue;; |
|
| 1072 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
| 1073 | esac |
|
| 1074 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
|
| 1075 | { (exit 1); exit 1; }; }
|
|
| 1076 | 3 | done |
| 1077 | ||
| 1078 | # There might be people who depend on the old broken behavior: `$host' |
|
| 1079 | # used to hold the argument of --host etc. |
|
| 1080 | # FIXME: To remove some day. |
|
| 1081 | build=$build_alias |
|
| 1082 | host=$host_alias |
|
| 1083 | target=$target_alias |
|
| 1084 | ||
| 1085 | # FIXME: To remove some day. |
|
| 1086 | if test "x$host_alias" != x; then |
|
| 1087 | if test "x$build_alias" = x; then |
|
| 1088 | cross_compiling=maybe |
|
| 1089 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
| 1090 | If a cross compiler is detected then cross compile mode will be used." >&2 |
|
| 1091 | elif test "x$build_alias" != "x$host_alias"; then |
|
| 1092 | cross_compiling=yes |
|
| 1093 | fi |
|
| 1094 | fi |
|
| 1095 | ||
| 1096 | ac_tool_prefix= |
|
| 1097 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
| 1098 | ||
| 1099 | test "$silent" = yes && exec 6>/dev/null |
|
| 1100 | ||
| 1101 | 1 | |
| 1102 | 20 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1103 | ac_ls_di=`ls -di .` && |
|
| 1104 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
| 1105 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
|
| 1106 | { (exit 1); exit 1; }; }
|
|
| 1107 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
| 1108 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
|
| 1109 | { (exit 1); exit 1; }; }
|
|
| 1110 | ||
| 1111 | ||
| 1112 | 1 | # Find the source files, if location was not specified. |
| 1113 | if test -z "$srcdir"; then |
|
| 1114 | ac_srcdir_defaulted=yes |
|
| 1115 | 20 | # Try the directory containing this script, then the parent directory. |
| 1116 | ac_confdir=`$as_dirname -- "$0" || |
|
| 1117 | 3 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1118 | 12 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1119 | X"$0" : 'X\(//\)$' \| \ |
|
| 1120 | 20 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1121 | 3 | echo X"$0" | |
| 1122 | 20 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
| 1123 | s//\1/ |
|
| 1124 | q |
|
| 1125 | } |
|
| 1126 | /^X\(\/\/\)[^/].*/{
|
|
| 1127 | s//\1/ |
|
| 1128 | q |
|
| 1129 | } |
|
| 1130 | /^X\(\/\/\)$/{
|
|
| 1131 | s//\1/ |
|
| 1132 | q |
|
| 1133 | } |
|
| 1134 | /^X\(\/\).*/{
|
|
| 1135 | s//\1/ |
|
| 1136 | q |
|
| 1137 | } |
|
| 1138 | s/.*/./; q'` |
|
| 1139 | 1 | srcdir=$ac_confdir |
| 1140 | 20 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1141 | 1 | srcdir=.. |
| 1142 | fi |
|
| 1143 | else |
|
| 1144 | ac_srcdir_defaulted=no |
|
| 1145 | fi |
|
| 1146 | 20 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1147 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
| 1148 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
|
| 1149 | { (exit 1); exit 1; }; }
|
|
| 1150 | fi |
|
| 1151 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
| 1152 | ac_abs_confdir=`( |
|
| 1153 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
|
| 1154 | { (exit 1); exit 1; }; }
|
|
| 1155 | pwd)` |
|
| 1156 | # When building in place, set srcdir=. |
|
| 1157 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
| 1158 | srcdir=. |
|
| 1159 | fi |
|
| 1160 | # Remove unnecessary trailing slashes from srcdir. |
|
| 1161 | # Double slashes in file names in object file debugging info |
|
| 1162 | # mess up M-x gdb in Emacs. |
|
| 1163 | case $srcdir in |
|
| 1164 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
| 1165 | esac |
|
| 1166 | for ac_var in $ac_precious_vars; do |
|
| 1167 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
| 1168 | eval ac_env_${ac_var}_value=\$${ac_var}
|
|
| 1169 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
| 1170 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
| 1171 | done |
|
| 1172 | 3 | |
| 1173 | # |
|
| 1174 | # Report the --help message. |
|
| 1175 | # |
|
| 1176 | if test "$ac_init_help" = "long"; then |
|
| 1177 | # Omit some internal or obsolete options to make the list less imposing. |
|
| 1178 | # This message is too long to be a string in the A/UX 3.1 sh. |
|
| 1179 | cat <<_ACEOF |
|
| 1180 | \`configure' configures this package to adapt to many kinds of systems. |
|
| 1181 | ||
| 1182 | Usage: $0 [OPTION]... [VAR=VALUE]... |
|
| 1183 | ||
| 1184 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
| 1185 | VAR=VALUE. See below for descriptions of some of the useful variables. |
|
| 1186 | ||
| 1187 | Defaults for the options are specified in brackets. |
|
| 1188 | ||
| 1189 | Configuration: |
|
| 1190 | -h, --help display this help and exit |
|
| 1191 | --help=short display options specific to this package |
|
| 1192 | --help=recursive display the short help of all the included packages |
|
| 1193 | -V, --version display version information and exit |
|
| 1194 | -q, --quiet, --silent do not print \`checking...' messages |
|
| 1195 | --cache-file=FILE cache test results in FILE [disabled] |
|
| 1196 | -C, --config-cache alias for \`--cache-file=config.cache' |
|
| 1197 | -n, --no-create do not create output files |
|
| 1198 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
| 1199 | ||
| 1200 | Installation directories: |
|
| 1201 | --prefix=PREFIX install architecture-independent files in PREFIX |
|
| 1202 | 12 | [$ac_default_prefix] |
| 1203 | 3 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1204 | 12 | [PREFIX] |
| 1205 | 3 | |
| 1206 | By default, \`make install' will install all the files in |
|
| 1207 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
| 1208 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
| 1209 | for instance \`--prefix=\$HOME'. |
|
| 1210 | ||
| 1211 | For better control, use the options below. |
|
| 1212 | ||
| 1213 | Fine tuning of the installation directories: |
|
| 1214 | --bindir=DIR user executables [EPREFIX/bin] |
|
| 1215 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
| 1216 | --libexecdir=DIR program executables [EPREFIX/libexec] |
|
| 1217 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
| 1218 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
| 1219 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
| 1220 | --libdir=DIR object code libraries [EPREFIX/lib] |
|
| 1221 | --includedir=DIR C header files [PREFIX/include] |
|
| 1222 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
| 1223 | 20 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1224 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
| 1225 | --infodir=DIR info documentation [DATAROOTDIR/info] |
|
| 1226 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
| 1227 | --mandir=DIR man documentation [DATAROOTDIR/man] |
|
| 1228 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
| 1229 | --htmldir=DIR html documentation [DOCDIR] |
|
| 1230 | --dvidir=DIR dvi documentation [DOCDIR] |
|
| 1231 | --pdfdir=DIR pdf documentation [DOCDIR] |
|
| 1232 | --psdir=DIR ps documentation [DOCDIR] |
|
| 1233 | 3 | _ACEOF |
| 1234 | ||
| 1235 | cat <<\_ACEOF |
|
| 1236 | _ACEOF |
|
| 1237 | fi |
|
| 1238 | ||
| 1239 | if test -n "$ac_init_help"; then |
|
| 1240 | ||
| 1241 | cat <<\_ACEOF |
|
| 1242 | ||
| 1243 | 30 | Optional Features: |
| 1244 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
| 1245 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
| 1246 | --disable-tls Don't build with LDAP TLS support |
|
| 1247 | ||
| 1248 | 3 | Optional Packages: |
| 1249 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
| 1250 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
| 1251 | 5 | --with-apxs Path to Apache's apxs command (version 1.3.x or |
| 1252 | 2.0.x) |
|
| 1253 | 12 | --with-activate Activate mod_ldap_userdir in httpd.conf |
| 1254 | 3 | --with-sdk-headers Specify the path to the LDAP SDK header files |
| 1255 | 12 | --with-sdk-libdir Specify the path to the LDAP SDK libraries |
| 1256 | ||
| 1257 | 3 | Some influential environment variables: |
| 1258 | CC C compiler command |
|
| 1259 | CFLAGS C compiler flags |
|
| 1260 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
| 1261 | nonstandard directory <lib dir> |
|
| 1262 | 20 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1263 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
|
| 1264 | you have headers in a nonstandard directory <include dir> |
|
| 1265 | 3 | CPP C preprocessor |
| 1266 | ||
| 1267 | Use these variables to override the choices made by `configure' or to help |
|
| 1268 | it to find libraries and programs with nonstandard names/locations. |
|
| 1269 | ||
| 1270 | _ACEOF |
|
| 1271 | 20 | ac_status=$? |
| 1272 | 3 | fi |
| 1273 | ||
| 1274 | if test "$ac_init_help" = "recursive"; then |
|
| 1275 | # If there are subdirs, report their specific --help. |
|
| 1276 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
| 1277 | 20 | test -d "$ac_dir" || continue |
| 1278 | 3 | ac_builddir=. |
| 1279 | ||
| 1280 | 20 | case "$ac_dir" in |
| 1281 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
| 1282 | *) |
|
| 1283 | 3 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1284 | 20 | # A ".." for each directory in $ac_dir_suffix. |
| 1285 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
| 1286 | case $ac_top_builddir_sub in |
|
| 1287 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
| 1288 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
| 1289 | esac ;; |
|
| 1290 | esac |
|
| 1291 | ac_abs_top_builddir=$ac_pwd |
|
| 1292 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
| 1293 | # for backward compatibility: |
|
| 1294 | ac_top_builddir=$ac_top_build_prefix |
|
| 1295 | 3 | |
| 1296 | case $srcdir in |
|
| 1297 | 20 | .) # We are building in place. |
| 1298 | 3 | ac_srcdir=. |
| 1299 | 20 | ac_top_srcdir=$ac_top_builddir_sub |
| 1300 | ac_abs_top_srcdir=$ac_pwd ;; |
|
| 1301 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|
| 1302 | 3 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1303 | 20 | ac_top_srcdir=$srcdir |
| 1304 | ac_abs_top_srcdir=$srcdir ;; |
|
| 1305 | *) # Relative name. |
|
| 1306 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
| 1307 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
| 1308 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
| 1309 | esac |
|
| 1310 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
| 1311 | ||
| 1312 | cd "$ac_dir" || { ac_status=$?; continue; }
|
|
| 1313 | # Check for guested configure. |
|
| 1314 | if test -f "$ac_srcdir/configure.gnu"; then |
|
| 1315 | echo && |
|
| 1316 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
| 1317 | elif test -f "$ac_srcdir/configure"; then |
|
| 1318 | echo && |
|
| 1319 | $SHELL "$ac_srcdir/configure" --help=recursive |
|
| 1320 | 3 | else |
| 1321 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
| 1322 | 20 | fi || ac_status=$? |
| 1323 | cd "$ac_pwd" || { ac_status=$?; break; }
|
|
| 1324 | 3 | done |
| 1325 | fi |
|
| 1326 | ||
| 1327 | 20 | test -n "$ac_init_help" && exit $ac_status |
| 1328 | 3 | if $ac_init_version; then |
| 1329 | cat <<\_ACEOF |
|
| 1330 | 20 | configure |
| 1331 | generated by GNU Autoconf 2.61 |
|
| 1332 | 3 | |
| 1333 | 20 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1334 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
| 1335 | 3 | This configure script is free software; the Free Software Foundation |
| 1336 | gives unlimited permission to copy, distribute and modify it. |
|
| 1337 | _ACEOF |
|
| 1338 | 20 | exit |
| 1339 | 3 | fi |
| 1340 | 20 | cat >config.log <<_ACEOF |
| 1341 | 3 | This file contains any messages produced by compilers while |
| 1342 | running configure, to aid debugging if configure makes a mistake. |
|
| 1343 | ||
| 1344 | It was created by $as_me, which was |
|
| 1345 | 20 | generated by GNU Autoconf 2.61. Invocation command line was |
| 1346 | 3 | |
| 1347 | $ $0 $@ |
|
| 1348 | ||
| 1349 | _ACEOF |
|
| 1350 | 20 | exec 5>>config.log |
| 1351 | 3 | {
|
| 1352 | cat <<_ASUNAME |
|
| 1353 | ## --------- ## |
|
| 1354 | ## Platform. ## |
|
| 1355 | ## --------- ## |
|
| 1356 | ||
| 1357 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
| 1358 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
| 1359 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
| 1360 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
| 1361 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
| 1362 | ||
| 1363 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
| 1364 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
| 1365 | ||
| 1366 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
| 1367 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
| 1368 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
| 1369 | 20 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1370 | 3 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1371 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
| 1372 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
| 1373 | ||
| 1374 | _ASUNAME |
|
| 1375 | ||
| 1376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1377 | for as_dir in $PATH |
|
| 1378 | do |
|
| 1379 | IFS=$as_save_IFS |
|
| 1380 | test -z "$as_dir" && as_dir=. |
|
| 1381 | echo "PATH: $as_dir" |
|
| 1382 | done |
|
| 1383 | 20 | IFS=$as_save_IFS |
| 1384 | 3 | |
| 1385 | } >&5 |
|
| 1386 | ||
| 1387 | cat >&5 <<_ACEOF |
|
| 1388 | ||
| 1389 | ||
| 1390 | ## ----------- ## |
|
| 1391 | ## Core tests. ## |
|
| 1392 | ## ----------- ## |
|
| 1393 | ||
| 1394 | _ACEOF |
|
| 1395 | ||
| 1396 | ||
| 1397 | # Keep a trace of the command line. |
|
| 1398 | # Strip out --no-create and --no-recursion so they do not pile up. |
|
| 1399 | 4 | # Strip out --silent because we don't want to record it for future runs. |
| 1400 | 3 | # Also quote any args containing shell meta-characters. |
| 1401 | 4 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1402 | 3 | ac_configure_args= |
| 1403 | 4 | ac_configure_args0= |
| 1404 | ac_configure_args1= |
|
| 1405 | ac_must_keep_next=false |
|
| 1406 | for ac_pass in 1 2 |
|
| 1407 | 3 | do |
| 1408 | 4 | for ac_arg |
| 1409 | do |
|
| 1410 | case $ac_arg in |
|
| 1411 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
| 1412 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
| 1413 | | -silent | --silent | --silen | --sile | --sil) |
|
| 1414 | continue ;; |
|
| 1415 | 20 | *\'*) |
| 1416 | 4 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1417 | esac |
|
| 1418 | case $ac_pass in |
|
| 1419 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
| 1420 | 2) |
|
| 1421 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
| 1422 | if test $ac_must_keep_next = true; then |
|
| 1423 | 12 | ac_must_keep_next=false # Got value, back to normal. |
| 1424 | 4 | else |
| 1425 | 12 | case $ac_arg in |
| 1426 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
| 1427 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
| 1428 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
| 1429 | | -with-* | --with-* | -without-* | --without-* | --x) |
|
| 1430 | case "$ac_configure_args0 " in |
|
| 1431 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
| 1432 | esac |
|
| 1433 | ;; |
|
| 1434 | -* ) ac_must_keep_next=true ;; |
|
| 1435 | esac |
|
| 1436 | 4 | fi |
| 1437 | 20 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1438 | 4 | ;; |
| 1439 | esac |
|
| 1440 | done |
|
| 1441 | 3 | done |
| 1442 | 4 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
| 1443 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
|
| 1444 | 3 | |
| 1445 | # When interrupted or exit'd, cleanup temporary files, and complete |
|
| 1446 | # config.log. We remove comments because anyway the quotes in there |
|
| 1447 | # would cause problems or look ugly. |
|
| 1448 | 20 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1449 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
| 1450 | 3 | trap 'exit_status=$? |
| 1451 | # Save into config.log some information that might help in debugging. |
|
| 1452 | {
|
|
| 1453 | echo |
|
| 1454 | ||
| 1455 | cat <<\_ASBOX |
|
| 1456 | ## ---------------- ## |
|
| 1457 | ## Cache variables. ## |
|
| 1458 | ## ---------------- ## |
|
| 1459 | _ASBOX |
|
| 1460 | echo |
|
| 1461 | # The following way of writing the cache mishandles newlines in values, |
|
| 1462 | 20 | ( |
| 1463 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
| 1464 | eval ac_val=\$$ac_var |
|
| 1465 | case $ac_val in #( |
|
| 1466 | *${as_nl}*)
|
|
| 1467 | case $ac_var in #( |
|
| 1468 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
| 1469 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
| 1470 | esac |
|
| 1471 | case $ac_var in #( |
|
| 1472 | _ | IFS | as_nl) ;; #( |
|
| 1473 | *) $as_unset $ac_var ;; |
|
| 1474 | esac ;; |
|
| 1475 | esac |
|
| 1476 | done |
|
| 1477 | 3 | (set) 2>&1 | |
| 1478 | 20 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1479 | *${as_nl}ac_space=\ *)
|
|
| 1480 | 3 | sed -n \ |
| 1481 | 20 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1482 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
| 1483 | ;; #( |
|
| 1484 | 3 | *) |
| 1485 | 20 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1486 | 3 | ;; |
| 1487 | 20 | esac | |
| 1488 | sort |
|
| 1489 | ) |
|
| 1490 | 3 | echo |
| 1491 | ||
| 1492 | cat <<\_ASBOX |
|
| 1493 | ## ----------------- ## |
|
| 1494 | ## Output variables. ## |
|
| 1495 | ## ----------------- ## |
|
| 1496 | _ASBOX |
|
| 1497 | echo |
|
| 1498 | for ac_var in $ac_subst_vars |
|
| 1499 | do |
|
| 1500 | 20 | eval ac_val=\$$ac_var |
| 1501 | case $ac_val in |
|
| 1502 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
| 1503 | esac |
|
| 1504 | echo "$ac_var='\''$ac_val'\''" |
|
| 1505 | 3 | done | sort |
| 1506 | echo |
|
| 1507 | ||
| 1508 | if test -n "$ac_subst_files"; then |
|
| 1509 | cat <<\_ASBOX |
|
| 1510 | 20 | ## ------------------- ## |
| 1511 | ## File substitutions. ## |
|
| 1512 | ## ------------------- ## |
|
| 1513 | 3 | _ASBOX |
| 1514 | echo |
|
| 1515 | for ac_var in $ac_subst_files |
|
| 1516 | do |
|
| 1517 | 20 | eval ac_val=\$$ac_var |
| 1518 | case $ac_val in |
|
| 1519 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
| 1520 | esac |
|
| 1521 | echo "$ac_var='\''$ac_val'\''" |
|
| 1522 | 3 | done | sort |
| 1523 | echo |
|
| 1524 | fi |
|
| 1525 | ||
| 1526 | if test -s confdefs.h; then |
|
| 1527 | cat <<\_ASBOX |
|
| 1528 | ## ----------- ## |
|
| 1529 | ## confdefs.h. ## |
|
| 1530 | ## ----------- ## |
|
| 1531 | _ASBOX |
|
| 1532 | echo |
|
| 1533 | 20 | cat confdefs.h |
| 1534 | 3 | echo |
| 1535 | fi |
|
| 1536 | test "$ac_signal" != 0 && |
|
| 1537 | echo "$as_me: caught signal $ac_signal" |
|
| 1538 | echo "$as_me: exit $exit_status" |
|
| 1539 | } >&5 |
|
| 1540 | 20 | rm -f core *.core core.conftest.* && |
| 1541 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
| 1542 | 3 | exit $exit_status |
| 1543 | 20 | ' 0 |
| 1544 | 3 | for ac_signal in 1 2 13 15; do |
| 1545 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
|
| 1546 | done |
|
| 1547 | ac_signal=0 |
|
| 1548 | ||
| 1549 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
| 1550 | 20 | rm -f -r conftest* confdefs.h |
| 1551 | 3 | |
| 1552 | # Predefined preprocessor variables. |
|
| 1553 | ||
| 1554 | cat >>confdefs.h <<_ACEOF |
|
| 1555 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
| 1556 | _ACEOF |
|
| 1557 | ||
| 1558 | ||
| 1559 | cat >>confdefs.h <<_ACEOF |
|
| 1560 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
| 1561 | _ACEOF |
|
| 1562 | ||
| 1563 | ||
| 1564 | cat >>confdefs.h <<_ACEOF |
|
| 1565 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
| 1566 | _ACEOF |
|
| 1567 | ||
| 1568 | ||
| 1569 | cat >>confdefs.h <<_ACEOF |
|
| 1570 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
| 1571 | _ACEOF |
|
| 1572 | ||
| 1573 | ||
| 1574 | cat >>confdefs.h <<_ACEOF |
|
| 1575 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
| 1576 | _ACEOF |
|
| 1577 | ||
| 1578 | ||
| 1579 | # Let the site file select an alternate cache file if it wants to. |
|
| 1580 | 1 | # Prefer explicitly selected file to automatically selected ones. |
| 1581 | 20 | if test -n "$CONFIG_SITE"; then |
| 1582 | set x "$CONFIG_SITE" |
|
| 1583 | elif test "x$prefix" != xNONE; then |
|
| 1584 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
|
| 1585 | else |
|
| 1586 | set x "$ac_default_prefix/share/config.site" \ |
|
| 1587 | "$ac_default_prefix/etc/config.site" |
|
| 1588 | 1 | fi |
| 1589 | 20 | shift |
| 1590 | for ac_site_file |
|
| 1591 | do |
|
| 1592 | 1 | if test -r "$ac_site_file"; then |
| 1593 | 3 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
| 1594 | echo "$as_me: loading site script $ac_site_file" >&6;} |
|
| 1595 | sed 's/^/| /' "$ac_site_file" >&5 |
|
| 1596 | 1 | . "$ac_site_file" |
| 1597 | fi |
|
| 1598 | done |
|
| 1599 | ||
| 1600 | if test -r "$cache_file"; then |
|
| 1601 | 3 | # Some versions of bash will fail to source /dev/null (special |
| 1602 | # files actually), so we avoid doing that. |
|
| 1603 | if test -f "$cache_file"; then |
|
| 1604 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
|
| 1605 | echo "$as_me: loading cache $cache_file" >&6;} |
|
| 1606 | case $cache_file in |
|
| 1607 | 20 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1608 | *) . "./$cache_file";; |
|
| 1609 | 3 | esac |
| 1610 | fi |
|
| 1611 | 1 | else |
| 1612 | 3 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
| 1613 | echo "$as_me: creating cache $cache_file" >&6;} |
|
| 1614 | >$cache_file |
|
| 1615 | fi |
|
| 1616 | ||
| 1617 | # Check that the precious variables saved in the cache have kept the same |
|
| 1618 | # value. |
|
| 1619 | ac_cache_corrupted=false |
|
| 1620 | 20 | for ac_var in $ac_precious_vars; do |
| 1621 | 3 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
| 1622 | eval ac_new_set=\$ac_env_${ac_var}_set
|
|
| 1623 | 20 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
| 1624 | eval ac_new_val=\$ac_env_${ac_var}_value
|
|
| 1625 | 3 | case $ac_old_set,$ac_new_set in |
| 1626 | set,) |
|
| 1627 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
| 1628 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
| 1629 | ac_cache_corrupted=: ;; |
|
| 1630 | ,set) |
|
| 1631 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
|
| 1632 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
| 1633 | ac_cache_corrupted=: ;; |
|
| 1634 | ,);; |
|
| 1635 | *) |
|
| 1636 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|
| 1637 | 12 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
| 1638 | 3 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1639 | 12 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
| 1640 | 3 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1641 | 12 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
| 1642 | 3 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1643 | 12 | ac_cache_corrupted=: |
| 1644 | 3 | fi;; |
| 1645 | esac |
|
| 1646 | # Pass precious variables to config.status. |
|
| 1647 | if test "$ac_new_set" = set; then |
|
| 1648 | case $ac_new_val in |
|
| 1649 | 20 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1650 | 3 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1651 | esac |
|
| 1652 | case " $ac_configure_args " in |
|
| 1653 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
| 1654 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
| 1655 | esac |
|
| 1656 | fi |
|
| 1657 | done |
|
| 1658 | if $ac_cache_corrupted; then |
|
| 1659 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
|
| 1660 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
| 1661 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
|
| 1662 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
| 1663 | { (exit 1); exit 1; }; }
|
|
| 1664 | 1 | fi |
| 1665 | ||
| 1666 | 20 | |
| 1667 | ||
| 1668 | ||
| 1669 | ||
| 1670 | ||
| 1671 | ||
| 1672 | ||
| 1673 | ||
| 1674 | ||
| 1675 | ||
| 1676 | ||
| 1677 | ||
| 1678 | ||
| 1679 | ||
| 1680 | ||
| 1681 | ||
| 1682 | 1 | ac_ext=c |
| 1683 | ac_cpp='$CPP $CPPFLAGS' |
|
| 1684 | 3 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
| 1686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
| 1687 | ||
| 1688 | ||
| 1689 | ||
| 1690 | ||
| 1691 | 20 | # Check whether --with-apxs was given. |
| 1692 | 1 | if test "${with_apxs+set}" = set; then
|
| 1693 | 20 | withval=$with_apxs; APXS=$withval |
| 1694 | fi |
|
| 1695 | ||
| 1696 | ||
| 1697 | # Check whether --with-activate was given. |
|
| 1698 | 1 | if test "${with_activate+set}" = set; then
|
| 1699 | 20 | withval=$with_activate; test "$withval" != no && ACTIVATE=-a |
| 1700 | 30 | |
| 1701 | 20 | fi |
| 1702 | ||
| 1703 | ||
| 1704 | # Check whether --with-sdk-headers was given. |
|
| 1705 | 12 | if test "${with_sdk_headers+set}" = set; then
|
| 1706 | 20 | withval=$with_sdk_headers; CPPFLAGS="-I$withval" |
| 1707 | 30 | |
| 1708 | 20 | fi |
| 1709 | ||
| 1710 | ||
| 1711 | # Check whether --with-sdk-libdir was given. |
|
| 1712 | 12 | if test "${with_sdk_libdir+set}" = set; then
|
| 1713 | 20 | withval=$with_sdk_libdir; LDFLAGS="-L$withval" |
| 1714 | 30 | |
| 1715 | 20 | fi |
| 1716 | ||
| 1717 | 3 | |
| 1718 | ac_ext=c |
|
| 1719 | ac_cpp='$CPP $CPPFLAGS' |
|
| 1720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
| 1721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
| 1722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
| 1723 | if test -n "$ac_tool_prefix"; then |
|
| 1724 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
| 1725 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
| 1726 | 20 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
| 1727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
| 1728 | 3 | if test "${ac_cv_prog_CC+set}" = set; then
|
| 1729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 1730 | else |
|
| 1731 | if test -n "$CC"; then |
|
| 1732 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
| 1733 | else |
|
| 1734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1735 | for as_dir in $PATH |
|
| 1736 | do |
|
| 1737 | IFS=$as_save_IFS |
|
| 1738 | test -z "$as_dir" && as_dir=. |
|
| 1739 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 1740 | 20 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| 1741 | 3 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
| 1742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
| 1743 | break 2 |
|
| 1744 | fi |
|
| 1745 | done |
|
| 1746 | done |
|
| 1747 | 20 | IFS=$as_save_IFS |
| 1748 | 3 | |
| 1749 | fi |
|
| 1750 | fi |
|
| 1751 | CC=$ac_cv_prog_CC |
|
| 1752 | if test -n "$CC"; then |
|
| 1753 | 20 | { echo "$as_me:$LINENO: result: $CC" >&5
|
| 1754 | echo "${ECHO_T}$CC" >&6; }
|
|
| 1755 | 3 | else |
| 1756 | 20 | { echo "$as_me:$LINENO: result: no" >&5
|
| 1757 | echo "${ECHO_T}no" >&6; }
|
|
| 1758 | 3 | fi |
| 1759 | 20 | |
| 1760 | 3 | |
| 1761 | fi |
|
| 1762 | if test -z "$ac_cv_prog_CC"; then |
|
| 1763 | ac_ct_CC=$CC |
|
| 1764 | # Extract the first word of "gcc", so it can be a program name with args. |
|
| 1765 | set dummy gcc; ac_word=$2 |
|
| 1766 | 20 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
| 1767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
| 1768 | 3 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
| 1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 1770 | else |
|
| 1771 | if test -n "$ac_ct_CC"; then |
|
| 1772 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
| 1773 | else |
|
| 1774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1775 | for as_dir in $PATH |
|
| 1776 | do |
|
| 1777 | IFS=$as_save_IFS |
|
| 1778 | test -z "$as_dir" && as_dir=. |
|
| 1779 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 1780 | 20 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| 1781 | 3 | ac_cv_prog_ac_ct_CC="gcc" |
| 1782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
| 1783 | break 2 |
|
| 1784 | fi |
|
| 1785 | done |
|
| 1786 | done |
|
| 1787 | 20 | IFS=$as_save_IFS |
| 1788 | 3 | |
| 1789 | fi |
|
| 1790 | fi |
|
| 1791 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
| 1792 | if test -n "$ac_ct_CC"; then |
|
| 1793 | 20 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
| 1794 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
| 1795 | 3 | else |
| 1796 | 20 | { echo "$as_me:$LINENO: result: no" >&5
|
| 1797 | echo "${ECHO_T}no" >&6; }
|
|
| 1798 | 3 | fi |
| 1799 | ||
| 1800 | 20 | if test "x$ac_ct_CC" = x; then |
| 1801 | CC="" |
|
| 1802 | else |
|
| 1803 | case $cross_compiling:$ac_tool_warned in |
|
| 1804 | yes:) |
|
| 1805 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
| 1806 | whose name does not start with the host triplet. If you think this |
|
| 1807 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
| 1808 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
| 1809 | whose name does not start with the host triplet. If you think this |
|
| 1810 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
| 1811 | ac_tool_warned=yes ;; |
|
| 1812 | esac |
|
| 1813 | CC=$ac_ct_CC |
|
| 1814 | fi |
|
| 1815 | 3 | else |
| 1816 | CC="$ac_cv_prog_CC" |
|
| 1817 | fi |
|
| 1818 | ||
| 1819 | if test -z "$CC"; then |
|
| 1820 | 20 | if test -n "$ac_tool_prefix"; then |
| 1821 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
| 1822 | 3 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
| 1823 | 20 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
| 1824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
| 1825 | 3 | if test "${ac_cv_prog_CC+set}" = set; then
|
| 1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 1827 | else |
|
| 1828 | if test -n "$CC"; then |
|
| 1829 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
| 1830 | else |
|
| 1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1832 | for as_dir in $PATH |
|
| 1833 | do |
|
| 1834 | IFS=$as_save_IFS |
|
| 1835 | test -z "$as_dir" && as_dir=. |
|
| 1836 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 1837 | 20 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| 1838 | 3 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
| 1839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
| 1840 | break 2 |
|
| 1841 | fi |
|
| 1842 | done |
|
| 1843 | done |
|
| 1844 | 20 | IFS=$as_save_IFS |
| 1845 | 3 | |
| 1846 | fi |
|
| 1847 | fi |
|
| 1848 | CC=$ac_cv_prog_CC |
|
| 1849 | if test -n "$CC"; then |
|
| 1850 | 20 | { echo "$as_me:$LINENO: result: $CC" >&5
|
| 1851 | echo "${ECHO_T}$CC" >&6; }
|
|
| 1852 | else |
|
| 1853 | { echo "$as_me:$LINENO: result: no" >&5
|
|
| 1854 | echo "${ECHO_T}no" >&6; }
|
|
| 1855 | fi |
|
| 1856 | ||
| 1857 | ||
| 1858 | 3 | fi |
| 1859 | fi |
|
| 1860 | if test -z "$CC"; then |
|
| 1861 | # Extract the first word of "cc", so it can be a program name with args. |
|
| 1862 | set dummy cc; ac_word=$2 |
|
| 1863 | 20 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
| 1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
| 1865 | 3 | if test "${ac_cv_prog_CC+set}" = set; then
|
| 1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 1867 | else |
|
| 1868 | if test -n "$CC"; then |
|
| 1869 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
| 1870 | else |
|
| 1871 | ac_prog_rejected=no |
|
| 1872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1873 | for as_dir in $PATH |
|
| 1874 | do |
|
| 1875 | IFS=$as_save_IFS |
|
| 1876 | test -z "$as_dir" && as_dir=. |
|
| 1877 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 1878 | 20 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| 1879 | 3 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1880 | ac_prog_rejected=yes |
|
| 1881 | continue |
|
| 1882 | fi |
|
| 1883 | ac_cv_prog_CC="cc" |
|
| 1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
| 1885 | break 2 |
|
| 1886 | fi |
|
| 1887 | done |
|
| 1888 | done |
|
| 1889 | 20 | IFS=$as_save_IFS |
| 1890 | 3 | |
| 1891 | if test $ac_prog_rejected = yes; then |
|
| 1892 | # We found a bogon in the path, so make sure we never use it. |
|
| 1893 | set dummy $ac_cv_prog_CC |
|
| 1894 | shift |
|
| 1895 | if test $# != 0; then |
|
| 1896 | # We chose a different compiler from the bogus one. |
|
| 1897 | # However, it has the same basename, so the bogon will be chosen |
|
| 1898 | # first if we set CC to just the basename; use the full file name. |
|
| 1899 | shift |
|
| 1900 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
| 1901 | fi |
|
| 1902 | fi |
|
| 1903 | fi |
|
| 1904 | fi |
|
| 1905 | CC=$ac_cv_prog_CC |
|
| 1906 | if test -n "$CC"; then |
|
| 1907 | 20 | { echo "$as_me:$LINENO: result: $CC" >&5
|
| 1908 | echo "${ECHO_T}$CC" >&6; }
|
|
| 1909 | 3 | else |
| 1910 | 20 | { echo "$as_me:$LINENO: result: no" >&5
|
| 1911 | echo "${ECHO_T}no" >&6; }
|
|
| 1912 | 3 | fi |
| 1913 | 20 | |
| 1914 | 3 | |
| 1915 | fi |
|
| 1916 | if test -z "$CC"; then |
|
| 1917 | if test -n "$ac_tool_prefix"; then |
|
| 1918 | 20 | for ac_prog in cl.exe |
| 1919 | 3 | do |
| 1920 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
| 1921 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
| 1922 | 20 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
| 1923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
| 1924 | 3 | if test "${ac_cv_prog_CC+set}" = set; then
|
| 1925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 1926 | else |
|
| 1927 | if test -n "$CC"; then |
|
| 1928 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
| 1929 | else |
|
| 1930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1931 | for as_dir in $PATH |
|
| 1932 | do |
|
| 1933 | IFS=$as_save_IFS |
|
| 1934 | test -z "$as_dir" && as_dir=. |
|
| 1935 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 1936 | 20 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| 1937 | 3 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
| 1939 | break 2 |
|
| 1940 | fi |
|
| 1941 | done |
|
| 1942 | done |
|
| 1943 | 20 | IFS=$as_save_IFS |
| 1944 | 3 | |
| 1945 | fi |
|
| 1946 | fi |
|
| 1947 | CC=$ac_cv_prog_CC |
|
| 1948 | if test -n "$CC"; then |
|
| 1949 | 20 | { echo "$as_me:$LINENO: result: $CC" >&5
|
| 1950 | echo "${ECHO_T}$CC" >&6; }
|
|
| 1951 | 3 | else |
| 1952 | 20 | { echo "$as_me:$LINENO: result: no" >&5
|
| 1953 | echo "${ECHO_T}no" >&6; }
|
|
| 1954 | 3 | fi |
| 1955 | ||
| 1956 | 20 | |
| 1957 | 3 | test -n "$CC" && break |
| 1958 | done |
|
| 1959 | fi |
|
| 1960 | if test -z "$CC"; then |
|
| 1961 | ac_ct_CC=$CC |
|
| 1962 | 20 | for ac_prog in cl.exe |
| 1963 | 3 | do |
| 1964 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
| 1965 | set dummy $ac_prog; ac_word=$2 |
|
| 1966 | 20 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
| 1967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
| 1968 | 3 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
| 1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 1970 | else |
|
| 1971 | if test -n "$ac_ct_CC"; then |
|
| 1972 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
| 1973 | else |
|
| 1974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 1975 | for as_dir in $PATH |
|
| 1976 | do |
|
| 1977 | IFS=$as_save_IFS |
|
| 1978 | test -z "$as_dir" && as_dir=. |
|
| 1979 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 1980 | 20 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
| 1981 | 3 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
| 1983 | break 2 |
|
| 1984 | fi |
|
| 1985 | done |
|
| 1986 | done |
|
| 1987 | 20 | IFS=$as_save_IFS |
| 1988 | 3 | |
| 1989 | fi |
|
| 1990 | fi |
|
| 1991 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
| 1992 | if test -n "$ac_ct_CC"; then |
|
| 1993 | 20 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
| 1994 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
| 1995 | 3 | else |
| 1996 | 20 | { echo "$as_me:$LINENO: result: no" >&5
|
| 1997 | echo "${ECHO_T}no" >&6; }
|
|
| 1998 | 3 | fi |
| 1999 | ||
| 2000 | 20 | |
| 2001 | 3 | test -n "$ac_ct_CC" && break |
| 2002 | done |
|
| 2003 | ||
| 2004 | 20 | if test "x$ac_ct_CC" = x; then |
| 2005 | CC="" |
|
| 2006 | else |
|
| 2007 | case $cross_compiling:$ac_tool_warned in |
|
| 2008 | yes:) |
|
| 2009 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
| 2010 | whose name does not start with the host triplet. If you think this |
|
| 2011 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
| 2012 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
| 2013 | whose name does not start with the host triplet. If you think this |
|
| 2014 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
| 2015 | ac_tool_warned=yes ;; |
|
| 2016 | esac |
|
| 2017 | CC=$ac_ct_CC |
|
| 2018 | fi |
|
| 2019 | 3 | fi |
| 2020 | ||
| 2021 | fi |
|
| 2022 | ||
| 2023 | ||
| 2024 | 4 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
| 2025 | See \`config.log' for more details." >&5 |
|
| 2026 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
| 2027 | See \`config.log' for more details." >&2;} |
|
| 2028 | 3 | { (exit 1); exit 1; }; }
|
| 2029 | ||
| 2030 | # Provide some information about the compiler. |
|
| 2031 | 20 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2032 | 3 | ac_compiler=`set X $ac_compile; echo $2` |
| 2033 | 20 | { (ac_try="$ac_compiler --version >&5"
|
| 2034 | case "(($ac_try" in |
|
| 2035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2036 | *) ac_try_echo=$ac_try;; |
|
| 2037 | esac |
|
| 2038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2039 | (eval "$ac_compiler --version >&5") 2>&5 |
|
| 2040 | ac_status=$? |
|
| 2041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2042 | (exit $ac_status); } |
|
| 2043 | { (ac_try="$ac_compiler -v >&5"
|
|
| 2044 | case "(($ac_try" in |
|
| 2045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2046 | *) ac_try_echo=$ac_try;; |
|
| 2047 | esac |
|
| 2048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2049 | (eval "$ac_compiler -v >&5") 2>&5 |
|
| 2050 | ac_status=$? |
|
| 2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2052 | (exit $ac_status); } |
|
| 2053 | { (ac_try="$ac_compiler -V >&5"
|
|
| 2054 | case "(($ac_try" in |
|
| 2055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2056 | *) ac_try_echo=$ac_try;; |
|
| 2057 | esac |
|
| 2058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2059 | (eval "$ac_compiler -V >&5") 2>&5 |
|
| 2060 | 3 | ac_status=$? |
| 2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2062 | (exit $ac_status); } |
|
| 2063 | ||
| 2064 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2065 | 4 | /* confdefs.h. */ |
| 2066 | _ACEOF |
|
| 2067 | cat confdefs.h >>conftest.$ac_ext |
|
| 2068 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2069 | /* end confdefs.h. */ |
|
| 2070 | 3 | |
| 2071 | int |
|
| 2072 | main () |
|
| 2073 | {
|
|
| 2074 | ||
| 2075 | ; |
|
| 2076 | return 0; |
|
| 2077 | } |
|
| 2078 | _ACEOF |
|
| 2079 | ac_clean_files_save=$ac_clean_files |
|
| 2080 | 4 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2081 | 3 | # Try to create an executable without -o first, disregard a.out. |
| 2082 | # It will help us diagnose broken compilers, and finding out an intuition |
|
| 2083 | # of exeext. |
|
| 2084 | 20 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
| 2085 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
|
| 2086 | 3 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2087 | 20 | # |
| 2088 | # List of possible output files, starting from the most likely. |
|
| 2089 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
| 2090 | # only as a last resort. b.out is created by i960 compilers. |
|
| 2091 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
| 2092 | # |
|
| 2093 | # The IRIX 6 linker writes into existing files which may not be |
|
| 2094 | # executable, retaining their permissions. Remove them first so a |
|
| 2095 | # subsequent execution test works. |
|
| 2096 | ac_rmfiles= |
|
| 2097 | for ac_file in $ac_files |
|
| 2098 | do |
|
| 2099 | case $ac_file in |
|
| 2100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
| 2101 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
| 2102 | esac |
|
| 2103 | done |
|
| 2104 | rm -f $ac_rmfiles |
|
| 2105 | ||
| 2106 | if { (ac_try="$ac_link_default"
|
|
| 2107 | case "(($ac_try" in |
|
| 2108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2109 | *) ac_try_echo=$ac_try;; |
|
| 2110 | esac |
|
| 2111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2112 | (eval "$ac_link_default") 2>&5 |
|
| 2113 | 3 | ac_status=$? |
| 2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2115 | (exit $ac_status); }; then |
|
| 2116 | 20 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2117 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
| 2118 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
| 2119 | # so that the user can short-circuit this test for compilers unknown to |
|
| 2120 | # Autoconf. |
|
| 2121 | for ac_file in $ac_files '' |
|
| 2122 | 4 | do |
| 2123 | 3 | test -f "$ac_file" || continue |
| 2124 | case $ac_file in |
|
| 2125 | 20 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2126 | 12 | ;; |
| 2127 | 4 | [ab].out ) |
| 2128 | 12 | # We found the default executable, but exeext='' is most |
| 2129 | # certainly right. |
|
| 2130 | break;; |
|
| 2131 | 4 | *.* ) |
| 2132 | 20 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
| 2133 | then :; else |
|
| 2134 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
| 2135 | fi |
|
| 2136 | # We set ac_cv_exeext here because the later test for it is not |
|
| 2137 | # safe: cross compilers may not add the suffix if given an `-o' |
|
| 2138 | # argument, so we may need to know it at that point already. |
|
| 2139 | # Even if this section looks crufty: it has the advantage of |
|
| 2140 | # actually working. |
|
| 2141 | 12 | break;; |
| 2142 | 4 | * ) |
| 2143 | 12 | break;; |
| 2144 | 3 | esac |
| 2145 | done |
|
| 2146 | 20 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2147 | ||
| 2148 | 3 | else |
| 2149 | 20 | ac_file='' |
| 2150 | fi |
|
| 2151 | ||
| 2152 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
|
| 2153 | echo "${ECHO_T}$ac_file" >&6; }
|
|
| 2154 | if test -z "$ac_file"; then |
|
| 2155 | 3 | echo "$as_me: failed program was:" >&5 |
| 2156 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2157 | ||
| 2158 | 3 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
| 2159 | 4 | See \`config.log' for more details." >&5 |
| 2160 | 3 | echo "$as_me: error: C compiler cannot create executables |
| 2161 | 4 | See \`config.log' for more details." >&2;} |
| 2162 | 3 | { (exit 77); exit 77; }; }
|
| 2163 | fi |
|
| 2164 | ||
| 2165 | ac_exeext=$ac_cv_exeext |
|
| 2166 | ||
| 2167 | 20 | # Check that the compiler produces executables we can run. If not, either |
| 2168 | 3 | # the compiler is broken, or we cross compile. |
| 2169 | 20 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
| 2170 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
|
| 2171 | 3 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2172 | # If not cross compiling, check that we can run a simple program. |
|
| 2173 | if test "$cross_compiling" != yes; then |
|
| 2174 | if { ac_try='./$ac_file'
|
|
| 2175 | 20 | { (case "(($ac_try" in
|
| 2176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2177 | *) ac_try_echo=$ac_try;; |
|
| 2178 | esac |
|
| 2179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2180 | (eval "$ac_try") 2>&5 |
|
| 2181 | 3 | ac_status=$? |
| 2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2183 | (exit $ac_status); }; }; then |
|
| 2184 | cross_compiling=no |
|
| 2185 | else |
|
| 2186 | if test "$cross_compiling" = maybe; then |
|
| 2187 | cross_compiling=yes |
|
| 2188 | else |
|
| 2189 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
|
| 2190 | 4 | If you meant to cross compile, use \`--host'. |
| 2191 | See \`config.log' for more details." >&5 |
|
| 2192 | 3 | echo "$as_me: error: cannot run C compiled programs. |
| 2193 | 4 | If you meant to cross compile, use \`--host'. |
| 2194 | See \`config.log' for more details." >&2;} |
|
| 2195 | 3 | { (exit 1); exit 1; }; }
|
| 2196 | fi |
|
| 2197 | fi |
|
| 2198 | fi |
|
| 2199 | 20 | { echo "$as_me:$LINENO: result: yes" >&5
|
| 2200 | echo "${ECHO_T}yes" >&6; }
|
|
| 2201 | 3 | |
| 2202 | 4 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2203 | 3 | ac_clean_files=$ac_clean_files_save |
| 2204 | 20 | # Check that the compiler produces executables we can run. If not, either |
| 2205 | 3 | # the compiler is broken, or we cross compile. |
| 2206 | 20 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
| 2207 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
| 2208 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
|
| 2209 | echo "${ECHO_T}$cross_compiling" >&6; }
|
|
| 2210 | 3 | |
| 2211 | 20 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
| 2212 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
|
| 2213 | if { (ac_try="$ac_link"
|
|
| 2214 | case "(($ac_try" in |
|
| 2215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2216 | *) ac_try_echo=$ac_try;; |
|
| 2217 | esac |
|
| 2218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2219 | (eval "$ac_link") 2>&5 |
|
| 2220 | 3 | ac_status=$? |
| 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2222 | (exit $ac_status); }; then |
|
| 2223 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
| 2224 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
| 2225 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
| 2226 | # `rm'. |
|
| 2227 | for ac_file in conftest.exe conftest conftest.*; do |
|
| 2228 | test -f "$ac_file" || continue |
|
| 2229 | case $ac_file in |
|
| 2230 | 20 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2231 | 3 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2232 | 12 | break;; |
| 2233 | 3 | * ) break;; |
| 2234 | esac |
|
| 2235 | done |
|
| 2236 | else |
|
| 2237 | 4 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
| 2238 | See \`config.log' for more details." >&5 |
|
| 2239 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
| 2240 | See \`config.log' for more details." >&2;} |
|
| 2241 | 3 | { (exit 1); exit 1; }; }
|
| 2242 | fi |
|
| 2243 | ||
| 2244 | rm -f conftest$ac_cv_exeext |
|
| 2245 | 20 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
| 2246 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
|
| 2247 | 3 | |
| 2248 | rm -f conftest.$ac_ext |
|
| 2249 | EXEEXT=$ac_cv_exeext |
|
| 2250 | ac_exeext=$EXEEXT |
|
| 2251 | 20 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
| 2252 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
| 2253 | 3 | if test "${ac_cv_objext+set}" = set; then
|
| 2254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 2255 | else |
|
| 2256 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2257 | 4 | /* confdefs.h. */ |
| 2258 | _ACEOF |
|
| 2259 | cat confdefs.h >>conftest.$ac_ext |
|
| 2260 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2261 | /* end confdefs.h. */ |
|
| 2262 | 3 | |
| 2263 | int |
|
| 2264 | main () |
|
| 2265 | {
|
|
| 2266 | ||
| 2267 | ; |
|
| 2268 | return 0; |
|
| 2269 | } |
|
| 2270 | _ACEOF |
|
| 2271 | rm -f conftest.o conftest.obj |
|
| 2272 | 20 | if { (ac_try="$ac_compile"
|
| 2273 | case "(($ac_try" in |
|
| 2274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2275 | *) ac_try_echo=$ac_try;; |
|
| 2276 | esac |
|
| 2277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2278 | (eval "$ac_compile") 2>&5 |
|
| 2279 | 3 | ac_status=$? |
| 2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2281 | (exit $ac_status); }; then |
|
| 2282 | 20 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2283 | test -f "$ac_file" || continue; |
|
| 2284 | 3 | case $ac_file in |
| 2285 | 20 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
| 2286 | 3 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2287 | break;; |
|
| 2288 | esac |
|
| 2289 | done |
|
| 2290 | else |
|
| 2291 | echo "$as_me: failed program was:" >&5 |
|
| 2292 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2293 | ||
| 2294 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
|
| 2295 | See \`config.log' for more details." >&5 |
|
| 2296 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
| 2297 | See \`config.log' for more details." >&2;} |
|
| 2298 | 3 | { (exit 1); exit 1; }; }
|
| 2299 | fi |
|
| 2300 | ||
| 2301 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
| 2302 | fi |
|
| 2303 | 20 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
| 2304 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
|
| 2305 | 3 | OBJEXT=$ac_cv_objext |
| 2306 | ac_objext=$OBJEXT |
|
| 2307 | 20 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
| 2308 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
|
| 2309 | 3 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
| 2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 2311 | else |
|
| 2312 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2313 | 4 | /* confdefs.h. */ |
| 2314 | _ACEOF |
|
| 2315 | cat confdefs.h >>conftest.$ac_ext |
|
| 2316 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2317 | /* end confdefs.h. */ |
|
| 2318 | 3 | |
| 2319 | int |
|
| 2320 | main () |
|
| 2321 | {
|
|
| 2322 | #ifndef __GNUC__ |
|
| 2323 | choke me |
|
| 2324 | #endif |
|
| 2325 | ||
| 2326 | ; |
|
| 2327 | return 0; |
|
| 2328 | } |
|
| 2329 | _ACEOF |
|
| 2330 | rm -f conftest.$ac_objext |
|
| 2331 | 20 | if { (ac_try="$ac_compile"
|
| 2332 | case "(($ac_try" in |
|
| 2333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2334 | *) ac_try_echo=$ac_try;; |
|
| 2335 | esac |
|
| 2336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2337 | (eval "$ac_compile") 2>conftest.er1 |
|
| 2338 | 3 | ac_status=$? |
| 2339 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2340 | rm -f conftest.er1 |
|
| 2341 | cat conftest.err >&5 |
|
| 2342 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2343 | 20 | (exit $ac_status); } && {
|
| 2344 | test -z "$ac_c_werror_flag" || |
|
| 2345 | test ! -s conftest.err |
|
| 2346 | } && test -s conftest.$ac_objext; then |
|
| 2347 | 3 | ac_compiler_gnu=yes |
| 2348 | else |
|
| 2349 | echo "$as_me: failed program was:" >&5 |
|
| 2350 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2351 | ||
| 2352 | 20 | ac_compiler_gnu=no |
| 2353 | 3 | fi |
| 2354 | 20 | |
| 2355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 2356 | 3 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2357 | ||
| 2358 | fi |
|
| 2359 | 20 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
| 2360 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
|
| 2361 | 3 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2362 | ac_test_CFLAGS=${CFLAGS+set}
|
|
| 2363 | ac_save_CFLAGS=$CFLAGS |
|
| 2364 | 20 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
| 2365 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
|
| 2366 | 3 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
| 2367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 2368 | else |
|
| 2369 | 20 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2370 | ac_c_werror_flag=yes |
|
| 2371 | ac_cv_prog_cc_g=no |
|
| 2372 | CFLAGS="-g" |
|
| 2373 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2374 | /* confdefs.h. */ |
|
| 2375 | _ACEOF |
|
| 2376 | cat confdefs.h >>conftest.$ac_ext |
|
| 2377 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2378 | /* end confdefs.h. */ |
|
| 2379 | ||
| 2380 | int |
|
| 2381 | main () |
|
| 2382 | {
|
|
| 2383 | ||
| 2384 | ; |
|
| 2385 | return 0; |
|
| 2386 | } |
|
| 2387 | _ACEOF |
|
| 2388 | rm -f conftest.$ac_objext |
|
| 2389 | if { (ac_try="$ac_compile"
|
|
| 2390 | case "(($ac_try" in |
|
| 2391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2392 | *) ac_try_echo=$ac_try;; |
|
| 2393 | esac |
|
| 2394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2395 | (eval "$ac_compile") 2>conftest.er1 |
|
| 2396 | ac_status=$? |
|
| 2397 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 2398 | rm -f conftest.er1 |
|
| 2399 | cat conftest.err >&5 |
|
| 2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2401 | (exit $ac_status); } && {
|
|
| 2402 | test -z "$ac_c_werror_flag" || |
|
| 2403 | test ! -s conftest.err |
|
| 2404 | } && test -s conftest.$ac_objext; then |
|
| 2405 | ac_cv_prog_cc_g=yes |
|
| 2406 | else |
|
| 2407 | echo "$as_me: failed program was:" >&5 |
|
| 2408 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 2409 | ||
| 2410 | CFLAGS="" |
|
| 2411 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2412 | /* confdefs.h. */ |
|
| 2413 | _ACEOF |
|
| 2414 | cat confdefs.h >>conftest.$ac_ext |
|
| 2415 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2416 | /* end confdefs.h. */ |
|
| 2417 | ||
| 2418 | int |
|
| 2419 | main () |
|
| 2420 | {
|
|
| 2421 | ||
| 2422 | ; |
|
| 2423 | return 0; |
|
| 2424 | } |
|
| 2425 | _ACEOF |
|
| 2426 | rm -f conftest.$ac_objext |
|
| 2427 | if { (ac_try="$ac_compile"
|
|
| 2428 | case "(($ac_try" in |
|
| 2429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2430 | *) ac_try_echo=$ac_try;; |
|
| 2431 | esac |
|
| 2432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2433 | (eval "$ac_compile") 2>conftest.er1 |
|
| 2434 | ac_status=$? |
|
| 2435 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 2436 | rm -f conftest.er1 |
|
| 2437 | cat conftest.err >&5 |
|
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2439 | (exit $ac_status); } && {
|
|
| 2440 | test -z "$ac_c_werror_flag" || |
|
| 2441 | test ! -s conftest.err |
|
| 2442 | } && test -s conftest.$ac_objext; then |
|
| 2443 | : |
|
| 2444 | else |
|
| 2445 | echo "$as_me: failed program was:" >&5 |
|
| 2446 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 2447 | ||
| 2448 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
| 2449 | CFLAGS="-g" |
|
| 2450 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2451 | /* confdefs.h. */ |
|
| 2452 | _ACEOF |
|
| 2453 | cat confdefs.h >>conftest.$ac_ext |
|
| 2454 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2455 | /* end confdefs.h. */ |
|
| 2456 | ||
| 2457 | int |
|
| 2458 | main () |
|
| 2459 | {
|
|
| 2460 | ||
| 2461 | ; |
|
| 2462 | return 0; |
|
| 2463 | } |
|
| 2464 | _ACEOF |
|
| 2465 | rm -f conftest.$ac_objext |
|
| 2466 | if { (ac_try="$ac_compile"
|
|
| 2467 | case "(($ac_try" in |
|
| 2468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2469 | *) ac_try_echo=$ac_try;; |
|
| 2470 | esac |
|
| 2471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2472 | (eval "$ac_compile") 2>conftest.er1 |
|
| 2473 | ac_status=$? |
|
| 2474 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 2475 | rm -f conftest.er1 |
|
| 2476 | cat conftest.err >&5 |
|
| 2477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2478 | (exit $ac_status); } && {
|
|
| 2479 | test -z "$ac_c_werror_flag" || |
|
| 2480 | test ! -s conftest.err |
|
| 2481 | } && test -s conftest.$ac_objext; then |
|
| 2482 | ac_cv_prog_cc_g=yes |
|
| 2483 | else |
|
| 2484 | echo "$as_me: failed program was:" >&5 |
|
| 2485 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 2486 | ||
| 2487 | ||
| 2488 | fi |
|
| 2489 | ||
| 2490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 2491 | fi |
|
| 2492 | ||
| 2493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 2494 | fi |
|
| 2495 | ||
| 2496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 2497 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
| 2498 | fi |
|
| 2499 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
|
| 2500 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
|
| 2501 | 3 | if test "$ac_test_CFLAGS" = set; then |
| 2502 | CFLAGS=$ac_save_CFLAGS |
|
| 2503 | elif test $ac_cv_prog_cc_g = yes; then |
|
| 2504 | if test "$GCC" = yes; then |
|
| 2505 | CFLAGS="-g -O2" |
|
| 2506 | else |
|
| 2507 | CFLAGS="-g" |
|
| 2508 | fi |
|
| 2509 | else |
|
| 2510 | if test "$GCC" = yes; then |
|
| 2511 | CFLAGS="-O2" |
|
| 2512 | else |
|
| 2513 | CFLAGS= |
|
| 2514 | fi |
|
| 2515 | fi |
|
| 2516 | 20 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
| 2517 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
|
| 2518 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
|
| 2519 | 3 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2520 | else |
|
| 2521 | 20 | ac_cv_prog_cc_c89=no |
| 2522 | 3 | ac_save_CC=$CC |
| 2523 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2524 | 4 | /* confdefs.h. */ |
| 2525 | _ACEOF |
|
| 2526 | cat confdefs.h >>conftest.$ac_ext |
|
| 2527 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2528 | /* end confdefs.h. */ |
|
| 2529 | 3 | #include <stdarg.h> |
| 2530 | #include <stdio.h> |
|
| 2531 | #include <sys/types.h> |
|
| 2532 | #include <sys/stat.h> |
|
| 2533 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
| 2534 | struct buf { int x; };
|
|
| 2535 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
| 2536 | static char *e (p, i) |
|
| 2537 | char **p; |
|
| 2538 | int i; |
|
| 2539 | {
|
|
| 2540 | return p[i]; |
|
| 2541 | } |
|
| 2542 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
| 2543 | {
|
|
| 2544 | char *s; |
|
| 2545 | va_list v; |
|
| 2546 | va_start (v,p); |
|
| 2547 | s = g (p, va_arg (v,int)); |
|
| 2548 | va_end (v); |
|
| 2549 | return s; |
|
| 2550 | } |
|
| 2551 | 12 | |
| 2552 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
| 2553 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
| 2554 | These don't provoke an error unfortunately, instead are silently treated |
|
| 2555 | 20 | as 'x'. The following induces an error, until -std is added to get |
| 2556 | 12 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2557 | array size at least. It's necessary to write '\x00'==0 to get something |
|
| 2558 | 20 | that's true only with -std. */ |
| 2559 | 12 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2560 | ||
| 2561 | 20 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2562 | inside strings and character constants. */ |
|
| 2563 | #define FOO(x) 'x' |
|
| 2564 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
| 2565 | ||
| 2566 | 3 | int test (int i, double x); |
| 2567 | struct s1 {int (*f) (int a);};
|
|
| 2568 | struct s2 {int (*f) (double a);};
|
|
| 2569 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
| 2570 | int argc; |
|
| 2571 | char **argv; |
|
| 2572 | int |
|
| 2573 | main () |
|
| 2574 | {
|
|
| 2575 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
| 2576 | ; |
|
| 2577 | return 0; |
|
| 2578 | } |
|
| 2579 | _ACEOF |
|
| 2580 | 20 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2581 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
| 2582 | 3 | do |
| 2583 | CC="$ac_save_CC $ac_arg" |
|
| 2584 | rm -f conftest.$ac_objext |
|
| 2585 | 20 | if { (ac_try="$ac_compile"
|
| 2586 | case "(($ac_try" in |
|
| 2587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2588 | *) ac_try_echo=$ac_try;; |
|
| 2589 | esac |
|
| 2590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2591 | (eval "$ac_compile") 2>conftest.er1 |
|
| 2592 | 3 | ac_status=$? |
| 2593 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2594 | rm -f conftest.er1 |
|
| 2595 | cat conftest.err >&5 |
|
| 2596 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2597 | 20 | (exit $ac_status); } && {
|
| 2598 | test -z "$ac_c_werror_flag" || |
|
| 2599 | test ! -s conftest.err |
|
| 2600 | } && test -s conftest.$ac_objext; then |
|
| 2601 | ac_cv_prog_cc_c89=$ac_arg |
|
| 2602 | 3 | else |
| 2603 | echo "$as_me: failed program was:" >&5 |
|
| 2604 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2605 | ||
| 2606 | 20 | |
| 2607 | 3 | fi |
| 2608 | 20 | |
| 2609 | rm -f core conftest.err conftest.$ac_objext |
|
| 2610 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
| 2611 | 3 | done |
| 2612 | 20 | rm -f conftest.$ac_ext |
| 2613 | 3 | CC=$ac_save_CC |
| 2614 | ||
| 2615 | fi |
|
| 2616 | 20 | # AC_CACHE_VAL |
| 2617 | case "x$ac_cv_prog_cc_c89" in |
|
| 2618 | x) |
|
| 2619 | { echo "$as_me:$LINENO: result: none needed" >&5
|
|
| 2620 | echo "${ECHO_T}none needed" >&6; } ;;
|
|
| 2621 | xno) |
|
| 2622 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
|
| 2623 | echo "${ECHO_T}unsupported" >&6; } ;;
|
|
| 2624 | 3 | *) |
| 2625 | 20 | CC="$CC $ac_cv_prog_cc_c89" |
| 2626 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
|
| 2627 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
|
| 2628 | 1 | esac |
| 2629 | ||
| 2630 | 20 | |
| 2631 | 3 | ac_ext=c |
| 2632 | ac_cpp='$CPP $CPPFLAGS' |
|
| 2633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
| 2634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
| 2635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
| 2636 | ||
| 2637 | 12 | CFLAGS= |
| 2638 | ||
| 2639 | if test -z "$APXS" || test "$APXS" = yes; then |
|
| 2640 | 30 | APXS=apxs |
| 2641 | for location in /usr/local/apache/bin/apxs \ |
|
| 2642 | /usr/local/apache2/bin/apxs /opt/csw/apache2/sbin/apxs; do |
|
| 2643 | ||
| 2644 | 12 | if test -e $location; then |
| 2645 | APXS=$location |
|
| 2646 | fi |
|
| 2647 | done |
|
| 2648 | 3 | fi |
| 2649 | ||
| 2650 | 20 | { echo "$as_me:$LINENO: checking whether apxs works" >&5
|
| 2651 | echo $ECHO_N "checking whether apxs works... $ECHO_C" >&6; } |
|
| 2652 | 30 | if $APXS -q CFLAGS >/dev/null; then |
| 2653 | 20 | { echo "$as_me:$LINENO: result: yes" >&5
|
| 2654 | echo "${ECHO_T}yes" >&6; }
|
|
| 2655 | 1 | else |
| 2656 | 20 | { echo "$as_me:$LINENO: result: no" >&5
|
| 2657 | echo "${ECHO_T}no" >&6; }
|
|
| 2658 | 3 | { { echo "$as_me:$LINENO: error: Cannot build mod_ldap_userdir without a valid apxs program" >&5
|
| 2659 | echo "$as_me: error: Cannot build mod_ldap_userdir without a valid apxs program" >&2;} |
|
| 2660 | { (exit 1); exit 1; }; }
|
|
| 2661 | 1 | fi |
| 2662 | ||
| 2663 | 14 | # There must be a better way, but I've yet to find it. |
| 2664 | 30 | if echo $APXS | fgrep apxs2 >/dev/null; then |
| 2665 | 14 | TARGET=.libs/mod_ldap_userdir.so |
| 2666 | 30 | elif echo $APXS | fgrep apache2 >/dev/null; then |
| 2667 | 14 | TARGET=.libs/mod_ldap_userdir.so |
| 2668 | else |
|
| 2669 | TARGET=mod_ldap_userdir.so |
|
| 2670 | fi |
|
| 2671 | ||
| 2672 | 1 | |
| 2673 | 3 | |
| 2674 | 20 | { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
|
| 2675 | echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; } |
|
| 2676 | 3 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then
|
| 2677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 2678 | 1 | else |
| 2679 | 3 | ac_check_lib_save_LIBS=$LIBS |
| 2680 | LIBS="-llber $LIBS" |
|
| 2681 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2682 | 4 | /* confdefs.h. */ |
| 2683 | _ACEOF |
|
| 2684 | cat confdefs.h >>conftest.$ac_ext |
|
| 2685 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2686 | /* end confdefs.h. */ |
|
| 2687 | 3 | |
| 2688 | 20 | /* Override any GCC internal prototype to avoid an error. |
| 2689 | Use char because int might match the return type of a GCC |
|
| 2690 | builtin and then its argument prototype would still apply. */ |
|
| 2691 | 3 | #ifdef __cplusplus |
| 2692 | extern "C" |
|
| 2693 | #endif |
|
| 2694 | char ber_init (); |
|
| 2695 | int |
|
| 2696 | main () |
|
| 2697 | {
|
|
| 2698 | 20 | return ber_init (); |
| 2699 | 3 | ; |
| 2700 | return 0; |
|
| 2701 | } |
|
| 2702 | _ACEOF |
|
| 2703 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
| 2704 | 20 | if { (ac_try="$ac_link"
|
| 2705 | case "(($ac_try" in |
|
| 2706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2707 | *) ac_try_echo=$ac_try;; |
|
| 2708 | esac |
|
| 2709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2710 | (eval "$ac_link") 2>conftest.er1 |
|
| 2711 | 3 | ac_status=$? |
| 2712 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2713 | rm -f conftest.er1 |
|
| 2714 | cat conftest.err >&5 |
|
| 2715 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2716 | 20 | (exit $ac_status); } && {
|
| 2717 | test -z "$ac_c_werror_flag" || |
|
| 2718 | test ! -s conftest.err |
|
| 2719 | } && test -s conftest$ac_exeext && |
|
| 2720 | $as_test_x conftest$ac_exeext; then |
|
| 2721 | 3 | ac_cv_lib_lber_ber_init=yes |
| 2722 | 1 | else |
| 2723 | 3 | echo "$as_me: failed program was:" >&5 |
| 2724 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2725 | ||
| 2726 | 20 | ac_cv_lib_lber_ber_init=no |
| 2727 | 3 | fi |
| 2728 | 20 | |
| 2729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
| 2730 | 12 | conftest$ac_exeext conftest.$ac_ext |
| 2731 | 3 | LIBS=$ac_check_lib_save_LIBS |
| 2732 | fi |
|
| 2733 | 20 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
|
| 2734 | echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
|
|
| 2735 | 3 | if test $ac_cv_lib_lber_ber_init = yes; then |
| 2736 | cat >>confdefs.h <<_ACEOF |
|
| 2737 | #define HAVE_LIBLBER 1 |
|
| 2738 | _ACEOF |
|
| 2739 | 1 | |
| 2740 | LIBS="-llber $LIBS" |
|
| 2741 | ||
| 2742 | fi |
|
| 2743 | ||
| 2744 | 20 | { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
|
| 2745 | echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; } |
|
| 2746 | 3 | if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
|
| 2747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 2748 | 1 | else |
| 2749 | 3 | ac_check_lib_save_LIBS=$LIBS |
| 2750 | 1 | LIBS="-lldap $LIBS" |
| 2751 | 3 | cat >conftest.$ac_ext <<_ACEOF |
| 2752 | 4 | /* confdefs.h. */ |
| 2753 | _ACEOF |
|
| 2754 | cat confdefs.h >>conftest.$ac_ext |
|
| 2755 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2756 | /* end confdefs.h. */ |
|
| 2757 | 3 | |
| 2758 | 20 | /* Override any GCC internal prototype to avoid an error. |
| 2759 | Use char because int might match the return type of a GCC |
|
| 2760 | builtin and then its argument prototype would still apply. */ |
|
| 2761 | 3 | #ifdef __cplusplus |
| 2762 | extern "C" |
|
| 2763 | #endif |
|
| 2764 | char ldap_init (); |
|
| 2765 | int |
|
| 2766 | main () |
|
| 2767 | {
|
|
| 2768 | 20 | return ldap_init (); |
| 2769 | 3 | ; |
| 2770 | return 0; |
|
| 2771 | } |
|
| 2772 | _ACEOF |
|
| 2773 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
| 2774 | 20 | if { (ac_try="$ac_link"
|
| 2775 | case "(($ac_try" in |
|
| 2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2777 | *) ac_try_echo=$ac_try;; |
|
| 2778 | esac |
|
| 2779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2780 | (eval "$ac_link") 2>conftest.er1 |
|
| 2781 | 3 | ac_status=$? |
| 2782 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2783 | rm -f conftest.er1 |
|
| 2784 | cat conftest.err >&5 |
|
| 2785 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2786 | 20 | (exit $ac_status); } && {
|
| 2787 | test -z "$ac_c_werror_flag" || |
|
| 2788 | test ! -s conftest.err |
|
| 2789 | } && test -s conftest$ac_exeext && |
|
| 2790 | $as_test_x conftest$ac_exeext; then |
|
| 2791 | 3 | ac_cv_lib_ldap_ldap_init=yes |
| 2792 | else |
|
| 2793 | echo "$as_me: failed program was:" >&5 |
|
| 2794 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2795 | ||
| 2796 | 20 | ac_cv_lib_ldap_ldap_init=no |
| 2797 | 3 | fi |
| 2798 | 20 | |
| 2799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
| 2800 | 12 | conftest$ac_exeext conftest.$ac_ext |
| 2801 | 3 | LIBS=$ac_check_lib_save_LIBS |
| 2802 | fi |
|
| 2803 | 20 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
|
| 2804 | echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
|
|
| 2805 | 3 | if test $ac_cv_lib_ldap_ldap_init = yes; then |
| 2806 | found_openldap_libs=yes; LIBS="-lldap $LIBS" |
|
| 2807 | else |
|
| 2808 | 12 | { { echo "$as_me:$LINENO: error: You must have libldap to build mod_ldap_userdir." >&5
|
| 2809 | echo "$as_me: error: You must have libldap to build mod_ldap_userdir." >&2;} |
|
| 2810 | { (exit 1); exit 1; }; }
|
|
| 2811 | 30 | |
| 2812 | 12 | fi |
| 2813 | ||
| 2814 | 3 | |
| 2815 | ac_ext=c |
|
| 2816 | ac_cpp='$CPP $CPPFLAGS' |
|
| 2817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
| 2818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
| 2819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
| 2820 | 20 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
| 2821 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
|
| 2822 | 3 | # On Suns, sometimes $CPP names a directory. |
| 2823 | if test -n "$CPP" && test -d "$CPP"; then |
|
| 2824 | CPP= |
|
| 2825 | fi |
|
| 2826 | if test -z "$CPP"; then |
|
| 2827 | if test "${ac_cv_prog_CPP+set}" = set; then
|
|
| 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 2829 | else |
|
| 2830 | # Double quotes because CPP needs to be expanded |
|
| 2831 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
| 2832 | do |
|
| 2833 | ac_preproc_ok=false |
|
| 2834 | for ac_c_preproc_warn_flag in '' yes |
|
| 2835 | do |
|
| 2836 | # Use a header file that comes with gcc, so configuring glibc |
|
| 2837 | # with a fresh cross-compiler works. |
|
| 2838 | 4 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2839 | # <limits.h> exists even on freestanding compilers. |
|
| 2840 | 3 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2841 | # not just through cpp. "Syntax error" is here to catch this case. |
|
| 2842 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2843 | 4 | /* confdefs.h. */ |
| 2844 | _ACEOF |
|
| 2845 | cat confdefs.h >>conftest.$ac_ext |
|
| 2846 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2847 | /* end confdefs.h. */ |
|
| 2848 | #ifdef __STDC__ |
|
| 2849 | # include <limits.h> |
|
| 2850 | #else |
|
| 2851 | # include <assert.h> |
|
| 2852 | #endif |
|
| 2853 | 12 | Syntax error |
| 2854 | 3 | _ACEOF |
| 2855 | 20 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
| 2856 | case "(($ac_try" in |
|
| 2857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2858 | *) ac_try_echo=$ac_try;; |
|
| 2859 | esac |
|
| 2860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2861 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
| 2862 | 3 | ac_status=$? |
| 2863 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 2864 | rm -f conftest.er1 |
|
| 2865 | cat conftest.err >&5 |
|
| 2866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2867 | 20 | (exit $ac_status); } >/dev/null && {
|
| 2868 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
| 2869 | test ! -s conftest.err |
|
| 2870 | }; then |
|
| 2871 | 3 | : |
| 2872 | else |
|
| 2873 | echo "$as_me: failed program was:" >&5 |
|
| 2874 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2875 | ||
| 2876 | 3 | # Broken: fails on valid input. |
| 2877 | continue |
|
| 2878 | fi |
|
| 2879 | 20 | |
| 2880 | 3 | rm -f conftest.err conftest.$ac_ext |
| 2881 | ||
| 2882 | 20 | # OK, works on sane cases. Now check whether nonexistent headers |
| 2883 | 3 | # can be detected and how. |
| 2884 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2885 | 4 | /* confdefs.h. */ |
| 2886 | _ACEOF |
|
| 2887 | cat confdefs.h >>conftest.$ac_ext |
|
| 2888 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2889 | /* end confdefs.h. */ |
|
| 2890 | 3 | #include <ac_nonexistent.h> |
| 2891 | _ACEOF |
|
| 2892 | 20 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
| 2893 | case "(($ac_try" in |
|
| 2894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2895 | *) ac_try_echo=$ac_try;; |
|
| 2896 | esac |
|
| 2897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2898 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
| 2899 | 3 | ac_status=$? |
| 2900 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 2901 | rm -f conftest.er1 |
|
| 2902 | cat conftest.err >&5 |
|
| 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2904 | 20 | (exit $ac_status); } >/dev/null && {
|
| 2905 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
| 2906 | test ! -s conftest.err |
|
| 2907 | }; then |
|
| 2908 | 3 | # Broken: success on invalid input. |
| 2909 | continue |
|
| 2910 | else |
|
| 2911 | echo "$as_me: failed program was:" >&5 |
|
| 2912 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2913 | ||
| 2914 | 3 | # Passes both tests. |
| 2915 | ac_preproc_ok=: |
|
| 2916 | break |
|
| 2917 | fi |
|
| 2918 | 20 | |
| 2919 | 3 | rm -f conftest.err conftest.$ac_ext |
| 2920 | ||
| 2921 | done |
|
| 2922 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
| 2923 | rm -f conftest.err conftest.$ac_ext |
|
| 2924 | if $ac_preproc_ok; then |
|
| 2925 | break |
|
| 2926 | fi |
|
| 2927 | ||
| 2928 | done |
|
| 2929 | ac_cv_prog_CPP=$CPP |
|
| 2930 | ||
| 2931 | fi |
|
| 2932 | CPP=$ac_cv_prog_CPP |
|
| 2933 | else |
|
| 2934 | ac_cv_prog_CPP=$CPP |
|
| 2935 | fi |
|
| 2936 | 20 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
| 2937 | echo "${ECHO_T}$CPP" >&6; }
|
|
| 2938 | 3 | ac_preproc_ok=false |
| 2939 | for ac_c_preproc_warn_flag in '' yes |
|
| 2940 | do |
|
| 2941 | # Use a header file that comes with gcc, so configuring glibc |
|
| 2942 | # with a fresh cross-compiler works. |
|
| 2943 | 4 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2944 | # <limits.h> exists even on freestanding compilers. |
|
| 2945 | 3 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2946 | # not just through cpp. "Syntax error" is here to catch this case. |
|
| 2947 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2948 | 4 | /* confdefs.h. */ |
| 2949 | _ACEOF |
|
| 2950 | cat confdefs.h >>conftest.$ac_ext |
|
| 2951 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2952 | /* end confdefs.h. */ |
|
| 2953 | #ifdef __STDC__ |
|
| 2954 | # include <limits.h> |
|
| 2955 | #else |
|
| 2956 | # include <assert.h> |
|
| 2957 | #endif |
|
| 2958 | 12 | Syntax error |
| 2959 | 3 | _ACEOF |
| 2960 | 20 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
| 2961 | case "(($ac_try" in |
|
| 2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 2963 | *) ac_try_echo=$ac_try;; |
|
| 2964 | esac |
|
| 2965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 2966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
| 2967 | 3 | ac_status=$? |
| 2968 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 2969 | rm -f conftest.er1 |
|
| 2970 | cat conftest.err >&5 |
|
| 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 2972 | 20 | (exit $ac_status); } >/dev/null && {
|
| 2973 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
| 2974 | test ! -s conftest.err |
|
| 2975 | }; then |
|
| 2976 | 3 | : |
| 2977 | else |
|
| 2978 | echo "$as_me: failed program was:" >&5 |
|
| 2979 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2980 | ||
| 2981 | 3 | # Broken: fails on valid input. |
| 2982 | continue |
|
| 2983 | fi |
|
| 2984 | 20 | |
| 2985 | 3 | rm -f conftest.err conftest.$ac_ext |
| 2986 | ||
| 2987 | 20 | # OK, works on sane cases. Now check whether nonexistent headers |
| 2988 | 3 | # can be detected and how. |
| 2989 | cat >conftest.$ac_ext <<_ACEOF |
|
| 2990 | 4 | /* confdefs.h. */ |
| 2991 | _ACEOF |
|
| 2992 | cat confdefs.h >>conftest.$ac_ext |
|
| 2993 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 2994 | /* end confdefs.h. */ |
|
| 2995 | 3 | #include <ac_nonexistent.h> |
| 2996 | _ACEOF |
|
| 2997 | 20 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
| 2998 | case "(($ac_try" in |
|
| 2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3000 | *) ac_try_echo=$ac_try;; |
|
| 3001 | esac |
|
| 3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
| 3004 | 3 | ac_status=$? |
| 3005 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 3006 | rm -f conftest.er1 |
|
| 3007 | cat conftest.err >&5 |
|
| 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3009 | 20 | (exit $ac_status); } >/dev/null && {
|
| 3010 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
| 3011 | test ! -s conftest.err |
|
| 3012 | }; then |
|
| 3013 | 3 | # Broken: success on invalid input. |
| 3014 | continue |
|
| 3015 | else |
|
| 3016 | echo "$as_me: failed program was:" >&5 |
|
| 3017 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3018 | ||
| 3019 | 3 | # Passes both tests. |
| 3020 | ac_preproc_ok=: |
|
| 3021 | break |
|
| 3022 | fi |
|
| 3023 | 20 | |
| 3024 | 3 | rm -f conftest.err conftest.$ac_ext |
| 3025 | ||
| 3026 | done |
|
| 3027 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
| 3028 | rm -f conftest.err conftest.$ac_ext |
|
| 3029 | if $ac_preproc_ok; then |
|
| 3030 | : |
|
| 3031 | else |
|
| 3032 | 4 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
| 3033 | See \`config.log' for more details." >&5 |
|
| 3034 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
| 3035 | See \`config.log' for more details." >&2;} |
|
| 3036 | 3 | { (exit 1); exit 1; }; }
|
| 3037 | fi |
|
| 3038 | ||
| 3039 | ac_ext=c |
|
| 3040 | ac_cpp='$CPP $CPPFLAGS' |
|
| 3041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
| 3042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
| 3043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
| 3044 | ||
| 3045 | ||
| 3046 | 20 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
| 3047 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
|
| 3048 | if test "${ac_cv_path_GREP+set}" = set; then
|
|
| 3049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3050 | else |
|
| 3051 | # Extract the first word of "grep ggrep" to use in msg output |
|
| 3052 | if test -z "$GREP"; then |
|
| 3053 | set dummy grep ggrep; ac_prog_name=$2 |
|
| 3054 | if test "${ac_cv_path_GREP+set}" = set; then
|
|
| 3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3056 | else |
|
| 3057 | ac_path_GREP_found=false |
|
| 3058 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
| 3059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 3060 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
| 3061 | do |
|
| 3062 | IFS=$as_save_IFS |
|
| 3063 | test -z "$as_dir" && as_dir=. |
|
| 3064 | for ac_prog in grep ggrep; do |
|
| 3065 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 3066 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
| 3067 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
|
| 3068 | # Check for GNU ac_path_GREP and select it if it is found. |
|
| 3069 | # Check for GNU $ac_path_GREP |
|
| 3070 | case `"$ac_path_GREP" --version 2>&1` in |
|
| 3071 | *GNU*) |
|
| 3072 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
| 3073 | *) |
|
| 3074 | ac_count=0 |
|
| 3075 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
| 3076 | while : |
|
| 3077 | do |
|
| 3078 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
| 3079 | mv "conftest.tmp" "conftest.in" |
|
| 3080 | cp "conftest.in" "conftest.nl" |
|
| 3081 | echo 'GREP' >> "conftest.nl" |
|
| 3082 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
| 3083 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
| 3084 | ac_count=`expr $ac_count + 1` |
|
| 3085 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
| 3086 | # Best one so far, save it but keep looking for a better one |
|
| 3087 | ac_cv_path_GREP="$ac_path_GREP" |
|
| 3088 | ac_path_GREP_max=$ac_count |
|
| 3089 | fi |
|
| 3090 | # 10*(2^10) chars as input seems more than enough |
|
| 3091 | test $ac_count -gt 10 && break |
|
| 3092 | done |
|
| 3093 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
| 3094 | esac |
|
| 3095 | ||
| 3096 | ||
| 3097 | $ac_path_GREP_found && break 3 |
|
| 3098 | done |
|
| 3099 | done |
|
| 3100 | ||
| 3101 | done |
|
| 3102 | IFS=$as_save_IFS |
|
| 3103 | ||
| 3104 | ||
| 3105 | fi |
|
| 3106 | ||
| 3107 | GREP="$ac_cv_path_GREP" |
|
| 3108 | if test -z "$GREP"; then |
|
| 3109 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
| 3110 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
| 3111 | { (exit 1); exit 1; }; }
|
|
| 3112 | fi |
|
| 3113 | ||
| 3114 | else |
|
| 3115 | ac_cv_path_GREP=$GREP |
|
| 3116 | fi |
|
| 3117 | ||
| 3118 | ||
| 3119 | fi |
|
| 3120 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
|
| 3121 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
|
| 3122 | GREP="$ac_cv_path_GREP" |
|
| 3123 | ||
| 3124 | ||
| 3125 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
|
| 3126 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
|
| 3127 | if test "${ac_cv_path_EGREP+set}" = set; then
|
|
| 3128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3129 | else |
|
| 3130 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
| 3131 | then ac_cv_path_EGREP="$GREP -E" |
|
| 3132 | else |
|
| 3133 | # Extract the first word of "egrep" to use in msg output |
|
| 3134 | if test -z "$EGREP"; then |
|
| 3135 | set dummy egrep; ac_prog_name=$2 |
|
| 3136 | if test "${ac_cv_path_EGREP+set}" = set; then
|
|
| 3137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3138 | else |
|
| 3139 | ac_path_EGREP_found=false |
|
| 3140 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
| 3141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 3142 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
| 3143 | do |
|
| 3144 | IFS=$as_save_IFS |
|
| 3145 | test -z "$as_dir" && as_dir=. |
|
| 3146 | for ac_prog in egrep; do |
|
| 3147 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
| 3148 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
| 3149 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
|
| 3150 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
| 3151 | # Check for GNU $ac_path_EGREP |
|
| 3152 | case `"$ac_path_EGREP" --version 2>&1` in |
|
| 3153 | *GNU*) |
|
| 3154 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
| 3155 | *) |
|
| 3156 | ac_count=0 |
|
| 3157 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
| 3158 | while : |
|
| 3159 | do |
|
| 3160 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
| 3161 | mv "conftest.tmp" "conftest.in" |
|
| 3162 | cp "conftest.in" "conftest.nl" |
|
| 3163 | echo 'EGREP' >> "conftest.nl" |
|
| 3164 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
| 3165 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
| 3166 | ac_count=`expr $ac_count + 1` |
|
| 3167 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
| 3168 | # Best one so far, save it but keep looking for a better one |
|
| 3169 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
| 3170 | ac_path_EGREP_max=$ac_count |
|
| 3171 | fi |
|
| 3172 | # 10*(2^10) chars as input seems more than enough |
|
| 3173 | test $ac_count -gt 10 && break |
|
| 3174 | done |
|
| 3175 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
| 3176 | esac |
|
| 3177 | ||
| 3178 | ||
| 3179 | $ac_path_EGREP_found && break 3 |
|
| 3180 | done |
|
| 3181 | done |
|
| 3182 | ||
| 3183 | done |
|
| 3184 | IFS=$as_save_IFS |
|
| 3185 | ||
| 3186 | ||
| 3187 | fi |
|
| 3188 | ||
| 3189 | EGREP="$ac_cv_path_EGREP" |
|
| 3190 | if test -z "$EGREP"; then |
|
| 3191 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
| 3192 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
| 3193 | { (exit 1); exit 1; }; }
|
|
| 3194 | fi |
|
| 3195 | ||
| 3196 | else |
|
| 3197 | ac_cv_path_EGREP=$EGREP |
|
| 3198 | fi |
|
| 3199 | ||
| 3200 | ||
| 3201 | fi |
|
| 3202 | fi |
|
| 3203 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
|
| 3204 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
|
| 3205 | EGREP="$ac_cv_path_EGREP" |
|
| 3206 | ||
| 3207 | ||
| 3208 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
|
| 3209 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
| 3210 | 3 | if test "${ac_cv_header_stdc+set}" = set; then
|
| 3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3212 | else |
|
| 3213 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3214 | 4 | /* confdefs.h. */ |
| 3215 | _ACEOF |
|
| 3216 | cat confdefs.h >>conftest.$ac_ext |
|
| 3217 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3218 | /* end confdefs.h. */ |
|
| 3219 | 3 | #include <stdlib.h> |
| 3220 | #include <stdarg.h> |
|
| 3221 | #include <string.h> |
|
| 3222 | #include <float.h> |
|
| 3223 | ||
| 3224 | 4 | int |
| 3225 | main () |
|
| 3226 | {
|
|
| 3227 | ||
| 3228 | ; |
|
| 3229 | return 0; |
|
| 3230 | } |
|
| 3231 | 3 | _ACEOF |
| 3232 | 4 | rm -f conftest.$ac_objext |
| 3233 | 20 | if { (ac_try="$ac_compile"
|
| 3234 | case "(($ac_try" in |
|
| 3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3236 | *) ac_try_echo=$ac_try;; |
|
| 3237 | esac |
|
| 3238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3239 | (eval "$ac_compile") 2>conftest.er1 |
|
| 3240 | 4 | ac_status=$? |
| 3241 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3242 | rm -f conftest.er1 |
|
| 3243 | cat conftest.err >&5 |
|
| 3244 | 4 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3245 | 20 | (exit $ac_status); } && {
|
| 3246 | test -z "$ac_c_werror_flag" || |
|
| 3247 | test ! -s conftest.err |
|
| 3248 | } && test -s conftest.$ac_objext; then |
|
| 3249 | 3 | ac_cv_header_stdc=yes |
| 3250 | else |
|
| 3251 | echo "$as_me: failed program was:" >&5 |
|
| 3252 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3253 | ||
| 3254 | 20 | ac_cv_header_stdc=no |
| 3255 | 3 | fi |
| 3256 | 20 | |
| 3257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 3258 | 3 | |
| 3259 | if test $ac_cv_header_stdc = yes; then |
|
| 3260 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
| 3261 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3262 | 4 | /* confdefs.h. */ |
| 3263 | _ACEOF |
|
| 3264 | cat confdefs.h >>conftest.$ac_ext |
|
| 3265 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3266 | /* end confdefs.h. */ |
|
| 3267 | 3 | #include <string.h> |
| 3268 | ||
| 3269 | _ACEOF |
|
| 3270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
| 3271 | $EGREP "memchr" >/dev/null 2>&1; then |
|
| 3272 | : |
|
| 3273 | else |
|
| 3274 | ac_cv_header_stdc=no |
|
| 3275 | fi |
|
| 3276 | rm -f conftest* |
|
| 3277 | ||
| 3278 | fi |
|
| 3279 | ||
| 3280 | if test $ac_cv_header_stdc = yes; then |
|
| 3281 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
| 3282 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3283 | 4 | /* confdefs.h. */ |
| 3284 | _ACEOF |
|
| 3285 | cat confdefs.h >>conftest.$ac_ext |
|
| 3286 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3287 | /* end confdefs.h. */ |
|
| 3288 | 3 | #include <stdlib.h> |
| 3289 | ||
| 3290 | _ACEOF |
|
| 3291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
| 3292 | $EGREP "free" >/dev/null 2>&1; then |
|
| 3293 | : |
|
| 3294 | else |
|
| 3295 | ac_cv_header_stdc=no |
|
| 3296 | fi |
|
| 3297 | rm -f conftest* |
|
| 3298 | ||
| 3299 | fi |
|
| 3300 | ||
| 3301 | if test $ac_cv_header_stdc = yes; then |
|
| 3302 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
| 3303 | if test "$cross_compiling" = yes; then |
|
| 3304 | : |
|
| 3305 | else |
|
| 3306 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3307 | 4 | /* confdefs.h. */ |
| 3308 | _ACEOF |
|
| 3309 | cat confdefs.h >>conftest.$ac_ext |
|
| 3310 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3311 | /* end confdefs.h. */ |
|
| 3312 | 3 | #include <ctype.h> |
| 3313 | 20 | #include <stdlib.h> |
| 3314 | 3 | #if ((' ' & 0x0FF) == 0x020)
|
| 3315 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
| 3316 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
| 3317 | #else |
|
| 3318 | 4 | # define ISLOWER(c) \ |
| 3319 | 12 | (('a' <= (c) && (c) <= 'i') \
|
| 3320 | || ('j' <= (c) && (c) <= 'r') \
|
|
| 3321 | || ('s' <= (c) && (c) <= 'z'))
|
|
| 3322 | 3 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3323 | #endif |
|
| 3324 | ||
| 3325 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
| 3326 | int |
|
| 3327 | main () |
|
| 3328 | {
|
|
| 3329 | int i; |
|
| 3330 | for (i = 0; i < 256; i++) |
|
| 3331 | if (XOR (islower (i), ISLOWER (i)) |
|
| 3332 | 12 | || toupper (i) != TOUPPER (i)) |
| 3333 | 20 | return 2; |
| 3334 | return 0; |
|
| 3335 | 3 | } |
| 3336 | _ACEOF |
|
| 3337 | rm -f conftest$ac_exeext |
|
| 3338 | 20 | if { (ac_try="$ac_link"
|
| 3339 | case "(($ac_try" in |
|
| 3340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3341 | *) ac_try_echo=$ac_try;; |
|
| 3342 | esac |
|
| 3343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3344 | (eval "$ac_link") 2>&5 |
|
| 3345 | 3 | ac_status=$? |
| 3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
| 3348 | 20 | { (case "(($ac_try" in
|
| 3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3350 | *) ac_try_echo=$ac_try;; |
|
| 3351 | esac |
|
| 3352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3353 | (eval "$ac_try") 2>&5 |
|
| 3354 | 3 | ac_status=$? |
| 3355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3356 | (exit $ac_status); }; }; then |
|
| 3357 | : |
|
| 3358 | else |
|
| 3359 | echo "$as_me: program exited with status $ac_status" >&5 |
|
| 3360 | echo "$as_me: failed program was:" >&5 |
|
| 3361 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3362 | ||
| 3363 | 3 | ( exit $ac_status ) |
| 3364 | ac_cv_header_stdc=no |
|
| 3365 | fi |
|
| 3366 | 20 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3367 | fi |
|
| 3368 | ||
| 3369 | ||
| 3370 | fi |
|
| 3371 | fi |
|
| 3372 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
| 3373 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
|
| 3374 | 3 | if test $ac_cv_header_stdc = yes; then |
| 3375 | ||
| 3376 | cat >>confdefs.h <<\_ACEOF |
|
| 3377 | #define STDC_HEADERS 1 |
|
| 3378 | _ACEOF |
|
| 3379 | ||
| 3380 | fi |
|
| 3381 | ||
| 3382 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
| 3383 | ||
| 3384 | ||
| 3385 | ||
| 3386 | ||
| 3387 | ||
| 3388 | ||
| 3389 | ||
| 3390 | ||
| 3391 | ||
| 3392 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
| 3393 | 12 | inttypes.h stdint.h unistd.h |
| 3394 | 3 | do |
| 3395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
| 3396 | 20 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
| 3397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
| 3398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
| 3399 | 3 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3400 | else |
|
| 3401 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3402 | 4 | /* confdefs.h. */ |
| 3403 | _ACEOF |
|
| 3404 | cat confdefs.h >>conftest.$ac_ext |
|
| 3405 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3406 | /* end confdefs.h. */ |
|
| 3407 | 3 | $ac_includes_default |
| 3408 | ||
| 3409 | #include <$ac_header> |
|
| 3410 | _ACEOF |
|
| 3411 | rm -f conftest.$ac_objext |
|
| 3412 | 20 | if { (ac_try="$ac_compile"
|
| 3413 | case "(($ac_try" in |
|
| 3414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3415 | *) ac_try_echo=$ac_try;; |
|
| 3416 | esac |
|
| 3417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3418 | (eval "$ac_compile") 2>conftest.er1 |
|
| 3419 | 3 | ac_status=$? |
| 3420 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3421 | rm -f conftest.er1 |
|
| 3422 | cat conftest.err >&5 |
|
| 3423 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | 20 | (exit $ac_status); } && {
|
| 3425 | test -z "$ac_c_werror_flag" || |
|
| 3426 | test ! -s conftest.err |
|
| 3427 | } && test -s conftest.$ac_objext; then |
|
| 3428 | 3 | eval "$as_ac_Header=yes" |
| 3429 | else |
|
| 3430 | echo "$as_me: failed program was:" >&5 |
|
| 3431 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3432 | ||
| 3433 | 20 | eval "$as_ac_Header=no" |
| 3434 | fi |
|
| 3435 | ||
| 3436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 3437 | fi |
|
| 3438 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
| 3439 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
| 3440 | echo "${ECHO_T}$ac_res" >&6; }
|
|
| 3441 | 3 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
| 3442 | cat >>confdefs.h <<_ACEOF |
|
| 3443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
| 3444 | _ACEOF |
|
| 3445 | ||
| 3446 | fi |
|
| 3447 | ||
| 3448 | done |
|
| 3449 | ||
| 3450 | ||
| 3451 | ||
| 3452 | for ac_header in lber.h |
|
| 3453 | do |
|
| 3454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
| 3455 | 20 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
| 3456 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
| 3457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
| 3458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
| 3459 | 3 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3460 | fi |
|
| 3461 | 20 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
| 3462 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
| 3463 | echo "${ECHO_T}$ac_res" >&6; }
|
|
| 3464 | 3 | else |
| 3465 | # Is the header compilable? |
|
| 3466 | 20 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
| 3467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
| 3468 | 3 | cat >conftest.$ac_ext <<_ACEOF |
| 3469 | 4 | /* confdefs.h. */ |
| 3470 | _ACEOF |
|
| 3471 | cat confdefs.h >>conftest.$ac_ext |
|
| 3472 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3473 | /* end confdefs.h. */ |
|
| 3474 | 3 | $ac_includes_default |
| 3475 | #include <$ac_header> |
|
| 3476 | _ACEOF |
|
| 3477 | rm -f conftest.$ac_objext |
|
| 3478 | 20 | if { (ac_try="$ac_compile"
|
| 3479 | case "(($ac_try" in |
|
| 3480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3481 | *) ac_try_echo=$ac_try;; |
|
| 3482 | esac |
|
| 3483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3484 | (eval "$ac_compile") 2>conftest.er1 |
|
| 3485 | 3 | ac_status=$? |
| 3486 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3487 | rm -f conftest.er1 |
|
| 3488 | cat conftest.err >&5 |
|
| 3489 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3490 | 20 | (exit $ac_status); } && {
|
| 3491 | test -z "$ac_c_werror_flag" || |
|
| 3492 | test ! -s conftest.err |
|
| 3493 | } && test -s conftest.$ac_objext; then |
|
| 3494 | 3 | ac_header_compiler=yes |
| 3495 | else |
|
| 3496 | echo "$as_me: failed program was:" >&5 |
|
| 3497 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3498 | ||
| 3499 | 20 | ac_header_compiler=no |
| 3500 | 3 | fi |
| 3501 | 20 | |
| 3502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 3503 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
| 3504 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
| 3505 | 3 | |
| 3506 | # Is the header present? |
|
| 3507 | 20 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
| 3508 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
| 3509 | 3 | cat >conftest.$ac_ext <<_ACEOF |
| 3510 | 4 | /* confdefs.h. */ |
| 3511 | _ACEOF |
|
| 3512 | cat confdefs.h >>conftest.$ac_ext |
|
| 3513 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3514 | /* end confdefs.h. */ |
|
| 3515 | 3 | #include <$ac_header> |
| 3516 | _ACEOF |
|
| 3517 | 20 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
| 3518 | case "(($ac_try" in |
|
| 3519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3520 | *) ac_try_echo=$ac_try;; |
|
| 3521 | esac |
|
| 3522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
| 3524 | 3 | ac_status=$? |
| 3525 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 3526 | rm -f conftest.er1 |
|
| 3527 | cat conftest.err >&5 |
|
| 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3529 | 20 | (exit $ac_status); } >/dev/null && {
|
| 3530 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
| 3531 | test ! -s conftest.err |
|
| 3532 | }; then |
|
| 3533 | 3 | ac_header_preproc=yes |
| 3534 | else |
|
| 3535 | echo "$as_me: failed program was:" >&5 |
|
| 3536 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3537 | ||
| 3538 | 3 | ac_header_preproc=no |
| 3539 | fi |
|
| 3540 | 20 | |
| 3541 | 3 | rm -f conftest.err conftest.$ac_ext |
| 3542 | 20 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
| 3543 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
| 3544 | 3 | |
| 3545 | # So? What about this header? |
|
| 3546 | 12 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3547 | yes:no: ) |
|
| 3548 | 3 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
| 3549 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
| 3550 | 12 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
| 3551 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
| 3552 | ac_header_preproc=yes |
|
| 3553 | 4 | ;; |
| 3554 | 12 | no:yes:* ) |
| 3555 | 3 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
| 3556 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
| 3557 | 12 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
| 3558 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
| 3559 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
| 3560 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
| 3561 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
| 3562 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
| 3563 | 3 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
| 3564 | 4 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3565 | 12 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
| 3566 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
| 3567 | 20 | |
| 3568 | 4 | ;; |
| 3569 | 1 | esac |
| 3570 | 20 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
| 3571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
| 3572 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
| 3573 | 3 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3574 | else |
|
| 3575 | 12 | eval "$as_ac_Header=\$ac_header_preproc" |
| 3576 | 3 | fi |
| 3577 | 20 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
| 3578 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
| 3579 | echo "${ECHO_T}$ac_res" >&6; }
|
|
| 3580 | 3 | |
| 3581 | fi |
|
| 3582 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
| 3583 | cat >>confdefs.h <<_ACEOF |
|
| 3584 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
| 3585 | _ACEOF |
|
| 3586 | ||
| 3587 | else |
|
| 3588 | 12 | { { echo "$as_me:$LINENO: error: You must have lber.h to build mod_ldap_userdir." >&5
|
| 3589 | echo "$as_me: error: You must have lber.h to build mod_ldap_userdir." >&2;} |
|
| 3590 | 3 | { (exit 1); exit 1; }; }
|
| 3591 | 30 | |
| 3592 | 3 | fi |
| 3593 | ||
| 3594 | done |
|
| 3595 | ||
| 3596 | ||
| 3597 | for ac_header in ldap.h |
|
| 3598 | 1 | do |
| 3599 | 3 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3600 | 20 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
| 3601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
| 3602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
| 3603 | 3 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3604 | 1 | else |
| 3605 | 3 | cat >conftest.$ac_ext <<_ACEOF |
| 3606 | 4 | /* confdefs.h. */ |
| 3607 | _ACEOF |
|
| 3608 | cat confdefs.h >>conftest.$ac_ext |
|
| 3609 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3610 | /* end confdefs.h. */ |
|
| 3611 | 3 | #include <lber.h> |
| 3612 | ||
| 3613 | 30 | |
| 3614 | 3 | #include <$ac_header> |
| 3615 | _ACEOF |
|
| 3616 | rm -f conftest.$ac_objext |
|
| 3617 | 20 | if { (ac_try="$ac_compile"
|
| 3618 | case "(($ac_try" in |
|
| 3619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3620 | *) ac_try_echo=$ac_try;; |
|
| 3621 | esac |
|
| 3622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3623 | (eval "$ac_compile") 2>conftest.er1 |
|
| 3624 | 3 | ac_status=$? |
| 3625 | 12 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3626 | rm -f conftest.er1 |
|
| 3627 | cat conftest.err >&5 |
|
| 3628 | 3 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3629 | 20 | (exit $ac_status); } && {
|
| 3630 | test -z "$ac_c_werror_flag" || |
|
| 3631 | test ! -s conftest.err |
|
| 3632 | } && test -s conftest.$ac_objext; then |
|
| 3633 | 3 | eval "$as_ac_Header=yes" |
| 3634 | else |
|
| 3635 | echo "$as_me: failed program was:" >&5 |
|
| 3636 | 4 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3637 | ||
| 3638 | 20 | eval "$as_ac_Header=no" |
| 3639 | fi |
|
| 3640 | ||
| 3641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 3642 | fi |
|
| 3643 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
| 3644 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
| 3645 | echo "${ECHO_T}$ac_res" >&6; }
|
|
| 3646 | 3 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
| 3647 | cat >>confdefs.h <<_ACEOF |
|
| 3648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
| 3649 | _ACEOF |
|
| 3650 | ||
| 3651 | else |
|
| 3652 | 12 | { { echo "$as_me:$LINENO: error: You must have ldap.h to build mod_ldap_userdir." >&5
|
| 3653 | echo "$as_me: error: You must have ldap.h to build mod_ldap_userdir." >&2;} |
|
| 3654 | 3 | { (exit 1); exit 1; }; }
|
| 3655 | fi |
|
| 3656 | ||
| 3657 | 1 | done |
| 3658 | ||
| 3659 | ||
| 3660 | 20 | { echo "$as_me:$LINENO: checking for LDAPURLDesc.lud_scheme" >&5
|
| 3661 | echo $ECHO_N "checking for LDAPURLDesc.lud_scheme... $ECHO_C" >&6; } |
|
| 3662 | 13 | if test "${ac_cv_member_LDAPURLDesc_lud_scheme+set}" = set; then
|
| 3663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3664 | else |
|
| 3665 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3666 | /* confdefs.h. */ |
|
| 3667 | _ACEOF |
|
| 3668 | cat confdefs.h >>conftest.$ac_ext |
|
| 3669 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3670 | /* end confdefs.h. */ |
|
| 3671 | #include <lber.h> |
|
| 3672 | #include <ldap.h> |
|
| 3673 | ||
| 3674 | int |
|
| 3675 | main () |
|
| 3676 | {
|
|
| 3677 | static LDAPURLDesc ac_aggr; |
|
| 3678 | if (ac_aggr.lud_scheme) |
|
| 3679 | return 0; |
|
| 3680 | ; |
|
| 3681 | return 0; |
|
| 3682 | } |
|
| 3683 | _ACEOF |
|
| 3684 | rm -f conftest.$ac_objext |
|
| 3685 | 20 | if { (ac_try="$ac_compile"
|
| 3686 | case "(($ac_try" in |
|
| 3687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3688 | *) ac_try_echo=$ac_try;; |
|
| 3689 | esac |
|
| 3690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3691 | (eval "$ac_compile") 2>conftest.er1 |
|
| 3692 | 13 | ac_status=$? |
| 3693 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 3694 | rm -f conftest.er1 |
|
| 3695 | cat conftest.err >&5 |
|
| 3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3697 | 20 | (exit $ac_status); } && {
|
| 3698 | test -z "$ac_c_werror_flag" || |
|
| 3699 | test ! -s conftest.err |
|
| 3700 | } && test -s conftest.$ac_objext; then |
|
| 3701 | 13 | ac_cv_member_LDAPURLDesc_lud_scheme=yes |
| 3702 | else |
|
| 3703 | echo "$as_me: failed program was:" >&5 |
|
| 3704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 3705 | ||
| 3706 | 20 | cat >conftest.$ac_ext <<_ACEOF |
| 3707 | 13 | /* confdefs.h. */ |
| 3708 | _ACEOF |
|
| 3709 | cat confdefs.h >>conftest.$ac_ext |
|
| 3710 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3711 | /* end confdefs.h. */ |
|
| 3712 | #include <lber.h> |
|
| 3713 | #include <ldap.h> |
|
| 3714 | ||
| 3715 | int |
|
| 3716 | main () |
|
| 3717 | {
|
|
| 3718 | static LDAPURLDesc ac_aggr; |
|
| 3719 | if (sizeof ac_aggr.lud_scheme) |
|
| 3720 | return 0; |
|
| 3721 | ; |
|
| 3722 | return 0; |
|
| 3723 | } |
|
| 3724 | _ACEOF |
|
| 3725 | rm -f conftest.$ac_objext |
|
| 3726 | 20 | if { (ac_try="$ac_compile"
|
| 3727 | case "(($ac_try" in |
|
| 3728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3729 | *) ac_try_echo=$ac_try;; |
|
| 3730 | esac |
|
| 3731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3732 | (eval "$ac_compile") 2>conftest.er1 |
|
| 3733 | 13 | ac_status=$? |
| 3734 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 3735 | rm -f conftest.er1 |
|
| 3736 | cat conftest.err >&5 |
|
| 3737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3738 | 20 | (exit $ac_status); } && {
|
| 3739 | test -z "$ac_c_werror_flag" || |
|
| 3740 | test ! -s conftest.err |
|
| 3741 | } && test -s conftest.$ac_objext; then |
|
| 3742 | 13 | ac_cv_member_LDAPURLDesc_lud_scheme=yes |
| 3743 | else |
|
| 3744 | echo "$as_me: failed program was:" >&5 |
|
| 3745 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 3746 | ||
| 3747 | 20 | ac_cv_member_LDAPURLDesc_lud_scheme=no |
| 3748 | fi |
|
| 3749 | ||
| 3750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 3751 | fi |
|
| 3752 | ||
| 3753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
| 3754 | fi |
|
| 3755 | { echo "$as_me:$LINENO: result: $ac_cv_member_LDAPURLDesc_lud_scheme" >&5
|
|
| 3756 | echo "${ECHO_T}$ac_cv_member_LDAPURLDesc_lud_scheme" >&6; }
|
|
| 3757 | 13 | if test $ac_cv_member_LDAPURLDesc_lud_scheme = yes; then |
| 3758 | ||
| 3759 | cat >>confdefs.h <<\_ACEOF |
|
| 3760 | #define HAVE_LDAPURLDESC_LUD_SCHEME 1 |
|
| 3761 | _ACEOF |
|
| 3762 | ||
| 3763 | fi |
|
| 3764 | ||
| 3765 | ||
| 3766 | 30 | # Check whether --enable-tls was given. |
| 3767 | if test "${enable_tls+set}" = set; then
|
|
| 3768 | enableval=$enable_tls; enable_tls=$enableval |
|
| 3769 | 12 | else |
| 3770 | 30 | enable_tls=yes |
| 3771 | ||
| 3772 | fi |
|
| 3773 | ||
| 3774 | if test "x$enable_tls" != xno; then |
|
| 3775 | 20 | { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
|
| 3776 | echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; } |
|
| 3777 | 12 | if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
|
| 3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 3779 | else |
|
| 3780 | cat >conftest.$ac_ext <<_ACEOF |
|
| 3781 | /* confdefs.h. */ |
|
| 3782 | _ACEOF |
|
| 3783 | cat confdefs.h >>conftest.$ac_ext |
|
| 3784 | cat >>conftest.$ac_ext <<_ACEOF |
|
| 3785 | /* end confdefs.h. */ |
|
| 3786 | /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s. |
|
| 3787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
| 3788 | #define ldap_start_tls_s innocuous_ldap_start_tls_s |
|
| 3789 | ||
| 3790 | /* System header to define __stub macros and hopefully few prototypes, |
|
| 3791 | which can conflict with char ldap_start_tls_s (); below. |
|
| 3792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
| 3793 | <limits.h> exists even on freestanding compilers. */ |
|
| 3794 | ||
| 3795 | #ifdef __STDC__ |
|
| 3796 | # include <limits.h> |
|
| 3797 | #else |
|
| 3798 | # include <assert.h> |
|
| 3799 | #endif |
|
| 3800 | ||
| 3801 | #undef ldap_start_tls_s |
|
| 3802 | ||
| 3803 | 20 | /* Override any GCC internal prototype to avoid an error. |
| 3804 | Use char because int might match the return type of a GCC |
|
| 3805 | builtin and then its argument prototype would still apply. */ |
|
| 3806 | 12 | #ifdef __cplusplus |
| 3807 | extern "C" |
|
| 3808 | #endif |
|
| 3809 | char ldap_start_tls_s (); |
|
| 3810 | /* The GNU C library defines this for functions which it implements |
|
| 3811 | to always fail with ENOSYS. Some functions are actually named |
|
| 3812 | something starting with __ and the normal name is an alias. */ |
|
| 3813 | 20 | #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s |
| 3814 | 12 | choke me |
| 3815 | #endif |
|
| 3816 | ||
| 3817 | int |
|
| 3818 | main () |
|
| 3819 | {
|
|
| 3820 | 20 | return ldap_start_tls_s (); |
| 3821 | 12 | ; |
| 3822 | return 0; |
|
| 3823 | } |
|
| 3824 | _ACEOF |
|
| 3825 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
| 3826 | 20 | if { (ac_try="$ac_link"
|
| 3827 | case "(($ac_try" in |
|
| 3828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
| 3829 | *) ac_try_echo=$ac_try;; |
|
| 3830 | esac |
|
| 3831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
| 3832 | (eval "$ac_link") 2>conftest.er1 |
|
| 3833 | 12 | ac_status=$? |
| 3834 | grep -v '^ *+' conftest.er1 >conftest.err |
|
| 3835 | rm -f conftest.er1 |
|
| 3836 | cat conftest.err >&5 |
|
| 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
| 3838 | 20 | (exit $ac_status); } && {
|
| 3839 | test -z "$ac_c_werror_flag" || |
|
| 3840 | test ! -s conftest.err |
|
| 3841 | } && test -s conftest$ac_exeext && |
|
| 3842 | $as_test_x conftest$ac_exeext; then |
|
| 3843 | 12 | ac_cv_func_ldap_start_tls_s=yes |
| 3844 | else |
|
| 3845 | echo "$as_me: failed program was:" >&5 |
|
| 3846 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
| 3847 | ||
| 3848 | 20 | ac_cv_func_ldap_start_tls_s=no |
| 3849 | 12 | fi |
| 3850 | 20 | |
| 3851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
| 3852 | 12 | conftest$ac_exeext conftest.$ac_ext |
| 3853 | fi |
|
| 3854 | 20 | { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
|
| 3855 | echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
|
|
| 3856 | 12 | if test $ac_cv_func_ldap_start_tls_s = yes; then |
| 3857 | TLS=-DTLS |
|
| 3858 | fi |
|
| 3859 | ||
| 3860 | 30 | |
| 3861 | 20 | fi |
| 3862 | ||
| 3863 | ||
| 3864 | ||
| 3865 | ||
| 3866 | ||
| 3867 | ||
| 3868 | ac_config_headers="$ac_config_headers config.h" |
|
| 3869 | ||
| 3870 | ac_config_files="$ac_config_files Makefile" |
|
| 3871 | ||
| 3872 | 3 | cat >confcache <<\_ACEOF |
| 3873 | 1 | # This file is a shell script that caches the results of configure |
| 3874 | # tests run on this system so they can be shared between configure |
|
| 3875 | 3 | # scripts and configure runs, see configure's option --config-cache. |
| 3876 | # It is not useful on other systems. If it contains results you don't |
|
| 3877 | # want to keep, you may remove or edit it. |
|
| 3878 | # |
|
| 3879 | # config.status only pays attention to the cache file if you give it |
|
| 3880 | # the --recheck option to rerun configure. |
|
| 3881 | # |
|
| 3882 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
| 3883 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
| 3884 | # following values. |
|
| 3885 | ||
| 3886 | _ACEOF |
|
| 3887 | ||
| 3888 | 1 | # The following way of writing the cache mishandles newlines in values, |
| 3889 | # but we know of no workaround that is simple, portable, and efficient. |
|
| 3890 | 20 | # So, we kill variables containing newlines. |
| 3891 | 1 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 3892 | # and sets the high bit in the cache file unless we assign to the vars. |
|
| 3893 | 20 | ( |
| 3894 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
| 3895 | eval ac_val=\$$ac_var |
|
| 3896 | case $ac_val in #( |
|
| 3897 | *${as_nl}*)
|
|
| 3898 | case $ac_var in #( |
|
| 3899 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
| 3900 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
| 3901 | esac |
|
| 3902 | case $ac_var in #( |
|
| 3903 | _ | IFS | as_nl) ;; #( |
|
| 3904 | *) $as_unset $ac_var ;; |
|
| 3905 | esac ;; |
|
| 3906 | esac |
|
| 3907 | done |
|
| 3908 | ||
| 3909 | 3 | (set) 2>&1 | |
| 3910 | 20 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 3911 | *${as_nl}ac_space=\ *)
|
|
| 3912 | 3 | # `set' does not quote correctly, so add quotes (double-quote |
| 3913 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
|
| 3914 | sed -n \ |
|
| 3915 | 12 | "s/'/'\\\\''/g; |
| 3916 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
| 3917 | 20 | ;; #( |
| 3918 | 3 | *) |
| 3919 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
| 3920 | 20 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3921 | 3 | ;; |
| 3922 | 20 | esac | |
| 3923 | sort |
|
| 3924 | ) | |
|
| 3925 | 3 | sed ' |
| 3926 | 20 | /^ac_cv_env_/b end |
| 3927 | 3 | t clear |
| 3928 | 20 | :clear |
| 3929 | 3 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
| 3930 | t end |
|
| 3931 | 20 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
| 3932 | :end' >>confcache |
|
| 3933 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
| 3934 | if test -w "$cache_file"; then |
|
| 3935 | test "x$cache_file" != "x/dev/null" && |
|
| 3936 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
|
| 3937 | echo "$as_me: updating cache $cache_file" >&6;} |
|
| 3938 | 3 | cat confcache >$cache_file |
| 3939 | 1 | else |
| 3940 | 20 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
| 3941 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
| 3942 | 1 | fi |
| 3943 | fi |
|
| 3944 | rm -f confcache |
|
| 3945 | ||
| 3946 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
| 3947 | # Let make expand exec_prefix. |
|
| 3948 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
| 3949 | ||
| 3950 | 13 | DEFS=-DHAVE_CONFIG_H |
| 3951 | 3 | |
| 3952 | ac_libobjs= |
|
| 3953 | ac_ltlibobjs= |
|
| 3954 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
| 3955 | # 1. Remove the extension, and $U if already installed. |
|
| 3956 | 20 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 3957 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
|
| 3958 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
| 3959 | # will be set to the directory where LIBOBJS objects are built. |
|
| 3960 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
| 3961 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
| 3962 | 3 | done |
| 3963 | LIBOBJS=$ac_libobjs |
|
| 3964 | ||
| 3965 | LTLIBOBJS=$ac_ltlibobjs |
|
| 3966 | ||
| 3967 | ||
| 3968 | ||
| 3969 | 1 | : ${CONFIG_STATUS=./config.status}
|
| 3970 | 3 | ac_clean_files_save=$ac_clean_files |
| 3971 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
| 3972 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
|
| 3973 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
| 3974 | cat >$CONFIG_STATUS <<_ACEOF |
|
| 3975 | #! $SHELL |
|
| 3976 | # Generated by $as_me. |
|
| 3977 | 1 | # Run this file to recreate the current configuration. |
| 3978 | # Compiler output produced by configure, useful for debugging |
|
| 3979 | 3 | # configure, is in config.log if it exists. |
| 3980 | ||
| 3981 | debug=false |
|
| 3982 | 4 | ac_cs_recheck=false |
| 3983 | ac_cs_silent=false |
|
| 3984 | 3 | SHELL=\${CONFIG_SHELL-$SHELL}
|
| 3985 | _ACEOF |
|
| 3986 | ||
| 3987 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 3988 | ## --------------------- ## |
|
| 3989 | ## M4sh Initialization. ## |
|
| 3990 | ## --------------------- ## |
|
| 3991 | ||
| 3992 | 20 | # Be more Bourne compatible |
| 3993 | DUALCASE=1; export DUALCASE # for MKS sh |
|
| 3994 | 3 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
| 3995 | emulate sh |
|
| 3996 | NULLCMD=: |
|
| 3997 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
| 3998 | # is contrary to our usage. Disable this feature. |
|
| 3999 | alias -g '${1+"$@"}'='"$@"'
|
|
| 4000 | 20 | setopt NO_GLOB_SUBST |
| 4001 | else |
|
| 4002 | case `(set -o) 2>/dev/null` in |
|
| 4003 | *posix*) set -o posix ;; |
|
| 4004 | esac |
|
| 4005 | ||
| 4006 | fi |
|
| 4007 | ||
| 4008 | ||
| 4009 | ||
| 4010 | ||
| 4011 | # PATH needs CR |
|
| 4012 | # Avoid depending upon Character Ranges. |
|
| 4013 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
| 4014 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
| 4015 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
| 4016 | as_cr_digits='0123456789' |
|
| 4017 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
| 4018 | ||
| 4019 | # The user is always right. |
|
| 4020 | if test "${PATH_SEPARATOR+set}" != set; then
|
|
| 4021 | echo "#! /bin/sh" >conf$$.sh |
|
| 4022 | echo "exit 0" >>conf$$.sh |
|
| 4023 | chmod +x conf$$.sh |
|
| 4024 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
| 4025 | PATH_SEPARATOR=';' |
|
| 4026 | else |
|
| 4027 | PATH_SEPARATOR=: |
|
| 4028 | fi |
|
| 4029 | rm -f conf$$.sh |
|
| 4030 | fi |
|
| 4031 | 3 | |
| 4032 | # Support unset when possible. |
|
| 4033 | 12 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4034 | 3 | as_unset=unset |
| 4035 | else |
|
| 4036 | as_unset=false |
|
| 4037 | fi |
|
| 4038 | ||
| 4039 | ||
| 4040 | 20 | # IFS |
| 4041 | # We need space, tab and new line, in precisely that order. Quoting is |
|
| 4042 | # there to prevent editors from complaining about space-tab. |
|
| 4043 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
| 4044 | # splitting by setting IFS to empty value.) |
|
| 4045 | as_nl=' |
|
| 4046 | ' |
|
| 4047 | IFS=" "" $as_nl" |
|
| 4048 | ||
| 4049 | # Find who we are. Look in the path if we contain no directory separator. |
|
| 4050 | case $0 in |
|
| 4051 | *[\\/]* ) as_myself=$0 ;; |
|
| 4052 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
| 4053 | for as_dir in $PATH |
|
| 4054 | do |
|
| 4055 | IFS=$as_save_IFS |
|
| 4056 | test -z "$as_dir" && as_dir=. |
|
| 4057 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
| 4058 | done |
|
| 4059 | IFS=$as_save_IFS |
|
| 4060 | ||
| 4061 | ;; |
|
| 4062 | esac |
|
| 4063 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
| 4064 | # in which case we are not to be found in the path. |
|
| 4065 | if test "x$as_myself" = x; then |
|
| 4066 | as_myself=$0 |
|
| 4067 | fi |
|
| 4068 | if test ! -f "$as_myself"; then |
|
| 4069 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
| 4070 | { (exit 1); exit 1; }
|
|
| 4071 | fi |
|
| 4072 | ||
| 4073 | 3 | # Work around bugs in pre-3.0 UWIN ksh. |
| 4074 | 20 | for as_var in ENV MAIL MAILPATH |
| 4075 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
| 4076 | done |
|
| 4077 | 3 | PS1='$ ' |
| 4078 | PS2='> ' |
|
| 4079 | PS4='+ ' |
|
| 4080 | ||
| 4081 | # NLS nuisances. |
|
| 4082 | 4 | for as_var in \ |
| 4083 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
| 4084 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
| 4085 | LC_TELEPHONE LC_TIME |
|
| 4086 | 3 | do |
| 4087 | 12 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 4088 | 3 | eval $as_var=C; export $as_var |
| 4089 | else |
|
| 4090 | 20 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 4091 | 3 | fi |
| 4092 | done |
|
| 4093 | ||
| 4094 | # Required to use basename. |
|
| 4095 | 20 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 4096 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
| 4097 | 3 | as_expr=expr |
| 4098 | else |
|
| 4099 | as_expr=false |
|
| 4100 | fi |
|
| 4101 | ||
| 4102 | 20 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 4103 | 3 | as_basename=basename |
| 4104 | else |
|
| 4105 | as_basename=false |
|
| 4106 | fi |
|
| 4107 | ||
| 4108 | ||
| 4109 | # Name of the executable. |
|
| 4110 | 20 | as_me=`$as_basename -- "$0" || |
| 4111 | 3 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 4112 | X"$0" : 'X\(//\)$' \| \ |
|
| 4113 | 20 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 4114 | 3 | echo X/"$0" | |
| 4115 | 20 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
| 4116 | s//\1/ |
|
| 4117 | q |
|
| 4118 | } |
|
| 4119 | /^X\/\(\/\/\)$/{
|
|
| 4120 | s//\1/ |
|
| 4121 | q |
|
| 4122 | } |
|
| 4123 | /^X\/\(\/\).*/{
|
|
| 4124 | s//\1/ |
|
| 4125 | q |
|
| 4126 | } |
|
| 4127 | s/.*/./; q'` |
|
| 4128 | ||
| 4129 | # CDPATH. |
|
| 4130 | $as_unset CDPATH |
|
| 4131 | ||
| 4132 | ||
| 4133 | ||
| 4134 | as_lineno_1=$LINENO |
|
| 4135 | as_lineno_2=$LINENO |
|
| 4136 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
| 4137 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
| 4138 | 3 | |
| 4139 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
| 4140 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
| 4141 | 20 | # line-number line after each line using $LINENO; the second 'sed' |
| 4142 | # does the real work. The second script uses 'N' to pair each |
|
| 4143 | # line-number line with the line containing $LINENO, and appends |
|
| 4144 | # trailing '-' during substitution so that $LINENO is not a special |
|
| 4145 | # case at line end. |
|
| 4146 | 3 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 4147 | 20 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 4148 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
| 4149 | sed -n ' |
|
| 4150 | p |
|
| 4151 | /[$]LINENO/= |
|
| 4152 | ' <$as_myself | |
|
| 4153 | 3 | sed ' |
| 4154 | 20 | s/[$]LINENO.*/&-/ |
| 4155 | t lineno |
|
| 4156 | b |
|
| 4157 | :lineno |
|
| 4158 | 3 | N |
| 4159 | 20 | :loop |
| 4160 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
| 4161 | 3 | t loop |
| 4162 | 20 | s/-\n.*// |
| 4163 | 3 | ' >$as_me.lineno && |
| 4164 | 20 | chmod +x "$as_me.lineno" || |
| 4165 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
| 4166 | 3 | { (exit 1); exit 1; }; }
|
| 4167 | ||
| 4168 | # Don't try to exec as it changes $[0], causing all sort of problems |
|
| 4169 | # (the dirname of $[0] is not the place where we might find the |
|
| 4170 | 20 | # original and so on. Autoconf is especially sensitive to this). |
| 4171 | . "./$as_me.lineno" |
|
| 4172 | 3 | # Exit status is that of the last command. |
| 4173 | exit |
|
| 4174 | } |
|
| 4175 | ||
| 4176 | ||
| 4177 | 20 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 4178 | as_dirname=dirname |
|
| 4179 | else |
|
| 4180 | as_dirname=false |
|
| 4181 | fi |
|
| 4182 | ||
| 4183 | ECHO_C= ECHO_N= ECHO_T= |
|
| 4184 | case `echo -n x` in |
|
| 4185 | -n*) |
|
| 4186 | case `echo 'x\c'` in |
|
| 4187 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
| 4188 | *) ECHO_C='\c';; |
|
| 4189 | esac;; |
|
| 4190 | *) |
|
| 4191 | ECHO_N='-n';; |
|
| 4192 | 3 | esac |
| 4193 | ||
| 4194 | 20 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 4195 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
| 4196 | 3 | as_expr=expr |
| 4197 | else |
|
| 4198 | as_expr=false |
|
| 4199 | fi |
|
| 4200 | ||
| 4201 | rm -f conf$$ conf$$.exe conf$$.file |
|
| 4202 | 20 | if test -d conf$$.dir; then |
| 4203 | rm -f conf$$.dir/conf$$.file |
|
| 4204 | else |
|
| 4205 | rm -f conf$$.dir |
|
| 4206 | mkdir conf$$.dir |
|
| 4207 | fi |
|
| 4208 | 3 | echo >conf$$.file |
| 4209 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
| 4210 | 20 | as_ln_s='ln -s' |
| 4211 | # ... but there are two gotchas: |
|
| 4212 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
| 4213 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
| 4214 | # In both cases, we have to default to `cp -p'. |
|
| 4215 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
| 4216 | 3 | as_ln_s='cp -p' |
| 4217 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|
| 4218 | as_ln_s=ln |
|
| 4219 | else |
|
| 4220 | as_ln_s='cp -p' |
|
| 4221 | fi |
|
| 4222 | 20 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 4223 | rmdir conf$$.dir 2>/dev/null |
|
| 4224 | 3 | |
| 4225 | if mkdir -p . 2>/dev/null; then |
|
| 4226 | as_mkdir_p=: |
|
| 4227 | else |
|
| 4228 | 12 | test -d ./-p && rmdir ./-p |
| 4229 | 3 | as_mkdir_p=false |
| 4230 | fi |
|
| 4231 | ||
| 4232 | 20 | if test -x / >/dev/null 2>&1; then |
| 4233 | as_test_x='test -x' |
|
| 4234 | else |
|
| 4235 | if ls -dL / >/dev/null 2>&1; then |
|
| 4236 | as_ls_L_option=L |
|
| 4237 | else |
|
| 4238 | as_ls_L_option= |
|
| 4239 | fi |
|
| 4240 | as_test_x=' |
|
| 4241 | eval sh -c '\'' |
|
| 4242 | if test -d "$1"; then |
|
| 4243 | test -d "$1/."; |
|
| 4244 | else |
|
| 4245 | case $1 in |
|
| 4246 | -*)set "./$1";; |
|
| 4247 | esac; |
|
| 4248 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
| 4249 | ???[sx]*):;;*)false;;esac;fi |
|
| 4250 | '\'' sh |
|
| 4251 | ' |
|
| 4252 | fi |
|
| 4253 | as_executable_p=$as_test_x |
|
| 4254 | 3 | |
| 4255 | # Sed expression to map a string onto a valid CPP name. |
|
| 4256 | 12 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 4257 | 3 | |
| 4258 | # Sed expression to map a string onto a valid variable name. |
|
| 4259 | 12 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 4260 | 3 | |
| 4261 | ||
| 4262 | exec 6>&1 |
|
| 4263 | ||
| 4264 | 20 | # Save the log message, to keep $[0] and so on meaningful, and to |
| 4265 | 3 | # report actual input values of CONFIG_FILES etc. instead of their |
| 4266 | 20 | # values after options handling. |
| 4267 | ac_log=" |
|
| 4268 | 3 | This file was extended by $as_me, which was |
| 4269 | 20 | generated by GNU Autoconf 2.61. Invocation command line was |
| 4270 | 3 | |
| 4271 | CONFIG_FILES = $CONFIG_FILES |
|
| 4272 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
| 4273 | CONFIG_LINKS = $CONFIG_LINKS |
|
| 4274 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
| 4275 | $ $0 $@ |
|
| 4276 | ||
| 4277 | 20 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 4278 | " |
|
| 4279 | ||
| 4280 | 3 | _ACEOF |
| 4281 | ||
| 4282 | 20 | cat >>$CONFIG_STATUS <<_ACEOF |
| 4283 | 3 | # Files that config.status was made for. |
| 4284 | 20 | config_files="$ac_config_files" |
| 4285 | config_headers="$ac_config_headers" |
|
| 4286 | ||
| 4287 | _ACEOF |
|
| 4288 | 3 | |
| 4289 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 4290 | ac_cs_usage="\ |
|
| 4291 | \`$as_me' instantiates files from templates according to the |
|
| 4292 | current configuration. |
|
| 4293 | ||
| 4294 | Usage: $0 [OPTIONS] [FILE]... |
|
| 4295 | ||
| 4296 | -h, --help print this help, then exit |
|
| 4297 | 20 | -V, --version print version number and configuration settings, then exit |
| 4298 | 4 | -q, --quiet do not print progress messages |
| 4299 | 3 | -d, --debug don't remove temporary files |
| 4300 | --recheck update $as_me by reconfiguring in the same conditions |
|
| 4301 | --file=FILE[:TEMPLATE] |
|
| 4302 | 12 | instantiate the configuration file FILE |
| 4303 | 13 | --header=FILE[:TEMPLATE] |
| 4304 | instantiate the configuration header FILE |
|
| 4305 | 3 | |
| 4306 | Configuration files: |
|
| 4307 | $config_files |
|
| 4308 | ||
| 4309 | 13 | Configuration headers: |
| 4310 | $config_headers |
|
| 4311 | ||
| 4312 | 3 | Report bugs to <bug-autoconf@gnu.org>." |
| 4313 | 20 | |
| 4314 | 3 | _ACEOF |
| 4315 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4316 | ac_cs_version="\\ |
|
| 4317 | config.status |
|
| 4318 | 20 | configured by $0, generated by GNU Autoconf 2.61, |
| 4319 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
| 4320 | 3 | |
| 4321 | 20 | Copyright (C) 2006 Free Software Foundation, Inc. |
| 4322 | 3 | This config.status script is free software; the Free Software Foundation |
| 4323 | gives unlimited permission to copy, distribute and modify it." |
|
| 4324 | 20 | |
| 4325 | ac_pwd='$ac_pwd' |
|
| 4326 | srcdir='$srcdir' |
|
| 4327 | 3 | _ACEOF |
| 4328 | ||
| 4329 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 4330 | # If no file are specified by the user, then we need to provide default |
|
| 4331 | # value. By we need to know if files were specified by the user. |
|
| 4332 | ac_need_defaults=: |
|
| 4333 | while test $# != 0 |
|
| 4334 | do |
|
| 4335 | case $1 in |
|
| 4336 | --*=*) |
|
| 4337 | 20 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 4338 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
| 4339 | 3 | ac_shift=: |
| 4340 | ;; |
|
| 4341 | 20 | *) |
| 4342 | 3 | ac_option=$1 |
| 4343 | ac_optarg=$2 |
|
| 4344 | ac_shift=shift |
|
| 4345 | ;; |
|
| 4346 | esac |
|
| 4347 | ||
| 4348 | case $ac_option in |
|
| 4349 | # Handling of the options. |
|
| 4350 | 1 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4351 | 4 | ac_cs_recheck=: ;; |
| 4352 | 20 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 4353 | echo "$ac_cs_version"; exit ;; |
|
| 4354 | --debug | --debu | --deb | --de | --d | -d ) |
|
| 4355 | 3 | debug=: ;; |
| 4356 | --file | --fil | --fi | --f ) |
|
| 4357 | $ac_shift |
|
| 4358 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
| 4359 | ac_need_defaults=false;; |
|
| 4360 | --header | --heade | --head | --hea ) |
|
| 4361 | $ac_shift |
|
| 4362 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
| 4363 | ac_need_defaults=false;; |
|
| 4364 | 20 | --he | --h) |
| 4365 | # Conflict between --help and --header |
|
| 4366 | { echo "$as_me: error: ambiguous option: $1
|
|
| 4367 | Try \`$0 --help' for more information." >&2 |
|
| 4368 | { (exit 1); exit 1; }; };;
|
|
| 4369 | --help | --hel | -h ) |
|
| 4370 | echo "$ac_cs_usage"; exit ;; |
|
| 4371 | 4 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 4372 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
| 4373 | ac_cs_silent=: ;; |
|
| 4374 | 3 | |
| 4375 | # This is an error. |
|
| 4376 | 20 | -*) { echo "$as_me: error: unrecognized option: $1
|
| 4377 | Try \`$0 --help' for more information." >&2 |
|
| 4378 | 3 | { (exit 1); exit 1; }; } ;;
|
| 4379 | ||
| 4380 | 20 | *) ac_config_targets="$ac_config_targets $1" |
| 4381 | ac_need_defaults=false ;; |
|
| 4382 | 3 | |
| 4383 | esac |
|
| 4384 | shift |
|
| 4385 | done |
|
| 4386 | ||
| 4387 | 4 | ac_configure_extra_args= |
| 4388 | ||
| 4389 | if $ac_cs_silent; then |
|
| 4390 | exec 6>/dev/null |
|
| 4391 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
| 4392 | fi |
|
| 4393 | ||
| 4394 | _ACEOF |
|
| 4395 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4396 | if \$ac_cs_recheck; then |
|
| 4397 | 20 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 4398 | CONFIG_SHELL=$SHELL |
|
| 4399 | export CONFIG_SHELL |
|
| 4400 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
| 4401 | 4 | fi |
| 4402 | ||
| 4403 | 3 | _ACEOF |
| 4404 | 20 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4405 | exec 5>>config.log |
|
| 4406 | {
|
|
| 4407 | echo |
|
| 4408 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
| 4409 | ## Running $as_me. ## |
|
| 4410 | _ASBOX |
|
| 4411 | echo "$ac_log" |
|
| 4412 | } >&5 |
|
| 4413 | ||
| 4414 | _ACEOF |
|
| 4415 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4416 | _ACEOF |
|
| 4417 | ||
| 4418 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 4419 | ||
| 4420 | # Handling of arguments. |
|
| 4421 | 3 | for ac_config_target in $ac_config_targets |
| 4422 | do |
|
| 4423 | 20 | case $ac_config_target in |
| 4424 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
| 4425 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
| 4426 | ||
| 4427 | 3 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
| 4428 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
| 4429 | { (exit 1); exit 1; }; };;
|
|
| 4430 | esac |
|
| 4431 | done |
|
| 4432 | ||
| 4433 | 20 | |
| 4434 | 3 | # If the user did not use the arguments to specify the items to instantiate, |
| 4435 | # then the envvar interface is used. Set only those that are not. |
|
| 4436 | # We use the long form for the default assignment because of an extremely |
|
| 4437 | # bizarre bug on SunOS 4.1.3. |
|
| 4438 | if $ac_need_defaults; then |
|
| 4439 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
| 4440 | 13 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
| 4441 | 3 | fi |
| 4442 | ||
| 4443 | 4 | # Have a temporary directory for convenience. Make it in the build tree |
| 4444 | 20 | # simply because there is no reason against having it here, and in addition, |
| 4445 | 4 | # creating and moving files from /tmp can sometimes cause problems. |
| 4446 | 20 | # Hook for its removal unless debugging. |
| 4447 | # Note that there is a small window in which the directory will not be cleaned: |
|
| 4448 | # after its creation but before its name has been assigned to `$tmp'. |
|
| 4449 | 3 | $debug || |
| 4450 | {
|
|
| 4451 | 20 | tmp= |
| 4452 | trap 'exit_status=$? |
|
| 4453 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
|
| 4454 | ' 0 |
|
| 4455 | 3 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
| 4456 | } |
|
| 4457 | # Create a (secure) tmp directory for tmp files. |
|
| 4458 | 4 | |
| 4459 | 3 | {
|
| 4460 | 20 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 4461 | 3 | test -n "$tmp" && test -d "$tmp" |
| 4462 | } || |
|
| 4463 | {
|
|
| 4464 | 20 | tmp=./conf$$-$RANDOM |
| 4465 | (umask 077 && mkdir "$tmp") |
|
| 4466 | 3 | } || |
| 4467 | {
|
|
| 4468 | 4 | echo "$me: cannot create a temporary directory in ." >&2 |
| 4469 | 3 | { (exit 1); exit 1; }
|
| 4470 | } |
|
| 4471 | ||
| 4472 | # |
|
| 4473 | 20 | # Set up the sed scripts for CONFIG_FILES section. |
| 4474 | 3 | # |
| 4475 | ||
| 4476 | # No need to generate the scripts if there are no CONFIG_FILES. |
|
| 4477 | # This happens for instance when ./config.status config.h |
|
| 4478 | 20 | if test -n "$CONFIG_FILES"; then |
| 4479 | ||
| 4480 | _ACEOF |
|
| 4481 | ||
| 4482 | ||
| 4483 | ||
| 4484 | ac_delim='%!_!# ' |
|
| 4485 | for ac_last_try in false false false false false :; do |
|
| 4486 | cat >conf$$subs.sed <<_ACEOF |
|
| 4487 | SHELL!$SHELL$ac_delim |
|
| 4488 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
| 4489 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
|
| 4490 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
|
| 4491 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
|
| 4492 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
|
| 4493 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
|
| 4494 | exec_prefix!$exec_prefix$ac_delim |
|
| 4495 | prefix!$prefix$ac_delim |
|
| 4496 | program_transform_name!$program_transform_name$ac_delim |
|
| 4497 | bindir!$bindir$ac_delim |
|
| 4498 | sbindir!$sbindir$ac_delim |
|
| 4499 | libexecdir!$libexecdir$ac_delim |
|
| 4500 | datarootdir!$datarootdir$ac_delim |
|
| 4501 | datadir!$datadir$ac_delim |
|
| 4502 | sysconfdir!$sysconfdir$ac_delim |
|
| 4503 | sharedstatedir!$sharedstatedir$ac_delim |
|
| 4504 | localstatedir!$localstatedir$ac_delim |
|
| 4505 | includedir!$includedir$ac_delim |
|
| 4506 | oldincludedir!$oldincludedir$ac_delim |
|
| 4507 | docdir!$docdir$ac_delim |
|
| 4508 | infodir!$infodir$ac_delim |
|
| 4509 | htmldir!$htmldir$ac_delim |
|
| 4510 | dvidir!$dvidir$ac_delim |
|
| 4511 | pdfdir!$pdfdir$ac_delim |
|
| 4512 | psdir!$psdir$ac_delim |
|
| 4513 | libdir!$libdir$ac_delim |
|
| 4514 | localedir!$localedir$ac_delim |
|
| 4515 | mandir!$mandir$ac_delim |
|
| 4516 | DEFS!$DEFS$ac_delim |
|
| 4517 | ECHO_C!$ECHO_C$ac_delim |
|
| 4518 | ECHO_N!$ECHO_N$ac_delim |
|
| 4519 | ECHO_T!$ECHO_T$ac_delim |
|
| 4520 | LIBS!$LIBS$ac_delim |
|
| 4521 | build_alias!$build_alias$ac_delim |
|
| 4522 | host_alias!$host_alias$ac_delim |
|
| 4523 | target_alias!$target_alias$ac_delim |
|
| 4524 | CC!$CC$ac_delim |
|
| 4525 | CFLAGS!$CFLAGS$ac_delim |
|
| 4526 | LDFLAGS!$LDFLAGS$ac_delim |
|
| 4527 | CPPFLAGS!$CPPFLAGS$ac_delim |
|
| 4528 | ac_ct_CC!$ac_ct_CC$ac_delim |
|
| 4529 | EXEEXT!$EXEEXT$ac_delim |
|
| 4530 | OBJEXT!$OBJEXT$ac_delim |
|
| 4531 | CPP!$CPP$ac_delim |
|
| 4532 | GREP!$GREP$ac_delim |
|
| 4533 | EGREP!$EGREP$ac_delim |
|
| 4534 | APXS!$APXS$ac_delim |
|
| 4535 | TARGET!$TARGET$ac_delim |
|
| 4536 | CPPFLAGS!$CPPFLAGS$ac_delim |
|
| 4537 | LDFLAGS!$LDFLAGS$ac_delim |
|
| 4538 | LIBS!$LIBS$ac_delim |
|
| 4539 | TLS!$TLS$ac_delim |
|
| 4540 | ACTIVATE!$ACTIVATE$ac_delim |
|
| 4541 | LIBOBJS!$LIBOBJS$ac_delim |
|
| 4542 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
| 4543 | _ACEOF |
|
| 4544 | ||
| 4545 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then |
|
| 4546 | break |
|
| 4547 | elif $ac_last_try; then |
|
| 4548 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
|
| 4549 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
| 4550 | { (exit 1); exit 1; }; }
|
|
| 4551 | else |
|
| 4552 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
| 4553 | 3 | fi |
| 4554 | 20 | done |
| 4555 | ||
| 4556 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
| 4557 | if test -n "$ac_eof"; then |
|
| 4558 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
| 4559 | ac_eof=`expr $ac_eof + 1` |
|
| 4560 | fi |
|
| 4561 | ||
| 4562 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4563 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
| 4564 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
| 4565 | _ACEOF |
|
| 4566 | sed ' |
|
| 4567 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
| 4568 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
| 4569 | :n |
|
| 4570 | t n |
|
| 4571 | s/'"$ac_delim"'$/,g/; t |
|
| 4572 | s/$/\\/; p |
|
| 4573 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
| 4574 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
| 4575 | rm -f conf$$subs.sed |
|
| 4576 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4577 | :end |
|
| 4578 | s/|#_!!_#|//g |
|
| 4579 | CEOF$ac_eof |
|
| 4580 | _ACEOF |
|
| 4581 | ||
| 4582 | ||
| 4583 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
| 4584 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
|
| 4585 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
| 4586 | # (actually we leave an empty line to preserve line numbers). |
|
| 4587 | if test "x$srcdir" = x.; then |
|
| 4588 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
|
| 4589 | s/:*\$(srcdir):*/:/ |
|
| 4590 | s/:*\${srcdir}:*/:/
|
|
| 4591 | s/:*@srcdir@:*/:/ |
|
| 4592 | s/^\([^=]*=[ ]*\):*/\1/ |
|
| 4593 | s/:*$// |
|
| 4594 | s/^[^=]*=[ ]*$// |
|
| 4595 | }' |
|
| 4596 | fi |
|
| 4597 | ||
| 4598 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 4599 | 3 | fi # test -n "$CONFIG_FILES" |
| 4600 | ||
| 4601 | 20 | |
| 4602 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
|
| 4603 | do |
|
| 4604 | case $ac_tag in |
|
| 4605 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
| 4606 | esac |
|
| 4607 | case $ac_mode$ac_tag in |
|
| 4608 | :[FHL]*:*);; |
|
| 4609 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
|
| 4610 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
| 4611 | { (exit 1); exit 1; }; };;
|
|
| 4612 | :[FH]-) ac_tag=-:-;; |
|
| 4613 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
| 4614 | esac |
|
| 4615 | ac_save_IFS=$IFS |
|
| 4616 | IFS=: |
|
| 4617 | set x $ac_tag |
|
| 4618 | IFS=$ac_save_IFS |
|
| 4619 | shift |
|
| 4620 | ac_file=$1 |
|
| 4621 | shift |
|
| 4622 | ||
| 4623 | case $ac_mode in |
|
| 4624 | :L) ac_source=$1;; |
|
| 4625 | :[FH]) |
|
| 4626 | ac_file_inputs= |
|
| 4627 | for ac_f |
|
| 4628 | do |
|
| 4629 | case $ac_f in |
|
| 4630 | -) ac_f="$tmp/stdin";; |
|
| 4631 | *) # Look for the file first in the build tree, then in the source tree |
|
| 4632 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
| 4633 | # because $ac_f cannot contain `:'. |
|
| 4634 | test -f "$ac_f" || |
|
| 4635 | case $ac_f in |
|
| 4636 | [\\/$]*) false;; |
|
| 4637 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
| 4638 | esac || |
|
| 4639 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
|
| 4640 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
| 4641 | { (exit 1); exit 1; }; };;
|
|
| 4642 | esac |
|
| 4643 | ac_file_inputs="$ac_file_inputs $ac_f" |
|
| 4644 | done |
|
| 4645 | ||
| 4646 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
| 4647 | # use $as_me), people would be surprised to read: |
|
| 4648 | # /* config.h. Generated by config.status. */ |
|
| 4649 | configure_input="Generated from "`IFS=: |
|
| 4650 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
| 4651 | if test x"$ac_file" != x-; then |
|
| 4652 | configure_input="$ac_file. $configure_input" |
|
| 4653 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
|
| 4654 | echo "$as_me: creating $ac_file" >&6;} |
|
| 4655 | fi |
|
| 4656 | ||
| 4657 | case $ac_tag in |
|
| 4658 | *:-:* | *:-) cat >"$tmp/stdin";; |
|
| 4659 | esac |
|
| 4660 | ;; |
|
| 4661 | esac |
|
| 4662 | ||
| 4663 | ac_dir=`$as_dirname -- "$ac_file" || |
|
| 4664 | 3 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4665 | 12 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 4666 | X"$ac_file" : 'X\(//\)$' \| \ |
|
| 4667 | 20 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 4668 | 3 | echo X"$ac_file" | |
| 4669 | 20 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
| 4670 | s//\1/ |
|
| 4671 | q |
|
| 4672 | } |
|
| 4673 | /^X\(\/\/\)[^/].*/{
|
|
| 4674 | s//\1/ |
|
| 4675 | q |
|
| 4676 | } |
|
| 4677 | /^X\(\/\/\)$/{
|
|
| 4678 | s//\1/ |
|
| 4679 | q |
|
| 4680 | } |
|
| 4681 | /^X\(\/\).*/{
|
|
| 4682 | s//\1/ |
|
| 4683 | q |
|
| 4684 | } |
|
| 4685 | s/.*/./; q'` |
|
| 4686 | { as_dir="$ac_dir"
|
|
| 4687 | case $as_dir in #( |
|
| 4688 | -*) as_dir=./$as_dir;; |
|
| 4689 | esac |
|
| 4690 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
|
| 4691 | 3 | as_dirs= |
| 4692 | 20 | while :; do |
| 4693 | case $as_dir in #( |
|
| 4694 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
| 4695 | *) as_qdir=$as_dir;; |
|
| 4696 | esac |
|
| 4697 | as_dirs="'$as_qdir' $as_dirs" |
|
| 4698 | as_dir=`$as_dirname -- "$as_dir" || |
|
| 4699 | 3 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4700 | 12 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 4701 | X"$as_dir" : 'X\(//\)$' \| \ |
|
| 4702 | 20 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 4703 | 3 | echo X"$as_dir" | |
| 4704 | 20 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
| 4705 | s//\1/ |
|
| 4706 | q |
|
| 4707 | } |
|
| 4708 | /^X\(\/\/\)[^/].*/{
|
|
| 4709 | s//\1/ |
|
| 4710 | q |
|
| 4711 | } |
|
| 4712 | /^X\(\/\/\)$/{
|
|
| 4713 | s//\1/ |
|
| 4714 | q |
|
| 4715 | } |
|
| 4716 | /^X\(\/\).*/{
|
|
| 4717 | s//\1/ |
|
| 4718 | q |
|
| 4719 | } |
|
| 4720 | s/.*/./; q'` |
|
| 4721 | test -d "$as_dir" && break |
|
| 4722 | 3 | done |
| 4723 | 20 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 4724 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
|
| 4725 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
| 4726 | 3 | { (exit 1); exit 1; }; }; }
|
| 4727 | ac_builddir=. |
|
| 4728 | ||
| 4729 | 20 | case "$ac_dir" in |
| 4730 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
| 4731 | *) |
|
| 4732 | 3 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 4733 | 20 | # A ".." for each directory in $ac_dir_suffix. |
| 4734 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
| 4735 | case $ac_top_builddir_sub in |
|
| 4736 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
| 4737 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
| 4738 | esac ;; |
|
| 4739 | esac |
|
| 4740 | ac_abs_top_builddir=$ac_pwd |
|
| 4741 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
| 4742 | # for backward compatibility: |
|
| 4743 | ac_top_builddir=$ac_top_build_prefix |
|
| 4744 | 3 | |
| 4745 | case $srcdir in |
|
| 4746 | 20 | .) # We are building in place. |
| 4747 | 3 | ac_srcdir=. |
| 4748 | 20 | ac_top_srcdir=$ac_top_builddir_sub |
| 4749 | ac_abs_top_srcdir=$ac_pwd ;; |
|
| 4750 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|
| 4751 | 3 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 4752 | 20 | ac_top_srcdir=$srcdir |
| 4753 | ac_abs_top_srcdir=$srcdir ;; |
|
| 4754 | *) # Relative name. |
|
| 4755 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
| 4756 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
| 4757 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
| 4758 | esac |
|
| 4759 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
| 4760 | ||
| 4761 | ||
| 4762 | case $ac_mode in |
|
| 4763 | :F) |
|
| 4764 | # |
|
| 4765 | # CONFIG_FILE |
|
| 4766 | # |
|
| 4767 | ||
| 4768 | _ACEOF |
|
| 4769 | ||
| 4770 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 4771 | # If the template does not know about datarootdir, expand it. |
|
| 4772 | # FIXME: This hack should be removed a few years after 2.60. |
|
| 4773 | ac_datarootdir_hack=; ac_datarootdir_seen= |
|
| 4774 | ||
| 4775 | case `sed -n '/datarootdir/ {
|
|
| 4776 | p |
|
| 4777 | q |
|
| 4778 | } |
|
| 4779 | /@datadir@/p |
|
| 4780 | /@docdir@/p |
|
| 4781 | /@infodir@/p |
|
| 4782 | /@localedir@/p |
|
| 4783 | /@mandir@/p |
|
| 4784 | ' $ac_file_inputs` in |
|
| 4785 | *datarootdir*) ac_datarootdir_seen=yes;; |
|
| 4786 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
| 4787 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
| 4788 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
| 4789 | _ACEOF |
|
| 4790 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4791 | ac_datarootdir_hack=' |
|
| 4792 | s&@datadir@&$datadir&g |
|
| 4793 | s&@docdir@&$docdir&g |
|
| 4794 | s&@infodir@&$infodir&g |
|
| 4795 | s&@localedir@&$localedir&g |
|
| 4796 | s&@mandir@&$mandir&g |
|
| 4797 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
| 4798 | esac |
|
| 4799 | _ACEOF |
|
| 4800 | ||
| 4801 | # Neutralize VPATH when `$srcdir' = `.'. |
|
| 4802 | # Shell code in configure.ac might set extrasub. |
|
| 4803 | # FIXME: do we really want to maintain this feature? |
|
| 4804 | 3 | cat >>$CONFIG_STATUS <<_ACEOF |
| 4805 | sed "$ac_vpsub |
|
| 4806 | $extrasub |
|
| 4807 | _ACEOF |
|
| 4808 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
| 4809 | :t |
|
| 4810 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
| 4811 | 20 | s&@configure_input@&$configure_input&;t t |
| 4812 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
| 4813 | s&@srcdir@&$ac_srcdir&;t t |
|
| 4814 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
| 4815 | s&@top_srcdir@&$ac_top_srcdir&;t t |
|
| 4816 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
| 4817 | s&@builddir@&$ac_builddir&;t t |
|
| 4818 | s&@abs_builddir@&$ac_abs_builddir&;t t |
|
| 4819 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
| 4820 | $ac_datarootdir_hack |
|
| 4821 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
|
| 4822 | ||
| 4823 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
| 4824 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
|
| 4825 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
|
| 4826 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
| 4827 | which seems to be undefined. Please make sure it is defined." >&5 |
|
| 4828 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
| 4829 | which seems to be undefined. Please make sure it is defined." >&2;} |
|
| 4830 | ||
| 4831 | rm -f "$tmp/stdin" |
|
| 4832 | case $ac_file in |
|
| 4833 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
|
| 4834 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
|
| 4835 | esac |
|
| 4836 | ;; |
|
| 4837 | :H) |
|
| 4838 | # |
|
| 4839 | # CONFIG_HEADER |
|
| 4840 | # |
|
| 4841 | 3 | _ACEOF |
| 4842 | 20 | |
| 4843 | # Transform confdefs.h into a sed script `conftest.defines', that |
|
| 4844 | # substitutes the proper values into config.h.in to produce config.h. |
|
| 4845 | rm -f conftest.defines conftest.tail |
|
| 4846 | # First, append a space to every undef/define line, to ease matching. |
|
| 4847 | echo 's/$/ /' >conftest.defines |
|
| 4848 | # Then, protect against being on the right side of a sed subst, or in |
|
| 4849 | # an unquoted here document, in config.status. If some macros were |
|
| 4850 | # called several times there might be several #defines for the same |
|
| 4851 | # symbol, which is useless. But do not sort them, since the last |
|
| 4852 | # AC_DEFINE must be honored. |
|
| 4853 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
| 4854 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
| 4855 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
| 4856 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
|
| 4857 | # just an empty string. |
|
| 4858 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
| 4859 | ac_dB='\\)[ (].*,\\1define\\2' |
|
| 4860 | 13 | ac_dC=' ' |
| 4861 | 20 | ac_dD=' ,' |
| 4862 | ||
| 4863 | uniq confdefs.h | |
|
| 4864 | sed -n ' |
|
| 4865 | t rset |
|
| 4866 | :rset |
|
| 4867 | s/^[ ]*#[ ]*define[ ][ ]*// |
|
| 4868 | t ok |
|
| 4869 | d |
|
| 4870 | :ok |
|
| 4871 | s/[\\&,]/\\&/g |
|
| 4872 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
|
| 4873 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
|
| 4874 | ' >>conftest.defines |
|
| 4875 | ||
| 4876 | # Remove the space that was appended to ease matching. |
|
| 4877 | # Then replace #undef with comments. This is necessary, for |
|
| 4878 | 13 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 4879 | # on some systems where configure will not decide to define it. |
|
| 4880 | 20 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 4881 | echo 's/ $// |
|
| 4882 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
| 4883 | ||
| 4884 | # Break up conftest.defines: |
|
| 4885 | ac_max_sed_lines=50 |
|
| 4886 | ||
| 4887 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
| 4888 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
| 4889 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
| 4890 | # et cetera. |
|
| 4891 | ac_in='$ac_file_inputs' |
|
| 4892 | ac_out='"$tmp/out1"' |
|
| 4893 | ac_nxt='"$tmp/out2"' |
|
| 4894 | ||
| 4895 | while : |
|
| 4896 | do |
|
| 4897 | # Write a here document: |
|
| 4898 | cat >>$CONFIG_STATUS <<_ACEOF |
|
| 4899 | # First, check the format of the line: |
|
| 4900 | cat >"\$tmp/defines.sed" <<\\CEOF |
|
| 4901 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
| 4902 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
| 4903 | b |
|
| 4904 | :def |
|
| 4905 | 13 | _ACEOF |
| 4906 | 20 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
| 4907 | 13 | echo 'CEOF |
| 4908 | 20 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 4909 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
| 4910 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
|
| 4911 | grep . conftest.tail >/dev/null || break |
|
| 4912 | 13 | rm -f conftest.defines |
| 4913 | mv conftest.tail conftest.defines |
|
| 4914 | done |
|
| 4915 | 20 | rm -f conftest.defines conftest.tail |
| 4916 | ||
| 4917 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
| 4918 | 13 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4919 | if test x"$ac_file" != x-; then |
|
| 4920 | 20 | echo "/* $configure_input */" >"$tmp/config.h" |
| 4921 | cat "$ac_result" >>"$tmp/config.h" |
|
| 4922 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
|
| 4923 | 13 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
| 4924 | echo "$as_me: $ac_file is unchanged" >&6;} |
|
| 4925 | else |
|
| 4926 | rm -f $ac_file |
|
| 4927 | 20 | mv "$tmp/config.h" $ac_file |
| 4928 | 13 | fi |
| 4929 | else |
|
| 4930 | 20 | echo "/* $configure_input */" |
| 4931 | cat "$ac_result" |
|
| 4932 | 13 | fi |
| 4933 | 20 | rm -f "$tmp/out12" |
| 4934 | ;; |
|
| 4935 | ||
| 4936 | ||
| 4937 | esac |
|
| 4938 | ||
| 4939 | done # for ac_tag |
|
| 4940 | ||
| 4941 | 3 | |
| 4942 | { (exit 0); exit 0; }
|
|
| 4943 | _ACEOF |
|
| 4944 | 1 | chmod +x $CONFIG_STATUS |
| 4945 | 3 | ac_clean_files=$ac_clean_files_save |
| 4946 | ||
| 4947 | ||
| 4948 | # configure is writing to config.log, and then calls config.status. |
|
| 4949 | # config.status does its own redirection, appending to config.log. |
|
| 4950 | # Unfortunately, on DOS this fails, as config.log is still kept open |
|
| 4951 | # by configure, so config.status won't be able to write to it; its |
|
| 4952 | # output is simply discarded. So we exec the FD to /dev/null, |
|
| 4953 | # effectively closing config.log, so it can be properly (re)opened and |
|
| 4954 | # appended to by config.status. When coming back to configure, we |
|
| 4955 | # need to make the FD available again. |
|
| 4956 | if test "$no_create" != yes; then |
|
| 4957 | ac_cs_success=: |
|
| 4958 | 4 | ac_config_status_args= |
| 4959 | test "$silent" = yes && |
|
| 4960 | ac_config_status_args="$ac_config_status_args --quiet" |
|
| 4961 | 3 | exec 5>/dev/null |
| 4962 | 4 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 4963 | 3 | exec 5>>config.log |
| 4964 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
| 4965 | # would make configure fail if this is the last instruction. |
|
| 4966 | $ac_cs_success || { (exit 1); exit 1; }
|
|
| 4967 | fi |
|
| 4968 | 1 |
Loggerhead 1.17 is a web-based interface for Bazaar branches