Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 4 | # |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 22 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 27 | fi |
| 28 | |
| 29 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 30 | |
| 31 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 32 | # PATH needs CR |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 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 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 59 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 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 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 81 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 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 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 112 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 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= |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 226 | case $as_dir in |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 227 | /*) |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
| 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 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" || { |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 427 | |
| 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 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 442 | sed ' |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 447 | N |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 450 | t loop |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 451 | s/-\n.*// |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 481 | esac |
| 482 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 505 | as_ln_s='cp -p' |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 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 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 513 | |
| 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
| 516 | else |
| 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
| 519 | fi |
| 520 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
| 523 | else |
| 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
| 541 | fi |
| 542 | as_executable_p=$as_test_x |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
| 550 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 551 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 552 | exec 7<&0 </dev/null 6>&1 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 559 | # |
| 560 | # Initializations. |
| 561 | # |
| 562 | ac_default_prefix=/usr/local |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 563 | ac_clean_files= |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 565 | LIBOBJS= |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
| 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
| 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 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="Makefile.conf.in" |
| 580 | # Factoring default headers for most tests. |
| 581 | ac_includes_default="\ |
| 582 | #include <stdio.h> |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 583 | #ifdef HAVE_SYS_TYPES_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 584 | # include <sys/types.h> |
| 585 | #endif |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_STAT_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 587 | # include <sys/stat.h> |
| 588 | #endif |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 589 | #ifdef STDC_HEADERS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 590 | # include <stdlib.h> |
| 591 | # include <stddef.h> |
| 592 | #else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 593 | # ifdef HAVE_STDLIB_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 594 | # include <stdlib.h> |
| 595 | # endif |
| 596 | #endif |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 597 | #ifdef HAVE_STRING_H |
| 598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 599 | # include <memory.h> |
| 600 | # endif |
| 601 | # include <string.h> |
| 602 | #endif |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 603 | #ifdef HAVE_STRINGS_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 604 | # include <strings.h> |
| 605 | #endif |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 606 | #ifdef HAVE_INTTYPES_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 607 | # include <inttypes.h> |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 608 | #endif |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 609 | #ifdef HAVE_STDINT_H |
| 610 | # include <stdint.h> |
| 611 | #endif |
| 612 | #ifdef HAVE_UNISTD_H |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 613 | # include <unistd.h> |
| 614 | #endif" |
| 615 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 616 | 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 | build |
| 654 | build_cpu |
| 655 | build_vendor |
| 656 | build_os |
| 657 | host |
| 658 | host_cpu |
| 659 | host_vendor |
| 660 | host_os |
| 661 | CC |
| 662 | CFLAGS |
| 663 | LDFLAGS |
| 664 | CPPFLAGS |
| 665 | ac_ct_CC |
| 666 | EXEEXT |
| 667 | OBJEXT |
| 668 | MKDIR |
| 669 | RM |
| 670 | CP |
| 671 | LN |
| 672 | TAR |
| 673 | RPM |
| 674 | SED |
| 675 | FIND |
| 676 | CPP |
| 677 | GREP |
| 678 | EGREP |
| 679 | LD |
| 680 | AS |
| 681 | OBJCOPY |
| 682 | I386_CC |
| 683 | I386_CPP |
| 684 | I386_LD |
| 685 | I386_AS |
| 686 | I386_OBJCOPY |
| 687 | IA64_CC |
| 688 | IA64_CPP |
| 689 | IA64_LD |
| 690 | IA64_AS |
| 691 | IA64_OBJCOPY |
| 692 | HOST_CC |
| 693 | HOST_CFLAGS |
| 694 | I386_CFLAGS |
| 695 | I386_ASFLAGS |
| 696 | I386_LDFLAGS |
| 697 | IA64_CFLAGS |
| 698 | IA64_ASFLAGS |
| 699 | IA64_LDFLAGS |
| 700 | LIBOBJS |
| 701 | LTLIBOBJS' |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 702 | ac_subst_files='' |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 703 | ac_precious_vars='build_alias |
| 704 | host_alias |
| 705 | target_alias |
| 706 | CC |
| 707 | CFLAGS |
| 708 | LDFLAGS |
| 709 | LIBS |
| 710 | CPPFLAGS |
| 711 | CPP' |
| 712 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 713 | |
| 714 | # Initialize some variables set by options. |
| 715 | ac_init_help= |
| 716 | ac_init_version=false |
| 717 | # The variables have the same names as the options, with |
| 718 | # dashes changed to underlines. |
| 719 | cache_file=/dev/null |
| 720 | exec_prefix=NONE |
| 721 | no_create= |
| 722 | no_recursion= |
| 723 | prefix=NONE |
| 724 | program_prefix=NONE |
| 725 | program_suffix=NONE |
| 726 | program_transform_name=s,x,x, |
| 727 | silent= |
| 728 | site= |
| 729 | srcdir= |
| 730 | verbose= |
| 731 | x_includes=NONE |
| 732 | x_libraries=NONE |
| 733 | |
| 734 | # Installation directory options. |
| 735 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 736 | # and all the variables that are supposed to be based on exec_prefix |
| 737 | # by default will actually change. |
| 738 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 739 | # (The list follows the same order as the GNU Coding Standards.) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 740 | bindir='${exec_prefix}/bin' |
| 741 | sbindir='${exec_prefix}/sbin' |
| 742 | libexecdir='${exec_prefix}/libexec' |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 743 | datarootdir='${prefix}/share' |
| 744 | datadir='${datarootdir}' |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 745 | sysconfdir='${prefix}/etc' |
| 746 | sharedstatedir='${prefix}/com' |
| 747 | localstatedir='${prefix}/var' |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 748 | includedir='${prefix}/include' |
| 749 | oldincludedir='/usr/include' |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 750 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 751 | infodir='${datarootdir}/info' |
| 752 | htmldir='${docdir}' |
| 753 | dvidir='${docdir}' |
| 754 | pdfdir='${docdir}' |
| 755 | psdir='${docdir}' |
| 756 | libdir='${exec_prefix}/lib' |
| 757 | localedir='${datarootdir}/locale' |
| 758 | mandir='${datarootdir}/man' |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 759 | |
| 760 | ac_prev= |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 761 | ac_dashdash= |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 762 | for ac_option |
| 763 | do |
| 764 | # If the previous option needs an argument, assign it. |
| 765 | if test -n "$ac_prev"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 766 | eval $ac_prev=\$ac_option |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 767 | ac_prev= |
| 768 | continue |
| 769 | fi |
| 770 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 771 | case $ac_option in |
| 772 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 773 | *) ac_optarg=yes ;; |
| 774 | esac |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 775 | |
| 776 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 777 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 778 | case $ac_dashdash$ac_option in |
| 779 | --) |
| 780 | ac_dashdash=yes ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 781 | |
| 782 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 783 | ac_prev=bindir ;; |
| 784 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 785 | bindir=$ac_optarg ;; |
| 786 | |
| 787 | -build | --build | --buil | --bui | --bu) |
| 788 | ac_prev=build_alias ;; |
| 789 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 790 | build_alias=$ac_optarg ;; |
| 791 | |
| 792 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 793 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 794 | ac_prev=cache_file ;; |
| 795 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 796 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 797 | cache_file=$ac_optarg ;; |
| 798 | |
| 799 | --config-cache | -C) |
| 800 | cache_file=config.cache ;; |
| 801 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 802 | -datadir | --datadir | --datadi | --datad) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 803 | ac_prev=datadir ;; |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 804 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 805 | datadir=$ac_optarg ;; |
| 806 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 807 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 808 | | --dataroo | --dataro | --datar) |
| 809 | ac_prev=datarootdir ;; |
| 810 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 811 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 812 | datarootdir=$ac_optarg ;; |
| 813 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 814 | -disable-* | --disable-*) |
| 815 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 816 | # Reject names that are not valid shell variable names. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 817 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 818 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 819 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 820 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 821 | eval enable_$ac_feature=no ;; |
| 822 | |
| 823 | -docdir | --docdir | --docdi | --doc | --do) |
| 824 | ac_prev=docdir ;; |
| 825 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 826 | docdir=$ac_optarg ;; |
| 827 | |
| 828 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 829 | ac_prev=dvidir ;; |
| 830 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 831 | dvidir=$ac_optarg ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 832 | |
| 833 | -enable-* | --enable-*) |
| 834 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 835 | # Reject names that are not valid shell variable names. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 836 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 837 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 838 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 839 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 840 | eval enable_$ac_feature=\$ac_optarg ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 841 | |
| 842 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 843 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 844 | | --exec | --exe | --ex) |
| 845 | ac_prev=exec_prefix ;; |
| 846 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 847 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 848 | | --exec=* | --exe=* | --ex=*) |
| 849 | exec_prefix=$ac_optarg ;; |
| 850 | |
| 851 | -gas | --gas | --ga | --g) |
| 852 | # Obsolete; use --with-gas. |
| 853 | with_gas=yes ;; |
| 854 | |
| 855 | -help | --help | --hel | --he | -h) |
| 856 | ac_init_help=long ;; |
| 857 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 858 | ac_init_help=recursive ;; |
| 859 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 860 | ac_init_help=short ;; |
| 861 | |
| 862 | -host | --host | --hos | --ho) |
| 863 | ac_prev=host_alias ;; |
| 864 | -host=* | --host=* | --hos=* | --ho=*) |
| 865 | host_alias=$ac_optarg ;; |
| 866 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 867 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 868 | ac_prev=htmldir ;; |
| 869 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 870 | | --ht=*) |
| 871 | htmldir=$ac_optarg ;; |
| 872 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 873 | -includedir | --includedir | --includedi | --included | --include \ |
| 874 | | --includ | --inclu | --incl | --inc) |
| 875 | ac_prev=includedir ;; |
| 876 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 877 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 878 | includedir=$ac_optarg ;; |
| 879 | |
| 880 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 881 | ac_prev=infodir ;; |
| 882 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 883 | infodir=$ac_optarg ;; |
| 884 | |
| 885 | -libdir | --libdir | --libdi | --libd) |
| 886 | ac_prev=libdir ;; |
| 887 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 888 | libdir=$ac_optarg ;; |
| 889 | |
| 890 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 891 | | --libexe | --libex | --libe) |
| 892 | ac_prev=libexecdir ;; |
| 893 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 894 | | --libexe=* | --libex=* | --libe=*) |
| 895 | libexecdir=$ac_optarg ;; |
| 896 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 897 | -localedir | --localedir | --localedi | --localed | --locale) |
| 898 | ac_prev=localedir ;; |
| 899 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 900 | localedir=$ac_optarg ;; |
| 901 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 902 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 903 | | --localstate | --localstat | --localsta | --localst | --locals) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 904 | ac_prev=localstatedir ;; |
| 905 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 906 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 907 | localstatedir=$ac_optarg ;; |
| 908 | |
| 909 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 910 | ac_prev=mandir ;; |
| 911 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 912 | mandir=$ac_optarg ;; |
| 913 | |
| 914 | -nfp | --nfp | --nf) |
| 915 | # Obsolete; use --without-fp. |
| 916 | with_fp=no ;; |
| 917 | |
| 918 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 919 | | --no-cr | --no-c | -n) |
| 920 | no_create=yes ;; |
| 921 | |
| 922 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 923 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 924 | no_recursion=yes ;; |
| 925 | |
| 926 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 927 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 928 | | --oldin | --oldi | --old | --ol | --o) |
| 929 | ac_prev=oldincludedir ;; |
| 930 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 931 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 932 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 933 | oldincludedir=$ac_optarg ;; |
| 934 | |
| 935 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 936 | ac_prev=prefix ;; |
| 937 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 938 | prefix=$ac_optarg ;; |
| 939 | |
| 940 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 941 | | --program-pre | --program-pr | --program-p) |
| 942 | ac_prev=program_prefix ;; |
| 943 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 944 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 945 | program_prefix=$ac_optarg ;; |
| 946 | |
| 947 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 948 | | --program-suf | --program-su | --program-s) |
| 949 | ac_prev=program_suffix ;; |
| 950 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 951 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 952 | program_suffix=$ac_optarg ;; |
| 953 | |
| 954 | -program-transform-name | --program-transform-name \ |
| 955 | | --program-transform-nam | --program-transform-na \ |
| 956 | | --program-transform-n | --program-transform- \ |
| 957 | | --program-transform | --program-transfor \ |
| 958 | | --program-transfo | --program-transf \ |
| 959 | | --program-trans | --program-tran \ |
| 960 | | --progr-tra | --program-tr | --program-t) |
| 961 | ac_prev=program_transform_name ;; |
| 962 | -program-transform-name=* | --program-transform-name=* \ |
| 963 | | --program-transform-nam=* | --program-transform-na=* \ |
| 964 | | --program-transform-n=* | --program-transform-=* \ |
| 965 | | --program-transform=* | --program-transfor=* \ |
| 966 | | --program-transfo=* | --program-transf=* \ |
| 967 | | --program-trans=* | --program-tran=* \ |
| 968 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 969 | program_transform_name=$ac_optarg ;; |
| 970 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 971 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 972 | ac_prev=pdfdir ;; |
| 973 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 974 | pdfdir=$ac_optarg ;; |
| 975 | |
| 976 | -psdir | --psdir | --psdi | --psd | --ps) |
| 977 | ac_prev=psdir ;; |
| 978 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 979 | psdir=$ac_optarg ;; |
| 980 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 981 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 982 | | -silent | --silent | --silen | --sile | --sil) |
| 983 | silent=yes ;; |
| 984 | |
| 985 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 986 | ac_prev=sbindir ;; |
| 987 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 988 | | --sbi=* | --sb=*) |
| 989 | sbindir=$ac_optarg ;; |
| 990 | |
| 991 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 992 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 993 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 994 | | --sha | --sh) |
| 995 | ac_prev=sharedstatedir ;; |
| 996 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 997 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 998 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 999 | | --sha=* | --sh=*) |
| 1000 | sharedstatedir=$ac_optarg ;; |
| 1001 | |
| 1002 | -site | --site | --sit) |
| 1003 | ac_prev=site ;; |
| 1004 | -site=* | --site=* | --sit=*) |
| 1005 | site=$ac_optarg ;; |
| 1006 | |
| 1007 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1008 | ac_prev=srcdir ;; |
| 1009 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1010 | srcdir=$ac_optarg ;; |
| 1011 | |
| 1012 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1013 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1014 | ac_prev=sysconfdir ;; |
| 1015 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1016 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1017 | sysconfdir=$ac_optarg ;; |
| 1018 | |
| 1019 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1020 | ac_prev=target_alias ;; |
| 1021 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1022 | target_alias=$ac_optarg ;; |
| 1023 | |
| 1024 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1025 | verbose=yes ;; |
| 1026 | |
| 1027 | -version | --version | --versio | --versi | --vers | -V) |
| 1028 | ac_init_version=: ;; |
| 1029 | |
| 1030 | -with-* | --with-*) |
| 1031 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1032 | # Reject names that are not valid shell variable names. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1033 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1034 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1035 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1036 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1037 | eval with_$ac_package=\$ac_optarg ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1038 | |
| 1039 | -without-* | --without-*) |
| 1040 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1041 | # Reject names that are not valid shell variable names. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1042 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1043 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1044 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1045 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1046 | eval with_$ac_package=no ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1047 | |
| 1048 | --x) |
| 1049 | # Obsolete; use --with-x. |
| 1050 | with_x=yes ;; |
| 1051 | |
| 1052 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1053 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1054 | ac_prev=x_includes ;; |
| 1055 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1056 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1057 | x_includes=$ac_optarg ;; |
| 1058 | |
| 1059 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1060 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1061 | ac_prev=x_libraries ;; |
| 1062 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1063 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1064 | x_libraries=$ac_optarg ;; |
| 1065 | |
| 1066 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1067 | Try \`$0 --help' for more information." >&2 |
| 1068 | { (exit 1); exit 1; }; } |
| 1069 | ;; |
| 1070 | |
| 1071 | *=*) |
| 1072 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1073 | # Reject names that are not valid shell variable names. |
| 1074 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1075 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1076 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1077 | eval $ac_envvar=\$ac_optarg |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1078 | export $ac_envvar ;; |
| 1079 | |
| 1080 | *) |
| 1081 | # FIXME: should be removed in autoconf 3.0. |
| 1082 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1083 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1084 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1085 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1086 | ;; |
| 1087 | |
| 1088 | esac |
| 1089 | done |
| 1090 | |
| 1091 | if test -n "$ac_prev"; then |
| 1092 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1093 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1094 | { (exit 1); exit 1; }; } |
| 1095 | fi |
| 1096 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1097 | # Be sure to have absolute directory names. |
| 1098 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1099 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1100 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1101 | libdir localedir mandir |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1102 | do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1103 | eval ac_val=\$$ac_var |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1104 | case $ac_val in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1105 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1106 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1107 | esac |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1108 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1110 | done |
| 1111 | |
| 1112 | # There might be people who depend on the old broken behavior: `$host' |
| 1113 | # used to hold the argument of --host etc. |
| 1114 | # FIXME: To remove some day. |
| 1115 | build=$build_alias |
| 1116 | host=$host_alias |
| 1117 | target=$target_alias |
| 1118 | |
| 1119 | # FIXME: To remove some day. |
| 1120 | if test "x$host_alias" != x; then |
| 1121 | if test "x$build_alias" = x; then |
| 1122 | cross_compiling=maybe |
| 1123 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1124 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1125 | elif test "x$build_alias" != "x$host_alias"; then |
| 1126 | cross_compiling=yes |
| 1127 | fi |
| 1128 | fi |
| 1129 | |
| 1130 | ac_tool_prefix= |
| 1131 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1132 | |
| 1133 | test "$silent" = yes && exec 6>/dev/null |
| 1134 | |
| 1135 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1136 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1137 | ac_ls_di=`ls -di .` && |
| 1138 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1139 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1140 | { (exit 1); exit 1; }; } |
| 1141 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1142 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1143 | { (exit 1); exit 1; }; } |
| 1144 | |
| 1145 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1146 | # Find the source files, if location was not specified. |
| 1147 | if test -z "$srcdir"; then |
| 1148 | ac_srcdir_defaulted=yes |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1149 | # Try the directory containing this script, then the parent directory. |
| 1150 | ac_confdir=`$as_dirname -- "$0" || |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1151 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1152 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1153 | X"$0" : 'X\(//\)$' \| \ |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1154 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1155 | echo X"$0" | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1157 | s//\1/ |
| 1158 | q |
| 1159 | } |
| 1160 | /^X\(\/\/\)[^/].*/{ |
| 1161 | s//\1/ |
| 1162 | q |
| 1163 | } |
| 1164 | /^X\(\/\/\)$/{ |
| 1165 | s//\1/ |
| 1166 | q |
| 1167 | } |
| 1168 | /^X\(\/\).*/{ |
| 1169 | s//\1/ |
| 1170 | q |
| 1171 | } |
| 1172 | s/.*/./; q'` |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1173 | srcdir=$ac_confdir |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1174 | if test ! -r "$srcdir/$ac_unique_file"; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1175 | srcdir=.. |
| 1176 | fi |
| 1177 | else |
| 1178 | ac_srcdir_defaulted=no |
| 1179 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1180 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1181 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1182 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1183 | { (exit 1); exit 1; }; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1184 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1185 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1186 | ac_abs_confdir=`( |
| 1187 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1188 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1189 | pwd)` |
| 1190 | # When building in place, set srcdir=. |
| 1191 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1192 | srcdir=. |
| 1193 | fi |
| 1194 | # Remove unnecessary trailing slashes from srcdir. |
| 1195 | # Double slashes in file names in object file debugging info |
| 1196 | # mess up M-x gdb in Emacs. |
| 1197 | case $srcdir in |
| 1198 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1199 | esac |
| 1200 | for ac_var in $ac_precious_vars; do |
| 1201 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1202 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1203 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1204 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1205 | done |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1206 | |
| 1207 | # |
| 1208 | # Report the --help message. |
| 1209 | # |
| 1210 | if test "$ac_init_help" = "long"; then |
| 1211 | # Omit some internal or obsolete options to make the list less imposing. |
| 1212 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1213 | cat <<_ACEOF |
| 1214 | \`configure' configures this package to adapt to many kinds of systems. |
| 1215 | |
| 1216 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1217 | |
| 1218 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1219 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1220 | |
| 1221 | Defaults for the options are specified in brackets. |
| 1222 | |
| 1223 | Configuration: |
| 1224 | -h, --help display this help and exit |
| 1225 | --help=short display options specific to this package |
| 1226 | --help=recursive display the short help of all the included packages |
| 1227 | -V, --version display version information and exit |
| 1228 | -q, --quiet, --silent do not print \`checking...' messages |
| 1229 | --cache-file=FILE cache test results in FILE [disabled] |
| 1230 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1231 | -n, --no-create do not create output files |
| 1232 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1233 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1234 | Installation directories: |
| 1235 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1236 | [$ac_default_prefix] |
| 1237 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1238 | [PREFIX] |
| 1239 | |
| 1240 | By default, \`make install' will install all the files in |
| 1241 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1242 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1243 | for instance \`--prefix=\$HOME'. |
| 1244 | |
| 1245 | For better control, use the options below. |
| 1246 | |
| 1247 | Fine tuning of the installation directories: |
| 1248 | --bindir=DIR user executables [EPREFIX/bin] |
| 1249 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1250 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1251 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1252 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1253 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1254 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1255 | --includedir=DIR C header files [PREFIX/include] |
| 1256 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1257 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1258 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1259 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1260 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1261 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1262 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1263 | --htmldir=DIR html documentation [DOCDIR] |
| 1264 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1265 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1266 | --psdir=DIR ps documentation [DOCDIR] |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1267 | _ACEOF |
| 1268 | |
| 1269 | cat <<\_ACEOF |
| 1270 | |
| 1271 | System types: |
| 1272 | --build=BUILD configure for building on BUILD [guessed] |
| 1273 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1274 | _ACEOF |
| 1275 | fi |
| 1276 | |
| 1277 | if test -n "$ac_init_help"; then |
| 1278 | |
| 1279 | cat <<\_ACEOF |
| 1280 | |
| 1281 | Optional Packages: |
| 1282 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1283 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1284 | --with-i386 enable building i386 code |
| 1285 | --with-ia64 enable building ia64 code |
| 1286 | |
| 1287 | Some influential environment variables: |
| 1288 | CC C compiler command |
| 1289 | CFLAGS C compiler flags |
| 1290 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1291 | nonstandard directory <lib dir> |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1292 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1293 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1294 | you have headers in a nonstandard directory <include dir> |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1295 | CPP C preprocessor |
| 1296 | |
| 1297 | Use these variables to override the choices made by `configure' or to help |
| 1298 | it to find libraries and programs with nonstandard names/locations. |
| 1299 | |
| 1300 | _ACEOF |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1301 | ac_status=$? |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1302 | fi |
| 1303 | |
| 1304 | if test "$ac_init_help" = "recursive"; then |
| 1305 | # If there are subdirs, report their specific --help. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1306 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1307 | test -d "$ac_dir" || continue |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1308 | ac_builddir=. |
| 1309 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1310 | case "$ac_dir" in |
| 1311 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1312 | *) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1313 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1314 | # A ".." for each directory in $ac_dir_suffix. |
| 1315 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1316 | case $ac_top_builddir_sub in |
| 1317 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1318 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1319 | esac ;; |
| 1320 | esac |
| 1321 | ac_abs_top_builddir=$ac_pwd |
| 1322 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1323 | # for backward compatibility: |
| 1324 | ac_top_builddir=$ac_top_build_prefix |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1325 | |
| 1326 | case $srcdir in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1327 | .) # We are building in place. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1328 | ac_srcdir=. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1329 | ac_top_srcdir=$ac_top_builddir_sub |
| 1330 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1331 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1332 | ac_srcdir=$srcdir$ac_dir_suffix; |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1333 | ac_top_srcdir=$srcdir |
| 1334 | ac_abs_top_srcdir=$srcdir ;; |
| 1335 | *) # Relative name. |
| 1336 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1337 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1338 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1339 | esac |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1340 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1341 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1342 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1343 | # Check for guested configure. |
| 1344 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1345 | echo && |
| 1346 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1347 | elif test -f "$ac_srcdir/configure"; then |
| 1348 | echo && |
| 1349 | $SHELL "$ac_srcdir/configure" --help=recursive |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1350 | else |
| 1351 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1352 | fi || ac_status=$? |
| 1353 | cd "$ac_pwd" || { ac_status=$?; break; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1354 | done |
| 1355 | fi |
| 1356 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1357 | test -n "$ac_init_help" && exit $ac_status |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1358 | if $ac_init_version; then |
| 1359 | cat <<\_ACEOF |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1360 | configure |
| 1361 | generated by GNU Autoconf 2.61 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1362 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1363 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1364 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1365 | This configure script is free software; the Free Software Foundation |
| 1366 | gives unlimited permission to copy, distribute and modify it. |
| 1367 | _ACEOF |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1368 | exit |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1369 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1370 | cat >config.log <<_ACEOF |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1371 | This file contains any messages produced by compilers while |
| 1372 | running configure, to aid debugging if configure makes a mistake. |
| 1373 | |
| 1374 | It was created by $as_me, which was |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1375 | generated by GNU Autoconf 2.61. Invocation command line was |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1376 | |
| 1377 | $ $0 $@ |
| 1378 | |
| 1379 | _ACEOF |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1380 | exec 5>>config.log |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1381 | { |
| 1382 | cat <<_ASUNAME |
| 1383 | ## --------- ## |
| 1384 | ## Platform. ## |
| 1385 | ## --------- ## |
| 1386 | |
| 1387 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1388 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1389 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1390 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1391 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1392 | |
| 1393 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1394 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1395 | |
| 1396 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1397 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1398 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1399 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1400 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1401 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1402 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1403 | |
| 1404 | _ASUNAME |
| 1405 | |
| 1406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1407 | for as_dir in $PATH |
| 1408 | do |
| 1409 | IFS=$as_save_IFS |
| 1410 | test -z "$as_dir" && as_dir=. |
| 1411 | echo "PATH: $as_dir" |
| 1412 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1413 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1414 | |
| 1415 | } >&5 |
| 1416 | |
| 1417 | cat >&5 <<_ACEOF |
| 1418 | |
| 1419 | |
| 1420 | ## ----------- ## |
| 1421 | ## Core tests. ## |
| 1422 | ## ----------- ## |
| 1423 | |
| 1424 | _ACEOF |
| 1425 | |
| 1426 | |
| 1427 | # Keep a trace of the command line. |
| 1428 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1429 | # Strip out --silent because we don't want to record it for future runs. |
| 1430 | # Also quote any args containing shell meta-characters. |
| 1431 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1432 | ac_configure_args= |
| 1433 | ac_configure_args0= |
| 1434 | ac_configure_args1= |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1435 | ac_must_keep_next=false |
| 1436 | for ac_pass in 1 2 |
| 1437 | do |
| 1438 | for ac_arg |
| 1439 | do |
| 1440 | case $ac_arg in |
| 1441 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1442 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1443 | | -silent | --silent | --silen | --sile | --sil) |
| 1444 | continue ;; |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1445 | *\'*) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1446 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1447 | esac |
| 1448 | case $ac_pass in |
| 1449 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1450 | 2) |
| 1451 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1452 | if test $ac_must_keep_next = true; then |
| 1453 | ac_must_keep_next=false # Got value, back to normal. |
| 1454 | else |
| 1455 | case $ac_arg in |
| 1456 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1457 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1458 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1459 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1460 | case "$ac_configure_args0 " in |
| 1461 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1462 | esac |
| 1463 | ;; |
| 1464 | -* ) ac_must_keep_next=true ;; |
| 1465 | esac |
| 1466 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1467 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1468 | ;; |
| 1469 | esac |
| 1470 | done |
| 1471 | done |
| 1472 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1473 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1474 | |
| 1475 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1476 | # config.log. We remove comments because anyway the quotes in there |
| 1477 | # would cause problems or look ugly. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1478 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1479 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1480 | trap 'exit_status=$? |
| 1481 | # Save into config.log some information that might help in debugging. |
| 1482 | { |
| 1483 | echo |
| 1484 | |
| 1485 | cat <<\_ASBOX |
| 1486 | ## ---------------- ## |
| 1487 | ## Cache variables. ## |
| 1488 | ## ---------------- ## |
| 1489 | _ASBOX |
| 1490 | echo |
| 1491 | # The following way of writing the cache mishandles newlines in values, |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1492 | ( |
| 1493 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1494 | eval ac_val=\$$ac_var |
| 1495 | case $ac_val in #( |
| 1496 | *${as_nl}*) |
| 1497 | case $ac_var in #( |
| 1498 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1499 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1500 | esac |
| 1501 | case $ac_var in #( |
| 1502 | _ | IFS | as_nl) ;; #( |
| 1503 | *) $as_unset $ac_var ;; |
| 1504 | esac ;; |
| 1505 | esac |
| 1506 | done |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1507 | (set) 2>&1 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1508 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1509 | *${as_nl}ac_space=\ *) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1510 | sed -n \ |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1511 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1512 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1513 | ;; #( |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1514 | *) |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1515 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1516 | ;; |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1517 | esac | |
| 1518 | sort |
| 1519 | ) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1520 | echo |
| 1521 | |
| 1522 | cat <<\_ASBOX |
| 1523 | ## ----------------- ## |
| 1524 | ## Output variables. ## |
| 1525 | ## ----------------- ## |
| 1526 | _ASBOX |
| 1527 | echo |
| 1528 | for ac_var in $ac_subst_vars |
| 1529 | do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1530 | eval ac_val=\$$ac_var |
| 1531 | case $ac_val in |
| 1532 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1533 | esac |
| 1534 | echo "$ac_var='\''$ac_val'\''" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1535 | done | sort |
| 1536 | echo |
| 1537 | |
| 1538 | if test -n "$ac_subst_files"; then |
| 1539 | cat <<\_ASBOX |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1540 | ## ------------------- ## |
| 1541 | ## File substitutions. ## |
| 1542 | ## ------------------- ## |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1543 | _ASBOX |
| 1544 | echo |
| 1545 | for ac_var in $ac_subst_files |
| 1546 | do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1547 | eval ac_val=\$$ac_var |
| 1548 | case $ac_val in |
| 1549 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1550 | esac |
| 1551 | echo "$ac_var='\''$ac_val'\''" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1552 | done | sort |
| 1553 | echo |
| 1554 | fi |
| 1555 | |
| 1556 | if test -s confdefs.h; then |
| 1557 | cat <<\_ASBOX |
| 1558 | ## ----------- ## |
| 1559 | ## confdefs.h. ## |
| 1560 | ## ----------- ## |
| 1561 | _ASBOX |
| 1562 | echo |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1563 | cat confdefs.h |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1564 | echo |
| 1565 | fi |
| 1566 | test "$ac_signal" != 0 && |
| 1567 | echo "$as_me: caught signal $ac_signal" |
| 1568 | echo "$as_me: exit $exit_status" |
| 1569 | } >&5 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1570 | rm -f core *.core core.conftest.* && |
| 1571 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1572 | exit $exit_status |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1573 | ' 0 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1574 | for ac_signal in 1 2 13 15; do |
| 1575 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1576 | done |
| 1577 | ac_signal=0 |
| 1578 | |
| 1579 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1580 | rm -f -r conftest* confdefs.h |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1581 | |
| 1582 | # Predefined preprocessor variables. |
| 1583 | |
| 1584 | cat >>confdefs.h <<_ACEOF |
| 1585 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1586 | _ACEOF |
| 1587 | |
| 1588 | |
| 1589 | cat >>confdefs.h <<_ACEOF |
| 1590 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1591 | _ACEOF |
| 1592 | |
| 1593 | |
| 1594 | cat >>confdefs.h <<_ACEOF |
| 1595 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1596 | _ACEOF |
| 1597 | |
| 1598 | |
| 1599 | cat >>confdefs.h <<_ACEOF |
| 1600 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1601 | _ACEOF |
| 1602 | |
| 1603 | |
| 1604 | cat >>confdefs.h <<_ACEOF |
| 1605 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1606 | _ACEOF |
| 1607 | |
| 1608 | |
| 1609 | # Let the site file select an alternate cache file if it wants to. |
| 1610 | # Prefer explicitly selected file to automatically selected ones. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1611 | if test -n "$CONFIG_SITE"; then |
| 1612 | set x "$CONFIG_SITE" |
| 1613 | elif test "x$prefix" != xNONE; then |
| 1614 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1615 | else |
| 1616 | set x "$ac_default_prefix/share/config.site" \ |
| 1617 | "$ac_default_prefix/etc/config.site" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1618 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1619 | shift |
| 1620 | for ac_site_file |
| 1621 | do |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1622 | if test -r "$ac_site_file"; then |
| 1623 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1624 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1625 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1626 | . "$ac_site_file" |
| 1627 | fi |
| 1628 | done |
| 1629 | |
| 1630 | if test -r "$cache_file"; then |
| 1631 | # Some versions of bash will fail to source /dev/null (special |
| 1632 | # files actually), so we avoid doing that. |
| 1633 | if test -f "$cache_file"; then |
| 1634 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1635 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1636 | case $cache_file in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1637 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1638 | *) . "./$cache_file";; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1639 | esac |
| 1640 | fi |
| 1641 | else |
| 1642 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1643 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1644 | >$cache_file |
| 1645 | fi |
| 1646 | |
| 1647 | # Check that the precious variables saved in the cache have kept the same |
| 1648 | # value. |
| 1649 | ac_cache_corrupted=false |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1650 | for ac_var in $ac_precious_vars; do |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1651 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1652 | eval ac_new_set=\$ac_env_${ac_var}_set |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1653 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1654 | eval ac_new_val=\$ac_env_${ac_var}_value |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1655 | case $ac_old_set,$ac_new_set in |
| 1656 | set,) |
| 1657 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1658 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1659 | ac_cache_corrupted=: ;; |
| 1660 | ,set) |
| 1661 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1662 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1663 | ac_cache_corrupted=: ;; |
| 1664 | ,);; |
| 1665 | *) |
| 1666 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1667 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1668 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1669 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1670 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1671 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1672 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1673 | ac_cache_corrupted=: |
| 1674 | fi;; |
| 1675 | esac |
| 1676 | # Pass precious variables to config.status. |
| 1677 | if test "$ac_new_set" = set; then |
| 1678 | case $ac_new_val in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1679 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1680 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1681 | esac |
| 1682 | case " $ac_configure_args " in |
| 1683 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1684 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1685 | esac |
| 1686 | fi |
| 1687 | done |
| 1688 | if $ac_cache_corrupted; then |
| 1689 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1690 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1691 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1692 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1693 | { (exit 1); exit 1; }; } |
| 1694 | fi |
| 1695 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1696 | |
| 1697 | |
| 1698 | |
| 1699 | |
| 1700 | |
| 1701 | |
| 1702 | |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | |
| 1707 | |
| 1708 | |
| 1709 | |
| 1710 | |
| 1711 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1712 | ac_ext=c |
| 1713 | ac_cpp='$CPP $CPPFLAGS' |
| 1714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1717 | |
| 1718 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1719 | ac_aux_dir= |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1720 | for ac_dir in ./config "$srcdir"/./config; do |
| 1721 | if test -f "$ac_dir/install-sh"; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1722 | ac_aux_dir=$ac_dir |
| 1723 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1724 | break |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1725 | elif test -f "$ac_dir/install.sh"; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1726 | ac_aux_dir=$ac_dir |
| 1727 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1728 | break |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1729 | elif test -f "$ac_dir/shtool"; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1730 | ac_aux_dir=$ac_dir |
| 1731 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1732 | break |
| 1733 | fi |
| 1734 | done |
| 1735 | if test -z "$ac_aux_dir"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1736 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./config \"$srcdir\"/./config" >&5 |
| 1737 | echo "$as_me: error: cannot find install-sh or install.sh in ./config \"$srcdir\"/./config" >&2;} |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1738 | { (exit 1); exit 1; }; } |
| 1739 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1740 | |
| 1741 | # These three variables are undocumented and unsupported, |
| 1742 | # and are intended to be withdrawn in a future Autoconf release. |
| 1743 | # They can cause serious problems if a builder's source tree is in a directory |
| 1744 | # whose full name contains unusual characters. |
| 1745 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1746 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1747 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1748 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1749 | |
| 1750 | |
| 1751 | |
| 1752 | |
| 1753 | # Make sure we can run config.sub. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1754 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1755 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1756 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1757 | { (exit 1); exit 1; }; } |
| 1758 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1759 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1760 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1761 | if test "${ac_cv_build+set}" = set; then |
| 1762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1763 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1764 | ac_build_alias=$build_alias |
| 1765 | test "x$ac_build_alias" = x && |
| 1766 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1767 | test "x$ac_build_alias" = x && |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1768 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1769 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1770 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1771 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1772 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1773 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1774 | { (exit 1); exit 1; }; } |
| 1775 | |
| 1776 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1777 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1778 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1779 | case $ac_cv_build in |
| 1780 | *-*-*) ;; |
| 1781 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1782 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1783 | { (exit 1); exit 1; }; };; |
| 1784 | esac |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1785 | build=$ac_cv_build |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1786 | ac_save_IFS=$IFS; IFS='-' |
| 1787 | set x $ac_cv_build |
| 1788 | shift |
| 1789 | build_cpu=$1 |
| 1790 | build_vendor=$2 |
| 1791 | shift; shift |
| 1792 | # Remember, the first character of IFS is used to create $*, |
| 1793 | # except with old shells: |
| 1794 | build_os=$* |
| 1795 | IFS=$ac_save_IFS |
| 1796 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1797 | |
| 1798 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1799 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1800 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1801 | if test "${ac_cv_host+set}" = set; then |
| 1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1803 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1804 | if test "x$host_alias" = x; then |
| 1805 | ac_cv_host=$ac_cv_build |
| 1806 | else |
| 1807 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1808 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1809 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1810 | { (exit 1); exit 1; }; } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1811 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1812 | |
| 1813 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1814 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1815 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1816 | case $ac_cv_host in |
| 1817 | *-*-*) ;; |
| 1818 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1819 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1820 | { (exit 1); exit 1; }; };; |
| 1821 | esac |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1822 | host=$ac_cv_host |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1823 | ac_save_IFS=$IFS; IFS='-' |
| 1824 | set x $ac_cv_host |
| 1825 | shift |
| 1826 | host_cpu=$1 |
| 1827 | host_vendor=$2 |
| 1828 | shift; shift |
| 1829 | # Remember, the first character of IFS is used to create $*, |
| 1830 | # except with old shells: |
| 1831 | host_os=$* |
| 1832 | IFS=$ac_save_IFS |
| 1833 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1834 | |
| 1835 | |
| 1836 | #AC_CANONICAL_TARGET |
| 1837 | |
| 1838 | |
| 1839 | case $host_cpu in |
| 1840 | i?86 ) |
| 1841 | target_cpu="i386" |
| 1842 | ;; |
| 1843 | * ) |
| 1844 | target_cpu="$host_cpu" |
| 1845 | ;; |
| 1846 | esac |
| 1847 | |
| 1848 | targets="" |
| 1849 | |
| 1850 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1851 | # Check whether --with-i386 was given. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1852 | if test "${with_i386+set}" = set; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1853 | withval=$with_i386; if test "withval" = "yes" ; then with_i386="i386"; else with_i386="$withval"; fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1854 | else |
| 1855 | with_i386="no" |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1856 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1857 | |
| 1858 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1859 | |
| 1860 | # Check whether --with-ia64 was given. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1861 | if test "${with_ia64+set}" = set; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1862 | withval=$with_ia64; if test "withval" = "yes" ; then with_ia64="ia64"; else with_ia64="$withval"; fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1863 | else |
| 1864 | with_ia64="no" |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1865 | fi |
| 1866 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1867 | |
| 1868 | with_default="no" |
| 1869 | if test "$with_i386" = "no" && |
| 1870 | test "$with_ia64" = "no" ; then |
| 1871 | with_default=`echo $target_cpu | tr a-z A-Z` |
| 1872 | fi |
| 1873 | |
| 1874 | { echo "$as_me:$LINENO: with_default=$with_default" >&5 |
| 1875 | echo "$as_me: with_default=$with_default" >&6;} |
| 1876 | { echo "$as_me:$LINENO: with_i386=$with_i386" >&5 |
| 1877 | echo "$as_me: with_i386=$with_i386" >&6;} |
| 1878 | { echo "$as_me:$LINENO: with_ia64=$with_ia64" >&5 |
| 1879 | echo "$as_me: with_ia64=$with_ia64" >&6;} |
| 1880 | |
| 1881 | |
| 1882 | ac_ext=c |
| 1883 | ac_cpp='$CPP $CPPFLAGS' |
| 1884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1887 | if test -n "$ac_tool_prefix"; then |
| 1888 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1889 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1890 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1892 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1894 | else |
| 1895 | if test -n "$CC"; then |
| 1896 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1897 | else |
| 1898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1899 | for as_dir in $PATH |
| 1900 | do |
| 1901 | IFS=$as_save_IFS |
| 1902 | test -z "$as_dir" && as_dir=. |
| 1903 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1905 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1907 | break 2 |
| 1908 | fi |
| 1909 | done |
| 1910 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1911 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1912 | |
| 1913 | fi |
| 1914 | fi |
| 1915 | CC=$ac_cv_prog_CC |
| 1916 | if test -n "$CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1917 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1918 | echo "${ECHO_T}$CC" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1919 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1920 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1921 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1922 | fi |
| 1923 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1924 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1925 | fi |
| 1926 | if test -z "$ac_cv_prog_CC"; then |
| 1927 | ac_ct_CC=$CC |
| 1928 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1929 | set dummy gcc; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1932 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1934 | else |
| 1935 | if test -n "$ac_ct_CC"; then |
| 1936 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1937 | else |
| 1938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1939 | for as_dir in $PATH |
| 1940 | do |
| 1941 | IFS=$as_save_IFS |
| 1942 | test -z "$as_dir" && as_dir=. |
| 1943 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1945 | ac_cv_prog_ac_ct_CC="gcc" |
| 1946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1947 | break 2 |
| 1948 | fi |
| 1949 | done |
| 1950 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1951 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1952 | |
| 1953 | fi |
| 1954 | fi |
| 1955 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1956 | if test -n "$ac_ct_CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1957 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1958 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1959 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1960 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1961 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1962 | fi |
| 1963 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1964 | if test "x$ac_ct_CC" = x; then |
| 1965 | CC="" |
| 1966 | else |
| 1967 | case $cross_compiling:$ac_tool_warned in |
| 1968 | yes:) |
| 1969 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 1970 | whose name does not start with the host triplet. If you think this |
| 1971 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 1972 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 1973 | whose name does not start with the host triplet. If you think this |
| 1974 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 1975 | ac_tool_warned=yes ;; |
| 1976 | esac |
| 1977 | CC=$ac_ct_CC |
| 1978 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1979 | else |
| 1980 | CC="$ac_cv_prog_CC" |
| 1981 | fi |
| 1982 | |
| 1983 | if test -z "$CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1984 | if test -n "$ac_tool_prefix"; then |
| 1985 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1986 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 1989 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1991 | else |
| 1992 | if test -n "$CC"; then |
| 1993 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1994 | else |
| 1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1996 | for as_dir in $PATH |
| 1997 | do |
| 1998 | IFS=$as_save_IFS |
| 1999 | test -z "$as_dir" && as_dir=. |
| 2000 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2002 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2004 | break 2 |
| 2005 | fi |
| 2006 | done |
| 2007 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2008 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2009 | |
| 2010 | fi |
| 2011 | fi |
| 2012 | CC=$ac_cv_prog_CC |
| 2013 | if test -n "$CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2015 | echo "${ECHO_T}$CC" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2016 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2018 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2019 | fi |
| 2020 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2021 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2022 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2023 | fi |
| 2024 | if test -z "$CC"; then |
| 2025 | # Extract the first word of "cc", so it can be a program name with args. |
| 2026 | set dummy cc; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2027 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2029 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2031 | else |
| 2032 | if test -n "$CC"; then |
| 2033 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2034 | else |
| 2035 | ac_prog_rejected=no |
| 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
| 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2043 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2044 | ac_prog_rejected=yes |
| 2045 | continue |
| 2046 | fi |
| 2047 | ac_cv_prog_CC="cc" |
| 2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2049 | break 2 |
| 2050 | fi |
| 2051 | done |
| 2052 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2053 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2054 | |
| 2055 | if test $ac_prog_rejected = yes; then |
| 2056 | # We found a bogon in the path, so make sure we never use it. |
| 2057 | set dummy $ac_cv_prog_CC |
| 2058 | shift |
| 2059 | if test $# != 0; then |
| 2060 | # We chose a different compiler from the bogus one. |
| 2061 | # However, it has the same basename, so the bogon will be chosen |
| 2062 | # first if we set CC to just the basename; use the full file name. |
| 2063 | shift |
| 2064 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2065 | fi |
| 2066 | fi |
| 2067 | fi |
| 2068 | fi |
| 2069 | CC=$ac_cv_prog_CC |
| 2070 | if test -n "$CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2072 | echo "${ECHO_T}$CC" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2073 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2074 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2075 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2076 | fi |
| 2077 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2078 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2079 | fi |
| 2080 | if test -z "$CC"; then |
| 2081 | if test -n "$ac_tool_prefix"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2082 | for ac_prog in cl.exe |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2083 | do |
| 2084 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2085 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2086 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2088 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2090 | else |
| 2091 | if test -n "$CC"; then |
| 2092 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2093 | else |
| 2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2095 | for as_dir in $PATH |
| 2096 | do |
| 2097 | IFS=$as_save_IFS |
| 2098 | test -z "$as_dir" && as_dir=. |
| 2099 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2101 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2103 | break 2 |
| 2104 | fi |
| 2105 | done |
| 2106 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2107 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2108 | |
| 2109 | fi |
| 2110 | fi |
| 2111 | CC=$ac_cv_prog_CC |
| 2112 | if test -n "$CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2113 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2114 | echo "${ECHO_T}$CC" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2115 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2116 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2117 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2118 | fi |
| 2119 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2120 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2121 | test -n "$CC" && break |
| 2122 | done |
| 2123 | fi |
| 2124 | if test -z "$CC"; then |
| 2125 | ac_ct_CC=$CC |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2126 | for ac_prog in cl.exe |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2127 | do |
| 2128 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2129 | set dummy $ac_prog; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2130 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2132 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2134 | else |
| 2135 | if test -n "$ac_ct_CC"; then |
| 2136 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2137 | else |
| 2138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2139 | for as_dir in $PATH |
| 2140 | do |
| 2141 | IFS=$as_save_IFS |
| 2142 | test -z "$as_dir" && as_dir=. |
| 2143 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2145 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2147 | break 2 |
| 2148 | fi |
| 2149 | done |
| 2150 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2151 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2152 | |
| 2153 | fi |
| 2154 | fi |
| 2155 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2156 | if test -n "$ac_ct_CC"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2157 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2158 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2159 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2161 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2162 | fi |
| 2163 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2164 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2165 | test -n "$ac_ct_CC" && break |
| 2166 | done |
| 2167 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2168 | if test "x$ac_ct_CC" = x; then |
| 2169 | CC="" |
| 2170 | else |
| 2171 | case $cross_compiling:$ac_tool_warned in |
| 2172 | yes:) |
| 2173 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2174 | whose name does not start with the host triplet. If you think this |
| 2175 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2176 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2177 | whose name does not start with the host triplet. If you think this |
| 2178 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2179 | ac_tool_warned=yes ;; |
| 2180 | esac |
| 2181 | CC=$ac_ct_CC |
| 2182 | fi |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2183 | fi |
| 2184 | |
| 2185 | fi |
| 2186 | |
| 2187 | |
| 2188 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2189 | See \`config.log' for more details." >&5 |
| 2190 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2191 | See \`config.log' for more details." >&2;} |
| 2192 | { (exit 1); exit 1; }; } |
| 2193 | |
| 2194 | # Provide some information about the compiler. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2195 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2196 | ac_compiler=`set X $ac_compile; echo $2` |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2197 | { (ac_try="$ac_compiler --version >&5" |
| 2198 | case "(($ac_try" in |
| 2199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2200 | *) ac_try_echo=$ac_try;; |
| 2201 | esac |
| 2202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2203 | (eval "$ac_compiler --version >&5") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2204 | ac_status=$? |
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2206 | (exit $ac_status); } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2207 | { (ac_try="$ac_compiler -v >&5" |
| 2208 | case "(($ac_try" in |
| 2209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2210 | *) ac_try_echo=$ac_try;; |
| 2211 | esac |
| 2212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2213 | (eval "$ac_compiler -v >&5") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2214 | ac_status=$? |
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2216 | (exit $ac_status); } |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2217 | { (ac_try="$ac_compiler -V >&5" |
| 2218 | case "(($ac_try" in |
| 2219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2220 | *) ac_try_echo=$ac_try;; |
| 2221 | esac |
| 2222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2223 | (eval "$ac_compiler -V >&5") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2224 | ac_status=$? |
| 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); } |
| 2227 | |
| 2228 | cat >conftest.$ac_ext <<_ACEOF |
| 2229 | /* confdefs.h. */ |
| 2230 | _ACEOF |
| 2231 | cat confdefs.h >>conftest.$ac_ext |
| 2232 | cat >>conftest.$ac_ext <<_ACEOF |
| 2233 | /* end confdefs.h. */ |
| 2234 | |
| 2235 | int |
| 2236 | main () |
| 2237 | { |
| 2238 | |
| 2239 | ; |
| 2240 | return 0; |
| 2241 | } |
| 2242 | _ACEOF |
| 2243 | ac_clean_files_save=$ac_clean_files |
| 2244 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2245 | # Try to create an executable without -o first, disregard a.out. |
| 2246 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2247 | # of exeext. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2248 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2249 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2250 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2251 | # |
| 2252 | # List of possible output files, starting from the most likely. |
| 2253 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2254 | # only as a last resort. b.out is created by i960 compilers. |
| 2255 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2256 | # |
| 2257 | # The IRIX 6 linker writes into existing files which may not be |
| 2258 | # executable, retaining their permissions. Remove them first so a |
| 2259 | # subsequent execution test works. |
| 2260 | ac_rmfiles= |
| 2261 | for ac_file in $ac_files |
| 2262 | do |
| 2263 | case $ac_file in |
| 2264 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2265 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2266 | esac |
| 2267 | done |
| 2268 | rm -f $ac_rmfiles |
| 2269 | |
| 2270 | if { (ac_try="$ac_link_default" |
| 2271 | case "(($ac_try" in |
| 2272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2273 | *) ac_try_echo=$ac_try;; |
| 2274 | esac |
| 2275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2276 | (eval "$ac_link_default") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2277 | ac_status=$? |
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2279 | (exit $ac_status); }; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2280 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2281 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2282 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2283 | # so that the user can short-circuit this test for compilers unknown to |
| 2284 | # Autoconf. |
| 2285 | for ac_file in $ac_files '' |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2286 | do |
| 2287 | test -f "$ac_file" || continue |
| 2288 | case $ac_file in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2289 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2290 | ;; |
| 2291 | [ab].out ) |
| 2292 | # We found the default executable, but exeext='' is most |
| 2293 | # certainly right. |
| 2294 | break;; |
| 2295 | *.* ) |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2296 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2297 | then :; else |
| 2298 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2299 | fi |
| 2300 | # We set ac_cv_exeext here because the later test for it is not |
| 2301 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2302 | # argument, so we may need to know it at that point already. |
| 2303 | # Even if this section looks crufty: it has the advantage of |
| 2304 | # actually working. |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2305 | break;; |
| 2306 | * ) |
| 2307 | break;; |
| 2308 | esac |
| 2309 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2310 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2311 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2312 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2313 | ac_file='' |
| 2314 | fi |
| 2315 | |
| 2316 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2317 | echo "${ECHO_T}$ac_file" >&6; } |
| 2318 | if test -z "$ac_file"; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2319 | echo "$as_me: failed program was:" >&5 |
| 2320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2321 | |
| 2322 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2323 | See \`config.log' for more details." >&5 |
| 2324 | echo "$as_me: error: C compiler cannot create executables |
| 2325 | See \`config.log' for more details." >&2;} |
| 2326 | { (exit 77); exit 77; }; } |
| 2327 | fi |
| 2328 | |
| 2329 | ac_exeext=$ac_cv_exeext |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2330 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2331 | # Check that the compiler produces executables we can run. If not, either |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2332 | # the compiler is broken, or we cross compile. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2333 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2334 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2335 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2336 | # If not cross compiling, check that we can run a simple program. |
| 2337 | if test "$cross_compiling" != yes; then |
| 2338 | if { ac_try='./$ac_file' |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2339 | { (case "(($ac_try" in |
| 2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2341 | *) ac_try_echo=$ac_try;; |
| 2342 | esac |
| 2343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2344 | (eval "$ac_try") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2345 | ac_status=$? |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); }; }; then |
| 2348 | cross_compiling=no |
| 2349 | else |
| 2350 | if test "$cross_compiling" = maybe; then |
| 2351 | cross_compiling=yes |
| 2352 | else |
| 2353 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2354 | If you meant to cross compile, use \`--host'. |
| 2355 | See \`config.log' for more details." >&5 |
| 2356 | echo "$as_me: error: cannot run C compiled programs. |
| 2357 | If you meant to cross compile, use \`--host'. |
| 2358 | See \`config.log' for more details." >&2;} |
| 2359 | { (exit 1); exit 1; }; } |
| 2360 | fi |
| 2361 | fi |
| 2362 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2363 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2364 | echo "${ECHO_T}yes" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2365 | |
| 2366 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2367 | ac_clean_files=$ac_clean_files_save |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2368 | # Check that the compiler produces executables we can run. If not, either |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2369 | # the compiler is broken, or we cross compile. |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2370 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2371 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2372 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2373 | echo "${ECHO_T}$cross_compiling" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2374 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2375 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2376 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2377 | if { (ac_try="$ac_link" |
| 2378 | case "(($ac_try" in |
| 2379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2380 | *) ac_try_echo=$ac_try;; |
| 2381 | esac |
| 2382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2383 | (eval "$ac_link") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2384 | ac_status=$? |
| 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2386 | (exit $ac_status); }; then |
| 2387 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2388 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2389 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2390 | # `rm'. |
| 2391 | for ac_file in conftest.exe conftest conftest.*; do |
| 2392 | test -f "$ac_file" || continue |
| 2393 | case $ac_file in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2394 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2395 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2396 | break;; |
| 2397 | * ) break;; |
| 2398 | esac |
| 2399 | done |
| 2400 | else |
| 2401 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2402 | See \`config.log' for more details." >&5 |
| 2403 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2404 | See \`config.log' for more details." >&2;} |
| 2405 | { (exit 1); exit 1; }; } |
| 2406 | fi |
| 2407 | |
| 2408 | rm -f conftest$ac_cv_exeext |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2409 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2410 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2411 | |
| 2412 | rm -f conftest.$ac_ext |
| 2413 | EXEEXT=$ac_cv_exeext |
| 2414 | ac_exeext=$EXEEXT |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2415 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2416 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2417 | if test "${ac_cv_objext+set}" = set; then |
| 2418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2419 | else |
| 2420 | cat >conftest.$ac_ext <<_ACEOF |
| 2421 | /* confdefs.h. */ |
| 2422 | _ACEOF |
| 2423 | cat confdefs.h >>conftest.$ac_ext |
| 2424 | cat >>conftest.$ac_ext <<_ACEOF |
| 2425 | /* end confdefs.h. */ |
| 2426 | |
| 2427 | int |
| 2428 | main () |
| 2429 | { |
| 2430 | |
| 2431 | ; |
| 2432 | return 0; |
| 2433 | } |
| 2434 | _ACEOF |
| 2435 | rm -f conftest.o conftest.obj |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2436 | if { (ac_try="$ac_compile" |
| 2437 | case "(($ac_try" in |
| 2438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2439 | *) ac_try_echo=$ac_try;; |
| 2440 | esac |
| 2441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2442 | (eval "$ac_compile") 2>&5 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2443 | ac_status=$? |
| 2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2445 | (exit $ac_status); }; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2446 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2447 | test -f "$ac_file" || continue; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2448 | case $ac_file in |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2449 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2450 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2451 | break;; |
| 2452 | esac |
| 2453 | done |
| 2454 | else |
| 2455 | echo "$as_me: failed program was:" >&5 |
| 2456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2457 | |
| 2458 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2459 | See \`config.log' for more details." >&5 |
| 2460 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2461 | See \`config.log' for more details." >&2;} |
| 2462 | { (exit 1); exit 1; }; } |
| 2463 | fi |
| 2464 | |
| 2465 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2466 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2467 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2468 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2469 | OBJEXT=$ac_cv_objext |
| 2470 | ac_objext=$OBJEXT |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2471 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2472 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2473 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2475 | else |
| 2476 | cat >conftest.$ac_ext <<_ACEOF |
| 2477 | /* confdefs.h. */ |
| 2478 | _ACEOF |
| 2479 | cat confdefs.h >>conftest.$ac_ext |
| 2480 | cat >>conftest.$ac_ext <<_ACEOF |
| 2481 | /* end confdefs.h. */ |
| 2482 | |
| 2483 | int |
| 2484 | main () |
| 2485 | { |
| 2486 | #ifndef __GNUC__ |
| 2487 | choke me |
| 2488 | #endif |
| 2489 | |
| 2490 | ; |
| 2491 | return 0; |
| 2492 | } |
| 2493 | _ACEOF |
| 2494 | rm -f conftest.$ac_objext |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2495 | if { (ac_try="$ac_compile" |
| 2496 | case "(($ac_try" in |
| 2497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2498 | *) ac_try_echo=$ac_try;; |
| 2499 | esac |
| 2500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2501 | (eval "$ac_compile") 2>conftest.er1 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2502 | ac_status=$? |
| 2503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2504 | rm -f conftest.er1 |
| 2505 | cat conftest.err >&5 |
| 2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2507 | (exit $ac_status); } && { |
| 2508 | test -z "$ac_c_werror_flag" || |
| 2509 | test ! -s conftest.err |
| 2510 | } && test -s conftest.$ac_objext; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2511 | ac_compiler_gnu=yes |
| 2512 | else |
| 2513 | echo "$as_me: failed program was:" >&5 |
| 2514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2515 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2516 | ac_compiler_gnu=no |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2517 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2518 | |
| 2519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2520 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2521 | |
| 2522 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2523 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2524 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2525 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2526 | ac_test_CFLAGS=${CFLAGS+set} |
| 2527 | ac_save_CFLAGS=$CFLAGS |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2529 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2530 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2532 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2533 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2534 | ac_c_werror_flag=yes |
| 2535 | ac_cv_prog_cc_g=no |
| 2536 | CFLAGS="-g" |
| 2537 | cat >conftest.$ac_ext <<_ACEOF |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2538 | /* confdefs.h. */ |
| 2539 | _ACEOF |
| 2540 | cat confdefs.h >>conftest.$ac_ext |
| 2541 | cat >>conftest.$ac_ext <<_ACEOF |
| 2542 | /* end confdefs.h. */ |
| 2543 | |
| 2544 | int |
| 2545 | main () |
| 2546 | { |
| 2547 | |
| 2548 | ; |
| 2549 | return 0; |
| 2550 | } |
| 2551 | _ACEOF |
| 2552 | rm -f conftest.$ac_objext |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2553 | if { (ac_try="$ac_compile" |
| 2554 | case "(($ac_try" in |
| 2555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2556 | *) ac_try_echo=$ac_try;; |
| 2557 | esac |
| 2558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2559 | (eval "$ac_compile") 2>conftest.er1 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2560 | ac_status=$? |
| 2561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2562 | rm -f conftest.er1 |
| 2563 | cat conftest.err >&5 |
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2565 | (exit $ac_status); } && { |
| 2566 | test -z "$ac_c_werror_flag" || |
| 2567 | test ! -s conftest.err |
| 2568 | } && test -s conftest.$ac_objext; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2569 | ac_cv_prog_cc_g=yes |
| 2570 | else |
| 2571 | echo "$as_me: failed program was:" >&5 |
| 2572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2573 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2574 | CFLAGS="" |
| 2575 | cat >conftest.$ac_ext <<_ACEOF |
| 2576 | /* confdefs.h. */ |
| 2577 | _ACEOF |
| 2578 | cat confdefs.h >>conftest.$ac_ext |
| 2579 | cat >>conftest.$ac_ext <<_ACEOF |
| 2580 | /* end confdefs.h. */ |
| 2581 | |
| 2582 | int |
| 2583 | main () |
| 2584 | { |
| 2585 | |
| 2586 | ; |
| 2587 | return 0; |
| 2588 | } |
| 2589 | _ACEOF |
| 2590 | rm -f conftest.$ac_objext |
| 2591 | if { (ac_try="$ac_compile" |
| 2592 | case "(($ac_try" in |
| 2593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2594 | *) ac_try_echo=$ac_try;; |
| 2595 | esac |
| 2596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2597 | (eval "$ac_compile") 2>conftest.er1 |
| 2598 | ac_status=$? |
| 2599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2600 | rm -f conftest.er1 |
| 2601 | cat conftest.err >&5 |
| 2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2603 | (exit $ac_status); } && { |
| 2604 | test -z "$ac_c_werror_flag" || |
| 2605 | test ! -s conftest.err |
| 2606 | } && test -s conftest.$ac_objext; then |
| 2607 | : |
| 2608 | else |
| 2609 | echo "$as_me: failed program was:" >&5 |
| 2610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2611 | |
| 2612 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2613 | CFLAGS="-g" |
| 2614 | cat >conftest.$ac_ext <<_ACEOF |
| 2615 | /* confdefs.h. */ |
| 2616 | _ACEOF |
| 2617 | cat confdefs.h >>conftest.$ac_ext |
| 2618 | cat >>conftest.$ac_ext <<_ACEOF |
| 2619 | /* end confdefs.h. */ |
| 2620 | |
| 2621 | int |
| 2622 | main () |
| 2623 | { |
| 2624 | |
| 2625 | ; |
| 2626 | return 0; |
| 2627 | } |
| 2628 | _ACEOF |
| 2629 | rm -f conftest.$ac_objext |
| 2630 | if { (ac_try="$ac_compile" |
| 2631 | case "(($ac_try" in |
| 2632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2633 | *) ac_try_echo=$ac_try;; |
| 2634 | esac |
| 2635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2636 | (eval "$ac_compile") 2>conftest.er1 |
| 2637 | ac_status=$? |
| 2638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2639 | rm -f conftest.er1 |
| 2640 | cat conftest.err >&5 |
| 2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); } && { |
| 2643 | test -z "$ac_c_werror_flag" || |
| 2644 | test ! -s conftest.err |
| 2645 | } && test -s conftest.$ac_objext; then |
| 2646 | ac_cv_prog_cc_g=yes |
| 2647 | else |
| 2648 | echo "$as_me: failed program was:" >&5 |
| 2649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2650 | |
| 2651 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2652 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2653 | |
| 2654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2655 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2656 | |
| 2657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2658 | fi |
| 2659 | |
| 2660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2661 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2662 | fi |
| 2663 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2664 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2665 | if test "$ac_test_CFLAGS" = set; then |
| 2666 | CFLAGS=$ac_save_CFLAGS |
| 2667 | elif test $ac_cv_prog_cc_g = yes; then |
| 2668 | if test "$GCC" = yes; then |
| 2669 | CFLAGS="-g -O2" |
| 2670 | else |
| 2671 | CFLAGS="-g" |
| 2672 | fi |
| 2673 | else |
| 2674 | if test "$GCC" = yes; then |
| 2675 | CFLAGS="-O2" |
| 2676 | else |
| 2677 | CFLAGS= |
| 2678 | fi |
| 2679 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2680 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2681 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2682 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2684 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2685 | ac_cv_prog_cc_c89=no |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2686 | ac_save_CC=$CC |
| 2687 | cat >conftest.$ac_ext <<_ACEOF |
| 2688 | /* confdefs.h. */ |
| 2689 | _ACEOF |
| 2690 | cat confdefs.h >>conftest.$ac_ext |
| 2691 | cat >>conftest.$ac_ext <<_ACEOF |
| 2692 | /* end confdefs.h. */ |
| 2693 | #include <stdarg.h> |
| 2694 | #include <stdio.h> |
| 2695 | #include <sys/types.h> |
| 2696 | #include <sys/stat.h> |
| 2697 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2698 | struct buf { int x; }; |
| 2699 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2700 | static char *e (p, i) |
| 2701 | char **p; |
| 2702 | int i; |
| 2703 | { |
| 2704 | return p[i]; |
| 2705 | } |
| 2706 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2707 | { |
| 2708 | char *s; |
| 2709 | va_list v; |
| 2710 | va_start (v,p); |
| 2711 | s = g (p, va_arg (v,int)); |
| 2712 | va_end (v); |
| 2713 | return s; |
| 2714 | } |
| 2715 | |
| 2716 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2717 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2718 | These don't provoke an error unfortunately, instead are silently treated |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2719 | as 'x'. The following induces an error, until -std is added to get |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2720 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2721 | array size at least. It's necessary to write '\x00'==0 to get something |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2722 | that's true only with -std. */ |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2723 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2724 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2725 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2726 | inside strings and character constants. */ |
| 2727 | #define FOO(x) 'x' |
| 2728 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2729 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2730 | int test (int i, double x); |
| 2731 | struct s1 {int (*f) (int a);}; |
| 2732 | struct s2 {int (*f) (double a);}; |
| 2733 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2734 | int argc; |
| 2735 | char **argv; |
| 2736 | int |
| 2737 | main () |
| 2738 | { |
| 2739 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2740 | ; |
| 2741 | return 0; |
| 2742 | } |
| 2743 | _ACEOF |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2744 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2745 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2746 | do |
| 2747 | CC="$ac_save_CC $ac_arg" |
| 2748 | rm -f conftest.$ac_objext |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2749 | if { (ac_try="$ac_compile" |
| 2750 | case "(($ac_try" in |
| 2751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2752 | *) ac_try_echo=$ac_try;; |
| 2753 | esac |
| 2754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2755 | (eval "$ac_compile") 2>conftest.er1 |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2756 | ac_status=$? |
| 2757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2758 | rm -f conftest.er1 |
| 2759 | cat conftest.err >&5 |
| 2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2761 | (exit $ac_status); } && { |
| 2762 | test -z "$ac_c_werror_flag" || |
| 2763 | test ! -s conftest.err |
| 2764 | } && test -s conftest.$ac_objext; then |
| 2765 | ac_cv_prog_cc_c89=$ac_arg |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2766 | else |
| 2767 | echo "$as_me: failed program was:" >&5 |
| 2768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2769 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2770 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2771 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2772 | |
| 2773 | rm -f core conftest.err conftest.$ac_objext |
| 2774 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2775 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2776 | rm -f conftest.$ac_ext |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2777 | CC=$ac_save_CC |
| 2778 | |
| 2779 | fi |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2780 | # AC_CACHE_VAL |
| 2781 | case "x$ac_cv_prog_cc_c89" in |
| 2782 | x) |
| 2783 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2784 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2785 | xno) |
| 2786 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2787 | echo "${ECHO_T}unsupported" >&6; } ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2788 | *) |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2789 | CC="$CC $ac_cv_prog_cc_c89" |
| 2790 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2791 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2792 | esac |
| 2793 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2794 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2795 | ac_ext=c |
| 2796 | ac_cpp='$CPP $CPPFLAGS' |
| 2797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2800 | |
| 2801 | |
| 2802 | |
| 2803 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 2804 | set dummy mkdir; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2805 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2807 | if test "${ac_cv_prog_MKDIR+set}" = set; then |
| 2808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2809 | else |
| 2810 | if test -n "$MKDIR"; then |
| 2811 | ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test. |
| 2812 | else |
| 2813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2814 | for as_dir in $PATH |
| 2815 | do |
| 2816 | IFS=$as_save_IFS |
| 2817 | test -z "$as_dir" && as_dir=. |
| 2818 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2820 | ac_cv_prog_MKDIR="mkdir" |
| 2821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2822 | break 2 |
| 2823 | fi |
| 2824 | done |
| 2825 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2826 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2827 | |
| 2828 | fi |
| 2829 | fi |
| 2830 | MKDIR=$ac_cv_prog_MKDIR |
| 2831 | if test -n "$MKDIR"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2832 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 2833 | echo "${ECHO_T}$MKDIR" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2834 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2835 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2836 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2837 | fi |
| 2838 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2839 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2840 | # Extract the first word of "rm", so it can be a program name with args. |
| 2841 | set dummy rm; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2844 | if test "${ac_cv_prog_RM+set}" = set; then |
| 2845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2846 | else |
| 2847 | if test -n "$RM"; then |
| 2848 | ac_cv_prog_RM="$RM" # Let the user override the test. |
| 2849 | else |
| 2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2851 | for as_dir in $PATH |
| 2852 | do |
| 2853 | IFS=$as_save_IFS |
| 2854 | test -z "$as_dir" && as_dir=. |
| 2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2857 | ac_cv_prog_RM="rm" |
| 2858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2859 | break 2 |
| 2860 | fi |
| 2861 | done |
| 2862 | done |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2863 | IFS=$as_save_IFS |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2864 | |
| 2865 | fi |
| 2866 | fi |
| 2867 | RM=$ac_cv_prog_RM |
| 2868 | if test -n "$RM"; then |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2869 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 2870 | echo "${ECHO_T}$RM" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2871 | else |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2873 | echo "${ECHO_T}no" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2874 | fi |
| 2875 | |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2876 | |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2877 | # Extract the first word of "cp", so it can be a program name with args. |
| 2878 | set dummy cp; ac_word=$2 |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2879 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2881 | if test "${ac_cv_prog_CP+set}" = set; then |
| 2882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2883 | else |
| 2884 | if test -n "$CP"; then |
| 2885 | ac_cv_prog_CP="$CP" # Let the user override the test. |
| 2886 | else |
| 2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2888 | for as_dir in $PATH |
| 2889 | do |
| 2890 | IFS=$as_save_IFS |
| 2891 | test -z "$as_dir" && as_dir=. |
| 2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ward Vandewege | ebc9218 | 2008-08-06 20:37:38 +0000 | [diff] [blame] | 2893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Stefan Reinauer | b34eea3 | 2008-02-15 18:16:06 +0000 | [diff] [blame] | 2894 | ac_cv_prog_CP="cp" |
| 2895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2896 | break 2 |
| 2897 | fi |
| 2898 | done |
| 2899 | done |
Ward Vandewege | ebc921
|