Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 20 | setopt NO_GLOB_SUBST |
| 21 | else |
| 22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 23 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
| 26 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 27 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 28 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 29 | # Avoid depending upon Character Ranges. |
| 30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33 | as_cr_digits='0123456789' |
| 34 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35 | |
| 36 | # The user is always right. |
| 37 | if test "${PATH_SEPARATOR+set}" != set; then |
| 38 | echo "#! /bin/sh" >conf$$.sh |
| 39 | echo "exit 0" >>conf$$.sh |
| 40 | chmod +x conf$$.sh |
| 41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 42 | PATH_SEPARATOR=';' |
| 43 | else |
| 44 | PATH_SEPARATOR=: |
| 45 | fi |
| 46 | rm -f conf$$.sh |
| 47 | fi |
| 48 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 49 | # Support unset when possible. |
| 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 51 | as_unset=unset |
| 52 | else |
| 53 | as_unset=false |
| 54 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 55 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 56 | |
| 57 | # IFS |
| 58 | # We need space, tab and new line, in precisely that order. Quoting is |
| 59 | # there to prevent editors from complaining about space-tab. |
| 60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 61 | # splitting by setting IFS to empty value.) |
| 62 | as_nl=' |
| 63 | ' |
| 64 | IFS=" "" $as_nl" |
| 65 | |
| 66 | # Find who we are. Look in the path if we contain no directory separator. |
| 67 | case $0 in |
| 68 | *[\\/]* ) as_myself=$0 ;; |
| 69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 70 | for as_dir in $PATH |
| 71 | do |
| 72 | IFS=$as_save_IFS |
| 73 | test -z "$as_dir" && as_dir=. |
| 74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 75 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 76 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 77 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 78 | ;; |
| 79 | esac |
| 80 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 81 | # in which case we are not to be found in the path. |
| 82 | if test "x$as_myself" = x; then |
| 83 | as_myself=$0 |
| 84 | fi |
| 85 | if test ! -f "$as_myself"; then |
| 86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 87 | { (exit 1); exit 1; } |
| 88 | fi |
| 89 | |
| 90 | # Work around bugs in pre-3.0 UWIN ksh. |
| 91 | for as_var in ENV MAIL MAILPATH |
| 92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 93 | done |
| 94 | PS1='$ ' |
| 95 | PS2='> ' |
| 96 | PS4='+ ' |
| 97 | |
| 98 | # NLS nuisances. |
| 99 | for as_var in \ |
| 100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 102 | LC_TELEPHONE LC_TIME |
| 103 | do |
| 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 105 | eval $as_var=C; export $as_var |
| 106 | else |
| 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 108 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 109 | done |
| 110 | |
| 111 | # Required to use basename. |
| 112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 114 | as_expr=expr |
| 115 | else |
| 116 | as_expr=false |
| 117 | fi |
| 118 | |
| 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 120 | as_basename=basename |
| 121 | else |
| 122 | as_basename=false |
| 123 | fi |
| 124 | |
| 125 | |
| 126 | # Name of the executable. |
| 127 | as_me=`$as_basename -- "$0" || |
| 128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 129 | X"$0" : 'X\(//\)$' \| \ |
| 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 131 | echo X/"$0" | |
| 132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 133 | s//\1/ |
| 134 | q |
| 135 | } |
| 136 | /^X\/\(\/\/\)$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\).*/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | s/.*/./; q'` |
| 145 | |
| 146 | # CDPATH. |
| 147 | $as_unset CDPATH |
| 148 | |
| 149 | |
| 150 | if test "x$CONFIG_SHELL" = x; then |
| 151 | if (eval ":") 2>/dev/null; then |
| 152 | as_have_required=yes |
| 153 | else |
| 154 | as_have_required=no |
| 155 | fi |
| 156 | |
| 157 | if test $as_have_required = yes && (eval ": |
| 158 | (as_func_return () { |
| 159 | (exit \$1) |
| 160 | } |
| 161 | as_func_success () { |
| 162 | as_func_return 0 |
| 163 | } |
| 164 | as_func_failure () { |
| 165 | as_func_return 1 |
| 166 | } |
| 167 | as_func_ret_success () { |
| 168 | return 0 |
| 169 | } |
| 170 | as_func_ret_failure () { |
| 171 | return 1 |
| 172 | } |
| 173 | |
| 174 | exitcode=0 |
| 175 | if as_func_success; then |
| 176 | : |
| 177 | else |
| 178 | exitcode=1 |
| 179 | echo as_func_success failed. |
| 180 | fi |
| 181 | |
| 182 | if as_func_failure; then |
| 183 | exitcode=1 |
| 184 | echo as_func_failure succeeded. |
| 185 | fi |
| 186 | |
| 187 | if as_func_ret_success; then |
| 188 | : |
| 189 | else |
| 190 | exitcode=1 |
| 191 | echo as_func_ret_success failed. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_failure; then |
| 195 | exitcode=1 |
| 196 | echo as_func_ret_failure succeeded. |
| 197 | fi |
| 198 | |
| 199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 200 | : |
| 201 | else |
| 202 | exitcode=1 |
| 203 | echo positional parameters were not saved. |
| 204 | fi |
| 205 | |
| 206 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 207 | |
| 208 | ( |
| 209 | as_lineno_1=\$LINENO |
| 210 | as_lineno_2=\$LINENO |
| 211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 213 | ") 2> /dev/null; then |
| 214 | : |
| 215 | else |
| 216 | as_candidate_shells= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 219 | do |
| 220 | IFS=$as_save_IFS |
| 221 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 222 | case $as_dir in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 223 | /*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 224 | for as_base in sh bash ksh sh5; do |
| 225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 226 | done;; |
| 227 | esac |
| 228 | done |
| 229 | IFS=$as_save_IFS |
| 230 | |
| 231 | |
| 232 | for as_shell in $as_candidate_shells $SHELL; do |
| 233 | # Try only shells that exist, to save several forks. |
| 234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 235 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 236 | # Be Bourne compatible |
| 237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 238 | emulate sh |
| 239 | NULLCMD=: |
| 240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 241 | # is contrary to our usage. Disable this feature. |
| 242 | alias -g '${1+"$@"}'='"$@"' |
| 243 | setopt NO_GLOB_SUBST |
| 244 | else |
| 245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 246 | fi |
| 247 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 248 | DUALCASE=1; export DUALCASE # for MKS sh |
| 249 | |
| 250 | : |
| 251 | _ASEOF |
| 252 | }; then |
| 253 | CONFIG_SHELL=$as_shell |
| 254 | as_have_required=yes |
| 255 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 256 | # Be Bourne compatible |
| 257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 258 | emulate sh |
| 259 | NULLCMD=: |
| 260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 261 | # is contrary to our usage. Disable this feature. |
| 262 | alias -g '${1+"$@"}'='"$@"' |
| 263 | setopt NO_GLOB_SUBST |
| 264 | else |
| 265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 266 | fi |
| 267 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 268 | DUALCASE=1; export DUALCASE # for MKS sh |
| 269 | |
| 270 | : |
| 271 | (as_func_return () { |
| 272 | (exit $1) |
| 273 | } |
| 274 | as_func_success () { |
| 275 | as_func_return 0 |
| 276 | } |
| 277 | as_func_failure () { |
| 278 | as_func_return 1 |
| 279 | } |
| 280 | as_func_ret_success () { |
| 281 | return 0 |
| 282 | } |
| 283 | as_func_ret_failure () { |
| 284 | return 1 |
| 285 | } |
| 286 | |
| 287 | exitcode=0 |
| 288 | if as_func_success; then |
| 289 | : |
| 290 | else |
| 291 | exitcode=1 |
| 292 | echo as_func_success failed. |
| 293 | fi |
| 294 | |
| 295 | if as_func_failure; then |
| 296 | exitcode=1 |
| 297 | echo as_func_failure succeeded. |
| 298 | fi |
| 299 | |
| 300 | if as_func_ret_success; then |
| 301 | : |
| 302 | else |
| 303 | exitcode=1 |
| 304 | echo as_func_ret_success failed. |
| 305 | fi |
| 306 | |
| 307 | if as_func_ret_failure; then |
| 308 | exitcode=1 |
| 309 | echo as_func_ret_failure succeeded. |
| 310 | fi |
| 311 | |
| 312 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 313 | : |
| 314 | else |
| 315 | exitcode=1 |
| 316 | echo positional parameters were not saved. |
| 317 | fi |
| 318 | |
| 319 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 320 | |
| 321 | ( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 322 | as_lineno_1=$LINENO |
| 323 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 326 | |
| 327 | _ASEOF |
| 328 | }; then |
| 329 | break |
| 330 | fi |
| 331 | |
| 332 | fi |
| 333 | |
| 334 | done |
| 335 | |
| 336 | if test "x$CONFIG_SHELL" != x; then |
| 337 | for as_var in BASH_ENV ENV |
| 338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 339 | done |
| 340 | export CONFIG_SHELL |
| 341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 342 | fi |
| 343 | |
| 344 | |
| 345 | if test $as_have_required = no; then |
| 346 | echo This script requires a shell more modern than all the |
| 347 | echo shells that I found on your system. Please install a |
| 348 | echo modern shell, or manually run the script under such a |
| 349 | echo shell if you do have one. |
| 350 | { (exit 1); exit 1; } |
| 351 | fi |
| 352 | |
| 353 | |
| 354 | fi |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | |
| 359 | |
| 360 | (eval "as_func_return () { |
| 361 | (exit \$1) |
| 362 | } |
| 363 | as_func_success () { |
| 364 | as_func_return 0 |
| 365 | } |
| 366 | as_func_failure () { |
| 367 | as_func_return 1 |
| 368 | } |
| 369 | as_func_ret_success () { |
| 370 | return 0 |
| 371 | } |
| 372 | as_func_ret_failure () { |
| 373 | return 1 |
| 374 | } |
| 375 | |
| 376 | exitcode=0 |
| 377 | if as_func_success; then |
| 378 | : |
| 379 | else |
| 380 | exitcode=1 |
| 381 | echo as_func_success failed. |
| 382 | fi |
| 383 | |
| 384 | if as_func_failure; then |
| 385 | exitcode=1 |
| 386 | echo as_func_failure succeeded. |
| 387 | fi |
| 388 | |
| 389 | if as_func_ret_success; then |
| 390 | : |
| 391 | else |
| 392 | exitcode=1 |
| 393 | echo as_func_ret_success failed. |
| 394 | fi |
| 395 | |
| 396 | if as_func_ret_failure; then |
| 397 | exitcode=1 |
| 398 | echo as_func_ret_failure succeeded. |
| 399 | fi |
| 400 | |
| 401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 402 | : |
| 403 | else |
| 404 | exitcode=1 |
| 405 | echo positional parameters were not saved. |
| 406 | fi |
| 407 | |
| 408 | test \$exitcode = 0") || { |
| 409 | echo No shell found that supports shell functions. |
| 410 | echo Please tell autoconf@gnu.org about your system, |
| 411 | echo including any error possibly output before this |
| 412 | echo message |
| 413 | } |
| 414 | |
| 415 | |
| 416 | |
| 417 | as_lineno_1=$LINENO |
| 418 | as_lineno_2=$LINENO |
| 419 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 421 | |
| 422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 423 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 424 | # line-number line after each line using $LINENO; the second 'sed' |
| 425 | # does the real work. The second script uses 'N' to pair each |
| 426 | # line-number line with the line containing $LINENO, and appends |
| 427 | # trailing '-' during substitution so that $LINENO is not a special |
| 428 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 431 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 432 | sed -n ' |
| 433 | p |
| 434 | /[$]LINENO/= |
| 435 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 436 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | s/[$]LINENO.*/&-/ |
| 438 | t lineno |
| 439 | b |
| 440 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 441 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 442 | :loop |
| 443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 444 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 445 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 446 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 447 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 449 | { (exit 1); exit 1; }; } |
| 450 | |
| 451 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 452 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 453 | # original and so on. Autoconf is especially sensitive to this). |
| 454 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 455 | # Exit status is that of the last command. |
| 456 | exit |
| 457 | } |
| 458 | |
| 459 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 461 | as_dirname=dirname |
| 462 | else |
| 463 | as_dirname=false |
| 464 | fi |
| 465 | |
| 466 | ECHO_C= ECHO_N= ECHO_T= |
| 467 | case `echo -n x` in |
| 468 | -n*) |
| 469 | case `echo 'x\c'` in |
| 470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 471 | *) ECHO_C='\c';; |
| 472 | esac;; |
| 473 | *) |
| 474 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 475 | esac |
| 476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | as_expr=expr |
| 480 | else |
| 481 | as_expr=false |
| 482 | fi |
| 483 | |
| 484 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | if test -d conf$$.dir; then |
| 486 | rm -f conf$$.dir/conf$$.file |
| 487 | else |
| 488 | rm -f conf$$.dir |
| 489 | mkdir conf$$.dir |
| 490 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 491 | echo >conf$$.file |
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 493 | as_ln_s='ln -s' |
| 494 | # ... but there are two gotchas: |
| 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 497 | # In both cases, we have to default to `cp -p'. |
| 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 499 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 501 | as_ln_s=ln |
| 502 | else |
| 503 | as_ln_s='cp -p' |
| 504 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 506 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 507 | |
| 508 | if mkdir -p . 2>/dev/null; then |
| 509 | as_mkdir_p=: |
| 510 | else |
| 511 | test -d ./-p && rmdir ./-p |
| 512 | as_mkdir_p=false |
| 513 | fi |
| 514 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 516 | # systems may use methods other than mode bits to determine executability. |
| 517 | cat >conf$$.file <<_ASEOF |
| 518 | #! /bin/sh |
| 519 | exit 0 |
| 520 | _ASEOF |
| 521 | chmod +x conf$$.file |
| 522 | if test -x conf$$.file >/dev/null 2>&1; then |
| 523 | as_executable_p="test -x" |
| 524 | else |
| 525 | as_executable_p=: |
| 526 | fi |
| 527 | rm -f conf$$.file |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 528 | |
| 529 | # Sed expression to map a string onto a valid CPP name. |
| 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 531 | |
| 532 | # Sed expression to map a string onto a valid variable name. |
| 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 534 | |
| 535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | exec 7<&0 </dev/null 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 538 | |
| 539 | # Name of the host. |
| 540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 541 | # so uname gets run too. |
| 542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 544 | # |
| 545 | # Initializations. |
| 546 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 547 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 548 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 550 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 551 | cross_compiling=no |
| 552 | subdirs= |
| 553 | MFLAGS= |
| 554 | MAKEFLAGS= |
| 555 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 556 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 557 | # Identity of this package. |
| 558 | PACKAGE_NAME= |
| 559 | PACKAGE_TARNAME= |
| 560 | PACKAGE_VERSION= |
| 561 | PACKAGE_STRING= |
| 562 | PACKAGE_BUGREPORT= |
| 563 | |
| 564 | ac_unique_file="version.h" |
| 565 | # Factoring default headers for most tests. |
| 566 | ac_includes_default="\ |
| 567 | #include <stdio.h> |
| 568 | #if HAVE_SYS_TYPES_H |
| 569 | # include <sys/types.h> |
| 570 | #endif |
| 571 | #if HAVE_SYS_STAT_H |
| 572 | # include <sys/stat.h> |
| 573 | #endif |
| 574 | #if STDC_HEADERS |
| 575 | # include <stdlib.h> |
| 576 | # include <stddef.h> |
| 577 | #else |
| 578 | # if HAVE_STDLIB_H |
| 579 | # include <stdlib.h> |
| 580 | # endif |
| 581 | #endif |
| 582 | #if HAVE_STRING_H |
| 583 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 584 | # include <memory.h> |
| 585 | # endif |
| 586 | # include <string.h> |
| 587 | #endif |
| 588 | #if HAVE_STRINGS_H |
| 589 | # include <strings.h> |
| 590 | #endif |
| 591 | #if HAVE_INTTYPES_H |
| 592 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 593 | #endif |
| 594 | #if HAVE_STDINT_H |
| 595 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | #endif |
| 597 | #if HAVE_UNISTD_H |
| 598 | # include <unistd.h> |
| 599 | #endif" |
| 600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 601 | ac_subst_vars='SHELL |
| 602 | PATH_SEPARATOR |
| 603 | PACKAGE_NAME |
| 604 | PACKAGE_TARNAME |
| 605 | PACKAGE_VERSION |
| 606 | PACKAGE_STRING |
| 607 | PACKAGE_BUGREPORT |
| 608 | exec_prefix |
| 609 | prefix |
| 610 | program_transform_name |
| 611 | bindir |
| 612 | sbindir |
| 613 | libexecdir |
| 614 | datarootdir |
| 615 | datadir |
| 616 | sysconfdir |
| 617 | sharedstatedir |
| 618 | localstatedir |
| 619 | includedir |
| 620 | oldincludedir |
| 621 | docdir |
| 622 | infodir |
| 623 | htmldir |
| 624 | dvidir |
| 625 | pdfdir |
| 626 | psdir |
| 627 | libdir |
| 628 | localedir |
| 629 | mandir |
| 630 | DEFS |
| 631 | ECHO_C |
| 632 | ECHO_N |
| 633 | ECHO_T |
| 634 | LIBS |
| 635 | build_alias |
| 636 | host_alias |
| 637 | target_alias |
| 638 | E2FSPROGS_YEAR |
| 639 | E2FSPROGS_MONTH |
| 640 | E2FSPROGS_DAY |
| 641 | E2FSPROGS_VERSION |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 642 | E2FSPROGS_PKGVER |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 643 | build |
| 644 | build_cpu |
| 645 | build_vendor |
| 646 | build_os |
| 647 | host |
| 648 | host_cpu |
| 649 | host_vendor |
| 650 | host_os |
| 651 | CC |
| 652 | CFLAGS |
| 653 | LDFLAGS |
| 654 | CPPFLAGS |
| 655 | ac_ct_CC |
| 656 | EXEEXT |
| 657 | OBJEXT |
| 658 | LD |
| 659 | CPP |
| 660 | GREP |
| 661 | EGREP |
| 662 | LINUX_INCLUDE |
| 663 | MAINTAINER_CMT |
| 664 | HTREE_CMT |
| 665 | ELF_CMT |
| 666 | BSDLIB_CMT |
| 667 | PROFILE_CMT |
| 668 | CHECKER_CMT |
| 669 | LIB_EXT |
| 670 | STATIC_LIB_EXT |
| 671 | PROFILED_LIB_EXT |
| 672 | SWAPFS_CMT |
| 673 | DEBUGFS_CMT |
| 674 | IMAGER_CMT |
| 675 | RESIZER_CMT |
| 676 | E2FSCK_TYPE |
| 677 | FSCK_PROG |
| 678 | FSCK_MAN |
| 679 | E2INITRD_PROG |
| 680 | E2INITRD_MAN |
| 681 | DEVMAPPER_REQ |
| 682 | DEVMAPPER_PC_LIBS |
| 683 | DEVMAPPER_LIBS |
| 684 | STATIC_DEVMAPPER_LIBS |
| 685 | GETTEXT_PACKAGE |
| 686 | PACKAGE |
| 687 | VERSION |
| 688 | SET_MAKE |
| 689 | INSTALL_PROGRAM |
| 690 | INSTALL_SCRIPT |
| 691 | INSTALL_DATA |
| 692 | MKINSTALLDIRS |
| 693 | USE_NLS |
| 694 | MSGFMT |
| 695 | GMSGFMT |
| 696 | XGETTEXT |
| 697 | MSGMERGE |
| 698 | RANLIB |
| 699 | ALLOCA |
| 700 | GLIBC21 |
| 701 | HAVE_POSIX_PRINTF |
| 702 | HAVE_ASPRINTF |
| 703 | HAVE_SNPRINTF |
| 704 | HAVE_WPRINTF |
| 705 | LIBICONV |
| 706 | LTLIBICONV |
| 707 | INTLBISON |
| 708 | BUILD_INCLUDED_LIBINTL |
| 709 | USE_INCLUDED_LIBINTL |
| 710 | CATOBJEXT |
| 711 | DATADIRNAME |
| 712 | INSTOBJEXT |
| 713 | GENCAT |
| 714 | INTLOBJS |
| 715 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 716 | INTLLIBS |
| 717 | LIBINTL |
| 718 | LTLIBINTL |
| 719 | POSUB |
| 720 | BINARY_TYPE |
| 721 | LN |
| 722 | LN_S |
| 723 | MV |
| 724 | CP |
| 725 | RM |
| 726 | CHMOD |
| 727 | AWK |
| 728 | SED |
| 729 | PERL |
| 730 | LDCONFIG |
| 731 | AR |
| 732 | STRIP |
| 733 | BUILD_CC |
| 734 | SIZEOF_SHORT |
| 735 | SIZEOF_INT |
| 736 | SIZEOF_LONG |
| 737 | SIZEOF_LONG_LONG |
| 738 | SOCKET_LIB |
| 739 | DLOPEN_LIB |
| 740 | UNI_DIFF_OPTS |
| 741 | LINUX_CMT |
| 742 | CYGWIN_CMT |
| 743 | UNIX_CMT |
| 744 | root_prefix |
| 745 | root_bindir |
| 746 | root_sbindir |
| 747 | root_libdir |
| 748 | root_sysconfdir |
| 749 | LDFLAG_STATIC |
| 750 | SS_DIR |
| 751 | ET_DIR |
| 752 | DO_TEST_SUITE |
| 753 | INTL_FLAGS |
| 754 | BUILD_CFLAGS |
| 755 | BUILD_LDFLAGS |
| 756 | LIBOBJS |
| 757 | LTLIBOBJS' |
| 758 | ac_subst_files='MCONFIG |
| 759 | MAKEFILE_ELF |
| 760 | MAKEFILE_BSDLIB |
| 761 | MAKEFILE_PROFILE |
| 762 | MAKEFILE_CHECKER |
| 763 | MAKEFILE_LIBRARY |
| 764 | ASM_TYPES_HEADER' |
| 765 | ac_precious_vars='build_alias |
| 766 | host_alias |
| 767 | target_alias |
| 768 | CC |
| 769 | CFLAGS |
| 770 | LDFLAGS |
| 771 | CPPFLAGS |
| 772 | CPP' |
| 773 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 774 | |
| 775 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 776 | ac_init_help= |
| 777 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 778 | # The variables have the same names as the options, with |
| 779 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 780 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 781 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 782 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 783 | no_recursion= |
| 784 | prefix=NONE |
| 785 | program_prefix=NONE |
| 786 | program_suffix=NONE |
| 787 | program_transform_name=s,x,x, |
| 788 | silent= |
| 789 | site= |
| 790 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 791 | verbose= |
| 792 | x_includes=NONE |
| 793 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 794 | |
| 795 | # Installation directory options. |
| 796 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 797 | # and all the variables that are supposed to be based on exec_prefix |
| 798 | # by default will actually change. |
| 799 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 800 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 801 | bindir='${exec_prefix}/bin' |
| 802 | sbindir='${exec_prefix}/sbin' |
| 803 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 804 | datarootdir='${prefix}/share' |
| 805 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 806 | sysconfdir='${prefix}/etc' |
| 807 | sharedstatedir='${prefix}/com' |
| 808 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 809 | includedir='${prefix}/include' |
| 810 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 811 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 812 | infodir='${datarootdir}/info' |
| 813 | htmldir='${docdir}' |
| 814 | dvidir='${docdir}' |
| 815 | pdfdir='${docdir}' |
| 816 | psdir='${docdir}' |
| 817 | libdir='${exec_prefix}/lib' |
| 818 | localedir='${datarootdir}/locale' |
| 819 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 820 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 821 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 822 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 823 | for ac_option |
| 824 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 825 | # If the previous option needs an argument, assign it. |
| 826 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 827 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 828 | ac_prev= |
| 829 | continue |
| 830 | fi |
| 831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 832 | case $ac_option in |
| 833 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 834 | *) ac_optarg=yes ;; |
| 835 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 836 | |
| 837 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 838 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 839 | case $ac_dashdash$ac_option in |
| 840 | --) |
| 841 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 842 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 843 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 844 | ac_prev=bindir ;; |
| 845 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 846 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 847 | |
| 848 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 849 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 850 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 851 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 852 | |
| 853 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 854 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 855 | ac_prev=cache_file ;; |
| 856 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 857 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 858 | cache_file=$ac_optarg ;; |
| 859 | |
| 860 | --config-cache | -C) |
| 861 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 863 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 864 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 865 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 866 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 867 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 868 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 869 | | --dataroo | --dataro | --datar) |
| 870 | ac_prev=datarootdir ;; |
| 871 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 872 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 873 | datarootdir=$ac_optarg ;; |
| 874 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 875 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 876 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 877 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 878 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 879 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 880 | { (exit 1); exit 1; }; } |
| 881 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 882 | eval enable_$ac_feature=no ;; |
| 883 | |
| 884 | -docdir | --docdir | --docdi | --doc | --do) |
| 885 | ac_prev=docdir ;; |
| 886 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 887 | docdir=$ac_optarg ;; |
| 888 | |
| 889 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 890 | ac_prev=dvidir ;; |
| 891 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 892 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | |
| 894 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 895 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 896 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 897 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 898 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 899 | { (exit 1); exit 1; }; } |
| 900 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 901 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 902 | |
| 903 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 904 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 905 | | --exec | --exe | --ex) |
| 906 | ac_prev=exec_prefix ;; |
| 907 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 908 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 909 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 910 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 911 | |
| 912 | -gas | --gas | --ga | --g) |
| 913 | # Obsolete; use --with-gas. |
| 914 | with_gas=yes ;; |
| 915 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 916 | -help | --help | --hel | --he | -h) |
| 917 | ac_init_help=long ;; |
| 918 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 919 | ac_init_help=recursive ;; |
| 920 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 921 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | |
| 923 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 924 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 925 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 926 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 928 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 929 | ac_prev=htmldir ;; |
| 930 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 931 | | --ht=*) |
| 932 | htmldir=$ac_optarg ;; |
| 933 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | -includedir | --includedir | --includedi | --included | --include \ |
| 935 | | --includ | --inclu | --incl | --inc) |
| 936 | ac_prev=includedir ;; |
| 937 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 938 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 939 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 940 | |
| 941 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 942 | ac_prev=infodir ;; |
| 943 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 944 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 945 | |
| 946 | -libdir | --libdir | --libdi | --libd) |
| 947 | ac_prev=libdir ;; |
| 948 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 949 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 950 | |
| 951 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 952 | | --libexe | --libex | --libe) |
| 953 | ac_prev=libexecdir ;; |
| 954 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 955 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 956 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 958 | -localedir | --localedir | --localedi | --localed | --locale) |
| 959 | ac_prev=localedir ;; |
| 960 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 961 | localedir=$ac_optarg ;; |
| 962 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 963 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 964 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 965 | ac_prev=localstatedir ;; |
| 966 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 967 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 968 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 969 | |
| 970 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 971 | ac_prev=mandir ;; |
| 972 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 973 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 974 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 975 | -nfp | --nfp | --nf) |
| 976 | # Obsolete; use --without-fp. |
| 977 | with_fp=no ;; |
| 978 | |
| 979 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 980 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 981 | no_create=yes ;; |
| 982 | |
| 983 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 984 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 985 | no_recursion=yes ;; |
| 986 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 987 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 988 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 989 | | --oldin | --oldi | --old | --ol | --o) |
| 990 | ac_prev=oldincludedir ;; |
| 991 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 992 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 993 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 994 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 995 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 996 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 997 | ac_prev=prefix ;; |
| 998 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 999 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1000 | |
| 1001 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1002 | | --program-pre | --program-pr | --program-p) |
| 1003 | ac_prev=program_prefix ;; |
| 1004 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1005 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1006 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1007 | |
| 1008 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1009 | | --program-suf | --program-su | --program-s) |
| 1010 | ac_prev=program_suffix ;; |
| 1011 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1012 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1013 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1014 | |
| 1015 | -program-transform-name | --program-transform-name \ |
| 1016 | | --program-transform-nam | --program-transform-na \ |
| 1017 | | --program-transform-n | --program-transform- \ |
| 1018 | | --program-transform | --program-transfor \ |
| 1019 | | --program-transfo | --program-transf \ |
| 1020 | | --program-trans | --program-tran \ |
| 1021 | | --progr-tra | --program-tr | --program-t) |
| 1022 | ac_prev=program_transform_name ;; |
| 1023 | -program-transform-name=* | --program-transform-name=* \ |
| 1024 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1025 | | --program-transform-n=* | --program-transform-=* \ |
| 1026 | | --program-transform=* | --program-transfor=* \ |
| 1027 | | --program-transfo=* | --program-transf=* \ |
| 1028 | | --program-trans=* | --program-tran=* \ |
| 1029 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1030 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1032 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1033 | ac_prev=pdfdir ;; |
| 1034 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1035 | pdfdir=$ac_optarg ;; |
| 1036 | |
| 1037 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1038 | ac_prev=psdir ;; |
| 1039 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1040 | psdir=$ac_optarg ;; |
| 1041 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1042 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1043 | | -silent | --silent | --silen | --sile | --sil) |
| 1044 | silent=yes ;; |
| 1045 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1046 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1047 | ac_prev=sbindir ;; |
| 1048 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1049 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1050 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1051 | |
| 1052 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1053 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1054 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1055 | | --sha | --sh) |
| 1056 | ac_prev=sharedstatedir ;; |
| 1057 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1058 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1059 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1060 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1061 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1062 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1063 | -site | --site | --sit) |
| 1064 | ac_prev=site ;; |
| 1065 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1066 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1067 | |
| 1068 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1069 | ac_prev=srcdir ;; |
| 1070 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1071 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1072 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1073 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1074 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1075 | ac_prev=sysconfdir ;; |
| 1076 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1077 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1078 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1079 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1080 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1081 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1082 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1083 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1084 | |
| 1085 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1086 | verbose=yes ;; |
| 1087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1088 | -version | --version | --versio | --versi | --vers | -V) |
| 1089 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1090 | |
| 1091 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1092 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1093 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1095 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1096 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1097 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1098 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1099 | |
| 1100 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1101 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1102 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1103 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1104 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1105 | { (exit 1); exit 1; }; } |
| 1106 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1107 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1108 | |
| 1109 | --x) |
| 1110 | # Obsolete; use --with-x. |
| 1111 | with_x=yes ;; |
| 1112 | |
| 1113 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1114 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1115 | ac_prev=x_includes ;; |
| 1116 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1117 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1118 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1119 | |
| 1120 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1121 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1122 | ac_prev=x_libraries ;; |
| 1123 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1124 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1125 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1127 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1128 | Try \`$0 --help' for more information." >&2 |
| 1129 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1130 | ;; |
| 1131 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1132 | *=*) |
| 1133 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1134 | # Reject names that are not valid shell variable names. |
| 1135 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1136 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1137 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1138 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1139 | export $ac_envvar ;; |
| 1140 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1141 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1142 | # FIXME: should be removed in autoconf 3.0. |
| 1143 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1144 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1145 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1146 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1147 | ;; |
| 1148 | |
| 1149 | esac |
| 1150 | done |
| 1151 | |
| 1152 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1153 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1154 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1155 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1156 | fi |
| 1157 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1158 | # Be sure to have absolute directory names. |
| 1159 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1160 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1161 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1162 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1163 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1164 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1165 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1166 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1167 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1168 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1169 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1170 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1171 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1172 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1173 | # There might be people who depend on the old broken behavior: `$host' |
| 1174 | # used to hold the argument of --host etc. |
| 1175 | # FIXME: To remove some day. |
| 1176 | build=$build_alias |
| 1177 | host=$host_alias |
| 1178 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1180 | # FIXME: To remove some day. |
| 1181 | if test "x$host_alias" != x; then |
| 1182 | if test "x$build_alias" = x; then |
| 1183 | cross_compiling=maybe |
| 1184 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1185 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1186 | elif test "x$build_alias" != "x$host_alias"; then |
| 1187 | cross_compiling=yes |
| 1188 | fi |
| 1189 | fi |
| 1190 | |
| 1191 | ac_tool_prefix= |
| 1192 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1193 | |
| 1194 | test "$silent" = yes && exec 6>/dev/null |
| 1195 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1196 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1197 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1198 | ac_ls_di=`ls -di .` && |
| 1199 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1200 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1201 | { (exit 1); exit 1; }; } |
| 1202 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1203 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1204 | { (exit 1); exit 1; }; } |
| 1205 | |
| 1206 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1207 | # Find the source files, if location was not specified. |
| 1208 | if test -z "$srcdir"; then |
| 1209 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1210 | # Try the directory containing this script, then the parent directory. |
| 1211 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1212 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1213 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1214 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1215 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1216 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1217 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1218 | s//\1/ |
| 1219 | q |
| 1220 | } |
| 1221 | /^X\(\/\/\)[^/].*/{ |
| 1222 | s//\1/ |
| 1223 | q |
| 1224 | } |
| 1225 | /^X\(\/\/\)$/{ |
| 1226 | s//\1/ |
| 1227 | q |
| 1228 | } |
| 1229 | /^X\(\/\).*/{ |
| 1230 | s//\1/ |
| 1231 | q |
| 1232 | } |
| 1233 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1234 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1235 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1236 | srcdir=.. |
| 1237 | fi |
| 1238 | else |
| 1239 | ac_srcdir_defaulted=no |
| 1240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1242 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1243 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1244 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1245 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1246 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1247 | ac_abs_confdir=`( |
| 1248 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1249 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1250 | pwd)` |
| 1251 | # When building in place, set srcdir=. |
| 1252 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1253 | srcdir=. |
| 1254 | fi |
| 1255 | # Remove unnecessary trailing slashes from srcdir. |
| 1256 | # Double slashes in file names in object file debugging info |
| 1257 | # mess up M-x gdb in Emacs. |
| 1258 | case $srcdir in |
| 1259 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1260 | esac |
| 1261 | for ac_var in $ac_precious_vars; do |
| 1262 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1263 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1264 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1265 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1266 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1267 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1268 | # |
| 1269 | # Report the --help message. |
| 1270 | # |
| 1271 | if test "$ac_init_help" = "long"; then |
| 1272 | # Omit some internal or obsolete options to make the list less imposing. |
| 1273 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1274 | cat <<_ACEOF |
| 1275 | \`configure' configures this package to adapt to many kinds of systems. |
| 1276 | |
| 1277 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1278 | |
| 1279 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1280 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1281 | |
| 1282 | Defaults for the options are specified in brackets. |
| 1283 | |
| 1284 | Configuration: |
| 1285 | -h, --help display this help and exit |
| 1286 | --help=short display options specific to this package |
| 1287 | --help=recursive display the short help of all the included packages |
| 1288 | -V, --version display version information and exit |
| 1289 | -q, --quiet, --silent do not print \`checking...' messages |
| 1290 | --cache-file=FILE cache test results in FILE [disabled] |
| 1291 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1292 | -n, --no-create do not create output files |
| 1293 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1294 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1295 | Installation directories: |
| 1296 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1297 | [$ac_default_prefix] |
| 1298 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1299 | [PREFIX] |
| 1300 | |
| 1301 | By default, \`make install' will install all the files in |
| 1302 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1303 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1304 | for instance \`--prefix=\$HOME'. |
| 1305 | |
| 1306 | For better control, use the options below. |
| 1307 | |
| 1308 | Fine tuning of the installation directories: |
| 1309 | --bindir=DIR user executables [EPREFIX/bin] |
| 1310 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1311 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1312 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1313 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1314 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1315 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1316 | --includedir=DIR C header files [PREFIX/include] |
| 1317 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1318 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1319 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1320 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1321 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1322 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1323 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1324 | --htmldir=DIR html documentation [DOCDIR] |
| 1325 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1326 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1327 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1328 | _ACEOF |
| 1329 | |
| 1330 | cat <<\_ACEOF |
| 1331 | |
| 1332 | System types: |
| 1333 | --build=BUILD configure for building on BUILD [guessed] |
| 1334 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1335 | _ACEOF |
| 1336 | fi |
| 1337 | |
| 1338 | if test -n "$ac_init_help"; then |
| 1339 | |
| 1340 | cat <<\_ACEOF |
| 1341 | |
| 1342 | Optional Features: |
| 1343 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1344 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1345 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1346 | --enable-compression enable EXPERIMENTAL compression support |
| 1347 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1348 | --enable-elf-shlibs select ELF shared libraries |
| 1349 | --enable-bsd-shlibs select BSD shared libraries |
| 1350 | --enable-profile build profiling libraries |
| 1351 | --enable-checker build checker libraries |
| 1352 | --enable-jbd-debug enable journal debugging |
| 1353 | --enable-blkid-debug enable blkid debugging |
| 1354 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 1355 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 1356 | --disable-debugfs disable support of debugfs program |
| 1357 | --disable-imager disable support of e2image program |
| 1358 | --disable-resizer disable support of e2resize program |
| 1359 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 1360 | --enable-fsck build fsck wrapper program |
| 1361 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1362 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1363 | --disable-nls do not use Native Language Support |
| 1364 | --disable-rpath do not hardcode runtime library paths |
| 1365 | |
| 1366 | Optional Packages: |
| 1367 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1368 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1369 | --with-diet-libc Use diet libc |
| 1370 | --with-cc=COMPILER select compiler to use |
| 1371 | --with-linker=LINKER select linker to use |
| 1372 | --with-ccopts=CCOPTS select compiler command line options |
| 1373 | --with-ldopts=LDOPTS select linker command line options |
| 1374 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1375 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1376 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1377 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1378 | --with-included-gettext use the GNU gettext library included here |
| 1379 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1380 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1381 | |
| 1382 | Some influential environment variables: |
| 1383 | CC C compiler command |
| 1384 | CFLAGS C compiler flags |
| 1385 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1386 | nonstandard directory <lib dir> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1387 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1388 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1389 | CPP C preprocessor |
| 1390 | |
| 1391 | Use these variables to override the choices made by `configure' or to help |
| 1392 | it to find libraries and programs with nonstandard names/locations. |
| 1393 | |
| 1394 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1395 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1396 | fi |
| 1397 | |
| 1398 | if test "$ac_init_help" = "recursive"; then |
| 1399 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1400 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1401 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1402 | ac_builddir=. |
| 1403 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1404 | case "$ac_dir" in |
| 1405 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1406 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1407 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1408 | # A ".." for each directory in $ac_dir_suffix. |
| 1409 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1410 | case $ac_top_builddir_sub in |
| 1411 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1412 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1413 | esac ;; |
| 1414 | esac |
| 1415 | ac_abs_top_builddir=$ac_pwd |
| 1416 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1417 | # for backward compatibility: |
| 1418 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1419 | |
| 1420 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1421 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1422 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1423 | ac_top_srcdir=$ac_top_builddir_sub |
| 1424 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1425 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1426 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1427 | ac_top_srcdir=$srcdir |
| 1428 | ac_abs_top_srcdir=$srcdir ;; |
| 1429 | *) # Relative name. |
| 1430 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1431 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1432 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1433 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1434 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1436 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1437 | # Check for guested configure. |
| 1438 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1439 | echo && |
| 1440 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1441 | elif test -f "$ac_srcdir/configure"; then |
| 1442 | echo && |
| 1443 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1444 | else |
| 1445 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1446 | fi || ac_status=$? |
| 1447 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1448 | done |
| 1449 | fi |
| 1450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1451 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1452 | if $ac_init_version; then |
| 1453 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1454 | configure |
| 1455 | generated by GNU Autoconf 2.60 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1456 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1457 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1458 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1459 | This configure script is free software; the Free Software Foundation |
| 1460 | gives unlimited permission to copy, distribute and modify it. |
| 1461 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1462 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1463 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1464 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1465 | This file contains any messages produced by compilers while |
| 1466 | running configure, to aid debugging if configure makes a mistake. |
| 1467 | |
| 1468 | It was created by $as_me, which was |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1469 | generated by GNU Autoconf 2.60. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | |
| 1471 | $ $0 $@ |
| 1472 | |
| 1473 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1474 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1475 | { |
| 1476 | cat <<_ASUNAME |
| 1477 | ## --------- ## |
| 1478 | ## Platform. ## |
| 1479 | ## --------- ## |
| 1480 | |
| 1481 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1482 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1483 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1484 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1485 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1486 | |
| 1487 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1488 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1489 | |
| 1490 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1491 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1492 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1493 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1494 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1495 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1496 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1497 | |
| 1498 | _ASUNAME |
| 1499 | |
| 1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1501 | for as_dir in $PATH |
| 1502 | do |
| 1503 | IFS=$as_save_IFS |
| 1504 | test -z "$as_dir" && as_dir=. |
| 1505 | echo "PATH: $as_dir" |
| 1506 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1507 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1508 | |
| 1509 | } >&5 |
| 1510 | |
| 1511 | cat >&5 <<_ACEOF |
| 1512 | |
| 1513 | |
| 1514 | ## ----------- ## |
| 1515 | ## Core tests. ## |
| 1516 | ## ----------- ## |
| 1517 | |
| 1518 | _ACEOF |
| 1519 | |
| 1520 | |
| 1521 | # Keep a trace of the command line. |
| 1522 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1523 | # Strip out --silent because we don't want to record it for future runs. |
| 1524 | # Also quote any args containing shell meta-characters. |
| 1525 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1526 | ac_configure_args= |
| 1527 | ac_configure_args0= |
| 1528 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1529 | ac_must_keep_next=false |
| 1530 | for ac_pass in 1 2 |
| 1531 | do |
| 1532 | for ac_arg |
| 1533 | do |
| 1534 | case $ac_arg in |
| 1535 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1537 | | -silent | --silent | --silen | --sile | --sil) |
| 1538 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1539 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1540 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1541 | esac |
| 1542 | case $ac_pass in |
| 1543 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1544 | 2) |
| 1545 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1546 | if test $ac_must_keep_next = true; then |
| 1547 | ac_must_keep_next=false # Got value, back to normal. |
| 1548 | else |
| 1549 | case $ac_arg in |
| 1550 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1551 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1552 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1553 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1554 | case "$ac_configure_args0 " in |
| 1555 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1556 | esac |
| 1557 | ;; |
| 1558 | -* ) ac_must_keep_next=true ;; |
| 1559 | esac |
| 1560 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1561 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1562 | ;; |
| 1563 | esac |
| 1564 | done |
| 1565 | done |
| 1566 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1567 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1568 | |
| 1569 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1570 | # config.log. We remove comments because anyway the quotes in there |
| 1571 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1572 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1573 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1574 | trap 'exit_status=$? |
| 1575 | # Save into config.log some information that might help in debugging. |
| 1576 | { |
| 1577 | echo |
| 1578 | |
| 1579 | cat <<\_ASBOX |
| 1580 | ## ---------------- ## |
| 1581 | ## Cache variables. ## |
| 1582 | ## ---------------- ## |
| 1583 | _ASBOX |
| 1584 | echo |
| 1585 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1586 | ( |
| 1587 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1588 | eval ac_val=\$$ac_var |
| 1589 | case $ac_val in #( |
| 1590 | *${as_nl}*) |
| 1591 | case $ac_var in #( |
| 1592 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1593 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1594 | esac |
| 1595 | case $ac_var in #( |
| 1596 | _ | IFS | as_nl) ;; #( |
| 1597 | *) $as_unset $ac_var ;; |
| 1598 | esac ;; |
| 1599 | esac |
| 1600 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1601 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1602 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1603 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1604 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1605 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1606 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1607 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1608 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1609 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1610 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1611 | esac | |
| 1612 | sort |
| 1613 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1614 | echo |
| 1615 | |
| 1616 | cat <<\_ASBOX |
| 1617 | ## ----------------- ## |
| 1618 | ## Output variables. ## |
| 1619 | ## ----------------- ## |
| 1620 | _ASBOX |
| 1621 | echo |
| 1622 | for ac_var in $ac_subst_vars |
| 1623 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1624 | eval ac_val=\$$ac_var |
| 1625 | case $ac_val in |
| 1626 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1627 | esac |
| 1628 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1629 | done | sort |
| 1630 | echo |
| 1631 | |
| 1632 | if test -n "$ac_subst_files"; then |
| 1633 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1634 | ## ------------------- ## |
| 1635 | ## File substitutions. ## |
| 1636 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1637 | _ASBOX |
| 1638 | echo |
| 1639 | for ac_var in $ac_subst_files |
| 1640 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1641 | eval ac_val=\$$ac_var |
| 1642 | case $ac_val in |
| 1643 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1644 | esac |
| 1645 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1646 | done | sort |
| 1647 | echo |
| 1648 | fi |
| 1649 | |
| 1650 | if test -s confdefs.h; then |
| 1651 | cat <<\_ASBOX |
| 1652 | ## ----------- ## |
| 1653 | ## confdefs.h. ## |
| 1654 | ## ----------- ## |
| 1655 | _ASBOX |
| 1656 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1657 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1658 | echo |
| 1659 | fi |
| 1660 | test "$ac_signal" != 0 && |
| 1661 | echo "$as_me: caught signal $ac_signal" |
| 1662 | echo "$as_me: exit $exit_status" |
| 1663 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1664 | rm -f core *.core core.conftest.* && |
| 1665 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1666 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1667 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1668 | for ac_signal in 1 2 13 15; do |
| 1669 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1670 | done |
| 1671 | ac_signal=0 |
| 1672 | |
| 1673 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1674 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1675 | |
| 1676 | # Predefined preprocessor variables. |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
| 1693 | cat >>confdefs.h <<_ACEOF |
| 1694 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1695 | _ACEOF |
| 1696 | |
| 1697 | |
| 1698 | cat >>confdefs.h <<_ACEOF |
| 1699 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1700 | _ACEOF |
| 1701 | |
| 1702 | |
| 1703 | # Let the site file select an alternate cache file if it wants to. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1704 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1705 | if test -n "$CONFIG_SITE"; then |
| 1706 | set x "$CONFIG_SITE" |
| 1707 | elif test "x$prefix" != xNONE; then |
| 1708 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1709 | else |
| 1710 | set x "$ac_default_prefix/share/config.site" \ |
| 1711 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1712 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1713 | shift |
| 1714 | for ac_site_file |
| 1715 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1716 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1717 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1718 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1719 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1720 | . "$ac_site_file" |
| 1721 | fi |
| 1722 | done |
| 1723 | |
| 1724 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1725 | # Some versions of bash will fail to source /dev/null (special |
| 1726 | # files actually), so we avoid doing that. |
| 1727 | if test -f "$cache_file"; then |
| 1728 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1729 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1730 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1731 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1732 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1733 | esac |
| 1734 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1735 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1736 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1737 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1738 | >$cache_file |
| 1739 | fi |
| 1740 | |
| 1741 | # Check that the precious variables saved in the cache have kept the same |
| 1742 | # value. |
| 1743 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1744 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1745 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1746 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1747 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1748 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1749 | case $ac_old_set,$ac_new_set in |
| 1750 | set,) |
| 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1753 | ac_cache_corrupted=: ;; |
| 1754 | ,set) |
| 1755 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1756 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1757 | ac_cache_corrupted=: ;; |
| 1758 | ,);; |
| 1759 | *) |
| 1760 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1761 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1762 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1763 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1764 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1765 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1766 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1767 | ac_cache_corrupted=: |
| 1768 | fi;; |
| 1769 | esac |
| 1770 | # Pass precious variables to config.status. |
| 1771 | if test "$ac_new_set" = set; then |
| 1772 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1773 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1774 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1775 | esac |
| 1776 | case " $ac_configure_args " in |
| 1777 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1778 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1779 | esac |
| 1780 | fi |
| 1781 | done |
| 1782 | if $ac_cache_corrupted; then |
| 1783 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1784 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1785 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1786 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1787 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1788 | fi |
| 1789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1806 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1807 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1811 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1812 | |
| 1813 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1814 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1815 | for ac_dir in config "$srcdir"/config; do |
| 1816 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1817 | ac_aux_dir=$ac_dir |
| 1818 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1819 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1820 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1821 | ac_aux_dir=$ac_dir |
| 1822 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1823 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1824 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1825 | ac_aux_dir=$ac_dir |
| 1826 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1827 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1828 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1829 | done |
| 1830 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1831 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1832 | echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1833 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1834 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1835 | |
| 1836 | # These three variables are undocumented and unsupported, |
| 1837 | # and are intended to be withdrawn in a future Autoconf release. |
| 1838 | # They can cause serious problems if a builder's source tree is in a directory |
| 1839 | # whose full name contains unusual characters. |
| 1840 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1841 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1842 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1843 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1844 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1845 | MCONFIG=./MCONFIG |
| 1846 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1847 | BINARY_TYPE=bin |
| 1848 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1849 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1850 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1851 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1852 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1853 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1854 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1855 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1856 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1857 | E2FSPROGS_YEAR=$YEAR |
| 1858 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1859 | E2FSPROGS_YEAR=19$YEAR |
| 1860 | else |
| 1861 | E2FSPROGS_YEAR=20$YEAR |
| 1862 | fi |
| 1863 | |
| 1864 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 1865 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1866 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1867 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1868 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1869 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1870 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1871 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1872 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1873 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1874 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1875 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1876 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1877 | *) echo "Unknown month $MONTH??" ;; |
| 1878 | esac |
| 1879 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 1880 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1881 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
| 1882 | pre_vers=`echo $base_ver 0.01 - p | dc` |
| 1883 | |
| 1884 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1885 | |
| 1886 | case $E2FSPROGS_VERSION in |
| 1887 | *-WIP|pre-*) |
| 1888 | E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" |
| 1889 | ;; |
| 1890 | *) |
| 1891 | E2FSPROGS_PKGVER="$base_ver" |
| 1892 | ;; |
| 1893 | esac |
| 1894 | |
| 1895 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1896 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1897 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1898 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1899 | |
| 1900 | |
| 1901 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 1902 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1903 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1904 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1905 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1906 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1907 | { (exit 1); exit 1; }; } |
| 1908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1909 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1910 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1911 | if test "${ac_cv_build+set}" = set; then |
| 1912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1913 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1914 | ac_build_alias=$build_alias |
| 1915 | test "x$ac_build_alias" = x && |
| 1916 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1917 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1918 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1919 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1920 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1921 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1922 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1923 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1924 | { (exit 1); exit 1; }; } |
| 1925 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1926 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1927 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1928 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1929 | case $ac_cv_build in |
| 1930 | *-*-*) ;; |
| 1931 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1932 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1933 | { (exit 1); exit 1; }; };; |
| 1934 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1935 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1936 | ac_save_IFS=$IFS; IFS='-' |
| 1937 | set x $ac_cv_build |
| 1938 | shift |
| 1939 | build_cpu=$1 |
| 1940 | build_vendor=$2 |
| 1941 | shift; shift |
| 1942 | # Remember, the first character of IFS is used to create $*, |
| 1943 | # except with old shells: |
| 1944 | build_os=$* |
| 1945 | IFS=$ac_save_IFS |
| 1946 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1947 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1948 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1949 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1950 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1951 | if test "${ac_cv_host+set}" = set; then |
| 1952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1953 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1954 | if test "x$host_alias" = x; then |
| 1955 | ac_cv_host=$ac_cv_build |
| 1956 | else |
| 1957 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1958 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1959 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1960 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1961 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1962 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1964 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1965 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1966 | case $ac_cv_host in |
| 1967 | *-*-*) ;; |
| 1968 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1969 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1970 | { (exit 1); exit 1; }; };; |
| 1971 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1972 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1973 | ac_save_IFS=$IFS; IFS='-' |
| 1974 | set x $ac_cv_host |
| 1975 | shift |
| 1976 | host_cpu=$1 |
| 1977 | host_vendor=$2 |
| 1978 | shift; shift |
| 1979 | # Remember, the first character of IFS is used to create $*, |
| 1980 | # except with old shells: |
| 1981 | host_os=$* |
| 1982 | IFS=$ac_save_IFS |
| 1983 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1984 | |
| 1985 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1986 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1987 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1988 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1989 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 1990 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 1991 | echo "${ECHO_T}CC=$CC" >&6; } |
| 1992 | fi |
| 1993 | |
| 1994 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1995 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1996 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 1997 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1998 | CC=$withval |
| 1999 | else |
| 2000 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2001 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2002 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2003 | fi |
| 2004 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2005 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2006 | ac_ext=c |
| 2007 | ac_cpp='$CPP $CPPFLAGS' |
| 2008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2011 | if test -n "$ac_tool_prefix"; then |
| 2012 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2013 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2016 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2018 | else |
| 2019 | if test -n "$CC"; then |
| 2020 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2021 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2023 | for as_dir in $PATH |
| 2024 | do |
| 2025 | IFS=$as_save_IFS |
| 2026 | test -z "$as_dir" && as_dir=. |
| 2027 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2029 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2031 | break 2 |
| 2032 | fi |
| 2033 | done |
| 2034 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2035 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2036 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2037 | fi |
| 2038 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2039 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2040 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2041 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2042 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2043 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2044 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2045 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2046 | fi |
| 2047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2048 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2049 | fi |
| 2050 | if test -z "$ac_cv_prog_CC"; then |
| 2051 | ac_ct_CC=$CC |
| 2052 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2053 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2054 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2056 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2058 | else |
| 2059 | if test -n "$ac_ct_CC"; then |
| 2060 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2061 | else |
| 2062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2063 | for as_dir in $PATH |
| 2064 | do |
| 2065 | IFS=$as_save_IFS |
| 2066 | test -z "$as_dir" && as_dir=. |
| 2067 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2069 | ac_cv_prog_ac_ct_CC="gcc" |
| 2070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2071 | break 2 |
| 2072 | fi |
| 2073 | done |
| 2074 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2075 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2076 | |
| 2077 | fi |
| 2078 | fi |
| 2079 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2080 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2081 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2082 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2083 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2084 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2085 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2086 | fi |
| 2087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2088 | if test "x$ac_ct_CC" = x; then |
| 2089 | CC="" |
| 2090 | else |
| 2091 | case $cross_compiling:$ac_tool_warned in |
| 2092 | yes:) |
| 2093 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2094 | whose name does not start with the host triplet. If you think this |
| 2095 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2096 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2097 | whose name does not start with the host triplet. If you think this |
| 2098 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2099 | ac_tool_warned=yes ;; |
| 2100 | esac |
| 2101 | CC=$ac_ct_CC |
| 2102 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2103 | else |
| 2104 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2105 | fi |
| 2106 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2107 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2108 | if test -n "$ac_tool_prefix"; then |
| 2109 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2110 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2111 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2113 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2115 | else |
| 2116 | if test -n "$CC"; then |
| 2117 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2118 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2120 | for as_dir in $PATH |
| 2121 | do |
| 2122 | IFS=$as_save_IFS |
| 2123 | test -z "$as_dir" && as_dir=. |
| 2124 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2126 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2128 | break 2 |
| 2129 | fi |
| 2130 | done |
| 2131 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2132 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2133 | |
| 2134 | fi |
| 2135 | fi |
| 2136 | CC=$ac_cv_prog_CC |
| 2137 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2138 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2139 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2140 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2141 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2142 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2143 | fi |
| 2144 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2145 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2146 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2147 | fi |
| 2148 | if test -z "$CC"; then |
| 2149 | # Extract the first word of "cc", so it can be a program name with args. |
| 2150 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2151 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2153 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2155 | else |
| 2156 | if test -n "$CC"; then |
| 2157 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2158 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2159 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2161 | for as_dir in $PATH |
| 2162 | do |
| 2163 | IFS=$as_save_IFS |
| 2164 | test -z "$as_dir" && as_dir=. |
| 2165 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2167 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2168 | ac_prog_rejected=yes |
| 2169 | continue |
| 2170 | fi |
| 2171 | ac_cv_prog_CC="cc" |
| 2172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2173 | break 2 |
| 2174 | fi |
| 2175 | done |
| 2176 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2177 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2178 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2179 | if test $ac_prog_rejected = yes; then |
| 2180 | # We found a bogon in the path, so make sure we never use it. |
| 2181 | set dummy $ac_cv_prog_CC |
| 2182 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2183 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2184 | # We chose a different compiler from the bogus one. |
| 2185 | # However, it has the same basename, so the bogon will be chosen |
| 2186 | # first if we set CC to just the basename; use the full file name. |
| 2187 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2188 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2189 | fi |
| 2190 | fi |
| 2191 | fi |
| 2192 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2193 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2194 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2195 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2196 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2197 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2198 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2199 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2200 | fi |
| 2201 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2202 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2203 | fi |
| 2204 | if test -z "$CC"; then |
| 2205 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2206 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2207 | do |
| 2208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2212 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2214 | else |
| 2215 | if test -n "$CC"; then |
| 2216 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2217 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2219 | for as_dir in $PATH |
| 2220 | do |
| 2221 | IFS=$as_save_IFS |
| 2222 | test -z "$as_dir" && as_dir=. |
| 2223 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2225 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2227 | break 2 |
| 2228 | fi |
| 2229 | done |
| 2230 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2231 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2232 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2233 | fi |
| 2234 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2235 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2236 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2237 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2238 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2239 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2240 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2241 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2242 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2243 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2244 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2245 | test -n "$CC" && break |
| 2246 | done |
| 2247 | fi |
| 2248 | if test -z "$CC"; then |
| 2249 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2250 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2251 | do |
| 2252 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2253 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2256 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2258 | else |
| 2259 | if test -n "$ac_ct_CC"; then |
| 2260 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2261 | else |
| 2262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2263 | for as_dir in $PATH |
| 2264 | do |
| 2265 | IFS=$as_save_IFS |
| 2266 | test -z "$as_dir" && as_dir=. |
| 2267 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2269 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2271 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2272 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2273 | done |
| 2274 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2275 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2276 | |
| 2277 | fi |
| 2278 | fi |
| 2279 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2280 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2281 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2282 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2283 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2284 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2285 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2286 | fi |
| 2287 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2288 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2289 | test -n "$ac_ct_CC" && break |
| 2290 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2291 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2292 | if test "x$ac_ct_CC" = x; then |
| 2293 | CC="" |
| 2294 | else |
| 2295 | case $cross_compiling:$ac_tool_warned in |
| 2296 | yes:) |
| 2297 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2298 | whose name does not start with the host triplet. If you think this |
| 2299 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2300 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2301 | whose name does not start with the host triplet. If you think this |
| 2302 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2303 | ac_tool_warned=yes ;; |
| 2304 | esac |
| 2305 | CC=$ac_ct_CC |
| 2306 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2307 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2309 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2310 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2312 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2313 | See \`config.log' for more details." >&5 |
| 2314 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2315 | See \`config.log' for more details." >&2;} |
| 2316 | { (exit 1); exit 1; }; } |
| 2317 | |
| 2318 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2319 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2320 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2321 | { (ac_try="$ac_compiler --version >&5" |
| 2322 | case "(($ac_try" in |
| 2323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2324 | *) ac_try_echo=$ac_try;; |
| 2325 | esac |
| 2326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2327 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2328 | ac_status=$? |
| 2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2330 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2331 | { (ac_try="$ac_compiler -v >&5" |
| 2332 | case "(($ac_try" in |
| 2333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2334 | *) ac_try_echo=$ac_try;; |
| 2335 | esac |
| 2336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2337 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2338 | ac_status=$? |
| 2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2340 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2341 | { (ac_try="$ac_compiler -V >&5" |
| 2342 | case "(($ac_try" in |
| 2343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2344 | *) ac_try_echo=$ac_try;; |
| 2345 | esac |
| 2346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2347 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2348 | ac_status=$? |
| 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2350 | (exit $ac_status); } |
| 2351 | |
| 2352 | cat >conftest.$ac_ext <<_ACEOF |
| 2353 | /* confdefs.h. */ |
| 2354 | _ACEOF |
| 2355 | cat confdefs.h >>conftest.$ac_ext |
| 2356 | cat >>conftest.$ac_ext <<_ACEOF |
| 2357 | /* end confdefs.h. */ |
| 2358 | |
| 2359 | int |
| 2360 | main () |
| 2361 | { |
| 2362 | |
| 2363 | ; |
| 2364 | return 0; |
| 2365 | } |
| 2366 | _ACEOF |
| 2367 | ac_clean_files_save=$ac_clean_files |
| 2368 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2369 | # Try to create an executable without -o first, disregard a.out. |
| 2370 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2371 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2372 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2373 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2374 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2375 | # |
| 2376 | # List of possible output files, starting from the most likely. |
| 2377 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2378 | # only as a last resort. b.out is created by i960 compilers. |
| 2379 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2380 | # |
| 2381 | # The IRIX 6 linker writes into existing files which may not be |
| 2382 | # executable, retaining their permissions. Remove them first so a |
| 2383 | # subsequent execution test works. |
| 2384 | ac_rmfiles= |
| 2385 | for ac_file in $ac_files |
| 2386 | do |
| 2387 | case $ac_file in |
| 2388 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2389 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2390 | esac |
| 2391 | done |
| 2392 | rm -f $ac_rmfiles |
| 2393 | |
| 2394 | if { (ac_try="$ac_link_default" |
| 2395 | case "(($ac_try" in |
| 2396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2397 | *) ac_try_echo=$ac_try;; |
| 2398 | esac |
| 2399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2400 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2401 | ac_status=$? |
| 2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2403 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2404 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2405 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2406 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2407 | # so that the user can short-circuit this test for compilers unknown to |
| 2408 | # Autoconf. |
| 2409 | for ac_file in $ac_files |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2410 | do |
| 2411 | test -f "$ac_file" || continue |
| 2412 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2413 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2414 | ;; |
| 2415 | [ab].out ) |
| 2416 | # We found the default executable, but exeext='' is most |
| 2417 | # certainly right. |
| 2418 | break;; |
| 2419 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2420 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2421 | then :; else |
| 2422 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2423 | fi |
| 2424 | # We set ac_cv_exeext here because the later test for it is not |
| 2425 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2426 | # argument, so we may need to know it at that point already. |
| 2427 | # Even if this section looks crufty: it has the advantage of |
| 2428 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2429 | break;; |
| 2430 | * ) |
| 2431 | break;; |
| 2432 | esac |
| 2433 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2434 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2435 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2436 | else |
| 2437 | echo "$as_me: failed program was:" >&5 |
| 2438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2439 | |
| 2440 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2441 | See \`config.log' for more details." >&5 |
| 2442 | echo "$as_me: error: C compiler cannot create executables |
| 2443 | See \`config.log' for more details." >&2;} |
| 2444 | { (exit 77); exit 77; }; } |
| 2445 | fi |
| 2446 | |
| 2447 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2448 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2449 | echo "${ECHO_T}$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2451 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2452 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2453 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2454 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2455 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2456 | # If not cross compiling, check that we can run a simple program. |
| 2457 | if test "$cross_compiling" != yes; then |
| 2458 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2459 | { (case "(($ac_try" in |
| 2460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2461 | *) ac_try_echo=$ac_try;; |
| 2462 | esac |
| 2463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2464 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2465 | ac_status=$? |
| 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2467 | (exit $ac_status); }; }; then |
| 2468 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2469 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | if test "$cross_compiling" = maybe; then |
| 2471 | cross_compiling=yes |
| 2472 | else |
| 2473 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2474 | If you meant to cross compile, use \`--host'. |
| 2475 | See \`config.log' for more details." >&5 |
| 2476 | echo "$as_me: error: cannot run C compiled programs. |
| 2477 | If you meant to cross compile, use \`--host'. |
| 2478 | See \`config.log' for more details." >&2;} |
| 2479 | { (exit 1); exit 1; }; } |
| 2480 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2481 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2482 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2483 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2484 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2486 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2487 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2488 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2489 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2490 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2491 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2492 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2493 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2494 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2495 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2496 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2497 | if { (ac_try="$ac_link" |
| 2498 | case "(($ac_try" in |
| 2499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2500 | *) ac_try_echo=$ac_try;; |
| 2501 | esac |
| 2502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2503 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2504 | ac_status=$? |
| 2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2506 | (exit $ac_status); }; then |
| 2507 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2508 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2509 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2510 | # `rm'. |
| 2511 | for ac_file in conftest.exe conftest conftest.*; do |
| 2512 | test -f "$ac_file" || continue |
| 2513 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2515 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2516 | break;; |
| 2517 | * ) break;; |
| 2518 | esac |
| 2519 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2520 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2521 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2522 | See \`config.log' for more details." >&5 |
| 2523 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2524 | See \`config.log' for more details." >&2;} |
| 2525 | { (exit 1); exit 1; }; } |
| 2526 | fi |
| 2527 | |
| 2528 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2529 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2530 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2531 | |
| 2532 | rm -f conftest.$ac_ext |
| 2533 | EXEEXT=$ac_cv_exeext |
| 2534 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2535 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2536 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2537 | if test "${ac_cv_objext+set}" = set; then |
| 2538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2539 | else |
| 2540 | cat >conftest.$ac_ext <<_ACEOF |
| 2541 | /* confdefs.h. */ |
| 2542 | _ACEOF |
| 2543 | cat confdefs.h >>conftest.$ac_ext |
| 2544 | cat >>conftest.$ac_ext <<_ACEOF |
| 2545 | /* end confdefs.h. */ |
| 2546 | |
| 2547 | int |
| 2548 | main () |
| 2549 | { |
| 2550 | |
| 2551 | ; |
| 2552 | return 0; |
| 2553 | } |
| 2554 | _ACEOF |
| 2555 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2556 | if { (ac_try="$ac_compile" |
| 2557 | case "(($ac_try" in |
| 2558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2559 | *) ac_try_echo=$ac_try;; |
| 2560 | esac |
| 2561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2562 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2563 | ac_status=$? |
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2565 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2566 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2567 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2568 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2569 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2570 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2571 | break;; |
| 2572 | esac |
| 2573 | done |
| 2574 | else |
| 2575 | echo "$as_me: failed program was:" >&5 |
| 2576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2577 | |
| 2578 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2579 | See \`config.log' for more details." >&5 |
| 2580 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2581 | See \`config.log' for more details." >&2;} |
| 2582 | { (exit 1); exit 1; }; } |
| 2583 | fi |
| 2584 | |
| 2585 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2587 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2588 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2589 | OBJEXT=$ac_cv_objext |
| 2590 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2591 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2592 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2593 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2595 | else |
| 2596 | cat >conftest.$ac_ext <<_ACEOF |
| 2597 | /* confdefs.h. */ |
| 2598 | _ACEOF |
| 2599 | cat confdefs.h >>conftest.$ac_ext |
| 2600 | cat >>conftest.$ac_ext <<_ACEOF |
| 2601 | /* end confdefs.h. */ |
| 2602 | |
| 2603 | int |
| 2604 | main () |
| 2605 | { |
| 2606 | #ifndef __GNUC__ |
| 2607 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2608 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2610 | ; |
| 2611 | return 0; |
| 2612 | } |
| 2613 | _ACEOF |
| 2614 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | if { (ac_try="$ac_compile" |
| 2616 | case "(($ac_try" in |
| 2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2618 | *) ac_try_echo=$ac_try;; |
| 2619 | esac |
| 2620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2621 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2622 | ac_status=$? |
| 2623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2624 | rm -f conftest.er1 |
| 2625 | cat conftest.err >&5 |
| 2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2627 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2628 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2629 | { (case "(($ac_try" in |
| 2630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2631 | *) ac_try_echo=$ac_try;; |
| 2632 | esac |
| 2633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2634 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2635 | ac_status=$? |
| 2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2637 | (exit $ac_status); }; } && |
| 2638 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2639 | { (case "(($ac_try" in |
| 2640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2641 | *) ac_try_echo=$ac_try;; |
| 2642 | esac |
| 2643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2644 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2645 | ac_status=$? |
| 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2647 | (exit $ac_status); }; }; then |
| 2648 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2649 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2650 | echo "$as_me: failed program was:" >&5 |
| 2651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2653 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2654 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2655 | |
| 2656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2657 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2658 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2659 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2660 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2661 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2662 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2663 | ac_test_CFLAGS=${CFLAGS+set} |
| 2664 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2665 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2666 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2667 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2669 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2670 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2671 | ac_c_werror_flag=yes |
| 2672 | ac_cv_prog_cc_g=no |
| 2673 | CFLAGS="-g" |
| 2674 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2675 | /* confdefs.h. */ |
| 2676 | _ACEOF |
| 2677 | cat confdefs.h >>conftest.$ac_ext |
| 2678 | cat >>conftest.$ac_ext <<_ACEOF |
| 2679 | /* end confdefs.h. */ |
| 2680 | |
| 2681 | int |
| 2682 | main () |
| 2683 | { |
| 2684 | |
| 2685 | ; |
| 2686 | return 0; |
| 2687 | } |
| 2688 | _ACEOF |
| 2689 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2690 | if { (ac_try="$ac_compile" |
| 2691 | case "(($ac_try" in |
| 2692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2693 | *) ac_try_echo=$ac_try;; |
| 2694 | esac |
| 2695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2696 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2697 | ac_status=$? |
| 2698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2699 | rm -f conftest.er1 |
| 2700 | cat conftest.err >&5 |
| 2701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2702 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2704 | { (case "(($ac_try" in |
| 2705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2706 | *) ac_try_echo=$ac_try;; |
| 2707 | esac |
| 2708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2709 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2710 | ac_status=$? |
| 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2712 | (exit $ac_status); }; } && |
| 2713 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2714 | { (case "(($ac_try" in |
| 2715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2716 | *) ac_try_echo=$ac_try;; |
| 2717 | esac |
| 2718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2719 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2720 | ac_status=$? |
| 2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2722 | (exit $ac_status); }; }; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2723 | ac_cv_prog_cc_g=yes |
| 2724 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2725 | echo "$as_me: failed program was:" >&5 |
| 2726 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2728 | CFLAGS="" |
| 2729 | cat >conftest.$ac_ext <<_ACEOF |
| 2730 | /* confdefs.h. */ |
| 2731 | _ACEOF |
| 2732 | cat confdefs.h >>conftest.$ac_ext |
| 2733 | cat >>conftest.$ac_ext <<_ACEOF |
| 2734 | /* end confdefs.h. */ |
| 2735 | |
| 2736 | int |
| 2737 | main () |
| 2738 | { |
| 2739 | |
| 2740 | ; |
| 2741 | return 0; |
| 2742 | } |
| 2743 | _ACEOF |
| 2744 | rm -f conftest.$ac_objext |
| 2745 | if { (ac_try="$ac_compile" |
| 2746 | case "(($ac_try" in |
| 2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2748 | *) ac_try_echo=$ac_try;; |
| 2749 | esac |
| 2750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2751 | (eval "$ac_compile") 2>conftest.er1 |
| 2752 | ac_status=$? |
| 2753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2754 | rm -f conftest.er1 |
| 2755 | cat conftest.err >&5 |
| 2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2757 | (exit $ac_status); } && |
| 2758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2759 | { (case "(($ac_try" in |
| 2760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2761 | *) ac_try_echo=$ac_try;; |
| 2762 | esac |
| 2763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2764 | (eval "$ac_try") 2>&5 |
| 2765 | ac_status=$? |
| 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2767 | (exit $ac_status); }; } && |
| 2768 | { ac_try='test -s conftest.$ac_objext' |
| 2769 | { (case "(($ac_try" in |
| 2770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2771 | *) ac_try_echo=$ac_try;; |
| 2772 | esac |
| 2773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2774 | (eval "$ac_try") 2>&5 |
| 2775 | ac_status=$? |
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); }; }; then |
| 2778 | : |
| 2779 | else |
| 2780 | echo "$as_me: failed program was:" >&5 |
| 2781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2782 | |
| 2783 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2784 | CFLAGS="-g" |
| 2785 | cat >conftest.$ac_ext <<_ACEOF |
| 2786 | /* confdefs.h. */ |
| 2787 | _ACEOF |
| 2788 | cat confdefs.h >>conftest.$ac_ext |
| 2789 | cat >>conftest.$ac_ext <<_ACEOF |
| 2790 | /* end confdefs.h. */ |
| 2791 | |
| 2792 | int |
| 2793 | main () |
| 2794 | { |
| 2795 | |
| 2796 | ; |
| 2797 | return 0; |
| 2798 | } |
| 2799 | _ACEOF |
| 2800 | rm -f conftest.$ac_objext |
| 2801 | if { (ac_try="$ac_compile" |
| 2802 | case "(($ac_try" in |
| 2803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2804 | *) ac_try_echo=$ac_try;; |
| 2805 | esac |
| 2806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2807 | (eval "$ac_compile") 2>conftest.er1 |
| 2808 | ac_status=$? |
| 2809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2810 | rm -f conftest.er1 |
| 2811 | cat conftest.err >&5 |
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2813 | (exit $ac_status); } && |
| 2814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2815 | { (case "(($ac_try" in |
| 2816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2817 | *) ac_try_echo=$ac_try;; |
| 2818 | esac |
| 2819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2820 | (eval "$ac_try") 2>&5 |
| 2821 | ac_status=$? |
| 2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2823 | (exit $ac_status); }; } && |
| 2824 | { ac_try='test -s conftest.$ac_objext' |
| 2825 | { (case "(($ac_try" in |
| 2826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2827 | *) ac_try_echo=$ac_try;; |
| 2828 | esac |
| 2829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2830 | (eval "$ac_try") 2>&5 |
| 2831 | ac_status=$? |
| 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2833 | (exit $ac_status); }; }; then |
| 2834 | ac_cv_prog_cc_g=yes |
| 2835 | else |
| 2836 | echo "$as_me: failed program was:" >&5 |
| 2837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2838 | |
| 2839 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2840 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2841 | |
| 2842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2843 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2844 | |
| 2845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2846 | fi |
| 2847 | |
| 2848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2849 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2850 | fi |
| 2851 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2852 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2853 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2854 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2855 | elif test $ac_cv_prog_cc_g = yes; then |
| 2856 | if test "$GCC" = yes; then |
| 2857 | CFLAGS="-g -O2" |
| 2858 | else |
| 2859 | CFLAGS="-g" |
| 2860 | fi |
| 2861 | else |
| 2862 | if test "$GCC" = yes; then |
| 2863 | CFLAGS="-O2" |
| 2864 | else |
| 2865 | CFLAGS= |
| 2866 | fi |
| 2867 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2868 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2869 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2870 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2872 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2873 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2874 | ac_save_CC=$CC |
| 2875 | cat >conftest.$ac_ext <<_ACEOF |
| 2876 | /* confdefs.h. */ |
| 2877 | _ACEOF |
| 2878 | cat confdefs.h >>conftest.$ac_ext |
| 2879 | cat >>conftest.$ac_ext <<_ACEOF |
| 2880 | /* end confdefs.h. */ |
| 2881 | #include <stdarg.h> |
| 2882 | #include <stdio.h> |
| 2883 | #include <sys/types.h> |
| 2884 | #include <sys/stat.h> |
| 2885 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2886 | struct buf { int x; }; |
| 2887 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2888 | static char *e (p, i) |
| 2889 | char **p; |
| 2890 | int i; |
| 2891 | { |
| 2892 | return p[i]; |
| 2893 | } |
| 2894 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2895 | { |
| 2896 | char *s; |
| 2897 | va_list v; |
| 2898 | va_start (v,p); |
| 2899 | s = g (p, va_arg (v,int)); |
| 2900 | va_end (v); |
| 2901 | return s; |
| 2902 | } |
| 2903 | |
| 2904 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2905 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2906 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2907 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2908 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2909 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2910 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2911 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2912 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2913 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2914 | inside strings and character constants. */ |
| 2915 | #define FOO(x) 'x' |
| 2916 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2917 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2918 | int test (int i, double x); |
| 2919 | struct s1 {int (*f) (int a);}; |
| 2920 | struct s2 {int (*f) (double a);}; |
| 2921 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2922 | int argc; |
| 2923 | char **argv; |
| 2924 | int |
| 2925 | main () |
| 2926 | { |
| 2927 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2928 | ; |
| 2929 | return 0; |
| 2930 | } |
| 2931 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2932 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2933 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2934 | do |
| 2935 | CC="$ac_save_CC $ac_arg" |
| 2936 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2937 | if { (ac_try="$ac_compile" |
| 2938 | case "(($ac_try" in |
| 2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2940 | *) ac_try_echo=$ac_try;; |
| 2941 | esac |
| 2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2943 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2944 | ac_status=$? |
| 2945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2946 | rm -f conftest.er1 |
| 2947 | cat conftest.err >&5 |
| 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2949 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2951 | { (case "(($ac_try" in |
| 2952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2953 | *) ac_try_echo=$ac_try;; |
| 2954 | esac |
| 2955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2956 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | ac_status=$? |
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2959 | (exit $ac_status); }; } && |
| 2960 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2961 | { (case "(($ac_try" in |
| 2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2963 | *) ac_try_echo=$ac_try;; |
| 2964 | esac |
| 2965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2966 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2967 | ac_status=$? |
| 2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2969 | (exit $ac_status); }; }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2970 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2971 | else |
| 2972 | echo "$as_me: failed program was:" >&5 |
| 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2975 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2976 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2977 | |
| 2978 | rm -f core conftest.err conftest.$ac_objext |
| 2979 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2980 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2981 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2982 | CC=$ac_save_CC |
| 2983 | |
| 2984 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2985 | # AC_CACHE_VAL |
| 2986 | case "x$ac_cv_prog_cc_c89" in |
| 2987 | x) |
| 2988 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2989 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2990 | xno) |
| 2991 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2992 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2993 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2994 | CC="$CC $ac_cv_prog_cc_c89" |
| 2995 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2996 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2997 | esac |
| 2998 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2999 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3000 | ac_ext=c |
| 3001 | ac_cpp='$CPP $CPPFLAGS' |
| 3002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3005 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3007 | # Check whether --with-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3008 | if test "${with_linker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3009 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3010 | echo "${ECHO_T}LD=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3011 | LD=$withval |
| 3012 | else |
| 3013 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3014 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3015 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3016 | fi |
| 3017 | export LD |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3018 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | # Check whether --with-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3021 | if test "${with_ccopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3022 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3023 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3024 | CFLAGS=$withval |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3025 | fi |
| 3026 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3027 | ac_ext=c |
| 3028 | ac_cpp='$CPP $CPPFLAGS' |
| 3029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3032 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3033 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3034 | # On Suns, sometimes $CPP names a directory. |
| 3035 | if test -n "$CPP" && test -d "$CPP"; then |
| 3036 | CPP= |
| 3037 | fi |
| 3038 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3042 | # Double quotes because CPP needs to be expanded |
| 3043 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3044 | do |
| 3045 | ac_preproc_ok=false |
| 3046 | for ac_c_preproc_warn_flag in '' yes |
| 3047 | do |
| 3048 | # Use a header file that comes with gcc, so configuring glibc |
| 3049 | # with a fresh cross-compiler works. |
| 3050 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3051 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3054 | cat >conftest.$ac_ext <<_ACEOF |
| 3055 | /* confdefs.h. */ |
| 3056 | _ACEOF |
| 3057 | cat confdefs.h >>conftest.$ac_ext |
| 3058 | cat >>conftest.$ac_ext <<_ACEOF |
| 3059 | /* end confdefs.h. */ |
| 3060 | #ifdef __STDC__ |
| 3061 | # include <limits.h> |
| 3062 | #else |
| 3063 | # include <assert.h> |
| 3064 | #endif |
| 3065 | Syntax error |
| 3066 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3067 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3068 | case "(($ac_try" in |
| 3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3070 | *) ac_try_echo=$ac_try;; |
| 3071 | esac |
| 3072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3073 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3074 | ac_status=$? |
| 3075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3076 | rm -f conftest.er1 |
| 3077 | cat conftest.err >&5 |
| 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3079 | (exit $ac_status); } >/dev/null; then |
| 3080 | if test -s conftest.err; then |
| 3081 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3083 | else |
| 3084 | ac_cpp_err= |
| 3085 | fi |
| 3086 | else |
| 3087 | ac_cpp_err=yes |
| 3088 | fi |
| 3089 | if test -z "$ac_cpp_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3090 | : |
| 3091 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3092 | echo "$as_me: failed program was:" >&5 |
| 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3094 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3095 | # Broken: fails on valid input. |
| 3096 | continue |
| 3097 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3098 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3099 | rm -f conftest.err conftest.$ac_ext |
| 3100 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3101 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3102 | # can be detected and how. |
| 3103 | cat >conftest.$ac_ext <<_ACEOF |
| 3104 | /* confdefs.h. */ |
| 3105 | _ACEOF |
| 3106 | cat confdefs.h >>conftest.$ac_ext |
| 3107 | cat >>conftest.$ac_ext <<_ACEOF |
| 3108 | /* end confdefs.h. */ |
| 3109 | #include <ac_nonexistent.h> |
| 3110 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3111 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3112 | case "(($ac_try" in |
| 3113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3114 | *) ac_try_echo=$ac_try;; |
| 3115 | esac |
| 3116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3117 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | ac_status=$? |
| 3119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3120 | rm -f conftest.er1 |
| 3121 | cat conftest.err >&5 |
| 3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3123 | (exit $ac_status); } >/dev/null; then |
| 3124 | if test -s conftest.err; then |
| 3125 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3127 | else |
| 3128 | ac_cpp_err= |
| 3129 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3130 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3131 | ac_cpp_err=yes |
| 3132 | fi |
| 3133 | if test -z "$ac_cpp_err"; then |
| 3134 | # Broken: success on invalid input. |
| 3135 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3136 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3137 | echo "$as_me: failed program was:" >&5 |
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3139 | |
| 3140 | # Passes both tests. |
| 3141 | ac_preproc_ok=: |
| 3142 | break |
| 3143 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3144 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3145 | rm -f conftest.err conftest.$ac_ext |
| 3146 | |
| 3147 | done |
| 3148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3149 | rm -f conftest.err conftest.$ac_ext |
| 3150 | if $ac_preproc_ok; then |
| 3151 | break |
| 3152 | fi |
| 3153 | |
| 3154 | done |
| 3155 | ac_cv_prog_CPP=$CPP |
| 3156 | |
| 3157 | fi |
| 3158 | CPP=$ac_cv_prog_CPP |
| 3159 | else |
| 3160 | ac_cv_prog_CPP=$CPP |
| 3161 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3162 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3163 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3164 | ac_preproc_ok=false |
| 3165 | for ac_c_preproc_warn_flag in '' yes |
| 3166 | do |
| 3167 | # Use a header file that comes with gcc, so configuring glibc |
| 3168 | # with a fresh cross-compiler works. |
| 3169 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3170 | # <limits.h> exists even on freestanding compilers. |
| 3171 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3172 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3173 | cat >conftest.$ac_ext <<_ACEOF |
| 3174 | /* confdefs.h. */ |
| 3175 | _ACEOF |
| 3176 | cat confdefs.h >>conftest.$ac_ext |
| 3177 | cat >>conftest.$ac_ext <<_ACEOF |
| 3178 | /* end confdefs.h. */ |
| 3179 | #ifdef __STDC__ |
| 3180 | # include <limits.h> |
| 3181 | #else |
| 3182 | # include <assert.h> |
| 3183 | #endif |
| 3184 | Syntax error |
| 3185 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3186 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3187 | case "(($ac_try" in |
| 3188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3189 | *) ac_try_echo=$ac_try;; |
| 3190 | esac |
| 3191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3192 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3193 | ac_status=$? |
| 3194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3195 | rm -f conftest.er1 |
| 3196 | cat conftest.err >&5 |
| 3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3198 | (exit $ac_status); } >/dev/null; then |
| 3199 | if test -s conftest.err; then |
| 3200 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3201 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3202 | else |
| 3203 | ac_cpp_err= |
| 3204 | fi |
| 3205 | else |
| 3206 | ac_cpp_err=yes |
| 3207 | fi |
| 3208 | if test -z "$ac_cpp_err"; then |
| 3209 | : |
| 3210 | else |
| 3211 | echo "$as_me: failed program was:" >&5 |
| 3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3213 | |
| 3214 | # Broken: fails on valid input. |
| 3215 | continue |
| 3216 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3217 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3218 | rm -f conftest.err conftest.$ac_ext |
| 3219 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3220 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3221 | # can be detected and how. |
| 3222 | cat >conftest.$ac_ext <<_ACEOF |
| 3223 | /* confdefs.h. */ |
| 3224 | _ACEOF |
| 3225 | cat confdefs.h >>conftest.$ac_ext |
| 3226 | cat >>conftest.$ac_ext <<_ACEOF |
| 3227 | /* end confdefs.h. */ |
| 3228 | #include <ac_nonexistent.h> |
| 3229 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3230 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3231 | case "(($ac_try" in |
| 3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3233 | *) ac_try_echo=$ac_try;; |
| 3234 | esac |
| 3235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3236 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3237 | ac_status=$? |
| 3238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3239 | rm -f conftest.er1 |
| 3240 | cat conftest.err >&5 |
| 3241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3242 | (exit $ac_status); } >/dev/null; then |
| 3243 | if test -s conftest.err; then |
| 3244 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3246 | else |
| 3247 | ac_cpp_err= |
| 3248 | fi |
| 3249 | else |
| 3250 | ac_cpp_err=yes |
| 3251 | fi |
| 3252 | if test -z "$ac_cpp_err"; then |
| 3253 | # Broken: success on invalid input. |
| 3254 | continue |
| 3255 | else |
| 3256 | echo "$as_me: failed program was:" >&5 |
| 3257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3258 | |
| 3259 | # Passes both tests. |
| 3260 | ac_preproc_ok=: |
| 3261 | break |
| 3262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3263 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3264 | rm -f conftest.err conftest.$ac_ext |
| 3265 | |
| 3266 | done |
| 3267 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3268 | rm -f conftest.err conftest.$ac_ext |
| 3269 | if $ac_preproc_ok; then |
| 3270 | : |
| 3271 | else |
| 3272 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3273 | See \`config.log' for more details." >&5 |
| 3274 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3275 | See \`config.log' for more details." >&2;} |
| 3276 | { (exit 1); exit 1; }; } |
| 3277 | fi |
| 3278 | |
| 3279 | ac_ext=c |
| 3280 | ac_cpp='$CPP $CPPFLAGS' |
| 3281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3284 | |
| 3285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3286 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3287 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3288 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3290 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3291 | # Extract the first word of "grep ggrep" to use in msg output |
| 3292 | if test -z "$GREP"; then |
| 3293 | set dummy grep ggrep; ac_prog_name=$2 |
| 3294 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3296 | else |
| 3297 | ac_path_GREP_found=false |
| 3298 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3300 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3301 | do |
| 3302 | IFS=$as_save_IFS |
| 3303 | test -z "$as_dir" && as_dir=. |
| 3304 | for ac_prog in grep ggrep; do |
| 3305 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3306 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3307 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3308 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3309 | # Check for GNU $ac_path_GREP |
| 3310 | case `"$ac_path_GREP" --version 2>&1` in |
| 3311 | *GNU*) |
| 3312 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3313 | *) |
| 3314 | ac_count=0 |
| 3315 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3316 | while : |
| 3317 | do |
| 3318 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3319 | mv "conftest.tmp" "conftest.in" |
| 3320 | cp "conftest.in" "conftest.nl" |
| 3321 | echo 'GREP' >> "conftest.nl" |
| 3322 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3323 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3324 | ac_count=`expr $ac_count + 1` |
| 3325 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3326 | # Best one so far, save it but keep looking for a better one |
| 3327 | ac_cv_path_GREP="$ac_path_GREP" |
| 3328 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3329 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3330 | # 10*(2^10) chars as input seems more than enough |
| 3331 | test $ac_count -gt 10 && break |
| 3332 | done |
| 3333 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3334 | esac |
| 3335 | |
| 3336 | |
| 3337 | $ac_path_GREP_found && break 3 |
| 3338 | done |
| 3339 | done |
| 3340 | |
| 3341 | done |
| 3342 | IFS=$as_save_IFS |
| 3343 | |
| 3344 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3346 | |
| 3347 | GREP="$ac_cv_path_GREP" |
| 3348 | if test -z "$GREP"; then |
| 3349 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3350 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3351 | { (exit 1); exit 1; }; } |
| 3352 | fi |
| 3353 | |
| 3354 | else |
| 3355 | ac_cv_path_GREP=$GREP |
| 3356 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3357 | |
| 3358 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3359 | fi |
| 3360 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3361 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3362 | GREP="$ac_cv_path_GREP" |
| 3363 | |
| 3364 | |
| 3365 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3366 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3367 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3369 | else |
| 3370 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3371 | then ac_cv_path_EGREP="$GREP -E" |
| 3372 | else |
| 3373 | # Extract the first word of "egrep" to use in msg output |
| 3374 | if test -z "$EGREP"; then |
| 3375 | set dummy egrep; ac_prog_name=$2 |
| 3376 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3378 | else |
| 3379 | ac_path_EGREP_found=false |
| 3380 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3382 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3383 | do |
| 3384 | IFS=$as_save_IFS |
| 3385 | test -z "$as_dir" && as_dir=. |
| 3386 | for ac_prog in egrep; do |
| 3387 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3388 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3389 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3390 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3391 | # Check for GNU $ac_path_EGREP |
| 3392 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3393 | *GNU*) |
| 3394 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3395 | *) |
| 3396 | ac_count=0 |
| 3397 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3398 | while : |
| 3399 | do |
| 3400 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3401 | mv "conftest.tmp" "conftest.in" |
| 3402 | cp "conftest.in" "conftest.nl" |
| 3403 | echo 'EGREP' >> "conftest.nl" |
| 3404 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3405 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3406 | ac_count=`expr $ac_count + 1` |
| 3407 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3408 | # Best one so far, save it but keep looking for a better one |
| 3409 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3410 | ac_path_EGREP_max=$ac_count |
| 3411 | fi |
| 3412 | # 10*(2^10) chars as input seems more than enough |
| 3413 | test $ac_count -gt 10 && break |
| 3414 | done |
| 3415 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3416 | esac |
| 3417 | |
| 3418 | |
| 3419 | $ac_path_EGREP_found && break 3 |
| 3420 | done |
| 3421 | done |
| 3422 | |
| 3423 | done |
| 3424 | IFS=$as_save_IFS |
| 3425 | |
| 3426 | |
| 3427 | fi |
| 3428 | |
| 3429 | EGREP="$ac_cv_path_EGREP" |
| 3430 | if test -z "$EGREP"; then |
| 3431 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3432 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3433 | { (exit 1); exit 1; }; } |
| 3434 | fi |
| 3435 | |
| 3436 | else |
| 3437 | ac_cv_path_EGREP=$EGREP |
| 3438 | fi |
| 3439 | |
| 3440 | |
| 3441 | fi |
| 3442 | fi |
| 3443 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3444 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3445 | EGREP="$ac_cv_path_EGREP" |
| 3446 | |
| 3447 | |
| 3448 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3449 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3450 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3452 | else |
| 3453 | cat >conftest.$ac_ext <<_ACEOF |
| 3454 | /* confdefs.h. */ |
| 3455 | _ACEOF |
| 3456 | cat confdefs.h >>conftest.$ac_ext |
| 3457 | cat >>conftest.$ac_ext <<_ACEOF |
| 3458 | /* end confdefs.h. */ |
| 3459 | #include <stdlib.h> |
| 3460 | #include <stdarg.h> |
| 3461 | #include <string.h> |
| 3462 | #include <float.h> |
| 3463 | |
| 3464 | int |
| 3465 | main () |
| 3466 | { |
| 3467 | |
| 3468 | ; |
| 3469 | return 0; |
| 3470 | } |
| 3471 | _ACEOF |
| 3472 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3473 | if { (ac_try="$ac_compile" |
| 3474 | case "(($ac_try" in |
| 3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3476 | *) ac_try_echo=$ac_try;; |
| 3477 | esac |
| 3478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3479 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3480 | ac_status=$? |
| 3481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3482 | rm -f conftest.er1 |
| 3483 | cat conftest.err >&5 |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3485 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3487 | { (case "(($ac_try" in |
| 3488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3489 | *) ac_try_echo=$ac_try;; |
| 3490 | esac |
| 3491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3492 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3493 | ac_status=$? |
| 3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3495 | (exit $ac_status); }; } && |
| 3496 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3497 | { (case "(($ac_try" in |
| 3498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3499 | *) ac_try_echo=$ac_try;; |
| 3500 | esac |
| 3501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3502 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3503 | ac_status=$? |
| 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3505 | (exit $ac_status); }; }; then |
| 3506 | ac_cv_header_stdc=yes |
| 3507 | else |
| 3508 | echo "$as_me: failed program was:" >&5 |
| 3509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3510 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3511 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3512 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3513 | |
| 3514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3515 | |
| 3516 | if test $ac_cv_header_stdc = yes; then |
| 3517 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3518 | cat >conftest.$ac_ext <<_ACEOF |
| 3519 | /* confdefs.h. */ |
| 3520 | _ACEOF |
| 3521 | cat confdefs.h >>conftest.$ac_ext |
| 3522 | cat >>conftest.$ac_ext <<_ACEOF |
| 3523 | /* end confdefs.h. */ |
| 3524 | #include <string.h> |
| 3525 | |
| 3526 | _ACEOF |
| 3527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3528 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3529 | : |
| 3530 | else |
| 3531 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3532 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3533 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3534 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3535 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3536 | |
| 3537 | if test $ac_cv_header_stdc = yes; then |
| 3538 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3539 | cat >conftest.$ac_ext <<_ACEOF |
| 3540 | /* confdefs.h. */ |
| 3541 | _ACEOF |
| 3542 | cat confdefs.h >>conftest.$ac_ext |
| 3543 | cat >>conftest.$ac_ext <<_ACEOF |
| 3544 | /* end confdefs.h. */ |
| 3545 | #include <stdlib.h> |
| 3546 | |
| 3547 | _ACEOF |
| 3548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3549 | $EGREP "free" >/dev/null 2>&1; then |
| 3550 | : |
| 3551 | else |
| 3552 | ac_cv_header_stdc=no |
| 3553 | fi |
| 3554 | rm -f conftest* |
| 3555 | |
| 3556 | fi |
| 3557 | |
| 3558 | if test $ac_cv_header_stdc = yes; then |
| 3559 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3560 | if test "$cross_compiling" = yes; then |
| 3561 | : |
| 3562 | else |
| 3563 | cat >conftest.$ac_ext <<_ACEOF |
| 3564 | /* confdefs.h. */ |
| 3565 | _ACEOF |
| 3566 | cat confdefs.h >>conftest.$ac_ext |
| 3567 | cat >>conftest.$ac_ext <<_ACEOF |
| 3568 | /* end confdefs.h. */ |
| 3569 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3570 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3571 | #if ((' ' & 0x0FF) == 0x020) |
| 3572 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3573 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3574 | #else |
| 3575 | # define ISLOWER(c) \ |
| 3576 | (('a' <= (c) && (c) <= 'i') \ |
| 3577 | || ('j' <= (c) && (c) <= 'r') \ |
| 3578 | || ('s' <= (c) && (c) <= 'z')) |
| 3579 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3580 | #endif |
| 3581 | |
| 3582 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3583 | int |
| 3584 | main () |
| 3585 | { |
| 3586 | int i; |
| 3587 | for (i = 0; i < 256; i++) |
| 3588 | if (XOR (islower (i), ISLOWER (i)) |
| 3589 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3590 | return 2; |
| 3591 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3592 | } |
| 3593 | _ACEOF |
| 3594 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3595 | if { (ac_try="$ac_link" |
| 3596 | case "(($ac_try" in |
| 3597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3598 | *) ac_try_echo=$ac_try;; |
| 3599 | esac |
| 3600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3601 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | ac_status=$? |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3605 | { (case "(($ac_try" in |
| 3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3607 | *) ac_try_echo=$ac_try;; |
| 3608 | esac |
| 3609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3610 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3611 | ac_status=$? |
| 3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3613 | (exit $ac_status); }; }; then |
| 3614 | : |
| 3615 | else |
| 3616 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3617 | echo "$as_me: failed program was:" >&5 |
| 3618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3619 | |
| 3620 | ( exit $ac_status ) |
| 3621 | ac_cv_header_stdc=no |
| 3622 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3624 | fi |
| 3625 | |
| 3626 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3627 | fi |
| 3628 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3629 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3630 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3631 | if test $ac_cv_header_stdc = yes; then |
| 3632 | |
| 3633 | cat >>confdefs.h <<\_ACEOF |
| 3634 | #define STDC_HEADERS 1 |
| 3635 | _ACEOF |
| 3636 | |
| 3637 | fi |
| 3638 | |
| 3639 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3640 | |
| 3641 | |
| 3642 | |
| 3643 | |
| 3644 | |
| 3645 | |
| 3646 | |
| 3647 | |
| 3648 | |
| 3649 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3650 | inttypes.h stdint.h unistd.h |
| 3651 | do |
| 3652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3653 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3657 | else |
| 3658 | cat >conftest.$ac_ext <<_ACEOF |
| 3659 | /* confdefs.h. */ |
| 3660 | _ACEOF |
| 3661 | cat confdefs.h >>conftest.$ac_ext |
| 3662 | cat >>conftest.$ac_ext <<_ACEOF |
| 3663 | /* end confdefs.h. */ |
| 3664 | $ac_includes_default |
| 3665 | |
| 3666 | #include <$ac_header> |
| 3667 | _ACEOF |
| 3668 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3669 | if { (ac_try="$ac_compile" |
| 3670 | case "(($ac_try" in |
| 3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3672 | *) ac_try_echo=$ac_try;; |
| 3673 | esac |
| 3674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3675 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3676 | ac_status=$? |
| 3677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3678 | rm -f conftest.er1 |
| 3679 | cat conftest.err >&5 |
| 3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3681 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3683 | { (case "(($ac_try" in |
| 3684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3685 | *) ac_try_echo=$ac_try;; |
| 3686 | esac |
| 3687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3688 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3689 | ac_status=$? |
| 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3691 | (exit $ac_status); }; } && |
| 3692 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3693 | { (case "(($ac_try" in |
| 3694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3695 | *) ac_try_echo=$ac_try;; |
| 3696 | esac |
| 3697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3698 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3699 | ac_status=$? |
| 3700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3701 | (exit $ac_status); }; }; then |
| 3702 | eval "$as_ac_Header=yes" |
| 3703 | else |
| 3704 | echo "$as_me: failed program was:" >&5 |
| 3705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3706 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3707 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3708 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3709 | |
| 3710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3714 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3715 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3716 | cat >>confdefs.h <<_ACEOF |
| 3717 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3718 | _ACEOF |
| 3719 | |
| 3720 | fi |
| 3721 | |
| 3722 | done |
| 3723 | |
| 3724 | |
| 3725 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3726 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3727 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3728 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3730 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3731 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3732 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3733 | else |
| 3734 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3735 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3736 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3737 | cat >conftest.$ac_ext <<_ACEOF |
| 3738 | /* confdefs.h. */ |
| 3739 | _ACEOF |
| 3740 | cat confdefs.h >>conftest.$ac_ext |
| 3741 | cat >>conftest.$ac_ext <<_ACEOF |
| 3742 | /* end confdefs.h. */ |
| 3743 | $ac_includes_default |
| 3744 | #include <linux/fs.h> |
| 3745 | _ACEOF |
| 3746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3747 | if { (ac_try="$ac_compile" |
| 3748 | case "(($ac_try" in |
| 3749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3750 | *) ac_try_echo=$ac_try;; |
| 3751 | esac |
| 3752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3753 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3754 | ac_status=$? |
| 3755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3756 | rm -f conftest.er1 |
| 3757 | cat conftest.err >&5 |
| 3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3759 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3761 | { (case "(($ac_try" in |
| 3762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3763 | *) ac_try_echo=$ac_try;; |
| 3764 | esac |
| 3765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3766 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3767 | ac_status=$? |
| 3768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3769 | (exit $ac_status); }; } && |
| 3770 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3771 | { (case "(($ac_try" in |
| 3772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3773 | *) ac_try_echo=$ac_try;; |
| 3774 | esac |
| 3775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3776 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3777 | ac_status=$? |
| 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3779 | (exit $ac_status); }; }; then |
| 3780 | ac_header_compiler=yes |
| 3781 | else |
| 3782 | echo "$as_me: failed program was:" >&5 |
| 3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3785 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3786 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3787 | |
| 3788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3789 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3790 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3791 | |
| 3792 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3793 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3794 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3795 | cat >conftest.$ac_ext <<_ACEOF |
| 3796 | /* confdefs.h. */ |
| 3797 | _ACEOF |
| 3798 | cat confdefs.h >>conftest.$ac_ext |
| 3799 | cat >>conftest.$ac_ext <<_ACEOF |
| 3800 | /* end confdefs.h. */ |
| 3801 | #include <linux/fs.h> |
| 3802 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3803 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3804 | case "(($ac_try" in |
| 3805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3806 | *) ac_try_echo=$ac_try;; |
| 3807 | esac |
| 3808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3809 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3810 | ac_status=$? |
| 3811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3812 | rm -f conftest.er1 |
| 3813 | cat conftest.err >&5 |
| 3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3815 | (exit $ac_status); } >/dev/null; then |
| 3816 | if test -s conftest.err; then |
| 3817 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3819 | else |
| 3820 | ac_cpp_err= |
| 3821 | fi |
| 3822 | else |
| 3823 | ac_cpp_err=yes |
| 3824 | fi |
| 3825 | if test -z "$ac_cpp_err"; then |
| 3826 | ac_header_preproc=yes |
| 3827 | else |
| 3828 | echo "$as_me: failed program was:" >&5 |
| 3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3830 | |
| 3831 | ac_header_preproc=no |
| 3832 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3833 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3834 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3835 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3836 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3837 | |
| 3838 | # So? What about this header? |
| 3839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3840 | yes:no: ) |
| 3841 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3842 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3843 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3844 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3845 | ac_header_preproc=yes |
| 3846 | ;; |
| 3847 | no:yes:* ) |
| 3848 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3849 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3850 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3851 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3852 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3853 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3854 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3855 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3856 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3857 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3858 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3859 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3860 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3861 | ;; |
| 3862 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3863 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3864 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3865 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3867 | else |
| 3868 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3869 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3870 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3871 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3872 | |
| 3873 | fi |
| 3874 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3875 | linux_headers=yes |
| 3876 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3877 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3878 | fi |
| 3879 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3880 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3881 | if test "$linux_headers" != yes; then |
| 3882 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3883 | fi |
| 3884 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3885 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3886 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3887 | if test "$GCC" = yes |
| 3888 | then |
| 3889 | case "$host_cpu" in |
| 3890 | alpha) addcflags="-mieee" ;; |
| 3891 | esac |
| 3892 | fi |
| 3893 | if test "x$addcflags" != x |
| 3894 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3895 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3896 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3897 | CFLAGS="$addcflags $CFLAGS" |
| 3898 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3899 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3900 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3901 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3902 | LIB_EXT=.a |
| 3903 | STATIC_LIB_EXT=.a |
| 3904 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3906 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3907 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3908 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3909 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3910 | LDFLAGS=$withval |
| 3911 | else |
| 3912 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3913 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3915 | |
| 3916 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3917 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3918 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3919 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3920 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3921 | fi |
| 3922 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3923 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3924 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3925 | then |
| 3926 | MAINTAINER_CMT=# |
| 3927 | echo "Disabling maintainer mode" |
| 3928 | else |
| 3929 | MAINTAINER_CMT= |
| 3930 | echo "Enabling maintainer mode" |
| 3931 | fi |
| 3932 | |
| 3933 | else |
| 3934 | MAINTAINER_CMT=# |
| 3935 | echo "Disabling maintainer mode by default" |
| 3936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3937 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3939 | |
| 3940 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3941 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3942 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3943 | then |
| 3944 | echo "Disabling compression support" |
| 3945 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3946 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3947 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3948 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3949 | |
| 3950 | echo "Enabling compression support" |
| 3951 | echo "WARNING: Compression support is experimental" |
| 3952 | fi |
| 3953 | |
| 3954 | else |
| 3955 | echo "Disabling compression support by default" |
| 3956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3957 | fi |
| 3958 | |
| 3959 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3960 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3961 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3962 | then |
| 3963 | HTREE_CMT=# |
| 3964 | echo "Disabling htree directory support" |
| 3965 | else |
| 3966 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3967 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3968 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3969 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3970 | |
| 3971 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3972 | fi |
| 3973 | |
| 3974 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3975 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3976 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3977 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3978 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3979 | |
| 3980 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3982 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3983 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3984 | |
| 3985 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3986 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3987 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3988 | then |
| 3989 | ELF_CMT=# |
| 3990 | MAKEFILE_ELF=/dev/null |
| 3991 | echo "Disabling ELF shared libraries" |
| 3992 | else |
| 3993 | ELF_CMT= |
| 3994 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3995 | case "$host_os" in |
| 3996 | solaris2.*) |
| 3997 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3998 | ;; |
| 3999 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4000 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4001 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4002 | echo "Enabling ELF shared libraries" |
| 4003 | fi |
| 4004 | |
| 4005 | else |
| 4006 | MAKEFILE_ELF=/dev/null |
| 4007 | ELF_CMT=# |
| 4008 | echo "Disabling ELF shared libraries by default" |
| 4009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4010 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4011 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4013 | |
| 4014 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4015 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4016 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4017 | then |
| 4018 | BSDLIB_CMT=# |
| 4019 | MAKEFILE_BSDLIB=/dev/null |
| 4020 | echo "Disabling BSD shared libraries" |
| 4021 | else |
| 4022 | BSDLIB_CMT= |
| 4023 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4024 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4025 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4026 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4027 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4028 | LIB_EXT=.dylib |
| 4029 | ;; |
| 4030 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4031 | echo "Enabling BSD shared libraries" |
| 4032 | fi |
| 4033 | |
| 4034 | else |
| 4035 | MAKEFILE_BSDLIB=/dev/null |
| 4036 | BSDLIB_CMT=# |
| 4037 | echo "Disabling BSD shared libraries by default" |
| 4038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4039 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4040 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4042 | |
| 4043 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4044 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4045 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4046 | then |
| 4047 | PROFILE_CMT=# |
| 4048 | MAKEFILE_PROFILE=/dev/null |
| 4049 | echo "Disabling profiling libraries" |
| 4050 | else |
| 4051 | PROFILE_CMT= |
| 4052 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4053 | PROFILED_LIB_EXT=_p.a |
| 4054 | echo "Building profiling libraries" |
| 4055 | fi |
| 4056 | |
| 4057 | else |
| 4058 | PROFILE_CMT=# |
| 4059 | MAKEFILE_PROFILE=/dev/null |
| 4060 | echo "Disabling profiling libraries by default" |
| 4061 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4062 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4063 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4065 | |
| 4066 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4067 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4068 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4069 | then |
| 4070 | CHECKER_CMT=# |
| 4071 | MAKEFILE_CHECKER=/dev/null |
| 4072 | echo "Disabling checker libraries" |
| 4073 | else |
| 4074 | CHECKER_CMT= |
| 4075 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 4076 | echo "Building checker libraries" |
| 4077 | fi |
| 4078 | |
| 4079 | else |
| 4080 | CHECKER_CMT=# |
| 4081 | MAKEFILE_CHECKER=/dev/null |
| 4082 | echo "Disabling checker libraries by default" |
| 4083 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4084 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4085 | |
| 4086 | |
| 4087 | |
| 4088 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4090 | |
| 4091 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 4092 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4093 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4094 | then |
| 4095 | echo "Disabling journal debugging" |
| 4096 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4097 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 4098 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4099 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4100 | |
| 4101 | echo "Enabling journal debugging" |
| 4102 | fi |
| 4103 | |
| 4104 | else |
| 4105 | echo "Disabling journal debugging by default" |
| 4106 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4107 | fi |
| 4108 | |
| 4109 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4110 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4111 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4112 | then |
| 4113 | echo "Disabling blkid debugging" |
| 4114 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4115 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4116 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4117 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4118 | |
| 4119 | echo "Enabling blkid debugging" |
| 4120 | fi |
| 4121 | |
| 4122 | else |
| 4123 | echo "Disabling blkid debugging by default" |
| 4124 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4125 | fi |
| 4126 | |
| 4127 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4128 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4129 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4130 | then |
| 4131 | echo "Disabling testio debugging" |
| 4132 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4133 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4134 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4135 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4136 | |
| 4137 | echo "Enabling testio debugging" |
| 4138 | fi |
| 4139 | |
| 4140 | else |
| 4141 | echo "Disabling testio debugging by default" |
| 4142 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4143 | fi |
| 4144 | |
| 4145 | # Check whether --enable-swapfs was given. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4146 | if test "${enable_swapfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4147 | enableval=$enable_swapfs; if test "$enableval" = "no" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4148 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4149 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4150 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4151 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4152 | SWAPFS_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4153 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4154 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4155 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4156 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4157 | echo "Enabling swapfs support" |
| 4158 | fi |
| 4159 | |
| 4160 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4161 | SWAPFS_CMT= |
| 4162 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4163 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4164 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4165 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4166 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4167 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4168 | fi |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4169 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4170 | |
| 4171 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4172 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4173 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4174 | then |
| 4175 | echo "Disabling debugfs support" |
| 4176 | DEBUGFS_CMT="#" |
| 4177 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4178 | DEBUGFS_CMT= |
| 4179 | echo "Enabling debugfs support" |
| 4180 | fi |
| 4181 | |
| 4182 | else |
| 4183 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4184 | DEBUGFS_CMT= |
| 4185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4186 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4187 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4188 | |
| 4189 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4190 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4191 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4192 | then |
| 4193 | echo "Disabling e2image support" |
| 4194 | IMAGER_CMT="#" |
| 4195 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4196 | IMAGER_CMT= |
| 4197 | echo "Enabling e2image support" |
| 4198 | fi |
| 4199 | |
| 4200 | else |
| 4201 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4202 | IMAGER_CMT= |
| 4203 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4204 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4205 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4206 | |
| 4207 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4208 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4209 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4210 | then |
| 4211 | echo "Disabling e2resize support" |
| 4212 | RESIZER_CMT="#" |
| 4213 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4214 | RESIZER_CMT= |
| 4215 | echo "Enabling e2resize support" |
| 4216 | fi |
| 4217 | |
| 4218 | else |
| 4219 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4220 | RESIZER_CMT= |
| 4221 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4222 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4224 | |
| 4225 | # Check whether --enable-dynamic-e2fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4226 | if test "${enable_dynamic_e2fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4227 | enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4228 | then |
| 4229 | E2FSCK_TYPE=static |
| 4230 | echo "Building e2fsck statically" |
| 4231 | else |
| 4232 | E2FSCK_TYPE=shared |
| 4233 | echo "Building e2fsck dynamically" |
| 4234 | fi |
| 4235 | |
| 4236 | else |
| 4237 | E2FSCK_TYPE=static |
| 4238 | echo "Building e2fsck statically by default" |
| 4239 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4240 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4241 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4242 | |
| 4243 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4244 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4245 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4246 | then |
| 4247 | FSCK_PROG='' FSCK_MAN='' |
| 4248 | echo "Not building fsck wrapper" |
| 4249 | else |
| 4250 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4251 | echo "Building fsck wrapper" |
| 4252 | fi |
| 4253 | |
| 4254 | else |
| 4255 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4256 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4257 | FSCK_PROG='' FSCK_MAN='' |
| 4258 | echo "Not building fsck wrapper by default" |
| 4259 | ;; |
| 4260 | *) |
| 4261 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4262 | echo "Building fsck wrapper by default" |
| 4263 | esac |
| 4264 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4265 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4266 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4267 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4268 | |
| 4269 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4270 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4271 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4272 | then |
| 4273 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4274 | echo "Not building e2initrd helper" |
| 4275 | else |
| 4276 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4277 | echo "Building e2initrd helper" |
| 4278 | fi |
| 4279 | |
| 4280 | else |
| 4281 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4282 | echo "Building e2initrd helper by default" |
| 4283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4284 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4285 | |
| 4286 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4287 | |
| 4288 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4289 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4290 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4291 | then |
| 4292 | echo "Disabling device-mapper support" |
| 4293 | DEVMAPPER_REQ='' |
| 4294 | DEVMAPPER_LIBS='' |
| 4295 | STATIC_DEVMAPPER_LIBS='' |
| 4296 | else |
| 4297 | cat >>confdefs.h <<\_ACEOF |
| 4298 | #define HAVE_DEVMAPPER 1 |
| 4299 | _ACEOF |
| 4300 | |
| 4301 | echo "Enabling device-mapper support" |
| 4302 | |
| 4303 | DEVMAPPER_REQ='libselinux libsepol' |
| 4304 | DEVMAPPER_PC_LIBS='-ldevmapper' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4305 | DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread' |
| 4306 | STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread' |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4307 | |
| 4308 | fi |
| 4309 | |
| 4310 | else |
| 4311 | echo "Disabling device-mapper support by default" |
| 4312 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4313 | fi |
| 4314 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4319 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4321 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4322 | PACKAGE=e2fsprogs |
| 4323 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4324 | VERSION=0.14.1 |
| 4325 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4326 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4327 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4329 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4330 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4331 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4332 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4333 | |
| 4334 | |
| 4335 | |
| 4336 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4337 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4338 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4339 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4340 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4342 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4343 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4344 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4345 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4346 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4347 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4348 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4349 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4350 | *@@@%%%=?*=@@@%%%*) |
| 4351 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4352 | *) |
| 4353 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4354 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4355 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4356 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4357 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4358 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4359 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4360 | SET_MAKE= |
| 4361 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4362 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4363 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4364 | SET_MAKE="MAKE=${MAKE-make}" |
| 4365 | fi |
| 4366 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4367 | # Find a good install program. We prefer a C program (faster), |
| 4368 | # so one script is as good as another. But avoid the broken or |
| 4369 | # incompatible versions: |
| 4370 | # SysV /etc/install, /usr/sbin/install |
| 4371 | # SunOS /usr/etc/install |
| 4372 | # IRIX /sbin/install |
| 4373 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4374 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4375 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4376 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4377 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4378 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4379 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4380 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4381 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4382 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4383 | if test "${ac_cv_path_install+set}" = set; then |
| 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4385 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4387 | for as_dir in $PATH |
| 4388 | do |
| 4389 | IFS=$as_save_IFS |
| 4390 | test -z "$as_dir" && as_dir=. |
| 4391 | # Account for people who put trailing slashes in PATH elements. |
| 4392 | case $as_dir/ in |
| 4393 | ./ | .// | /cC/* | \ |
| 4394 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4395 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4396 | /usr/ucb/* ) ;; |
| 4397 | *) |
| 4398 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4399 | # Don't use installbsd from OSF since it installs stuff as root |
| 4400 | # by default. |
| 4401 | for ac_prog in ginstall scoinst install; do |
| 4402 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4403 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4404 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4405 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4406 | # AIX install. It has an incompatible calling convention. |
| 4407 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4408 | elif test $ac_prog = install && |
| 4409 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4410 | # program-specific install script used by HP pwplus--don't use. |
| 4411 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4412 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4413 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4414 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4415 | fi |
| 4416 | fi |
| 4417 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4418 | done |
| 4419 | ;; |
| 4420 | esac |
| 4421 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4422 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4423 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4424 | |
| 4425 | fi |
| 4426 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4427 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4428 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4429 | # As a last resort, use the slow shell script. Don't cache a |
| 4430 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4431 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4432 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4433 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4434 | fi |
| 4435 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4436 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4437 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4438 | |
| 4439 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4440 | # It thinks the first close brace ends the variable substitution. |
| 4441 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4443 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4444 | |
| 4445 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4446 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4447 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4448 | MKINSTALLDIRS= |
| 4449 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4450 | case "$ac_aux_dir" in |
| 4451 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4452 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4453 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4454 | fi |
| 4455 | if test -z "$MKINSTALLDIRS"; then |
| 4456 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4457 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4458 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4459 | |
| 4460 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4461 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4462 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4463 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4464 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4465 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4466 | else |
| 4467 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4468 | fi |
| 4469 | |
| 4470 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4471 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4472 | |
| 4473 | |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | # Prepare PATH_SEPARATOR. |
| 4479 | # The user is always right. |
| 4480 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4481 | echo "#! /bin/sh" >conf$$.sh |
| 4482 | echo "exit 0" >>conf$$.sh |
| 4483 | chmod +x conf$$.sh |
| 4484 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4485 | PATH_SEPARATOR=';' |
| 4486 | else |
| 4487 | PATH_SEPARATOR=: |
| 4488 | fi |
| 4489 | rm -f conf$$.sh |
| 4490 | fi |
| 4491 | |
| 4492 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4493 | # as systems may use methods other than mode bits to determine executability. |
| 4494 | cat >conf$$.file <<_ASEOF |
| 4495 | #! /bin/sh |
| 4496 | exit 0 |
| 4497 | _ASEOF |
| 4498 | chmod +x conf$$.file |
| 4499 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4500 | ac_executable_p="test -x" |
| 4501 | else |
| 4502 | ac_executable_p="test -f" |
| 4503 | fi |
| 4504 | rm -f conf$$.file |
| 4505 | |
| 4506 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4507 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4508 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4510 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4512 | else |
| 4513 | case "$MSGFMT" in |
| 4514 | [\\/]* | ?:[\\/]*) |
| 4515 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4516 | ;; |
| 4517 | *) |
| 4518 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4519 | for ac_dir in $PATH; do |
| 4520 | IFS="$ac_save_IFS" |
| 4521 | test -z "$ac_dir" && ac_dir=. |
| 4522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4523 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4524 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4525 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4526 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4527 | break 2 |
| 4528 | fi |
| 4529 | fi |
| 4530 | done |
| 4531 | done |
| 4532 | IFS="$ac_save_IFS" |
| 4533 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4534 | ;; |
| 4535 | esac |
| 4536 | fi |
| 4537 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4538 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4539 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4540 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4541 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4542 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4543 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4544 | fi |
| 4545 | |
| 4546 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4547 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4548 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4550 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4552 | else |
| 4553 | case $GMSGFMT in |
| 4554 | [\\/]* | ?:[\\/]*) |
| 4555 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4556 | ;; |
| 4557 | *) |
| 4558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4559 | for as_dir in $PATH |
| 4560 | do |
| 4561 | IFS=$as_save_IFS |
| 4562 | test -z "$as_dir" && as_dir=. |
| 4563 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4565 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4567 | break 2 |
| 4568 | fi |
| 4569 | done |
| 4570 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4571 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4572 | |
| 4573 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4574 | ;; |
| 4575 | esac |
| 4576 | fi |
| 4577 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4578 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4579 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4580 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4581 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4583 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4584 | fi |
| 4585 | |
| 4586 | |
| 4587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4588 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4589 | # Prepare PATH_SEPARATOR. |
| 4590 | # The user is always right. |
| 4591 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4592 | echo "#! /bin/sh" >conf$$.sh |
| 4593 | echo "exit 0" >>conf$$.sh |
| 4594 | chmod +x conf$$.sh |
| 4595 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4596 | PATH_SEPARATOR=';' |
| 4597 | else |
| 4598 | PATH_SEPARATOR=: |
| 4599 | fi |
| 4600 | rm -f conf$$.sh |
| 4601 | fi |
| 4602 | |
| 4603 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4604 | # as systems may use methods other than mode bits to determine executability. |
| 4605 | cat >conf$$.file <<_ASEOF |
| 4606 | #! /bin/sh |
| 4607 | exit 0 |
| 4608 | _ASEOF |
| 4609 | chmod +x conf$$.file |
| 4610 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4611 | ac_executable_p="test -x" |
| 4612 | else |
| 4613 | ac_executable_p="test -f" |
| 4614 | fi |
| 4615 | rm -f conf$$.file |
| 4616 | |
| 4617 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4618 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4619 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4621 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4623 | else |
| 4624 | case "$XGETTEXT" in |
| 4625 | [\\/]* | ?:[\\/]*) |
| 4626 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4627 | ;; |
| 4628 | *) |
| 4629 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4630 | for ac_dir in $PATH; do |
| 4631 | IFS="$ac_save_IFS" |
| 4632 | test -z "$ac_dir" && ac_dir=. |
| 4633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4634 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4635 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4636 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4637 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4638 | break 2 |
| 4639 | fi |
| 4640 | fi |
| 4641 | done |
| 4642 | done |
| 4643 | IFS="$ac_save_IFS" |
| 4644 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4645 | ;; |
| 4646 | esac |
| 4647 | fi |
| 4648 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4649 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4651 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4652 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4653 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4654 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4655 | fi |
| 4656 | |
| 4657 | rm -f messages.po |
| 4658 | |
| 4659 | |
| 4660 | # Prepare PATH_SEPARATOR. |
| 4661 | # The user is always right. |
| 4662 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4663 | echo "#! /bin/sh" >conf$$.sh |
| 4664 | echo "exit 0" >>conf$$.sh |
| 4665 | chmod +x conf$$.sh |
| 4666 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4667 | PATH_SEPARATOR=';' |
| 4668 | else |
| 4669 | PATH_SEPARATOR=: |
| 4670 | fi |
| 4671 | rm -f conf$$.sh |
| 4672 | fi |
| 4673 | |
| 4674 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4675 | # as systems may use methods other than mode bits to determine executability. |
| 4676 | cat >conf$$.file <<_ASEOF |
| 4677 | #! /bin/sh |
| 4678 | exit 0 |
| 4679 | _ASEOF |
| 4680 | chmod +x conf$$.file |
| 4681 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4682 | ac_executable_p="test -x" |
| 4683 | else |
| 4684 | ac_executable_p="test -f" |
| 4685 | fi |
| 4686 | rm -f conf$$.file |
| 4687 | |
| 4688 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4689 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4692 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | case "$MSGMERGE" in |
| 4696 | [\\/]* | ?:[\\/]*) |
| 4697 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4698 | ;; |
| 4699 | *) |
| 4700 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4701 | for ac_dir in $PATH; do |
| 4702 | IFS="$ac_save_IFS" |
| 4703 | test -z "$ac_dir" && ac_dir=. |
| 4704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4705 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4706 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4707 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4708 | break 2 |
| 4709 | fi |
| 4710 | fi |
| 4711 | done |
| 4712 | done |
| 4713 | IFS="$ac_save_IFS" |
| 4714 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4715 | ;; |
| 4716 | esac |
| 4717 | fi |
| 4718 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4719 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4720 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4721 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4722 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4723 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4724 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4725 | fi |
| 4726 | |
| 4727 | |
| 4728 | if test "$GMSGFMT" != ":"; then |
| 4729 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4730 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4731 | : ; |
| 4732 | else |
| 4733 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4734 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4735 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4736 | GMSGFMT=":" |
| 4737 | fi |
| 4738 | fi |
| 4739 | |
| 4740 | if test "$XGETTEXT" != ":"; then |
| 4741 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4742 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4743 | : ; |
| 4744 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4745 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4746 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4747 | XGETTEXT=":" |
| 4748 | fi |
| 4749 | rm -f messages.po |
| 4750 | fi |
| 4751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4752 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4753 | |
| 4754 | |
| 4755 | if test -n "$ac_tool_prefix"; then |
| 4756 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4757 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4758 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4760 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4762 | else |
| 4763 | if test -n "$RANLIB"; then |
| 4764 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4765 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4767 | for as_dir in $PATH |
| 4768 | do |
| 4769 | IFS=$as_save_IFS |
| 4770 | test -z "$as_dir" && as_dir=. |
| 4771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4773 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4775 | break 2 |
| 4776 | fi |
| 4777 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4778 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4779 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4780 | |
| 4781 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4782 | fi |
| 4783 | RANLIB=$ac_cv_prog_RANLIB |
| 4784 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4785 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4786 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4787 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4788 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4789 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4790 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4792 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4793 | fi |
| 4794 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4795 | ac_ct_RANLIB=$RANLIB |
| 4796 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4797 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4800 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4802 | else |
| 4803 | if test -n "$ac_ct_RANLIB"; then |
| 4804 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4805 | else |
| 4806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4807 | for as_dir in $PATH |
| 4808 | do |
| 4809 | IFS=$as_save_IFS |
| 4810 | test -z "$as_dir" && as_dir=. |
| 4811 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4813 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4815 | break 2 |
| 4816 | fi |
| 4817 | done |
| 4818 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4819 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4820 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4821 | fi |
| 4822 | fi |
| 4823 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4824 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4825 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4826 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4827 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4829 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4830 | fi |
| 4831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4832 | if test "x$ac_ct_RANLIB" = x; then |
| 4833 | RANLIB=":" |
| 4834 | else |
| 4835 | case $cross_compiling:$ac_tool_warned in |
| 4836 | yes:) |
| 4837 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4838 | whose name does not start with the host triplet. If you think this |
| 4839 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4840 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4841 | whose name does not start with the host triplet. If you think this |
| 4842 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4843 | ac_tool_warned=yes ;; |
| 4844 | esac |
| 4845 | RANLIB=$ac_ct_RANLIB |
| 4846 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4847 | else |
| 4848 | RANLIB="$ac_cv_prog_RANLIB" |
| 4849 | fi |
| 4850 | |
| 4851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4852 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4853 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4854 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4856 | else |
| 4857 | ac_check_lib_save_LIBS=$LIBS |
| 4858 | LIBS="-lcposix $LIBS" |
| 4859 | cat >conftest.$ac_ext <<_ACEOF |
| 4860 | /* confdefs.h. */ |
| 4861 | _ACEOF |
| 4862 | cat confdefs.h >>conftest.$ac_ext |
| 4863 | cat >>conftest.$ac_ext <<_ACEOF |
| 4864 | /* end confdefs.h. */ |
| 4865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4866 | /* Override any GCC internal prototype to avoid an error. |
| 4867 | Use char because int might match the return type of a GCC |
| 4868 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4869 | #ifdef __cplusplus |
| 4870 | extern "C" |
| 4871 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4872 | char strerror (); |
| 4873 | int |
| 4874 | main () |
| 4875 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4876 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4877 | ; |
| 4878 | return 0; |
| 4879 | } |
| 4880 | _ACEOF |
| 4881 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4882 | if { (ac_try="$ac_link" |
| 4883 | case "(($ac_try" in |
| 4884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4885 | *) ac_try_echo=$ac_try;; |
| 4886 | esac |
| 4887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4888 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4889 | ac_status=$? |
| 4890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4891 | rm -f conftest.er1 |
| 4892 | cat conftest.err >&5 |
| 4893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4894 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4896 | { (case "(($ac_try" in |
| 4897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4898 | *) ac_try_echo=$ac_try;; |
| 4899 | esac |
| 4900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4901 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4902 | ac_status=$? |
| 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); }; } && |
| 4905 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4906 | { (case "(($ac_try" in |
| 4907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4908 | *) ac_try_echo=$ac_try;; |
| 4909 | esac |
| 4910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4911 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4912 | ac_status=$? |
| 4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4914 | (exit $ac_status); }; }; then |
| 4915 | ac_cv_lib_cposix_strerror=yes |
| 4916 | else |
| 4917 | echo "$as_me: failed program was:" >&5 |
| 4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4920 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4921 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4922 | |
| 4923 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4924 | conftest$ac_exeext conftest.$ac_ext |
| 4925 | LIBS=$ac_check_lib_save_LIBS |
| 4926 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4928 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4929 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4930 | LIBS="$LIBS -lcposix" |
| 4931 | fi |
| 4932 | |
| 4933 | |
| 4934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4935 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4936 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4937 | if test "${ac_cv_c_const+set}" = set; then |
| 4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4939 | else |
| 4940 | cat >conftest.$ac_ext <<_ACEOF |
| 4941 | /* confdefs.h. */ |
| 4942 | _ACEOF |
| 4943 | cat confdefs.h >>conftest.$ac_ext |
| 4944 | cat >>conftest.$ac_ext <<_ACEOF |
| 4945 | /* end confdefs.h. */ |
| 4946 | |
| 4947 | int |
| 4948 | main () |
| 4949 | { |
| 4950 | /* FIXME: Include the comments suggested by Paul. */ |
| 4951 | #ifndef __cplusplus |
| 4952 | /* Ultrix mips cc rejects this. */ |
| 4953 | typedef int charset[2]; |
| 4954 | const charset x; |
| 4955 | /* SunOS 4.1.1 cc rejects this. */ |
| 4956 | char const *const *ccp; |
| 4957 | char **p; |
| 4958 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4959 | struct point {int x, y;}; |
| 4960 | static struct point const zero = {0,0}; |
| 4961 | /* AIX XL C 1.02.0.0 rejects this. |
| 4962 | It does not let you subtract one const X* pointer from another in |
| 4963 | an arm of an if-expression whose if-part is not a constant |
| 4964 | expression */ |
| 4965 | const char *g = "string"; |
| 4966 | ccp = &g + (g ? g-g : 0); |
| 4967 | /* HPUX 7.0 cc rejects these. */ |
| 4968 | ++ccp; |
| 4969 | p = (char**) ccp; |
| 4970 | ccp = (char const *const *) p; |
| 4971 | { /* SCO 3.2v4 cc rejects this. */ |
| 4972 | char *t; |
| 4973 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4974 | |
| 4975 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4976 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4977 | } |
| 4978 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4979 | int x[] = {25, 17}; |
| 4980 | const int *foo = &x[0]; |
| 4981 | ++foo; |
| 4982 | } |
| 4983 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4984 | typedef const int *iptr; |
| 4985 | iptr p = 0; |
| 4986 | ++p; |
| 4987 | } |
| 4988 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4989 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4990 | struct s { int j; const int *ap[3]; }; |
| 4991 | struct s *b; b->j = 5; |
| 4992 | } |
| 4993 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4994 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4995 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4996 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4997 | return !x[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4998 | #endif |
| 4999 | |
| 5000 | ; |
| 5001 | return 0; |
| 5002 | } |
| 5003 | _ACEOF |
| 5004 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5005 | if { (ac_try="$ac_compile" |
| 5006 | case "(($ac_try" in |
| 5007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5008 | *) ac_try_echo=$ac_try;; |
| 5009 | esac |
| 5010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5011 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5012 | ac_status=$? |
| 5013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5014 | rm -f conftest.er1 |
| 5015 | cat conftest.err >&5 |
| 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5017 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5019 | { (case "(($ac_try" in |
| 5020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5021 | *) ac_try_echo=$ac_try;; |
| 5022 | esac |
| 5023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5024 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5025 | ac_status=$? |
| 5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5027 | (exit $ac_status); }; } && |
| 5028 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5029 | { (case "(($ac_try" in |
| 5030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5031 | *) ac_try_echo=$ac_try;; |
| 5032 | esac |
| 5033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5034 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5035 | ac_status=$? |
| 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5037 | (exit $ac_status); }; }; then |
| 5038 | ac_cv_c_const=yes |
| 5039 | else |
| 5040 | echo "$as_me: failed program was:" >&5 |
| 5041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5042 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5043 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5044 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5045 | |
| 5046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5048 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5049 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5050 | if test $ac_cv_c_const = no; then |
| 5051 | |
| 5052 | cat >>confdefs.h <<\_ACEOF |
| 5053 | #define const |
| 5054 | _ACEOF |
| 5055 | |
| 5056 | fi |
| 5057 | |
| 5058 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5059 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5060 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5061 | if test "${bh_cv_c_signed+set}" = set; then |
| 5062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5063 | else |
| 5064 | cat >conftest.$ac_ext <<_ACEOF |
| 5065 | /* confdefs.h. */ |
| 5066 | _ACEOF |
| 5067 | cat confdefs.h >>conftest.$ac_ext |
| 5068 | cat >>conftest.$ac_ext <<_ACEOF |
| 5069 | /* end confdefs.h. */ |
| 5070 | |
| 5071 | int |
| 5072 | main () |
| 5073 | { |
| 5074 | signed char x; |
| 5075 | ; |
| 5076 | return 0; |
| 5077 | } |
| 5078 | _ACEOF |
| 5079 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5080 | if { (ac_try="$ac_compile" |
| 5081 | case "(($ac_try" in |
| 5082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5083 | *) ac_try_echo=$ac_try;; |
| 5084 | esac |
| 5085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5086 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5087 | ac_status=$? |
| 5088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5089 | rm -f conftest.er1 |
| 5090 | cat conftest.err >&5 |
| 5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5092 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5094 | { (case "(($ac_try" in |
| 5095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5096 | *) ac_try_echo=$ac_try;; |
| 5097 | esac |
| 5098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5099 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5100 | ac_status=$? |
| 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5102 | (exit $ac_status); }; } && |
| 5103 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5104 | { (case "(($ac_try" in |
| 5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5106 | *) ac_try_echo=$ac_try;; |
| 5107 | esac |
| 5108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5109 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5110 | ac_status=$? |
| 5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5112 | (exit $ac_status); }; }; then |
| 5113 | bh_cv_c_signed=yes |
| 5114 | else |
| 5115 | echo "$as_me: failed program was:" >&5 |
| 5116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5118 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5119 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5120 | |
| 5121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5122 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5123 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5124 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5125 | if test $bh_cv_c_signed = no; then |
| 5126 | |
| 5127 | cat >>confdefs.h <<\_ACEOF |
| 5128 | #define signed |
| 5129 | _ACEOF |
| 5130 | |
| 5131 | fi |
| 5132 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5133 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5134 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5135 | if test "${ac_cv_c_inline+set}" = set; then |
| 5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5137 | else |
| 5138 | ac_cv_c_inline=no |
| 5139 | for ac_kw in inline __inline__ __inline; do |
| 5140 | cat >conftest.$ac_ext <<_ACEOF |
| 5141 | /* confdefs.h. */ |
| 5142 | _ACEOF |
| 5143 | cat confdefs.h >>conftest.$ac_ext |
| 5144 | cat >>conftest.$ac_ext <<_ACEOF |
| 5145 | /* end confdefs.h. */ |
| 5146 | #ifndef __cplusplus |
| 5147 | typedef int foo_t; |
| 5148 | static $ac_kw foo_t static_foo () {return 0; } |
| 5149 | $ac_kw foo_t foo () {return 0; } |
| 5150 | #endif |
| 5151 | |
| 5152 | _ACEOF |
| 5153 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5154 | if { (ac_try="$ac_compile" |
| 5155 | case "(($ac_try" in |
| 5156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5157 | *) ac_try_echo=$ac_try;; |
| 5158 | esac |
| 5159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5160 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5161 | ac_status=$? |
| 5162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5163 | rm -f conftest.er1 |
| 5164 | cat conftest.err >&5 |
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5166 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5168 | { (case "(($ac_try" in |
| 5169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5170 | *) ac_try_echo=$ac_try;; |
| 5171 | esac |
| 5172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5173 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5174 | ac_status=$? |
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5176 | (exit $ac_status); }; } && |
| 5177 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5178 | { (case "(($ac_try" in |
| 5179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5180 | *) ac_try_echo=$ac_try;; |
| 5181 | esac |
| 5182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5183 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5184 | ac_status=$? |
| 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5186 | (exit $ac_status); }; }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5187 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5188 | else |
| 5189 | echo "$as_me: failed program was:" >&5 |
| 5190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5191 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5193 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5194 | |
| 5195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5196 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5197 | done |
| 5198 | |
| 5199 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5200 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5201 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5202 | |
| 5203 | |
| 5204 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5205 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5206 | *) |
| 5207 | case $ac_cv_c_inline in |
| 5208 | no) ac_val=;; |
| 5209 | *) ac_val=$ac_cv_c_inline;; |
| 5210 | esac |
| 5211 | cat >>confdefs.h <<_ACEOF |
| 5212 | #ifndef __cplusplus |
| 5213 | #define inline $ac_val |
| 5214 | #endif |
| 5215 | _ACEOF |
| 5216 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5217 | esac |
| 5218 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5219 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5220 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5221 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5223 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5224 | cat >conftest.$ac_ext <<_ACEOF |
| 5225 | /* confdefs.h. */ |
| 5226 | _ACEOF |
| 5227 | cat confdefs.h >>conftest.$ac_ext |
| 5228 | cat >>conftest.$ac_ext <<_ACEOF |
| 5229 | /* end confdefs.h. */ |
| 5230 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5231 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5232 | int |
| 5233 | main () |
| 5234 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5235 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5236 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5237 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5238 | return 0; |
| 5239 | ; |
| 5240 | return 0; |
| 5241 | } |
| 5242 | _ACEOF |
| 5243 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5244 | if { (ac_try="$ac_compile" |
| 5245 | case "(($ac_try" in |
| 5246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5247 | *) ac_try_echo=$ac_try;; |
| 5248 | esac |
| 5249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5250 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5251 | ac_status=$? |
| 5252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5253 | rm -f conftest.er1 |
| 5254 | cat conftest.err >&5 |
| 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5256 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5258 | { (case "(($ac_try" in |
| 5259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5260 | *) ac_try_echo=$ac_try;; |
| 5261 | esac |
| 5262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5263 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5264 | ac_status=$? |
| 5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5266 | (exit $ac_status); }; } && |
| 5267 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5268 | { (case "(($ac_try" in |
| 5269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5270 | *) ac_try_echo=$ac_try;; |
| 5271 | esac |
| 5272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5273 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5274 | ac_status=$? |
| 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5276 | (exit $ac_status); }; }; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5277 | ac_cv_type_off_t=yes |
| 5278 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5279 | echo "$as_me: failed program was:" >&5 |
| 5280 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5282 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5283 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5284 | |
| 5285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5286 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5287 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5288 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5289 | if test $ac_cv_type_off_t = yes; then |
| 5290 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5291 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5292 | |
| 5293 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5294 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5295 | _ACEOF |
| 5296 | |
| 5297 | fi |
| 5298 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5299 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5300 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5301 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5303 | else |
| 5304 | cat >conftest.$ac_ext <<_ACEOF |
| 5305 | /* confdefs.h. */ |
| 5306 | _ACEOF |
| 5307 | cat confdefs.h >>conftest.$ac_ext |
| 5308 | cat >>conftest.$ac_ext <<_ACEOF |
| 5309 | /* end confdefs.h. */ |
| 5310 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5311 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5312 | int |
| 5313 | main () |
| 5314 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5315 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5316 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5317 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5318 | return 0; |
| 5319 | ; |
| 5320 | return 0; |
| 5321 | } |
| 5322 | _ACEOF |
| 5323 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5324 | if { (ac_try="$ac_compile" |
| 5325 | case "(($ac_try" in |
| 5326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5327 | *) ac_try_echo=$ac_try;; |
| 5328 | esac |
| 5329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5330 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5331 | ac_status=$? |
| 5332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5333 | rm -f conftest.er1 |
| 5334 | cat conftest.err >&5 |
| 5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5336 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5338 | { (case "(($ac_try" in |
| 5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5340 | *) ac_try_echo=$ac_try;; |
| 5341 | esac |
| 5342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5343 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5344 | ac_status=$? |
| 5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5346 | (exit $ac_status); }; } && |
| 5347 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5348 | { (case "(($ac_try" in |
| 5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5350 | *) ac_try_echo=$ac_try;; |
| 5351 | esac |
| 5352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5353 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5354 | ac_status=$? |
| 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5356 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5357 | ac_cv_type_size_t=yes |
| 5358 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5359 | echo "$as_me: failed program was:" >&5 |
| 5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5362 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5363 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5364 | |
| 5365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5366 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5367 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5368 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5369 | if test $ac_cv_type_size_t = yes; then |
| 5370 | : |
| 5371 | else |
| 5372 | |
| 5373 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5374 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5375 | _ACEOF |
| 5376 | |
| 5377 | fi |
| 5378 | |
| 5379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5380 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5381 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5382 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5384 | else |
| 5385 | cat >conftest.$ac_ext <<_ACEOF |
| 5386 | /* confdefs.h. */ |
| 5387 | _ACEOF |
| 5388 | cat confdefs.h >>conftest.$ac_ext |
| 5389 | cat >>conftest.$ac_ext <<_ACEOF |
| 5390 | /* end confdefs.h. */ |
| 5391 | long long ll = 1LL; int i = 63; |
| 5392 | int |
| 5393 | main () |
| 5394 | { |
| 5395 | long long llmax = (long long) -1; |
| 5396 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5397 | ; |
| 5398 | return 0; |
| 5399 | } |
| 5400 | _ACEOF |
| 5401 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5402 | if { (ac_try="$ac_link" |
| 5403 | case "(($ac_try" in |
| 5404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5405 | *) ac_try_echo=$ac_try;; |
| 5406 | esac |
| 5407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5408 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5409 | ac_status=$? |
| 5410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5411 | rm -f conftest.er1 |
| 5412 | cat conftest.err >&5 |
| 5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5414 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5416 | { (case "(($ac_try" in |
| 5417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5418 | *) ac_try_echo=$ac_try;; |
| 5419 | esac |
| 5420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5421 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5422 | ac_status=$? |
| 5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5424 | (exit $ac_status); }; } && |
| 5425 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5426 | { (case "(($ac_try" in |
| 5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5428 | *) ac_try_echo=$ac_try;; |
| 5429 | esac |
| 5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5431 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5432 | ac_status=$? |
| 5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5434 | (exit $ac_status); }; }; then |
| 5435 | ac_cv_type_long_long=yes |
| 5436 | else |
| 5437 | echo "$as_me: failed program was:" >&5 |
| 5438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5439 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5440 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5441 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5442 | |
| 5443 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5444 | conftest$ac_exeext conftest.$ac_ext |
| 5445 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5446 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5447 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5448 | if test $ac_cv_type_long_long = yes; then |
| 5449 | |
| 5450 | cat >>confdefs.h <<\_ACEOF |
| 5451 | #define HAVE_LONG_LONG 1 |
| 5452 | _ACEOF |
| 5453 | |
| 5454 | fi |
| 5455 | |
| 5456 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5457 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5458 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5459 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5461 | else |
| 5462 | if test "$GCC" = yes; then |
| 5463 | gt_cv_c_long_double=yes |
| 5464 | else |
| 5465 | cat >conftest.$ac_ext <<_ACEOF |
| 5466 | /* confdefs.h. */ |
| 5467 | _ACEOF |
| 5468 | cat confdefs.h >>conftest.$ac_ext |
| 5469 | cat >>conftest.$ac_ext <<_ACEOF |
| 5470 | /* end confdefs.h. */ |
| 5471 | |
| 5472 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5473 | long double foo = 0.0; |
| 5474 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5475 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5476 | |
| 5477 | int |
| 5478 | main () |
| 5479 | { |
| 5480 | |
| 5481 | ; |
| 5482 | return 0; |
| 5483 | } |
| 5484 | _ACEOF |
| 5485 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5486 | if { (ac_try="$ac_compile" |
| 5487 | case "(($ac_try" in |
| 5488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5489 | *) ac_try_echo=$ac_try;; |
| 5490 | esac |
| 5491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5492 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5493 | ac_status=$? |
| 5494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5495 | rm -f conftest.er1 |
| 5496 | cat conftest.err >&5 |
| 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5498 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5500 | { (case "(($ac_try" in |
| 5501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5502 | *) ac_try_echo=$ac_try;; |
| 5503 | esac |
| 5504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5505 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5506 | ac_status=$? |
| 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); }; } && |
| 5509 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5510 | { (case "(($ac_try" in |
| 5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5512 | *) ac_try_echo=$ac_try;; |
| 5513 | esac |
| 5514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5515 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5516 | ac_status=$? |
| 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); }; }; then |
| 5519 | gt_cv_c_long_double=yes |
| 5520 | else |
| 5521 | echo "$as_me: failed program was:" >&5 |
| 5522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5524 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5525 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5526 | |
| 5527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5528 | fi |
| 5529 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5530 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5531 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5532 | if test $gt_cv_c_long_double = yes; then |
| 5533 | |
| 5534 | cat >>confdefs.h <<\_ACEOF |
| 5535 | #define HAVE_LONG_DOUBLE 1 |
| 5536 | _ACEOF |
| 5537 | |
| 5538 | fi |
| 5539 | |
| 5540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5541 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5542 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5543 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5545 | else |
| 5546 | cat >conftest.$ac_ext <<_ACEOF |
| 5547 | /* confdefs.h. */ |
| 5548 | _ACEOF |
| 5549 | cat confdefs.h >>conftest.$ac_ext |
| 5550 | cat >>conftest.$ac_ext <<_ACEOF |
| 5551 | /* end confdefs.h. */ |
| 5552 | #include <stddef.h> |
| 5553 | wchar_t foo = (wchar_t)'\0'; |
| 5554 | int |
| 5555 | main () |
| 5556 | { |
| 5557 | |
| 5558 | ; |
| 5559 | return 0; |
| 5560 | } |
| 5561 | _ACEOF |
| 5562 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5563 | if { (ac_try="$ac_compile" |
| 5564 | case "(($ac_try" in |
| 5565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5566 | *) ac_try_echo=$ac_try;; |
| 5567 | esac |
| 5568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5569 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5570 | ac_status=$? |
| 5571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5572 | rm -f conftest.er1 |
| 5573 | cat conftest.err >&5 |
| 5574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5575 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5577 | { (case "(($ac_try" in |
| 5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5579 | *) ac_try_echo=$ac_try;; |
| 5580 | esac |
| 5581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5582 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5583 | ac_status=$? |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); }; } && |
| 5586 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5587 | { (case "(($ac_try" in |
| 5588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5589 | *) ac_try_echo=$ac_try;; |
| 5590 | esac |
| 5591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5592 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; }; then |
| 5596 | gt_cv_c_wchar_t=yes |
| 5597 | else |
| 5598 | echo "$as_me: failed program was:" >&5 |
| 5599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5601 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5603 | |
| 5604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5605 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5606 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5607 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5608 | if test $gt_cv_c_wchar_t = yes; then |
| 5609 | |
| 5610 | cat >>confdefs.h <<\_ACEOF |
| 5611 | #define HAVE_WCHAR_T 1 |
| 5612 | _ACEOF |
| 5613 | |
| 5614 | fi |
| 5615 | |
| 5616 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5617 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5618 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5619 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5621 | else |
| 5622 | cat >conftest.$ac_ext <<_ACEOF |
| 5623 | /* confdefs.h. */ |
| 5624 | _ACEOF |
| 5625 | cat confdefs.h >>conftest.$ac_ext |
| 5626 | cat >>conftest.$ac_ext <<_ACEOF |
| 5627 | /* end confdefs.h. */ |
| 5628 | #include <wchar.h> |
| 5629 | wint_t foo = (wchar_t)'\0'; |
| 5630 | int |
| 5631 | main () |
| 5632 | { |
| 5633 | |
| 5634 | ; |
| 5635 | return 0; |
| 5636 | } |
| 5637 | _ACEOF |
| 5638 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5639 | if { (ac_try="$ac_compile" |
| 5640 | case "(($ac_try" in |
| 5641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5642 | *) ac_try_echo=$ac_try;; |
| 5643 | esac |
| 5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5645 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5646 | ac_status=$? |
| 5647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5648 | rm -f conftest.er1 |
| 5649 | cat conftest.err >&5 |
| 5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5651 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5653 | { (case "(($ac_try" in |
| 5654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5655 | *) ac_try_echo=$ac_try;; |
| 5656 | esac |
| 5657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5658 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5659 | ac_status=$? |
| 5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5661 | (exit $ac_status); }; } && |
| 5662 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5663 | { (case "(($ac_try" in |
| 5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5665 | *) ac_try_echo=$ac_try;; |
| 5666 | esac |
| 5667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5668 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5669 | ac_status=$? |
| 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5671 | (exit $ac_status); }; }; then |
| 5672 | gt_cv_c_wint_t=yes |
| 5673 | else |
| 5674 | echo "$as_me: failed program was:" >&5 |
| 5675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5676 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5677 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5678 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5679 | |
| 5680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5681 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5682 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5683 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5684 | if test $gt_cv_c_wint_t = yes; then |
| 5685 | |
| 5686 | cat >>confdefs.h <<\_ACEOF |
| 5687 | #define HAVE_WINT_T 1 |
| 5688 | _ACEOF |
| 5689 | |
| 5690 | fi |
| 5691 | |
| 5692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5693 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5694 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5695 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5697 | else |
| 5698 | cat >conftest.$ac_ext <<_ACEOF |
| 5699 | /* confdefs.h. */ |
| 5700 | _ACEOF |
| 5701 | cat confdefs.h >>conftest.$ac_ext |
| 5702 | cat >>conftest.$ac_ext <<_ACEOF |
| 5703 | /* end confdefs.h. */ |
| 5704 | #include <sys/types.h> |
| 5705 | #include <inttypes.h> |
| 5706 | int |
| 5707 | main () |
| 5708 | { |
| 5709 | uintmax_t i = (uintmax_t) -1; |
| 5710 | ; |
| 5711 | return 0; |
| 5712 | } |
| 5713 | _ACEOF |
| 5714 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5715 | if { (ac_try="$ac_compile" |
| 5716 | case "(($ac_try" in |
| 5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5718 | *) ac_try_echo=$ac_try;; |
| 5719 | esac |
| 5720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5721 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5722 | ac_status=$? |
| 5723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5724 | rm -f conftest.er1 |
| 5725 | cat conftest.err >&5 |
| 5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5727 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5729 | { (case "(($ac_try" in |
| 5730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5731 | *) ac_try_echo=$ac_try;; |
| 5732 | esac |
| 5733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5734 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5735 | ac_status=$? |
| 5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5737 | (exit $ac_status); }; } && |
| 5738 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5739 | { (case "(($ac_try" in |
| 5740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5741 | *) ac_try_echo=$ac_try;; |
| 5742 | esac |
| 5743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5744 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5745 | ac_status=$? |
| 5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5747 | (exit $ac_status); }; }; then |
| 5748 | jm_ac_cv_header_inttypes_h=yes |
| 5749 | else |
| 5750 | echo "$as_me: failed program was:" >&5 |
| 5751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5753 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5754 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5755 | |
| 5756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5758 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5759 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5760 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5761 | |
| 5762 | cat >>confdefs.h <<_ACEOF |
| 5763 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5764 | _ACEOF |
| 5765 | |
| 5766 | fi |
| 5767 | |
| 5768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5769 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5770 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5771 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5773 | else |
| 5774 | cat >conftest.$ac_ext <<_ACEOF |
| 5775 | /* confdefs.h. */ |
| 5776 | _ACEOF |
| 5777 | cat confdefs.h >>conftest.$ac_ext |
| 5778 | cat >>conftest.$ac_ext <<_ACEOF |
| 5779 | /* end confdefs.h. */ |
| 5780 | #include <sys/types.h> |
| 5781 | #include <stdint.h> |
| 5782 | int |
| 5783 | main () |
| 5784 | { |
| 5785 | uintmax_t i = (uintmax_t) -1; |
| 5786 | ; |
| 5787 | return 0; |
| 5788 | } |
| 5789 | _ACEOF |
| 5790 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5791 | if { (ac_try="$ac_compile" |
| 5792 | case "(($ac_try" in |
| 5793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5794 | *) ac_try_echo=$ac_try;; |
| 5795 | esac |
| 5796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5797 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5798 | ac_status=$? |
| 5799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5800 | rm -f conftest.er1 |
| 5801 | cat conftest.err >&5 |
| 5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5803 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5805 | { (case "(($ac_try" in |
| 5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5807 | *) ac_try_echo=$ac_try;; |
| 5808 | esac |
| 5809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5810 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5811 | ac_status=$? |
| 5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5813 | (exit $ac_status); }; } && |
| 5814 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5815 | { (case "(($ac_try" in |
| 5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5817 | *) ac_try_echo=$ac_try;; |
| 5818 | esac |
| 5819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5820 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5821 | ac_status=$? |
| 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5823 | (exit $ac_status); }; }; then |
| 5824 | jm_ac_cv_header_stdint_h=yes |
| 5825 | else |
| 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5828 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5829 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5830 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5831 | |
| 5832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5833 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5834 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5835 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5836 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5837 | |
| 5838 | cat >>confdefs.h <<_ACEOF |
| 5839 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5840 | _ACEOF |
| 5841 | |
| 5842 | fi |
| 5843 | |
| 5844 | |
| 5845 | |
| 5846 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5847 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5848 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5849 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5851 | else |
| 5852 | cat >conftest.$ac_ext <<_ACEOF |
| 5853 | /* confdefs.h. */ |
| 5854 | _ACEOF |
| 5855 | cat confdefs.h >>conftest.$ac_ext |
| 5856 | cat >>conftest.$ac_ext <<_ACEOF |
| 5857 | /* end confdefs.h. */ |
| 5858 | |
| 5859 | #include <stddef.h> |
| 5860 | #include <stdlib.h> |
| 5861 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5862 | #include <stdint.h> |
| 5863 | #endif |
| 5864 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5865 | #include <inttypes.h> |
| 5866 | #endif |
| 5867 | |
| 5868 | int |
| 5869 | main () |
| 5870 | { |
| 5871 | intmax_t x = -1; |
| 5872 | ; |
| 5873 | return 0; |
| 5874 | } |
| 5875 | _ACEOF |
| 5876 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5877 | if { (ac_try="$ac_compile" |
| 5878 | case "(($ac_try" in |
| 5879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5880 | *) ac_try_echo=$ac_try;; |
| 5881 | esac |
| 5882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5883 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5884 | ac_status=$? |
| 5885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5886 | rm -f conftest.er1 |
| 5887 | cat conftest.err >&5 |
| 5888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5889 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5891 | { (case "(($ac_try" in |
| 5892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5893 | *) ac_try_echo=$ac_try;; |
| 5894 | esac |
| 5895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5896 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5897 | ac_status=$? |
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5899 | (exit $ac_status); }; } && |
| 5900 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5901 | { (case "(($ac_try" in |
| 5902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5903 | *) ac_try_echo=$ac_try;; |
| 5904 | esac |
| 5905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5906 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); }; }; then |
| 5910 | gt_cv_c_intmax_t=yes |
| 5911 | else |
| 5912 | echo "$as_me: failed program was:" >&5 |
| 5913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5915 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5916 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5917 | |
| 5918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5919 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5920 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5921 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5922 | if test $gt_cv_c_intmax_t = yes; then |
| 5923 | |
| 5924 | cat >>confdefs.h <<\_ACEOF |
| 5925 | #define HAVE_INTMAX_T 1 |
| 5926 | _ACEOF |
| 5927 | |
| 5928 | fi |
| 5929 | |
| 5930 | |
| 5931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5932 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5933 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5934 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5936 | else |
| 5937 | |
| 5938 | if test "$cross_compiling" = yes; then |
| 5939 | |
| 5940 | cat >conftest.$ac_ext <<_ACEOF |
| 5941 | /* confdefs.h. */ |
| 5942 | _ACEOF |
| 5943 | cat confdefs.h >>conftest.$ac_ext |
| 5944 | cat >>conftest.$ac_ext <<_ACEOF |
| 5945 | /* end confdefs.h. */ |
| 5946 | |
| 5947 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5948 | notposix |
| 5949 | #endif |
| 5950 | |
| 5951 | _ACEOF |
| 5952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5953 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5954 | gt_cv_func_printf_posix="guessing no" |
| 5955 | else |
| 5956 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5957 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5958 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5959 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5960 | |
| 5961 | else |
| 5962 | cat >conftest.$ac_ext <<_ACEOF |
| 5963 | /* confdefs.h. */ |
| 5964 | _ACEOF |
| 5965 | cat confdefs.h >>conftest.$ac_ext |
| 5966 | cat >>conftest.$ac_ext <<_ACEOF |
| 5967 | /* end confdefs.h. */ |
| 5968 | |
| 5969 | #include <stdio.h> |
| 5970 | #include <string.h> |
| 5971 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5972 | dollar expansion (possibly an autoconf bug). */ |
| 5973 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5974 | static char buf[100]; |
| 5975 | int main () |
| 5976 | { |
| 5977 | sprintf (buf, format, 33, 55); |
| 5978 | return (strcmp (buf, "55 33") != 0); |
| 5979 | } |
| 5980 | _ACEOF |
| 5981 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5982 | if { (ac_try="$ac_link" |
| 5983 | case "(($ac_try" in |
| 5984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5985 | *) ac_try_echo=$ac_try;; |
| 5986 | esac |
| 5987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5988 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5989 | ac_status=$? |
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5992 | { (case "(($ac_try" in |
| 5993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5994 | *) ac_try_echo=$ac_try;; |
| 5995 | esac |
| 5996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5997 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5998 | ac_status=$? |
| 5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6000 | (exit $ac_status); }; }; then |
| 6001 | gt_cv_func_printf_posix=yes |
| 6002 | else |
| 6003 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6004 | echo "$as_me: failed program was:" >&5 |
| 6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6006 | |
| 6007 | ( exit $ac_status ) |
| 6008 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6009 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6010 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6013 | |
| 6014 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6015 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6016 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 6017 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6018 | case $gt_cv_func_printf_posix in |
| 6019 | *yes) |
| 6020 | |
| 6021 | cat >>confdefs.h <<\_ACEOF |
| 6022 | #define HAVE_POSIX_PRINTF 1 |
| 6023 | _ACEOF |
| 6024 | |
| 6025 | ;; |
| 6026 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6027 | |
| 6028 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6029 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6030 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6031 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6032 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 6033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6034 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6035 | cat >conftest.$ac_ext <<_ACEOF |
| 6036 | /* confdefs.h. */ |
| 6037 | _ACEOF |
| 6038 | cat confdefs.h >>conftest.$ac_ext |
| 6039 | cat >>conftest.$ac_ext <<_ACEOF |
| 6040 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6041 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | int |
| 6043 | main () |
| 6044 | { |
| 6045 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6046 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6047 | ; |
| 6048 | return 0; |
| 6049 | } |
| 6050 | _ACEOF |
| 6051 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6052 | if { (ac_try="$ac_link" |
| 6053 | case "(($ac_try" in |
| 6054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6055 | *) ac_try_echo=$ac_try;; |
| 6056 | esac |
| 6057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6058 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6059 | ac_status=$? |
| 6060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6061 | rm -f conftest.er1 |
| 6062 | cat conftest.err >&5 |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6066 | { (case "(($ac_try" in |
| 6067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6068 | *) ac_try_echo=$ac_try;; |
| 6069 | esac |
| 6070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6071 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6072 | ac_status=$? |
| 6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6074 | (exit $ac_status); }; } && |
| 6075 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6076 | { (case "(($ac_try" in |
| 6077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6078 | *) ac_try_echo=$ac_try;; |
| 6079 | esac |
| 6080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6081 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6082 | ac_status=$? |
| 6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6084 | (exit $ac_status); }; }; then |
| 6085 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6086 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6087 | echo "$as_me: failed program was:" >&5 |
| 6088 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6090 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6091 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6092 | |
| 6093 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6094 | conftest$ac_exeext conftest.$ac_ext |
| 6095 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6096 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6097 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | if test $ac_cv_working_alloca_h = yes; then |
| 6099 | |
| 6100 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6101 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6102 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6103 | |
| 6104 | fi |
| 6105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6106 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6107 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6108 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6110 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6111 | cat >conftest.$ac_ext <<_ACEOF |
| 6112 | /* confdefs.h. */ |
| 6113 | _ACEOF |
| 6114 | cat confdefs.h >>conftest.$ac_ext |
| 6115 | cat >>conftest.$ac_ext <<_ACEOF |
| 6116 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6117 | #ifdef __GNUC__ |
| 6118 | # define alloca __builtin_alloca |
| 6119 | #else |
| 6120 | # ifdef _MSC_VER |
| 6121 | # include <malloc.h> |
| 6122 | # define alloca _alloca |
| 6123 | # else |
| 6124 | # if HAVE_ALLOCA_H |
| 6125 | # include <alloca.h> |
| 6126 | # else |
| 6127 | # ifdef _AIX |
| 6128 | #pragma alloca |
| 6129 | # else |
| 6130 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6131 | char *alloca (); |
| 6132 | # endif |
| 6133 | # endif |
| 6134 | # endif |
| 6135 | # endif |
| 6136 | #endif |
| 6137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6138 | int |
| 6139 | main () |
| 6140 | { |
| 6141 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6142 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6143 | ; |
| 6144 | return 0; |
| 6145 | } |
| 6146 | _ACEOF |
| 6147 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6148 | if { (ac_try="$ac_link" |
| 6149 | case "(($ac_try" in |
| 6150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6151 | *) ac_try_echo=$ac_try;; |
| 6152 | esac |
| 6153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6154 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6155 | ac_status=$? |
| 6156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6157 | rm -f conftest.er1 |
| 6158 | cat conftest.err >&5 |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6162 | { (case "(($ac_try" in |
| 6163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6164 | *) ac_try_echo=$ac_try;; |
| 6165 | esac |
| 6166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6167 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6168 | ac_status=$? |
| 6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6170 | (exit $ac_status); }; } && |
| 6171 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6172 | { (case "(($ac_try" in |
| 6173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6174 | *) ac_try_echo=$ac_try;; |
| 6175 | esac |
| 6176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6177 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6178 | ac_status=$? |
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6181 | ac_cv_func_alloca_works=yes |
| 6182 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6183 | echo "$as_me: failed program was:" >&5 |
| 6184 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6186 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6187 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6188 | |
| 6189 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6190 | conftest$ac_exeext conftest.$ac_ext |
| 6191 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6193 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6194 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6195 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6196 | |
| 6197 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6198 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6199 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6200 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6201 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6202 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6203 | # that cause trouble. Some versions do not even contain alloca or |
| 6204 | # contain a buggy version. If you still want to use their alloca, |
| 6205 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6207 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6208 | |
| 6209 | cat >>confdefs.h <<\_ACEOF |
| 6210 | #define C_ALLOCA 1 |
| 6211 | _ACEOF |
| 6212 | |
| 6213 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6214 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6215 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | if test "${ac_cv_os_cray+set}" = set; then |
| 6217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6218 | else |
| 6219 | cat >conftest.$ac_ext <<_ACEOF |
| 6220 | /* confdefs.h. */ |
| 6221 | _ACEOF |
| 6222 | cat confdefs.h >>conftest.$ac_ext |
| 6223 | cat >>conftest.$ac_ext <<_ACEOF |
| 6224 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6225 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6226 | webecray |
| 6227 | #else |
| 6228 | wenotbecray |
| 6229 | #endif |
| 6230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6231 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6232 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6233 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6234 | ac_cv_os_cray=yes |
| 6235 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6236 | ac_cv_os_cray=no |
| 6237 | fi |
| 6238 | rm -f conftest* |
| 6239 | |
| 6240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6241 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6242 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6243 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6244 | for ac_func in _getb67 GETB67 getb67; do |
| 6245 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6246 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6247 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6248 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6250 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6251 | cat >conftest.$ac_ext <<_ACEOF |
| 6252 | /* confdefs.h. */ |
| 6253 | _ACEOF |
| 6254 | cat confdefs.h >>conftest.$ac_ext |
| 6255 | cat >>conftest.$ac_ext <<_ACEOF |
| 6256 | /* end confdefs.h. */ |
| 6257 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6259 | #define $ac_func innocuous_$ac_func |
| 6260 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6261 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6262 | which can conflict with char $ac_func (); below. |
| 6263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6264 | <limits.h> exists even on freestanding compilers. */ |
| 6265 | |
| 6266 | #ifdef __STDC__ |
| 6267 | # include <limits.h> |
| 6268 | #else |
| 6269 | # include <assert.h> |
| 6270 | #endif |
| 6271 | |
| 6272 | #undef $ac_func |
| 6273 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6274 | /* Override any GCC internal prototype to avoid an error. |
| 6275 | Use char because int might match the return type of a GCC |
| 6276 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6277 | #ifdef __cplusplus |
| 6278 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6279 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6280 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6281 | /* The GNU C library defines this for functions which it implements |
| 6282 | to always fail with ENOSYS. Some functions are actually named |
| 6283 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6284 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6285 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6286 | #endif |
| 6287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6288 | int |
| 6289 | main () |
| 6290 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6291 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6292 | ; |
| 6293 | return 0; |
| 6294 | } |
| 6295 | _ACEOF |
| 6296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6297 | if { (ac_try="$ac_link" |
| 6298 | case "(($ac_try" in |
| 6299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6300 | *) ac_try_echo=$ac_try;; |
| 6301 | esac |
| 6302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6303 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6304 | ac_status=$? |
| 6305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6306 | rm -f conftest.er1 |
| 6307 | cat conftest.err >&5 |
| 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6309 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6311 | { (case "(($ac_try" in |
| 6312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6313 | *) ac_try_echo=$ac_try;; |
| 6314 | esac |
| 6315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6316 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6317 | ac_status=$? |
| 6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6319 | (exit $ac_status); }; } && |
| 6320 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6321 | { (case "(($ac_try" in |
| 6322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6323 | *) ac_try_echo=$ac_try;; |
| 6324 | esac |
| 6325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6326 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6327 | ac_status=$? |
| 6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6329 | (exit $ac_status); }; }; then |
| 6330 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6331 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6332 | echo "$as_me: failed program was:" >&5 |
| 6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6334 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6335 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6336 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6337 | |
| 6338 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6339 | conftest$ac_exeext conftest.$ac_ext |
| 6340 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6341 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6343 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6344 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6345 | |
| 6346 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6347 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6348 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6349 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6350 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6351 | fi |
| 6352 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6353 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6354 | fi |
| 6355 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6356 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6357 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6358 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6360 | else |
| 6361 | if test "$cross_compiling" = yes; then |
| 6362 | ac_cv_c_stack_direction=0 |
| 6363 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6364 | cat >conftest.$ac_ext <<_ACEOF |
| 6365 | /* confdefs.h. */ |
| 6366 | _ACEOF |
| 6367 | cat confdefs.h >>conftest.$ac_ext |
| 6368 | cat >>conftest.$ac_ext <<_ACEOF |
| 6369 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6370 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6371 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6372 | find_stack_direction () |
| 6373 | { |
| 6374 | static char *addr = 0; |
| 6375 | auto char dummy; |
| 6376 | if (addr == 0) |
| 6377 | { |
| 6378 | addr = &dummy; |
| 6379 | return find_stack_direction (); |
| 6380 | } |
| 6381 | else |
| 6382 | return (&dummy > addr) ? 1 : -1; |
| 6383 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6384 | |
| 6385 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6386 | main () |
| 6387 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6388 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6389 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6390 | _ACEOF |
| 6391 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6392 | if { (ac_try="$ac_link" |
| 6393 | case "(($ac_try" in |
| 6394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6395 | *) ac_try_echo=$ac_try;; |
| 6396 | esac |
| 6397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6398 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6399 | ac_status=$? |
| 6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6402 | { (case "(($ac_try" in |
| 6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6404 | *) ac_try_echo=$ac_try;; |
| 6405 | esac |
| 6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6407 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6408 | ac_status=$? |
| 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6410 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6411 | ac_cv_c_stack_direction=1 |
| 6412 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6414 | echo "$as_me: failed program was:" >&5 |
| 6415 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6417 | ( exit $ac_status ) |
| 6418 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6419 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6421 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6422 | |
| 6423 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6424 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6425 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6426 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6427 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6428 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6429 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6430 | _ACEOF |
| 6431 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6432 | |
| 6433 | fi |
| 6434 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6435 | |
| 6436 | |
| 6437 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6438 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6439 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6441 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6443 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6445 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6446 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6447 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6448 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6449 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6450 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6451 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6452 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | cat >conftest.$ac_ext <<_ACEOF |
| 6454 | /* confdefs.h. */ |
| 6455 | _ACEOF |
| 6456 | cat confdefs.h >>conftest.$ac_ext |
| 6457 | cat >>conftest.$ac_ext <<_ACEOF |
| 6458 | /* end confdefs.h. */ |
| 6459 | $ac_includes_default |
| 6460 | #include <$ac_header> |
| 6461 | _ACEOF |
| 6462 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6463 | if { (ac_try="$ac_compile" |
| 6464 | case "(($ac_try" in |
| 6465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6466 | *) ac_try_echo=$ac_try;; |
| 6467 | esac |
| 6468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6469 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | ac_status=$? |
| 6471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6472 | rm -f conftest.er1 |
| 6473 | cat conftest.err >&5 |
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6475 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6477 | { (case "(($ac_try" in |
| 6478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6479 | *) ac_try_echo=$ac_try;; |
| 6480 | esac |
| 6481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6482 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6483 | ac_status=$? |
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6485 | (exit $ac_status); }; } && |
| 6486 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6487 | { (case "(($ac_try" in |
| 6488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6489 | *) ac_try_echo=$ac_try;; |
| 6490 | esac |
| 6491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6492 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6493 | ac_status=$? |
| 6494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6495 | (exit $ac_status); }; }; then |
| 6496 | ac_header_compiler=yes |
| 6497 | else |
| 6498 | echo "$as_me: failed program was:" >&5 |
| 6499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6500 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6501 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6502 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6503 | |
| 6504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6505 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6506 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6507 | |
| 6508 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6509 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6510 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6511 | cat >conftest.$ac_ext <<_ACEOF |
| 6512 | /* confdefs.h. */ |
| 6513 | _ACEOF |
| 6514 | cat confdefs.h >>conftest.$ac_ext |
| 6515 | cat >>conftest.$ac_ext <<_ACEOF |
| 6516 | /* end confdefs.h. */ |
| 6517 | #include <$ac_header> |
| 6518 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6519 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6520 | case "(($ac_try" in |
| 6521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6522 | *) ac_try_echo=$ac_try;; |
| 6523 | esac |
| 6524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6525 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6526 | ac_status=$? |
| 6527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6528 | rm -f conftest.er1 |
| 6529 | cat conftest.err >&5 |
| 6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6531 | (exit $ac_status); } >/dev/null; then |
| 6532 | if test -s conftest.err; then |
| 6533 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6535 | else |
| 6536 | ac_cpp_err= |
| 6537 | fi |
| 6538 | else |
| 6539 | ac_cpp_err=yes |
| 6540 | fi |
| 6541 | if test -z "$ac_cpp_err"; then |
| 6542 | ac_header_preproc=yes |
| 6543 | else |
| 6544 | echo "$as_me: failed program was:" >&5 |
| 6545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6546 | |
| 6547 | ac_header_preproc=no |
| 6548 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6549 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6550 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6551 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6552 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6553 | |
| 6554 | # So? What about this header? |
| 6555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6556 | yes:no: ) |
| 6557 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6558 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6560 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6561 | ac_header_preproc=yes |
| 6562 | ;; |
| 6563 | no:yes:* ) |
| 6564 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6565 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6566 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6567 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6568 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6569 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6570 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6571 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6574 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6575 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6577 | ;; |
| 6578 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6579 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6583 | else |
| 6584 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6588 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6589 | |
| 6590 | fi |
| 6591 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6592 | cat >>confdefs.h <<_ACEOF |
| 6593 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6594 | _ACEOF |
| 6595 | |
| 6596 | fi |
| 6597 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6598 | done |
| 6599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6600 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6601 | for ac_func in getpagesize |
| 6602 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6603 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6604 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6605 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6606 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6608 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6609 | cat >conftest.$ac_ext <<_ACEOF |
| 6610 | /* confdefs.h. */ |
| 6611 | _ACEOF |
| 6612 | cat confdefs.h >>conftest.$ac_ext |
| 6613 | cat >>conftest.$ac_ext <<_ACEOF |
| 6614 | /* end confdefs.h. */ |
| 6615 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6617 | #define $ac_func innocuous_$ac_func |
| 6618 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6619 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6620 | which can conflict with char $ac_func (); below. |
| 6621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6622 | <limits.h> exists even on freestanding compilers. */ |
| 6623 | |
| 6624 | #ifdef __STDC__ |
| 6625 | # include <limits.h> |
| 6626 | #else |
| 6627 | # include <assert.h> |
| 6628 | #endif |
| 6629 | |
| 6630 | #undef $ac_func |
| 6631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6632 | /* Override any GCC internal prototype to avoid an error. |
| 6633 | Use char because int might match the return type of a GCC |
| 6634 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | #ifdef __cplusplus |
| 6636 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6637 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6638 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6639 | /* The GNU C library defines this for functions which it implements |
| 6640 | to always fail with ENOSYS. Some functions are actually named |
| 6641 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6642 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6643 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6644 | #endif |
| 6645 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | int |
| 6647 | main () |
| 6648 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6649 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6650 | ; |
| 6651 | return 0; |
| 6652 | } |
| 6653 | _ACEOF |
| 6654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6655 | if { (ac_try="$ac_link" |
| 6656 | case "(($ac_try" in |
| 6657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6658 | *) ac_try_echo=$ac_try;; |
| 6659 | esac |
| 6660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6661 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6662 | ac_status=$? |
| 6663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6664 | rm -f conftest.er1 |
| 6665 | cat conftest.err >&5 |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6668 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6669 | { (case "(($ac_try" in |
| 6670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6671 | *) ac_try_echo=$ac_try;; |
| 6672 | esac |
| 6673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6674 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6675 | ac_status=$? |
| 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6677 | (exit $ac_status); }; } && |
| 6678 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6679 | { (case "(($ac_try" in |
| 6680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6681 | *) ac_try_echo=$ac_try;; |
| 6682 | esac |
| 6683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6684 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | ac_status=$? |
| 6686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6687 | (exit $ac_status); }; }; then |
| 6688 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6689 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6690 | echo "$as_me: failed program was:" >&5 |
| 6691 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6693 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6694 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6695 | |
| 6696 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | conftest$ac_exeext conftest.$ac_ext |
| 6698 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6699 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6700 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6701 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6702 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6703 | cat >>confdefs.h <<_ACEOF |
| 6704 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6705 | _ACEOF |
| 6706 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6707 | fi |
| 6708 | done |
| 6709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6710 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6711 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6712 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6714 | else |
| 6715 | if test "$cross_compiling" = yes; then |
| 6716 | ac_cv_func_mmap_fixed_mapped=no |
| 6717 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | cat >conftest.$ac_ext <<_ACEOF |
| 6719 | /* confdefs.h. */ |
| 6720 | _ACEOF |
| 6721 | cat confdefs.h >>conftest.$ac_ext |
| 6722 | cat >>conftest.$ac_ext <<_ACEOF |
| 6723 | /* end confdefs.h. */ |
| 6724 | $ac_includes_default |
| 6725 | /* malloc might have been renamed as rpl_malloc. */ |
| 6726 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6727 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6728 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6729 | Here is a matrix of mmap possibilities: |
| 6730 | mmap private not fixed |
| 6731 | mmap private fixed at somewhere currently unmapped |
| 6732 | mmap private fixed at somewhere already mapped |
| 6733 | mmap shared not fixed |
| 6734 | mmap shared fixed at somewhere currently unmapped |
| 6735 | mmap shared fixed at somewhere already mapped |
| 6736 | For private mappings, we should verify that changes cannot be read() |
| 6737 | back from the file, nor mmap's back from the file at a different |
| 6738 | address. (There have been systems where private was not correctly |
| 6739 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6741 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6742 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6743 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6744 | |
| 6745 | Grep wants private fixed already mapped. |
| 6746 | The main things grep needs to know about mmap are: |
| 6747 | * does it exist and is it safe to write into the mmap'd area |
| 6748 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6749 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6750 | #include <fcntl.h> |
| 6751 | #include <sys/mman.h> |
| 6752 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6753 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 6754 | char *malloc (); |
| 6755 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6756 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6757 | /* This mess was copied from the GNU getpagesize.h. */ |
| 6758 | #if !HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6759 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6760 | # if !HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6761 | # define HAVE_SYS_PARAM_H 1 |
| 6762 | # endif |
| 6763 | |
| 6764 | # ifdef _SC_PAGESIZE |
| 6765 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6766 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6767 | # if HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6768 | # include <sys/param.h> |
| 6769 | # ifdef EXEC_PAGESIZE |
| 6770 | # define getpagesize() EXEC_PAGESIZE |
| 6771 | # else /* no EXEC_PAGESIZE */ |
| 6772 | # ifdef NBPG |
| 6773 | # define getpagesize() NBPG * CLSIZE |
| 6774 | # ifndef CLSIZE |
| 6775 | # define CLSIZE 1 |
| 6776 | # endif /* no CLSIZE */ |
| 6777 | # else /* no NBPG */ |
| 6778 | # ifdef NBPC |
| 6779 | # define getpagesize() NBPC |
| 6780 | # else /* no NBPC */ |
| 6781 | # ifdef PAGESIZE |
| 6782 | # define getpagesize() PAGESIZE |
| 6783 | # endif /* PAGESIZE */ |
| 6784 | # endif /* no NBPC */ |
| 6785 | # endif /* no NBPG */ |
| 6786 | # endif /* no EXEC_PAGESIZE */ |
| 6787 | # else /* no HAVE_SYS_PARAM_H */ |
| 6788 | # define getpagesize() 8192 /* punt totally */ |
| 6789 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6790 | # endif /* no _SC_PAGESIZE */ |
| 6791 | |
| 6792 | #endif /* no HAVE_GETPAGESIZE */ |
| 6793 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6794 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6795 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6796 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6797 | char *data, *data2, *data3; |
| 6798 | int i, pagesize; |
| 6799 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6800 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6801 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6802 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6803 | /* First, make a file with some known garbage in it. */ |
| 6804 | data = (char *) malloc (pagesize); |
| 6805 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6806 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6807 | for (i = 0; i < pagesize; ++i) |
| 6808 | *(data + i) = rand (); |
| 6809 | umask (0); |
| 6810 | fd = creat ("conftest.mmap", 0600); |
| 6811 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6812 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6813 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6814 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6816 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6817 | /* Next, try to mmap the file at a fixed address which already has |
| 6818 | something else allocated at it. If we can, also make sure that |
| 6819 | we see the same garbage. */ |
| 6820 | fd = open ("conftest.mmap", O_RDWR); |
| 6821 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6822 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6823 | data2 = (char *) malloc (2 * pagesize); |
| 6824 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6825 | return 1; |
| 6826 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6828 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6829 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | for (i = 0; i < pagesize; ++i) |
| 6831 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6832 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6833 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6834 | /* Finally, make sure that changes to the mapped area do not |
| 6835 | percolate back to the file as seen by read(). (This is a bug on |
| 6836 | some variants of i386 svr4.0.) */ |
| 6837 | for (i = 0; i < pagesize; ++i) |
| 6838 | *(data2 + i) = *(data2 + i) + 1; |
| 6839 | data3 = (char *) malloc (pagesize); |
| 6840 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6841 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6842 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6843 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6844 | for (i = 0; i < pagesize; ++i) |
| 6845 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6846 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6847 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6848 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6849 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6850 | _ACEOF |
| 6851 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6852 | if { (ac_try="$ac_link" |
| 6853 | case "(($ac_try" in |
| 6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6855 | *) ac_try_echo=$ac_try;; |
| 6856 | esac |
| 6857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6858 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6859 | ac_status=$? |
| 6860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6861 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6862 | { (case "(($ac_try" in |
| 6863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6864 | *) ac_try_echo=$ac_try;; |
| 6865 | esac |
| 6866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6867 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6868 | ac_status=$? |
| 6869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6870 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6871 | ac_cv_func_mmap_fixed_mapped=yes |
| 6872 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6873 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6874 | echo "$as_me: failed program was:" >&5 |
| 6875 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6877 | ( exit $ac_status ) |
| 6878 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6879 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6881 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6882 | |
| 6883 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6885 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6886 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6887 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6888 | |
| 6889 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6890 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6891 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6892 | |
| 6893 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6894 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6895 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6896 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6897 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6898 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6899 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6901 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6902 | cat >conftest.$ac_ext <<_ACEOF |
| 6903 | /* confdefs.h. */ |
| 6904 | _ACEOF |
| 6905 | cat confdefs.h >>conftest.$ac_ext |
| 6906 | cat >>conftest.$ac_ext <<_ACEOF |
| 6907 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6908 | |
| 6909 | #include <features.h> |
| 6910 | #ifdef __GNU_LIBRARY__ |
| 6911 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6912 | Lucky GNU user |
| 6913 | #endif |
| 6914 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6915 | |
| 6916 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6918 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6919 | ac_cv_gnu_library_2_1=yes |
| 6920 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6921 | ac_cv_gnu_library_2_1=no |
| 6922 | fi |
| 6923 | rm -f conftest* |
| 6924 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6925 | |
| 6926 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6927 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6928 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6929 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6930 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6931 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6932 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6933 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6934 | |
| 6935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6936 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6937 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6938 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6940 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6941 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6942 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6943 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6944 | # Guess based on the CPU. |
| 6945 | case "$host_cpu" in |
| 6946 | alpha* | i3456786 | m68k | s390*) |
| 6947 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6948 | *) |
| 6949 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6950 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6951 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6952 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6953 | cat >conftest.$ac_ext <<_ACEOF |
| 6954 | /* confdefs.h. */ |
| 6955 | _ACEOF |
| 6956 | cat confdefs.h >>conftest.$ac_ext |
| 6957 | cat >>conftest.$ac_ext <<_ACEOF |
| 6958 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6959 | |
| 6960 | #include <stdlib.h> |
| 6961 | #include <signal.h> |
| 6962 | |
| 6963 | static void |
| 6964 | #ifdef __cplusplus |
| 6965 | sigfpe_handler (int sig) |
| 6966 | #else |
| 6967 | sigfpe_handler (sig) int sig; |
| 6968 | #endif |
| 6969 | { |
| 6970 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6971 | exit (sig != SIGFPE); |
| 6972 | } |
| 6973 | |
| 6974 | int x = 1; |
| 6975 | int y = 0; |
| 6976 | int z; |
| 6977 | int nan; |
| 6978 | |
| 6979 | int main () |
| 6980 | { |
| 6981 | signal (SIGFPE, sigfpe_handler); |
| 6982 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6983 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6984 | signal (SIGTRAP, sigfpe_handler); |
| 6985 | #endif |
| 6986 | /* Linux/SPARC yields signal SIGILL. */ |
| 6987 | #if defined (__sparc__) && defined (__linux__) |
| 6988 | signal (SIGILL, sigfpe_handler); |
| 6989 | #endif |
| 6990 | |
| 6991 | z = x / y; |
| 6992 | nan = y / y; |
| 6993 | exit (1); |
| 6994 | } |
| 6995 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6996 | _ACEOF |
| 6997 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6998 | if { (ac_try="$ac_link" |
| 6999 | case "(($ac_try" in |
| 7000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7001 | *) ac_try_echo=$ac_try;; |
| 7002 | esac |
| 7003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7004 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | ac_status=$? |
| 7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7008 | { (case "(($ac_try" in |
| 7009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7010 | *) ac_try_echo=$ac_try;; |
| 7011 | esac |
| 7012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7013 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7014 | ac_status=$? |
| 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7016 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7017 | gt_cv_int_divbyzero_sigfpe=yes |
| 7018 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7019 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7020 | echo "$as_me: failed program was:" >&5 |
| 7021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7022 | |
| 7023 | ( exit $ac_status ) |
| 7024 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7025 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7026 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7027 | fi |
| 7028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7029 | |
| 7030 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7031 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7032 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 7033 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7034 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7035 | *yes) value=1;; |
| 7036 | *) value=0;; |
| 7037 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7038 | |
| 7039 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7040 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7041 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7042 | |
| 7043 | |
| 7044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7045 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 7046 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7047 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 7048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7049 | else |
| 7050 | cat >conftest.$ac_ext <<_ACEOF |
| 7051 | /* confdefs.h. */ |
| 7052 | _ACEOF |
| 7053 | cat confdefs.h >>conftest.$ac_ext |
| 7054 | cat >>conftest.$ac_ext <<_ACEOF |
| 7055 | /* end confdefs.h. */ |
| 7056 | unsigned long long ull = 1ULL; int i = 63; |
| 7057 | int |
| 7058 | main () |
| 7059 | { |
| 7060 | unsigned long long ullmax = (unsigned long long) -1; |
| 7061 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7062 | ; |
| 7063 | return 0; |
| 7064 | } |
| 7065 | _ACEOF |
| 7066 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7067 | if { (ac_try="$ac_link" |
| 7068 | case "(($ac_try" in |
| 7069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7070 | *) ac_try_echo=$ac_try;; |
| 7071 | esac |
| 7072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7073 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7074 | ac_status=$? |
| 7075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7076 | rm -f conftest.er1 |
| 7077 | cat conftest.err >&5 |
| 7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7079 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7081 | { (case "(($ac_try" in |
| 7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7083 | *) ac_try_echo=$ac_try;; |
| 7084 | esac |
| 7085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7086 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7087 | ac_status=$? |
| 7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7089 | (exit $ac_status); }; } && |
| 7090 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7091 | { (case "(($ac_try" in |
| 7092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7093 | *) ac_try_echo=$ac_try;; |
| 7094 | esac |
| 7095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7096 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7097 | ac_status=$? |
| 7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7099 | (exit $ac_status); }; }; then |
| 7100 | ac_cv_type_unsigned_long_long=yes |
| 7101 | else |
| 7102 | echo "$as_me: failed program was:" >&5 |
| 7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7105 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7106 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7107 | |
| 7108 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7109 | conftest$ac_exeext conftest.$ac_ext |
| 7110 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7111 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 7112 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7113 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7114 | |
| 7115 | cat >>confdefs.h <<\_ACEOF |
| 7116 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 7117 | _ACEOF |
| 7118 | |
| 7119 | fi |
| 7120 | |
| 7121 | |
| 7122 | |
| 7123 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7124 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7125 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7126 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7127 | && ac_type='unsigned long long' \ |
| 7128 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7129 | |
| 7130 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7131 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7132 | _ACEOF |
| 7133 | |
| 7134 | else |
| 7135 | |
| 7136 | cat >>confdefs.h <<\_ACEOF |
| 7137 | #define HAVE_UINTMAX_T 1 |
| 7138 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7139 | |
| 7140 | fi |
| 7141 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7142 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7143 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7144 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7145 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 7146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7147 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | |
| 7149 | cat >conftest.$ac_ext <<_ACEOF |
| 7150 | /* confdefs.h. */ |
| 7151 | _ACEOF |
| 7152 | cat confdefs.h >>conftest.$ac_ext |
| 7153 | cat >>conftest.$ac_ext <<_ACEOF |
| 7154 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7155 | #include <sys/types.h> |
| 7156 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7157 | int |
| 7158 | main () |
| 7159 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7160 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7161 | ; |
| 7162 | return 0; |
| 7163 | } |
| 7164 | _ACEOF |
| 7165 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7166 | if { (ac_try="$ac_compile" |
| 7167 | case "(($ac_try" in |
| 7168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7169 | *) ac_try_echo=$ac_try;; |
| 7170 | esac |
| 7171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7172 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7173 | ac_status=$? |
| 7174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7175 | rm -f conftest.er1 |
| 7176 | cat conftest.err >&5 |
| 7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7178 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7180 | { (case "(($ac_try" in |
| 7181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7182 | *) ac_try_echo=$ac_try;; |
| 7183 | esac |
| 7184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7185 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7186 | ac_status=$? |
| 7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7188 | (exit $ac_status); }; } && |
| 7189 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7190 | { (case "(($ac_try" in |
| 7191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7192 | *) ac_try_echo=$ac_try;; |
| 7193 | esac |
| 7194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7195 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7196 | ac_status=$? |
| 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7198 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7199 | gt_cv_header_inttypes_h=yes |
| 7200 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7201 | echo "$as_me: failed program was:" >&5 |
| 7202 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7203 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7204 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7205 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7206 | |
| 7207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7208 | |
| 7209 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7210 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7211 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7212 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7213 | |
| 7214 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7215 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7216 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7217 | |
| 7218 | fi |
| 7219 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7220 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7221 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7222 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7223 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7224 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7227 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7228 | |
| 7229 | cat >conftest.$ac_ext <<_ACEOF |
| 7230 | /* confdefs.h. */ |
| 7231 | _ACEOF |
| 7232 | cat confdefs.h >>conftest.$ac_ext |
| 7233 | cat >>conftest.$ac_ext <<_ACEOF |
| 7234 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7235 | #include <inttypes.h> |
| 7236 | #ifdef PRId32 |
| 7237 | char *p = PRId32; |
| 7238 | #endif |
| 7239 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | int |
| 7241 | main () |
| 7242 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7243 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7244 | ; |
| 7245 | return 0; |
| 7246 | } |
| 7247 | _ACEOF |
| 7248 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7249 | if { (ac_try="$ac_compile" |
| 7250 | case "(($ac_try" in |
| 7251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7252 | *) ac_try_echo=$ac_try;; |
| 7253 | esac |
| 7254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7255 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7256 | ac_status=$? |
| 7257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7258 | rm -f conftest.er1 |
| 7259 | cat conftest.err >&5 |
| 7260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7261 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7263 | { (case "(($ac_try" in |
| 7264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7265 | *) ac_try_echo=$ac_try;; |
| 7266 | esac |
| 7267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7268 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7269 | ac_status=$? |
| 7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7271 | (exit $ac_status); }; } && |
| 7272 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7273 | { (case "(($ac_try" in |
| 7274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7275 | *) ac_try_echo=$ac_try;; |
| 7276 | esac |
| 7277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7278 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7279 | ac_status=$? |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7282 | gt_cv_inttypes_pri_broken=no |
| 7283 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7284 | echo "$as_me: failed program was:" >&5 |
| 7285 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7286 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7287 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7288 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7289 | |
| 7290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7291 | |
| 7292 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7293 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7294 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7295 | fi |
| 7296 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7297 | |
| 7298 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7299 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7300 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7301 | |
| 7302 | fi |
| 7303 | |
| 7304 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7305 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7306 | for ac_header in stdint.h |
| 7307 | do |
| 7308 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7309 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7310 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7312 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7314 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7315 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7316 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7317 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7318 | else |
| 7319 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7320 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7321 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | cat >conftest.$ac_ext <<_ACEOF |
| 7323 | /* confdefs.h. */ |
| 7324 | _ACEOF |
| 7325 | cat confdefs.h >>conftest.$ac_ext |
| 7326 | cat >>conftest.$ac_ext <<_ACEOF |
| 7327 | /* end confdefs.h. */ |
| 7328 | $ac_includes_default |
| 7329 | #include <$ac_header> |
| 7330 | _ACEOF |
| 7331 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7332 | if { (ac_try="$ac_compile" |
| 7333 | case "(($ac_try" in |
| 7334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7335 | *) ac_try_echo=$ac_try;; |
| 7336 | esac |
| 7337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7338 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7339 | ac_status=$? |
| 7340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7341 | rm -f conftest.er1 |
| 7342 | cat conftest.err >&5 |
| 7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7344 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7346 | { (case "(($ac_try" in |
| 7347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7348 | *) ac_try_echo=$ac_try;; |
| 7349 | esac |
| 7350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7351 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7352 | ac_status=$? |
| 7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7354 | (exit $ac_status); }; } && |
| 7355 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7356 | { (case "(($ac_try" in |
| 7357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7358 | *) ac_try_echo=$ac_try;; |
| 7359 | esac |
| 7360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7361 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7362 | ac_status=$? |
| 7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7364 | (exit $ac_status); }; }; then |
| 7365 | ac_header_compiler=yes |
| 7366 | else |
| 7367 | echo "$as_me: failed program was:" >&5 |
| 7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7369 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7370 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7371 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7372 | |
| 7373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7374 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7375 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7376 | |
| 7377 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7378 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7379 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7380 | cat >conftest.$ac_ext <<_ACEOF |
| 7381 | /* confdefs.h. */ |
| 7382 | _ACEOF |
| 7383 | cat confdefs.h >>conftest.$ac_ext |
| 7384 | cat >>conftest.$ac_ext <<_ACEOF |
| 7385 | /* end confdefs.h. */ |
| 7386 | #include <$ac_header> |
| 7387 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7388 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7389 | case "(($ac_try" in |
| 7390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7391 | *) ac_try_echo=$ac_try;; |
| 7392 | esac |
| 7393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7394 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7395 | ac_status=$? |
| 7396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7397 | rm -f conftest.er1 |
| 7398 | cat conftest.err >&5 |
| 7399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7400 | (exit $ac_status); } >/dev/null; then |
| 7401 | if test -s conftest.err; then |
| 7402 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7404 | else |
| 7405 | ac_cpp_err= |
| 7406 | fi |
| 7407 | else |
| 7408 | ac_cpp_err=yes |
| 7409 | fi |
| 7410 | if test -z "$ac_cpp_err"; then |
| 7411 | ac_header_preproc=yes |
| 7412 | else |
| 7413 | echo "$as_me: failed program was:" >&5 |
| 7414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7415 | |
| 7416 | ac_header_preproc=no |
| 7417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7418 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7419 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7420 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7421 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7422 | |
| 7423 | # So? What about this header? |
| 7424 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7425 | yes:no: ) |
| 7426 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7427 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7429 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7430 | ac_header_preproc=yes |
| 7431 | ;; |
| 7432 | no:yes:* ) |
| 7433 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7434 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7435 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7436 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7437 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7438 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7439 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7440 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7442 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7443 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7444 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7445 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7446 | ;; |
| 7447 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7448 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7452 | else |
| 7453 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7454 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7457 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7458 | |
| 7459 | fi |
| 7460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7461 | cat >>confdefs.h <<_ACEOF |
| 7462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7463 | _ACEOF |
| 7464 | |
| 7465 | fi |
| 7466 | |
| 7467 | done |
| 7468 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7469 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7470 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7471 | result= |
| 7472 | cat >conftest.$ac_ext <<_ACEOF |
| 7473 | /* confdefs.h. */ |
| 7474 | _ACEOF |
| 7475 | cat confdefs.h >>conftest.$ac_ext |
| 7476 | cat >>conftest.$ac_ext <<_ACEOF |
| 7477 | /* end confdefs.h. */ |
| 7478 | |
| 7479 | #include <limits.h> |
| 7480 | #if HAVE_STDINT_H |
| 7481 | #include <stdint.h> |
| 7482 | #endif |
| 7483 | #ifdef SIZE_MAX |
| 7484 | Found it |
| 7485 | #endif |
| 7486 | |
| 7487 | _ACEOF |
| 7488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7489 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7490 | result=yes |
| 7491 | fi |
| 7492 | rm -f conftest* |
| 7493 | |
| 7494 | if test -z "$result"; then |
| 7495 | if test "$cross_compiling" = yes; then |
| 7496 | # Depending upon the size, compute the lo and hi bounds. |
| 7497 | cat >conftest.$ac_ext <<_ACEOF |
| 7498 | /* confdefs.h. */ |
| 7499 | _ACEOF |
| 7500 | cat confdefs.h >>conftest.$ac_ext |
| 7501 | cat >>conftest.$ac_ext <<_ACEOF |
| 7502 | /* end confdefs.h. */ |
| 7503 | #include <stddef.h> |
| 7504 | int |
| 7505 | main () |
| 7506 | { |
| 7507 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7508 | test_array [0] = 0 |
| 7509 | |
| 7510 | ; |
| 7511 | return 0; |
| 7512 | } |
| 7513 | _ACEOF |
| 7514 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7515 | if { (ac_try="$ac_compile" |
| 7516 | case "(($ac_try" in |
| 7517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7518 | *) ac_try_echo=$ac_try;; |
| 7519 | esac |
| 7520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7521 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | ac_status=$? |
| 7523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7524 | rm -f conftest.er1 |
| 7525 | cat conftest.err >&5 |
| 7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7527 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7529 | { (case "(($ac_try" in |
| 7530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7531 | *) ac_try_echo=$ac_try;; |
| 7532 | esac |
| 7533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7534 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7535 | ac_status=$? |
| 7536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7537 | (exit $ac_status); }; } && |
| 7538 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7539 | { (case "(($ac_try" in |
| 7540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7541 | *) ac_try_echo=$ac_try;; |
| 7542 | esac |
| 7543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7544 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7545 | ac_status=$? |
| 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7547 | (exit $ac_status); }; }; then |
| 7548 | ac_lo=0 ac_mid=0 |
| 7549 | while :; do |
| 7550 | cat >conftest.$ac_ext <<_ACEOF |
| 7551 | /* confdefs.h. */ |
| 7552 | _ACEOF |
| 7553 | cat confdefs.h >>conftest.$ac_ext |
| 7554 | cat >>conftest.$ac_ext <<_ACEOF |
| 7555 | /* end confdefs.h. */ |
| 7556 | #include <stddef.h> |
| 7557 | int |
| 7558 | main () |
| 7559 | { |
| 7560 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7561 | test_array [0] = 0 |
| 7562 | |
| 7563 | ; |
| 7564 | return 0; |
| 7565 | } |
| 7566 | _ACEOF |
| 7567 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7568 | if { (ac_try="$ac_compile" |
| 7569 | case "(($ac_try" in |
| 7570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7571 | *) ac_try_echo=$ac_try;; |
| 7572 | esac |
| 7573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7574 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7575 | ac_status=$? |
| 7576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7577 | rm -f conftest.er1 |
| 7578 | cat conftest.err >&5 |
| 7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7580 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7582 | { (case "(($ac_try" in |
| 7583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7584 | *) ac_try_echo=$ac_try;; |
| 7585 | esac |
| 7586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7587 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7588 | ac_status=$? |
| 7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7590 | (exit $ac_status); }; } && |
| 7591 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7592 | { (case "(($ac_try" in |
| 7593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7594 | *) ac_try_echo=$ac_try;; |
| 7595 | esac |
| 7596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7597 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7598 | ac_status=$? |
| 7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7600 | (exit $ac_status); }; }; then |
| 7601 | ac_hi=$ac_mid; break |
| 7602 | else |
| 7603 | echo "$as_me: failed program was:" >&5 |
| 7604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7606 | ac_lo=`expr $ac_mid + 1` |
| 7607 | if test $ac_lo -le $ac_mid; then |
| 7608 | ac_lo= ac_hi= |
| 7609 | break |
| 7610 | fi |
| 7611 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7612 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7613 | |
| 7614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7615 | done |
| 7616 | else |
| 7617 | echo "$as_me: failed program was:" >&5 |
| 7618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7619 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7620 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7621 | /* confdefs.h. */ |
| 7622 | _ACEOF |
| 7623 | cat confdefs.h >>conftest.$ac_ext |
| 7624 | cat >>conftest.$ac_ext <<_ACEOF |
| 7625 | /* end confdefs.h. */ |
| 7626 | #include <stddef.h> |
| 7627 | int |
| 7628 | main () |
| 7629 | { |
| 7630 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7631 | test_array [0] = 0 |
| 7632 | |
| 7633 | ; |
| 7634 | return 0; |
| 7635 | } |
| 7636 | _ACEOF |
| 7637 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7638 | if { (ac_try="$ac_compile" |
| 7639 | case "(($ac_try" in |
| 7640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7641 | *) ac_try_echo=$ac_try;; |
| 7642 | esac |
| 7643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7644 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7645 | ac_status=$? |
| 7646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7647 | rm -f conftest.er1 |
| 7648 | cat conftest.err >&5 |
| 7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7650 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7652 | { (case "(($ac_try" in |
| 7653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7654 | *) ac_try_echo=$ac_try;; |
| 7655 | esac |
| 7656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7657 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | ac_status=$? |
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7660 | (exit $ac_status); }; } && |
| 7661 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7662 | { (case "(($ac_try" in |
| 7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7664 | *) ac_try_echo=$ac_try;; |
| 7665 | esac |
| 7666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7667 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7668 | ac_status=$? |
| 7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7670 | (exit $ac_status); }; }; then |
| 7671 | ac_hi=-1 ac_mid=-1 |
| 7672 | while :; do |
| 7673 | cat >conftest.$ac_ext <<_ACEOF |
| 7674 | /* confdefs.h. */ |
| 7675 | _ACEOF |
| 7676 | cat confdefs.h >>conftest.$ac_ext |
| 7677 | cat >>conftest.$ac_ext <<_ACEOF |
| 7678 | /* end confdefs.h. */ |
| 7679 | #include <stddef.h> |
| 7680 | int |
| 7681 | main () |
| 7682 | { |
| 7683 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7684 | test_array [0] = 0 |
| 7685 | |
| 7686 | ; |
| 7687 | return 0; |
| 7688 | } |
| 7689 | _ACEOF |
| 7690 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7691 | if { (ac_try="$ac_compile" |
| 7692 | case "(($ac_try" in |
| 7693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7694 | *) ac_try_echo=$ac_try;; |
| 7695 | esac |
| 7696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7697 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7698 | ac_status=$? |
| 7699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7700 | rm -f conftest.er1 |
| 7701 | cat conftest.err >&5 |
| 7702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7703 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7705 | { (case "(($ac_try" in |
| 7706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7707 | *) ac_try_echo=$ac_try;; |
| 7708 | esac |
| 7709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7710 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7711 | ac_status=$? |
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7713 | (exit $ac_status); }; } && |
| 7714 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7715 | { (case "(($ac_try" in |
| 7716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7717 | *) ac_try_echo=$ac_try;; |
| 7718 | esac |
| 7719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7720 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7721 | ac_status=$? |
| 7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7723 | (exit $ac_status); }; }; then |
| 7724 | ac_lo=$ac_mid; break |
| 7725 | else |
| 7726 | echo "$as_me: failed program was:" >&5 |
| 7727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7728 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7729 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7730 | if test $ac_mid -le $ac_hi; then |
| 7731 | ac_lo= ac_hi= |
| 7732 | break |
| 7733 | fi |
| 7734 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7735 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7736 | |
| 7737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7738 | done |
| 7739 | else |
| 7740 | echo "$as_me: failed program was:" >&5 |
| 7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7742 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7743 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7744 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7745 | |
| 7746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7747 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7748 | |
| 7749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7750 | # Binary search between lo and hi bounds. |
| 7751 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7752 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7753 | cat >conftest.$ac_ext <<_ACEOF |
| 7754 | /* confdefs.h. */ |
| 7755 | _ACEOF |
| 7756 | cat confdefs.h >>conftest.$ac_ext |
| 7757 | cat >>conftest.$ac_ext <<_ACEOF |
| 7758 | /* end confdefs.h. */ |
| 7759 | #include <stddef.h> |
| 7760 | int |
| 7761 | main () |
| 7762 | { |
| 7763 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7764 | test_array [0] = 0 |
| 7765 | |
| 7766 | ; |
| 7767 | return 0; |
| 7768 | } |
| 7769 | _ACEOF |
| 7770 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7771 | if { (ac_try="$ac_compile" |
| 7772 | case "(($ac_try" in |
| 7773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7774 | *) ac_try_echo=$ac_try;; |
| 7775 | esac |
| 7776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7777 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7778 | ac_status=$? |
| 7779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7780 | rm -f conftest.er1 |
| 7781 | cat conftest.err >&5 |
| 7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7783 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7785 | { (case "(($ac_try" in |
| 7786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7787 | *) ac_try_echo=$ac_try;; |
| 7788 | esac |
| 7789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7790 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7791 | ac_status=$? |
| 7792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7793 | (exit $ac_status); }; } && |
| 7794 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7795 | { (case "(($ac_try" in |
| 7796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7797 | *) ac_try_echo=$ac_try;; |
| 7798 | esac |
| 7799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7800 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7801 | ac_status=$? |
| 7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7803 | (exit $ac_status); }; }; then |
| 7804 | ac_hi=$ac_mid |
| 7805 | else |
| 7806 | echo "$as_me: failed program was:" >&5 |
| 7807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7808 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7809 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7810 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7811 | |
| 7812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7813 | done |
| 7814 | case $ac_lo in |
| 7815 | ?*) res_hi=$ac_lo;; |
| 7816 | '') result=? ;; |
| 7817 | esac |
| 7818 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7819 | cat >conftest.$ac_ext <<_ACEOF |
| 7820 | /* confdefs.h. */ |
| 7821 | _ACEOF |
| 7822 | cat confdefs.h >>conftest.$ac_ext |
| 7823 | cat >>conftest.$ac_ext <<_ACEOF |
| 7824 | /* end confdefs.h. */ |
| 7825 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7826 | static long int longval () { return ~(size_t)0 / 10; } |
| 7827 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7828 | #include <stdio.h> |
| 7829 | #include <stdlib.h> |
| 7830 | int |
| 7831 | main () |
| 7832 | { |
| 7833 | |
| 7834 | FILE *f = fopen ("conftest.val", "w"); |
| 7835 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7836 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7837 | if ((~(size_t)0 / 10) < 0) |
| 7838 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7839 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7840 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7841 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7842 | fprintf (f, "%ld\n", i); |
| 7843 | } |
| 7844 | else |
| 7845 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7846 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7847 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7848 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7849 | fprintf (f, "%lu\n", i); |
| 7850 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7851 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7852 | |
| 7853 | ; |
| 7854 | return 0; |
| 7855 | } |
| 7856 | _ACEOF |
| 7857 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7858 | if { (ac_try="$ac_link" |
| 7859 | case "(($ac_try" in |
| 7860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7861 | *) ac_try_echo=$ac_try;; |
| 7862 | esac |
| 7863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7864 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7865 | ac_status=$? |
| 7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7868 | { (case "(($ac_try" in |
| 7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7870 | *) ac_try_echo=$ac_try;; |
| 7871 | esac |
| 7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7873 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7874 | ac_status=$? |
| 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7876 | (exit $ac_status); }; }; then |
| 7877 | res_hi=`cat conftest.val` |
| 7878 | else |
| 7879 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7880 | echo "$as_me: failed program was:" >&5 |
| 7881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7882 | |
| 7883 | ( exit $ac_status ) |
| 7884 | result=? |
| 7885 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7887 | fi |
| 7888 | rm -f conftest.val |
| 7889 | if test "$cross_compiling" = yes; then |
| 7890 | # Depending upon the size, compute the lo and hi bounds. |
| 7891 | cat >conftest.$ac_ext <<_ACEOF |
| 7892 | /* confdefs.h. */ |
| 7893 | _ACEOF |
| 7894 | cat confdefs.h >>conftest.$ac_ext |
| 7895 | cat >>conftest.$ac_ext <<_ACEOF |
| 7896 | /* end confdefs.h. */ |
| 7897 | #include <stddef.h> |
| 7898 | int |
| 7899 | main () |
| 7900 | { |
| 7901 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7902 | test_array [0] = 0 |
| 7903 | |
| 7904 | ; |
| 7905 | return 0; |
| 7906 | } |
| 7907 | _ACEOF |
| 7908 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7909 | if { (ac_try="$ac_compile" |
| 7910 | case "(($ac_try" in |
| 7911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7912 | *) ac_try_echo=$ac_try;; |
| 7913 | esac |
| 7914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7915 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7916 | ac_status=$? |
| 7917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7918 | rm -f conftest.er1 |
| 7919 | cat conftest.err >&5 |
| 7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7921 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7923 | { (case "(($ac_try" in |
| 7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7925 | *) ac_try_echo=$ac_try;; |
| 7926 | esac |
| 7927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7928 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7929 | ac_status=$? |
| 7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7931 | (exit $ac_status); }; } && |
| 7932 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7933 | { (case "(($ac_try" in |
| 7934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7935 | *) ac_try_echo=$ac_try;; |
| 7936 | esac |
| 7937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7938 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7939 | ac_status=$? |
| 7940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7941 | (exit $ac_status); }; }; then |
| 7942 | ac_lo=0 ac_mid=0 |
| 7943 | while :; do |
| 7944 | cat >conftest.$ac_ext <<_ACEOF |
| 7945 | /* confdefs.h. */ |
| 7946 | _ACEOF |
| 7947 | cat confdefs.h >>conftest.$ac_ext |
| 7948 | cat >>conftest.$ac_ext <<_ACEOF |
| 7949 | /* end confdefs.h. */ |
| 7950 | #include <stddef.h> |
| 7951 | int |
| 7952 | main () |
| 7953 | { |
| 7954 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7955 | test_array [0] = 0 |
| 7956 | |
| 7957 | ; |
| 7958 | return 0; |
| 7959 | } |
| 7960 | _ACEOF |
| 7961 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7962 | if { (ac_try="$ac_compile" |
| 7963 | case "(($ac_try" in |
| 7964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7965 | *) ac_try_echo=$ac_try;; |
| 7966 | esac |
| 7967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7968 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7969 | ac_status=$? |
| 7970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7971 | rm -f conftest.er1 |
| 7972 | cat conftest.err >&5 |
| 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7974 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7976 | { (case "(($ac_try" in |
| 7977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7978 | *) ac_try_echo=$ac_try;; |
| 7979 | esac |
| 7980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7981 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7982 | ac_status=$? |
| 7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7984 | (exit $ac_status); }; } && |
| 7985 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7986 | { (case "(($ac_try" in |
| 7987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7988 | *) ac_try_echo=$ac_try;; |
| 7989 | esac |
| 7990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7991 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7992 | ac_status=$? |
| 7993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7994 | (exit $ac_status); }; }; then |
| 7995 | ac_hi=$ac_mid; break |
| 7996 | else |
| 7997 | echo "$as_me: failed program was:" >&5 |
| 7998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8000 | ac_lo=`expr $ac_mid + 1` |
| 8001 | if test $ac_lo -le $ac_mid; then |
| 8002 | ac_lo= ac_hi= |
| 8003 | break |
| 8004 | fi |
| 8005 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8006 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8007 | |
| 8008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8009 | done |
| 8010 | else |
| 8011 | echo "$as_me: failed program was:" >&5 |
| 8012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8014 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8015 | /* confdefs.h. */ |
| 8016 | _ACEOF |
| 8017 | cat confdefs.h >>conftest.$ac_ext |
| 8018 | cat >>conftest.$ac_ext <<_ACEOF |
| 8019 | /* end confdefs.h. */ |
| 8020 | #include <stddef.h> |
| 8021 | int |
| 8022 | main () |
| 8023 | { |
| 8024 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 8025 | test_array [0] = 0 |
| 8026 | |
| 8027 | ; |
| 8028 | return 0; |
| 8029 | } |
| 8030 | _ACEOF |
| 8031 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8032 | if { (ac_try="$ac_compile" |
| 8033 | case "(($ac_try" in |
| 8034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8035 | *) ac_try_echo=$ac_try;; |
| 8036 | esac |
| 8037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8038 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8039 | ac_status=$? |
| 8040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8041 | rm -f conftest.er1 |
| 8042 | cat conftest.err >&5 |
| 8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8044 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8046 | { (case "(($ac_try" in |
| 8047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8048 | *) ac_try_echo=$ac_try;; |
| 8049 | esac |
| 8050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8051 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8052 | ac_status=$? |
| 8053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8054 | (exit $ac_status); }; } && |
| 8055 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8056 | { (case "(($ac_try" in |
| 8057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8058 | *) ac_try_echo=$ac_try;; |
| 8059 | esac |
| 8060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8061 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8062 | ac_status=$? |
| 8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8064 | (exit $ac_status); }; }; then |
| 8065 | ac_hi=-1 ac_mid=-1 |
| 8066 | while :; do |
| 8067 | cat >conftest.$ac_ext <<_ACEOF |
| 8068 | /* confdefs.h. */ |
| 8069 | _ACEOF |
| 8070 | cat confdefs.h >>conftest.$ac_ext |
| 8071 | cat >>conftest.$ac_ext <<_ACEOF |
| 8072 | /* end confdefs.h. */ |
| 8073 | #include <stddef.h> |
| 8074 | int |
| 8075 | main () |
| 8076 | { |
| 8077 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 8078 | test_array [0] = 0 |
| 8079 | |
| 8080 | ; |
| 8081 | return 0; |
| 8082 | } |
| 8083 | _ACEOF |
| 8084 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8085 | if { (ac_try="$ac_compile" |
| 8086 | case "(($ac_try" in |
| 8087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8088 | *) ac_try_echo=$ac_try;; |
| 8089 | esac |
| 8090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8091 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8092 | ac_status=$? |
| 8093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8094 | rm -f conftest.er1 |
| 8095 | cat conftest.err >&5 |
| 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8097 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8099 | { (case "(($ac_try" in |
| 8100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8101 | *) ac_try_echo=$ac_try;; |
| 8102 | esac |
| 8103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8104 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8105 | ac_status=$? |
| 8106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8107 | (exit $ac_status); }; } && |
| 8108 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8109 | { (case "(($ac_try" in |
| 8110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8111 | *) ac_try_echo=$ac_try;; |
| 8112 | esac |
| 8113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8114 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8115 | ac_status=$? |
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8117 | (exit $ac_status); }; }; then |
| 8118 | ac_lo=$ac_mid; break |
| 8119 | else |
| 8120 | echo "$as_me: failed program was:" >&5 |
| 8121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8122 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8123 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8124 | if test $ac_mid -le $ac_hi; then |
| 8125 | ac_lo= ac_hi= |
| 8126 | break |
| 8127 | fi |
| 8128 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8129 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8130 | |
| 8131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8132 | done |
| 8133 | else |
| 8134 | echo "$as_me: failed program was:" >&5 |
| 8135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8137 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8138 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8139 | |
| 8140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8141 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8142 | |
| 8143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8144 | # Binary search between lo and hi bounds. |
| 8145 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8146 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8147 | cat >conftest.$ac_ext <<_ACEOF |
| 8148 | /* confdefs.h. */ |
| 8149 | _ACEOF |
| 8150 | cat confdefs.h >>conftest.$ac_ext |
| 8151 | cat >>conftest.$ac_ext <<_ACEOF |
| 8152 | /* end confdefs.h. */ |
| 8153 | #include <stddef.h> |
| 8154 | int |
| 8155 | main () |
| 8156 | { |
| 8157 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8158 | test_array [0] = 0 |
| 8159 | |
| 8160 | ; |
| 8161 | return 0; |
| 8162 | } |
| 8163 | _ACEOF |
| 8164 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8165 | if { (ac_try="$ac_compile" |
| 8166 | case "(($ac_try" in |
| 8167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8168 | *) ac_try_echo=$ac_try;; |
| 8169 | esac |
| 8170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8171 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8172 | ac_status=$? |
| 8173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8174 | rm -f conftest.er1 |
| 8175 | cat conftest.err >&5 |
| 8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8177 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8179 | { (case "(($ac_try" in |
| 8180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8181 | *) ac_try_echo=$ac_try;; |
| 8182 | esac |
| 8183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8184 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8185 | ac_status=$? |
| 8186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8187 | (exit $ac_status); }; } && |
| 8188 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8189 | { (case "(($ac_try" in |
| 8190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8191 | *) ac_try_echo=$ac_try;; |
| 8192 | esac |
| 8193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8194 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8195 | ac_status=$? |
| 8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8197 | (exit $ac_status); }; }; then |
| 8198 | ac_hi=$ac_mid |
| 8199 | else |
| 8200 | echo "$as_me: failed program was:" >&5 |
| 8201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8202 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8203 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8204 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8205 | |
| 8206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8207 | done |
| 8208 | case $ac_lo in |
| 8209 | ?*) res_lo=$ac_lo;; |
| 8210 | '') result=? ;; |
| 8211 | esac |
| 8212 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8213 | cat >conftest.$ac_ext <<_ACEOF |
| 8214 | /* confdefs.h. */ |
| 8215 | _ACEOF |
| 8216 | cat confdefs.h >>conftest.$ac_ext |
| 8217 | cat >>conftest.$ac_ext <<_ACEOF |
| 8218 | /* end confdefs.h. */ |
| 8219 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8220 | static long int longval () { return ~(size_t)0 % 10; } |
| 8221 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8222 | #include <stdio.h> |
| 8223 | #include <stdlib.h> |
| 8224 | int |
| 8225 | main () |
| 8226 | { |
| 8227 | |
| 8228 | FILE *f = fopen ("conftest.val", "w"); |
| 8229 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8230 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8231 | if ((~(size_t)0 % 10) < 0) |
| 8232 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8233 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8234 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8235 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8236 | fprintf (f, "%ld\n", i); |
| 8237 | } |
| 8238 | else |
| 8239 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8240 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8241 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8242 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8243 | fprintf (f, "%lu\n", i); |
| 8244 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8245 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8246 | |
| 8247 | ; |
| 8248 | return 0; |
| 8249 | } |
| 8250 | _ACEOF |
| 8251 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8252 | if { (ac_try="$ac_link" |
| 8253 | case "(($ac_try" in |
| 8254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8255 | *) ac_try_echo=$ac_try;; |
| 8256 | esac |
| 8257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8258 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8259 | ac_status=$? |
| 8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8261 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8262 | { (case "(($ac_try" in |
| 8263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8264 | *) ac_try_echo=$ac_try;; |
| 8265 | esac |
| 8266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8267 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8268 | ac_status=$? |
| 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); }; }; then |
| 8271 | res_lo=`cat conftest.val` |
| 8272 | else |
| 8273 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8274 | echo "$as_me: failed program was:" >&5 |
| 8275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8276 | |
| 8277 | ( exit $ac_status ) |
| 8278 | result=? |
| 8279 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8280 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8281 | fi |
| 8282 | rm -f conftest.val |
| 8283 | if test "$cross_compiling" = yes; then |
| 8284 | # Depending upon the size, compute the lo and hi bounds. |
| 8285 | cat >conftest.$ac_ext <<_ACEOF |
| 8286 | /* confdefs.h. */ |
| 8287 | _ACEOF |
| 8288 | cat confdefs.h >>conftest.$ac_ext |
| 8289 | cat >>conftest.$ac_ext <<_ACEOF |
| 8290 | /* end confdefs.h. */ |
| 8291 | #include <stddef.h> |
| 8292 | int |
| 8293 | main () |
| 8294 | { |
| 8295 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 8296 | test_array [0] = 0 |
| 8297 | |
| 8298 | ; |
| 8299 | return 0; |
| 8300 | } |
| 8301 | _ACEOF |
| 8302 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8303 | if { (ac_try="$ac_compile" |
| 8304 | case "(($ac_try" in |
| 8305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8306 | *) ac_try_echo=$ac_try;; |
| 8307 | esac |
| 8308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8309 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8310 | ac_status=$? |
| 8311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8312 | rm -f conftest.er1 |
| 8313 | cat conftest.err >&5 |
| 8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8315 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8317 | { (case "(($ac_try" in |
| 8318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8319 | *) ac_try_echo=$ac_try;; |
| 8320 | esac |
| 8321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8322 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8323 | ac_status=$? |
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8325 | (exit $ac_status); }; } && |
| 8326 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8327 | { (case "(($ac_try" in |
| 8328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8329 | *) ac_try_echo=$ac_try;; |
| 8330 | esac |
| 8331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8332 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8333 | ac_status=$? |
| 8334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8335 | (exit $ac_status); }; }; then |
| 8336 | ac_lo=0 ac_mid=0 |
| 8337 | while :; do |
| 8338 | cat >conftest.$ac_ext <<_ACEOF |
| 8339 | /* confdefs.h. */ |
| 8340 | _ACEOF |
| 8341 | cat confdefs.h >>conftest.$ac_ext |
| 8342 | cat >>conftest.$ac_ext <<_ACEOF |
| 8343 | /* end confdefs.h. */ |
| 8344 | #include <stddef.h> |
| 8345 | int |
| 8346 | main () |
| 8347 | { |
| 8348 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8349 | test_array [0] = 0 |
| 8350 | |
| 8351 | ; |
| 8352 | return 0; |
| 8353 | } |
| 8354 | _ACEOF |
| 8355 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8356 | if { (ac_try="$ac_compile" |
| 8357 | case "(($ac_try" in |
| 8358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8359 | *) ac_try_echo=$ac_try;; |
| 8360 | esac |
| 8361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8362 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8363 | ac_status=$? |
| 8364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8365 | rm -f conftest.er1 |
| 8366 | cat conftest.err >&5 |
| 8367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8368 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8370 | { (case "(($ac_try" in |
| 8371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8372 | *) ac_try_echo=$ac_try;; |
| 8373 | esac |
| 8374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8375 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8376 | ac_status=$? |
| 8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8378 | (exit $ac_status); }; } && |
| 8379 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8380 | { (case "(($ac_try" in |
| 8381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8382 | *) ac_try_echo=$ac_try;; |
| 8383 | esac |
| 8384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8385 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8386 | ac_status=$? |
| 8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8388 | (exit $ac_status); }; }; then |
| 8389 | ac_hi=$ac_mid; break |
| 8390 | else |
| 8391 | echo "$as_me: failed program was:" >&5 |
| 8392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8394 | ac_lo=`expr $ac_mid + 1` |
| 8395 | if test $ac_lo -le $ac_mid; then |
| 8396 | ac_lo= ac_hi= |
| 8397 | break |
| 8398 | fi |
| 8399 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8400 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8401 | |
| 8402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8403 | done |
| 8404 | else |
| 8405 | echo "$as_me: failed program was:" >&5 |
| 8406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8407 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8408 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8409 | /* confdefs.h. */ |
| 8410 | _ACEOF |
| 8411 | cat confdefs.h >>conftest.$ac_ext |
| 8412 | cat >>conftest.$ac_ext <<_ACEOF |
| 8413 | /* end confdefs.h. */ |
| 8414 | #include <stddef.h> |
| 8415 | int |
| 8416 | main () |
| 8417 | { |
| 8418 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8419 | test_array [0] = 0 |
| 8420 | |
| 8421 | ; |
| 8422 | return 0; |
| 8423 | } |
| 8424 | _ACEOF |
| 8425 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8426 | if { (ac_try="$ac_compile" |
| 8427 | case "(($ac_try" in |
| 8428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8429 | *) ac_try_echo=$ac_try;; |
| 8430 | esac |
| 8431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8432 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8433 | ac_status=$? |
| 8434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8435 | rm -f conftest.er1 |
| 8436 | cat conftest.err >&5 |
| 8437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8438 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8440 | { (case "(($ac_try" in |
| 8441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8442 | *) ac_try_echo=$ac_try;; |
| 8443 | esac |
| 8444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8445 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8446 | ac_status=$? |
| 8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8448 | (exit $ac_status); }; } && |
| 8449 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8450 | { (case "(($ac_try" in |
| 8451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8452 | *) ac_try_echo=$ac_try;; |
| 8453 | esac |
| 8454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8455 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8456 | ac_status=$? |
| 8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8458 | (exit $ac_status); }; }; then |
| 8459 | ac_hi=-1 ac_mid=-1 |
| 8460 | while :; do |
| 8461 | cat >conftest.$ac_ext <<_ACEOF |
| 8462 | /* confdefs.h. */ |
| 8463 | _ACEOF |
| 8464 | cat confdefs.h >>conftest.$ac_ext |
| 8465 | cat >>conftest.$ac_ext <<_ACEOF |
| 8466 | /* end confdefs.h. */ |
| 8467 | #include <stddef.h> |
| 8468 | int |
| 8469 | main () |
| 8470 | { |
| 8471 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8472 | test_array [0] = 0 |
| 8473 | |
| 8474 | ; |
| 8475 | return 0; |
| 8476 | } |
| 8477 | _ACEOF |
| 8478 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8479 | if { (ac_try="$ac_compile" |
| 8480 | case "(($ac_try" in |
| 8481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8482 | *) ac_try_echo=$ac_try;; |
| 8483 | esac |
| 8484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8485 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8486 | ac_status=$? |
| 8487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8488 | rm -f conftest.er1 |
| 8489 | cat conftest.err >&5 |
| 8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8491 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8493 | { (case "(($ac_try" in |
| 8494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8495 | *) ac_try_echo=$ac_try;; |
| 8496 | esac |
| 8497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8498 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8499 | ac_status=$? |
| 8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8501 | (exit $ac_status); }; } && |
| 8502 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8503 | { (case "(($ac_try" in |
| 8504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8505 | *) ac_try_echo=$ac_try;; |
| 8506 | esac |
| 8507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8508 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8509 | ac_status=$? |
| 8510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8511 | (exit $ac_status); }; }; then |
| 8512 | ac_lo=$ac_mid; break |
| 8513 | else |
| 8514 | echo "$as_me: failed program was:" >&5 |
| 8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8516 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8517 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8518 | if test $ac_mid -le $ac_hi; then |
| 8519 | ac_lo= ac_hi= |
| 8520 | break |
| 8521 | fi |
| 8522 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8523 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8524 | |
| 8525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8526 | done |
| 8527 | else |
| 8528 | echo "$as_me: failed program was:" >&5 |
| 8529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8530 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8531 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8532 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8533 | |
| 8534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8535 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8536 | |
| 8537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8538 | # Binary search between lo and hi bounds. |
| 8539 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8540 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8541 | cat >conftest.$ac_ext <<_ACEOF |
| 8542 | /* confdefs.h. */ |
| 8543 | _ACEOF |
| 8544 | cat confdefs.h >>conftest.$ac_ext |
| 8545 | cat >>conftest.$ac_ext <<_ACEOF |
| 8546 | /* end confdefs.h. */ |
| 8547 | #include <stddef.h> |
| 8548 | int |
| 8549 | main () |
| 8550 | { |
| 8551 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8552 | test_array [0] = 0 |
| 8553 | |
| 8554 | ; |
| 8555 | return 0; |
| 8556 | } |
| 8557 | _ACEOF |
| 8558 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8559 | if { (ac_try="$ac_compile" |
| 8560 | case "(($ac_try" in |
| 8561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8562 | *) ac_try_echo=$ac_try;; |
| 8563 | esac |
| 8564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8565 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8566 | ac_status=$? |
| 8567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8568 | rm -f conftest.er1 |
| 8569 | cat conftest.err >&5 |
| 8570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8571 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8573 | { (case "(($ac_try" in |
| 8574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8575 | *) ac_try_echo=$ac_try;; |
| 8576 | esac |
| 8577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8578 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8579 | ac_status=$? |
| 8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8581 | (exit $ac_status); }; } && |
| 8582 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8583 | { (case "(($ac_try" in |
| 8584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8585 | *) ac_try_echo=$ac_try;; |
| 8586 | esac |
| 8587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8588 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8589 | ac_status=$? |
| 8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8591 | (exit $ac_status); }; }; then |
| 8592 | ac_hi=$ac_mid |
| 8593 | else |
| 8594 | echo "$as_me: failed program was:" >&5 |
| 8595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8596 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8597 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8598 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8599 | |
| 8600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8601 | done |
| 8602 | case $ac_lo in |
| 8603 | ?*) fits_in_uint=$ac_lo;; |
| 8604 | '') result=? ;; |
| 8605 | esac |
| 8606 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8607 | cat >conftest.$ac_ext <<_ACEOF |
| 8608 | /* confdefs.h. */ |
| 8609 | _ACEOF |
| 8610 | cat confdefs.h >>conftest.$ac_ext |
| 8611 | cat >>conftest.$ac_ext <<_ACEOF |
| 8612 | /* end confdefs.h. */ |
| 8613 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8614 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8615 | static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8616 | #include <stdio.h> |
| 8617 | #include <stdlib.h> |
| 8618 | int |
| 8619 | main () |
| 8620 | { |
| 8621 | |
| 8622 | FILE *f = fopen ("conftest.val", "w"); |
| 8623 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8624 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8625 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8626 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8627 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8628 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8629 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8630 | fprintf (f, "%ld\n", i); |
| 8631 | } |
| 8632 | else |
| 8633 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8634 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8635 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8636 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8637 | fprintf (f, "%lu\n", i); |
| 8638 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8639 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8640 | |
| 8641 | ; |
| 8642 | return 0; |
| 8643 | } |
| 8644 | _ACEOF |
| 8645 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8646 | if { (ac_try="$ac_link" |
| 8647 | case "(($ac_try" in |
| 8648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8649 | *) ac_try_echo=$ac_try;; |
| 8650 | esac |
| 8651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8652 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8653 | ac_status=$? |
| 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8656 | { (case "(($ac_try" in |
| 8657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8658 | *) ac_try_echo=$ac_try;; |
| 8659 | esac |
| 8660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8661 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8662 | ac_status=$? |
| 8663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8664 | (exit $ac_status); }; }; then |
| 8665 | fits_in_uint=`cat conftest.val` |
| 8666 | else |
| 8667 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8668 | echo "$as_me: failed program was:" >&5 |
| 8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8670 | |
| 8671 | ( exit $ac_status ) |
| 8672 | result=? |
| 8673 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8674 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8675 | fi |
| 8676 | rm -f conftest.val |
| 8677 | if test "$fits_in_uint" = 1; then |
| 8678 | cat >conftest.$ac_ext <<_ACEOF |
| 8679 | /* confdefs.h. */ |
| 8680 | _ACEOF |
| 8681 | cat confdefs.h >>conftest.$ac_ext |
| 8682 | cat >>conftest.$ac_ext <<_ACEOF |
| 8683 | /* end confdefs.h. */ |
| 8684 | #include <stddef.h> |
| 8685 | extern size_t foo; |
| 8686 | extern unsigned long foo; |
| 8687 | |
| 8688 | int |
| 8689 | main () |
| 8690 | { |
| 8691 | |
| 8692 | ; |
| 8693 | return 0; |
| 8694 | } |
| 8695 | _ACEOF |
| 8696 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8697 | if { (ac_try="$ac_compile" |
| 8698 | case "(($ac_try" in |
| 8699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8700 | *) ac_try_echo=$ac_try;; |
| 8701 | esac |
| 8702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8703 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8704 | ac_status=$? |
| 8705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8706 | rm -f conftest.er1 |
| 8707 | cat conftest.err >&5 |
| 8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8709 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8711 | { (case "(($ac_try" in |
| 8712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8713 | *) ac_try_echo=$ac_try;; |
| 8714 | esac |
| 8715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8716 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8717 | ac_status=$? |
| 8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8719 | (exit $ac_status); }; } && |
| 8720 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8721 | { (case "(($ac_try" in |
| 8722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8723 | *) ac_try_echo=$ac_try;; |
| 8724 | esac |
| 8725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8726 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8727 | ac_status=$? |
| 8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8729 | (exit $ac_status); }; }; then |
| 8730 | fits_in_uint=0 |
| 8731 | else |
| 8732 | echo "$as_me: failed program was:" >&5 |
| 8733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8735 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8736 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8737 | |
| 8738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8739 | fi |
| 8740 | if test -z "$result"; then |
| 8741 | if test "$fits_in_uint" = 1; then |
| 8742 | result="$res_hi$res_lo"U |
| 8743 | else |
| 8744 | result="$res_hi$res_lo"UL |
| 8745 | fi |
| 8746 | else |
| 8747 | result='~(size_t)0' |
| 8748 | fi |
| 8749 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8750 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8751 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8752 | if test "$result" != yes; then |
| 8753 | |
| 8754 | cat >>confdefs.h <<_ACEOF |
| 8755 | #define SIZE_MAX $result |
| 8756 | _ACEOF |
| 8757 | |
| 8758 | fi |
| 8759 | |
| 8760 | |
| 8761 | |
| 8762 | |
| 8763 | for ac_header in stdint.h |
| 8764 | do |
| 8765 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8767 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8771 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8772 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8774 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8775 | else |
| 8776 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8777 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8778 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8779 | cat >conftest.$ac_ext <<_ACEOF |
| 8780 | /* confdefs.h. */ |
| 8781 | _ACEOF |
| 8782 | cat confdefs.h >>conftest.$ac_ext |
| 8783 | cat >>conftest.$ac_ext <<_ACEOF |
| 8784 | /* end confdefs.h. */ |
| 8785 | $ac_includes_default |
| 8786 | #include <$ac_header> |
| 8787 | _ACEOF |
| 8788 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8789 | if { (ac_try="$ac_compile" |
| 8790 | case "(($ac_try" in |
| 8791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8792 | *) ac_try_echo=$ac_try;; |
| 8793 | esac |
| 8794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8795 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8796 | ac_status=$? |
| 8797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8798 | rm -f conftest.er1 |
| 8799 | cat conftest.err >&5 |
| 8800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8801 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8803 | { (case "(($ac_try" in |
| 8804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8805 | *) ac_try_echo=$ac_try;; |
| 8806 | esac |
| 8807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8808 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8809 | ac_status=$? |
| 8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8811 | (exit $ac_status); }; } && |
| 8812 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8813 | { (case "(($ac_try" in |
| 8814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8815 | *) ac_try_echo=$ac_try;; |
| 8816 | esac |
| 8817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8818 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8819 | ac_status=$? |
| 8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8821 | (exit $ac_status); }; }; then |
| 8822 | ac_header_compiler=yes |
| 8823 | else |
| 8824 | echo "$as_me: failed program was:" >&5 |
| 8825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8826 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8827 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8828 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8829 | |
| 8830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8831 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8832 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8833 | |
| 8834 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8835 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8836 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8837 | cat >conftest.$ac_ext <<_ACEOF |
| 8838 | /* confdefs.h. */ |
| 8839 | _ACEOF |
| 8840 | cat confdefs.h >>conftest.$ac_ext |
| 8841 | cat >>conftest.$ac_ext <<_ACEOF |
| 8842 | /* end confdefs.h. */ |
| 8843 | #include <$ac_header> |
| 8844 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8845 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8846 | case "(($ac_try" in |
| 8847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8848 | *) ac_try_echo=$ac_try;; |
| 8849 | esac |
| 8850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8852 | ac_status=$? |
| 8853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8854 | rm -f conftest.er1 |
| 8855 | cat conftest.err >&5 |
| 8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8857 | (exit $ac_status); } >/dev/null; then |
| 8858 | if test -s conftest.err; then |
| 8859 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8860 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8861 | else |
| 8862 | ac_cpp_err= |
| 8863 | fi |
| 8864 | else |
| 8865 | ac_cpp_err=yes |
| 8866 | fi |
| 8867 | if test -z "$ac_cpp_err"; then |
| 8868 | ac_header_preproc=yes |
| 8869 | else |
| 8870 | echo "$as_me: failed program was:" >&5 |
| 8871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8872 | |
| 8873 | ac_header_preproc=no |
| 8874 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8875 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8876 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8877 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8878 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8879 | |
| 8880 | # So? What about this header? |
| 8881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8882 | yes:no: ) |
| 8883 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8884 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8886 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8887 | ac_header_preproc=yes |
| 8888 | ;; |
| 8889 | no:yes:* ) |
| 8890 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8891 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8892 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8893 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8894 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8895 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8896 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8897 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8900 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8901 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8902 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8903 | ;; |
| 8904 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8905 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8909 | else |
| 8910 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8911 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8912 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8914 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8915 | |
| 8916 | fi |
| 8917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8918 | cat >>confdefs.h <<_ACEOF |
| 8919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8920 | _ACEOF |
| 8921 | |
| 8922 | fi |
| 8923 | |
| 8924 | done |
| 8925 | |
| 8926 | |
| 8927 | |
| 8928 | if test "X$prefix" = "XNONE"; then |
| 8929 | acl_final_prefix="$ac_default_prefix" |
| 8930 | else |
| 8931 | acl_final_prefix="$prefix" |
| 8932 | fi |
| 8933 | if test "X$exec_prefix" = "XNONE"; then |
| 8934 | acl_final_exec_prefix='${prefix}' |
| 8935 | else |
| 8936 | acl_final_exec_prefix="$exec_prefix" |
| 8937 | fi |
| 8938 | acl_save_prefix="$prefix" |
| 8939 | prefix="$acl_final_prefix" |
| 8940 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8941 | prefix="$acl_save_prefix" |
| 8942 | |
| 8943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8944 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8945 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8946 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8947 | else |
| 8948 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8949 | fi |
| 8950 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8951 | # Prepare PATH_SEPARATOR. |
| 8952 | # The user is always right. |
| 8953 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8954 | echo "#! /bin/sh" >conf$$.sh |
| 8955 | echo "exit 0" >>conf$$.sh |
| 8956 | chmod +x conf$$.sh |
| 8957 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8958 | PATH_SEPARATOR=';' |
| 8959 | else |
| 8960 | PATH_SEPARATOR=: |
| 8961 | fi |
| 8962 | rm -f conf$$.sh |
| 8963 | fi |
| 8964 | ac_prog=ld |
| 8965 | if test "$GCC" = yes; then |
| 8966 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8967 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8968 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8969 | case $host in |
| 8970 | *-*-mingw*) |
| 8971 | # gcc leaves a trailing carriage return which upsets mingw |
| 8972 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8973 | *) |
| 8974 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8975 | esac |
| 8976 | case $ac_prog in |
| 8977 | # Accept absolute paths. |
| 8978 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8979 | re_direlt='/[^/][^/]*/\.\./' |
| 8980 | # Canonicalize the path of ld |
| 8981 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8982 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8983 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8984 | done |
| 8985 | test -z "$LD" && LD="$ac_prog" |
| 8986 | ;; |
| 8987 | "") |
| 8988 | # If it fails, then pretend we aren't using GCC. |
| 8989 | ac_prog=ld |
| 8990 | ;; |
| 8991 | *) |
| 8992 | # If it is relative, then search for the first ld in PATH. |
| 8993 | with_gnu_ld=unknown |
| 8994 | ;; |
| 8995 | esac |
| 8996 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8997 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8998 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8999 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9000 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9001 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9002 | fi |
| 9003 | if test "${acl_cv_path_LD+set}" = set; then |
| 9004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9005 | else |
| 9006 | if test -z "$LD"; then |
| 9007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 9008 | for ac_dir in $PATH; do |
| 9009 | test -z "$ac_dir" && ac_dir=. |
| 9010 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9011 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 9012 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9013 | # but apparently some GNU ld's only accept -v. |
| 9014 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9015 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 9016 | *GNU* | *'with BFD'*) |
| 9017 | test "$with_gnu_ld" != no && break ;; |
| 9018 | *) |
| 9019 | test "$with_gnu_ld" != yes && break ;; |
| 9020 | esac |
| 9021 | fi |
| 9022 | done |
| 9023 | IFS="$ac_save_ifs" |
| 9024 | else |
| 9025 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9026 | fi |
| 9027 | fi |
| 9028 | |
| 9029 | LD="$acl_cv_path_LD" |
| 9030 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9031 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 9032 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9033 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9034 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9035 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9036 | fi |
| 9037 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9038 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9039 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9040 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9041 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9042 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 9043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9044 | else |
| 9045 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9046 | case `$LD -v 2>&1 </dev/null` in |
| 9047 | *GNU* | *'with BFD'*) |
| 9048 | acl_cv_prog_gnu_ld=yes ;; |
| 9049 | *) |
| 9050 | acl_cv_prog_gnu_ld=no ;; |
| 9051 | esac |
| 9052 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9053 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 9054 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9055 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 9056 | |
| 9057 | |
| 9058 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9059 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 9060 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9061 | if test "${acl_cv_rpath+set}" = set; then |
| 9062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9063 | else |
| 9064 | |
| 9065 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 9066 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 9067 | . ./conftest.sh |
| 9068 | rm -f ./conftest.sh |
| 9069 | acl_cv_rpath=done |
| 9070 | |
| 9071 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9072 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 9073 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9074 | wl="$acl_cv_wl" |
| 9075 | libext="$acl_cv_libext" |
| 9076 | shlibext="$acl_cv_shlibext" |
| 9077 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 9078 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 9079 | hardcode_direct="$acl_cv_hardcode_direct" |
| 9080 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9081 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9082 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9083 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9084 | else |
| 9085 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9086 | fi |
| 9087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9088 | |
| 9089 | |
| 9090 | |
| 9091 | |
| 9092 | |
| 9093 | |
| 9094 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9095 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9096 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9097 | acl_save_prefix="$prefix" |
| 9098 | prefix="$acl_final_prefix" |
| 9099 | acl_save_exec_prefix="$exec_prefix" |
| 9100 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9101 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9102 | eval additional_includedir=\"$includedir\" |
| 9103 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9104 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9105 | exec_prefix="$acl_save_exec_prefix" |
| 9106 | prefix="$acl_save_prefix" |
| 9107 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9108 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9109 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9110 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9111 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9112 | if test "X$withval" = "Xno"; then |
| 9113 | use_additional=no |
| 9114 | else |
| 9115 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9116 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9117 | acl_save_prefix="$prefix" |
| 9118 | prefix="$acl_final_prefix" |
| 9119 | acl_save_exec_prefix="$exec_prefix" |
| 9120 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9121 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9122 | eval additional_includedir=\"$includedir\" |
| 9123 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9124 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9125 | exec_prefix="$acl_save_exec_prefix" |
| 9126 | prefix="$acl_save_prefix" |
| 9127 | |
| 9128 | else |
| 9129 | additional_includedir="$withval/include" |
| 9130 | additional_libdir="$withval/lib" |
| 9131 | fi |
| 9132 | fi |
| 9133 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9134 | fi |
| 9135 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9136 | LIBICONV= |
| 9137 | LTLIBICONV= |
| 9138 | INCICONV= |
| 9139 | rpathdirs= |
| 9140 | ltrpathdirs= |
| 9141 | names_already_handled= |
| 9142 | names_next_round='iconv ' |
| 9143 | while test -n "$names_next_round"; do |
| 9144 | names_this_round="$names_next_round" |
| 9145 | names_next_round= |
| 9146 | for name in $names_this_round; do |
| 9147 | already_handled= |
| 9148 | for n in $names_already_handled; do |
| 9149 | if test "$n" = "$name"; then |
| 9150 | already_handled=yes |
| 9151 | break |
| 9152 | fi |
| 9153 | done |
| 9154 | if test -z "$already_handled"; then |
| 9155 | names_already_handled="$names_already_handled $name" |
| 9156 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9157 | eval value=\"\$HAVE_LIB$uppername\" |
| 9158 | if test -n "$value"; then |
| 9159 | if test "$value" = yes; then |
| 9160 | eval value=\"\$LIB$uppername\" |
| 9161 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 9162 | eval value=\"\$LTLIB$uppername\" |
| 9163 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 9164 | else |
| 9165 | : |
| 9166 | fi |
| 9167 | else |
| 9168 | found_dir= |
| 9169 | found_la= |
| 9170 | found_so= |
| 9171 | found_a= |
| 9172 | if test $use_additional = yes; then |
| 9173 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9174 | found_dir="$additional_libdir" |
| 9175 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9176 | if test -f "$additional_libdir/lib$name.la"; then |
| 9177 | found_la="$additional_libdir/lib$name.la" |
| 9178 | fi |
| 9179 | else |
| 9180 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9181 | found_dir="$additional_libdir" |
| 9182 | found_a="$additional_libdir/lib$name.$libext" |
| 9183 | if test -f "$additional_libdir/lib$name.la"; then |
| 9184 | found_la="$additional_libdir/lib$name.la" |
| 9185 | fi |
| 9186 | fi |
| 9187 | fi |
| 9188 | fi |
| 9189 | if test "X$found_dir" = "X"; then |
| 9190 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9191 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9192 | acl_save_prefix="$prefix" |
| 9193 | prefix="$acl_final_prefix" |
| 9194 | acl_save_exec_prefix="$exec_prefix" |
| 9195 | exec_prefix="$acl_final_exec_prefix" |
| 9196 | eval x=\"$x\" |
| 9197 | exec_prefix="$acl_save_exec_prefix" |
| 9198 | prefix="$acl_save_prefix" |
| 9199 | |
| 9200 | case "$x" in |
| 9201 | -L*) |
| 9202 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9203 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9204 | found_dir="$dir" |
| 9205 | found_so="$dir/lib$name.$shlibext" |
| 9206 | if test -f "$dir/lib$name.la"; then |
| 9207 | found_la="$dir/lib$name.la" |
| 9208 | fi |
| 9209 | else |
| 9210 | if test -f "$dir/lib$name.$libext"; then |
| 9211 | found_dir="$dir" |
| 9212 | found_a="$dir/lib$name.$libext" |
| 9213 | if test -f "$dir/lib$name.la"; then |
| 9214 | found_la="$dir/lib$name.la" |
| 9215 | fi |
| 9216 | fi |
| 9217 | fi |
| 9218 | ;; |
| 9219 | esac |
| 9220 | if test "X$found_dir" != "X"; then |
| 9221 | break |
| 9222 | fi |
| 9223 | done |
| 9224 | fi |
| 9225 | if test "X$found_dir" != "X"; then |
| 9226 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9227 | if test "X$found_so" != "X"; then |
| 9228 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9229 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9230 | else |
| 9231 | haveit= |
| 9232 | for x in $ltrpathdirs; do |
| 9233 | if test "X$x" = "X$found_dir"; then |
| 9234 | haveit=yes |
| 9235 | break |
| 9236 | fi |
| 9237 | done |
| 9238 | if test -z "$haveit"; then |
| 9239 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9240 | fi |
| 9241 | if test "$hardcode_direct" = yes; then |
| 9242 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9243 | else |
| 9244 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9245 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9246 | haveit= |
| 9247 | for x in $rpathdirs; do |
| 9248 | if test "X$x" = "X$found_dir"; then |
| 9249 | haveit=yes |
| 9250 | break |
| 9251 | fi |
| 9252 | done |
| 9253 | if test -z "$haveit"; then |
| 9254 | rpathdirs="$rpathdirs $found_dir" |
| 9255 | fi |
| 9256 | else |
| 9257 | haveit= |
| 9258 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9259 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9260 | acl_save_prefix="$prefix" |
| 9261 | prefix="$acl_final_prefix" |
| 9262 | acl_save_exec_prefix="$exec_prefix" |
| 9263 | exec_prefix="$acl_final_exec_prefix" |
| 9264 | eval x=\"$x\" |
| 9265 | exec_prefix="$acl_save_exec_prefix" |
| 9266 | prefix="$acl_save_prefix" |
| 9267 | |
| 9268 | if test "X$x" = "X-L$found_dir"; then |
| 9269 | haveit=yes |
| 9270 | break |
| 9271 | fi |
| 9272 | done |
| 9273 | if test -z "$haveit"; then |
| 9274 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9275 | fi |
| 9276 | if test "$hardcode_minus_L" != no; then |
| 9277 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9278 | else |
| 9279 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9280 | fi |
| 9281 | fi |
| 9282 | fi |
| 9283 | fi |
| 9284 | else |
| 9285 | if test "X$found_a" != "X"; then |
| 9286 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9287 | else |
| 9288 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9289 | fi |
| 9290 | fi |
| 9291 | additional_includedir= |
| 9292 | case "$found_dir" in |
| 9293 | */lib | */lib/) |
| 9294 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9295 | additional_includedir="$basedir/include" |
| 9296 | ;; |
| 9297 | esac |
| 9298 | if test "X$additional_includedir" != "X"; then |
| 9299 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9300 | haveit= |
| 9301 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9302 | if test -n "$GCC"; then |
| 9303 | case $host_os in |
| 9304 | linux*) haveit=yes;; |
| 9305 | esac |
| 9306 | fi |
| 9307 | fi |
| 9308 | if test -z "$haveit"; then |
| 9309 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9310 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9311 | acl_save_prefix="$prefix" |
| 9312 | prefix="$acl_final_prefix" |
| 9313 | acl_save_exec_prefix="$exec_prefix" |
| 9314 | exec_prefix="$acl_final_exec_prefix" |
| 9315 | eval x=\"$x\" |
| 9316 | exec_prefix="$acl_save_exec_prefix" |
| 9317 | prefix="$acl_save_prefix" |
| 9318 | |
| 9319 | if test "X$x" = "X-I$additional_includedir"; then |
| 9320 | haveit=yes |
| 9321 | break |
| 9322 | fi |
| 9323 | done |
| 9324 | if test -z "$haveit"; then |
| 9325 | if test -d "$additional_includedir"; then |
| 9326 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9327 | fi |
| 9328 | fi |
| 9329 | fi |
| 9330 | fi |
| 9331 | fi |
| 9332 | if test -n "$found_la"; then |
| 9333 | save_libdir="$libdir" |
| 9334 | case "$found_la" in |
| 9335 | */* | *\\*) . "$found_la" ;; |
| 9336 | *) . "./$found_la" ;; |
| 9337 | esac |
| 9338 | libdir="$save_libdir" |
| 9339 | for dep in $dependency_libs; do |
| 9340 | case "$dep" in |
| 9341 | -L*) |
| 9342 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9343 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9344 | haveit= |
| 9345 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9346 | if test -n "$GCC"; then |
| 9347 | case $host_os in |
| 9348 | linux*) haveit=yes;; |
| 9349 | esac |
| 9350 | fi |
| 9351 | fi |
| 9352 | if test -z "$haveit"; then |
| 9353 | haveit= |
| 9354 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9355 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9356 | acl_save_prefix="$prefix" |
| 9357 | prefix="$acl_final_prefix" |
| 9358 | acl_save_exec_prefix="$exec_prefix" |
| 9359 | exec_prefix="$acl_final_exec_prefix" |
| 9360 | eval x=\"$x\" |
| 9361 | exec_prefix="$acl_save_exec_prefix" |
| 9362 | prefix="$acl_save_prefix" |
| 9363 | |
| 9364 | if test "X$x" = "X-L$additional_libdir"; then |
| 9365 | haveit=yes |
| 9366 | break |
| 9367 | fi |
| 9368 | done |
| 9369 | if test -z "$haveit"; then |
| 9370 | if test -d "$additional_libdir"; then |
| 9371 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9372 | fi |
| 9373 | fi |
| 9374 | haveit= |
| 9375 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9376 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9377 | acl_save_prefix="$prefix" |
| 9378 | prefix="$acl_final_prefix" |
| 9379 | acl_save_exec_prefix="$exec_prefix" |
| 9380 | exec_prefix="$acl_final_exec_prefix" |
| 9381 | eval x=\"$x\" |
| 9382 | exec_prefix="$acl_save_exec_prefix" |
| 9383 | prefix="$acl_save_prefix" |
| 9384 | |
| 9385 | if test "X$x" = "X-L$additional_libdir"; then |
| 9386 | haveit=yes |
| 9387 | break |
| 9388 | fi |
| 9389 | done |
| 9390 | if test -z "$haveit"; then |
| 9391 | if test -d "$additional_libdir"; then |
| 9392 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9393 | fi |
| 9394 | fi |
| 9395 | fi |
| 9396 | fi |
| 9397 | ;; |
| 9398 | -R*) |
| 9399 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9400 | if test "$enable_rpath" != no; then |
| 9401 | haveit= |
| 9402 | for x in $rpathdirs; do |
| 9403 | if test "X$x" = "X$dir"; then |
| 9404 | haveit=yes |
| 9405 | break |
| 9406 | fi |
| 9407 | done |
| 9408 | if test -z "$haveit"; then |
| 9409 | rpathdirs="$rpathdirs $dir" |
| 9410 | fi |
| 9411 | haveit= |
| 9412 | for x in $ltrpathdirs; do |
| 9413 | if test "X$x" = "X$dir"; then |
| 9414 | haveit=yes |
| 9415 | break |
| 9416 | fi |
| 9417 | done |
| 9418 | if test -z "$haveit"; then |
| 9419 | ltrpathdirs="$ltrpathdirs $dir" |
| 9420 | fi |
| 9421 | fi |
| 9422 | ;; |
| 9423 | -l*) |
| 9424 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9425 | ;; |
| 9426 | *.la) |
| 9427 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9428 | ;; |
| 9429 | *) |
| 9430 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9431 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9432 | ;; |
| 9433 | esac |
| 9434 | done |
| 9435 | fi |
| 9436 | else |
| 9437 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9438 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9439 | fi |
| 9440 | fi |
| 9441 | fi |
| 9442 | done |
| 9443 | done |
| 9444 | if test "X$rpathdirs" != "X"; then |
| 9445 | if test -n "$hardcode_libdir_separator"; then |
| 9446 | alldirs= |
| 9447 | for found_dir in $rpathdirs; do |
| 9448 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9449 | done |
| 9450 | acl_save_libdir="$libdir" |
| 9451 | libdir="$alldirs" |
| 9452 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9453 | libdir="$acl_save_libdir" |
| 9454 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9455 | else |
| 9456 | for found_dir in $rpathdirs; do |
| 9457 | acl_save_libdir="$libdir" |
| 9458 | libdir="$found_dir" |
| 9459 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9460 | libdir="$acl_save_libdir" |
| 9461 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9462 | done |
| 9463 | fi |
| 9464 | fi |
| 9465 | if test "X$ltrpathdirs" != "X"; then |
| 9466 | for found_dir in $ltrpathdirs; do |
| 9467 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9468 | done |
| 9469 | fi |
| 9470 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9471 | |
| 9472 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9474 | |
| 9475 | |
| 9476 | |
| 9477 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9478 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 9479 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9480 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 9481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9482 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9483 | cat >conftest.$ac_ext <<_ACEOF |
| 9484 | /* confdefs.h. */ |
| 9485 | _ACEOF |
| 9486 | cat confdefs.h >>conftest.$ac_ext |
| 9487 | cat >>conftest.$ac_ext <<_ACEOF |
| 9488 | /* end confdefs.h. */ |
| 9489 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9490 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9491 | int |
| 9492 | main () |
| 9493 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9494 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9495 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9496 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9497 | return 0; |
| 9498 | ; |
| 9499 | return 0; |
| 9500 | } |
| 9501 | _ACEOF |
| 9502 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9503 | if { (ac_try="$ac_compile" |
| 9504 | case "(($ac_try" in |
| 9505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9506 | *) ac_try_echo=$ac_try;; |
| 9507 | esac |
| 9508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9509 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9510 | ac_status=$? |
| 9511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9512 | rm -f conftest.er1 |
| 9513 | cat conftest.err >&5 |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9515 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9517 | { (case "(($ac_try" in |
| 9518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9519 | *) ac_try_echo=$ac_try;; |
| 9520 | esac |
| 9521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9522 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9523 | ac_status=$? |
| 9524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9525 | (exit $ac_status); }; } && |
| 9526 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9527 | { (case "(($ac_try" in |
| 9528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9529 | *) ac_try_echo=$ac_try;; |
| 9530 | esac |
| 9531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9532 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9533 | ac_status=$? |
| 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9535 | (exit $ac_status); }; }; then |
| 9536 | ac_cv_type_ptrdiff_t=yes |
| 9537 | else |
| 9538 | echo "$as_me: failed program was:" >&5 |
| 9539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9541 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9542 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9543 | |
| 9544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9545 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9546 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9547 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9548 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 9549 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9550 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9551 | |
| 9552 | cat >>confdefs.h <<\_ACEOF |
| 9553 | #define ptrdiff_t long |
| 9554 | _ACEOF |
| 9555 | |
| 9556 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9557 | fi |
| 9558 | |
| 9559 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9560 | |
| 9561 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9562 | |
| 9563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9564 | |
| 9565 | |
| 9566 | |
| 9567 | |
| 9568 | |
| 9569 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9570 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9571 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9578 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9579 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9580 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9581 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9582 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9583 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9584 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9585 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9586 | cat >conftest.$ac_ext <<_ACEOF |
| 9587 | /* confdefs.h. */ |
| 9588 | _ACEOF |
| 9589 | cat confdefs.h >>conftest.$ac_ext |
| 9590 | cat >>conftest.$ac_ext <<_ACEOF |
| 9591 | /* end confdefs.h. */ |
| 9592 | $ac_includes_default |
| 9593 | #include <$ac_header> |
| 9594 | _ACEOF |
| 9595 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9596 | if { (ac_try="$ac_compile" |
| 9597 | case "(($ac_try" in |
| 9598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9599 | *) ac_try_echo=$ac_try;; |
| 9600 | esac |
| 9601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9602 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9603 | ac_status=$? |
| 9604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9605 | rm -f conftest.er1 |
| 9606 | cat conftest.err >&5 |
| 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9608 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9610 | { (case "(($ac_try" in |
| 9611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9612 | *) ac_try_echo=$ac_try;; |
| 9613 | esac |
| 9614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9615 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9616 | ac_status=$? |
| 9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9618 | (exit $ac_status); }; } && |
| 9619 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9620 | { (case "(($ac_try" in |
| 9621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9622 | *) ac_try_echo=$ac_try;; |
| 9623 | esac |
| 9624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9625 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9626 | ac_status=$? |
| 9627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9628 | (exit $ac_status); }; }; then |
| 9629 | ac_header_compiler=yes |
| 9630 | else |
| 9631 | echo "$as_me: failed program was:" >&5 |
| 9632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9633 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9634 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9635 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9636 | |
| 9637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9638 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9639 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9640 | |
| 9641 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9642 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9644 | cat >conftest.$ac_ext <<_ACEOF |
| 9645 | /* confdefs.h. */ |
| 9646 | _ACEOF |
| 9647 | cat confdefs.h >>conftest.$ac_ext |
| 9648 | cat >>conftest.$ac_ext <<_ACEOF |
| 9649 | /* end confdefs.h. */ |
| 9650 | #include <$ac_header> |
| 9651 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9653 | case "(($ac_try" in |
| 9654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9655 | *) ac_try_echo=$ac_try;; |
| 9656 | esac |
| 9657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9659 | ac_status=$? |
| 9660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9661 | rm -f conftest.er1 |
| 9662 | cat conftest.err >&5 |
| 9663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9664 | (exit $ac_status); } >/dev/null; then |
| 9665 | if test -s conftest.err; then |
| 9666 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9667 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9668 | else |
| 9669 | ac_cpp_err= |
| 9670 | fi |
| 9671 | else |
| 9672 | ac_cpp_err=yes |
| 9673 | fi |
| 9674 | if test -z "$ac_cpp_err"; then |
| 9675 | ac_header_preproc=yes |
| 9676 | else |
| 9677 | echo "$as_me: failed program was:" >&5 |
| 9678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9679 | |
| 9680 | ac_header_preproc=no |
| 9681 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9682 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9683 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9684 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9685 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9686 | |
| 9687 | # So? What about this header? |
| 9688 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9689 | yes:no: ) |
| 9690 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9691 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9692 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9693 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9694 | ac_header_preproc=yes |
| 9695 | ;; |
| 9696 | no:yes:* ) |
| 9697 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9698 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9699 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9700 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9701 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9702 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9703 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9704 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9706 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9707 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9708 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9709 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9710 | ;; |
| 9711 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9716 | else |
| 9717 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9718 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9719 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9721 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9722 | |
| 9723 | fi |
| 9724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9725 | cat >>confdefs.h <<_ACEOF |
| 9726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9727 | _ACEOF |
| 9728 | |
| 9729 | fi |
| 9730 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9731 | done |
| 9732 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | |
| 9738 | |
| 9739 | |
| 9740 | |
| 9741 | |
| 9742 | |
| 9743 | |
| 9744 | |
| 9745 | |
| 9746 | |
| 9747 | |
| 9748 | |
| 9749 | |
| 9750 | |
| 9751 | |
| 9752 | |
| 9753 | |
| 9754 | |
| 9755 | |
| 9756 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9757 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9758 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9759 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9760 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9761 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9762 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9763 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9764 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9766 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9767 | cat >conftest.$ac_ext <<_ACEOF |
| 9768 | /* confdefs.h. */ |
| 9769 | _ACEOF |
| 9770 | cat confdefs.h >>conftest.$ac_ext |
| 9771 | cat >>conftest.$ac_ext <<_ACEOF |
| 9772 | /* end confdefs.h. */ |
| 9773 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9775 | #define $ac_func innocuous_$ac_func |
| 9776 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9777 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9778 | which can conflict with char $ac_func (); below. |
| 9779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9780 | <limits.h> exists even on freestanding compilers. */ |
| 9781 | |
| 9782 | #ifdef __STDC__ |
| 9783 | # include <limits.h> |
| 9784 | #else |
| 9785 | # include <assert.h> |
| 9786 | #endif |
| 9787 | |
| 9788 | #undef $ac_func |
| 9789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9790 | /* Override any GCC internal prototype to avoid an error. |
| 9791 | Use char because int might match the return type of a GCC |
| 9792 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9793 | #ifdef __cplusplus |
| 9794 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9795 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9796 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9797 | /* The GNU C library defines this for functions which it implements |
| 9798 | to always fail with ENOSYS. Some functions are actually named |
| 9799 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9800 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9801 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9802 | #endif |
| 9803 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9804 | int |
| 9805 | main () |
| 9806 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9807 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9808 | ; |
| 9809 | return 0; |
| 9810 | } |
| 9811 | _ACEOF |
| 9812 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9813 | if { (ac_try="$ac_link" |
| 9814 | case "(($ac_try" in |
| 9815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9816 | *) ac_try_echo=$ac_try;; |
| 9817 | esac |
| 9818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9819 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9820 | ac_status=$? |
| 9821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9822 | rm -f conftest.er1 |
| 9823 | cat conftest.err >&5 |
| 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9827 | { (case "(($ac_try" in |
| 9828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9829 | *) ac_try_echo=$ac_try;; |
| 9830 | esac |
| 9831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9832 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9833 | ac_status=$? |
| 9834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9835 | (exit $ac_status); }; } && |
| 9836 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9837 | { (case "(($ac_try" in |
| 9838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9839 | *) ac_try_echo=$ac_try;; |
| 9840 | esac |
| 9841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9842 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | ac_status=$? |
| 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9845 | (exit $ac_status); }; }; then |
| 9846 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9847 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9848 | echo "$as_me: failed program was:" >&5 |
| 9849 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9850 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9851 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9853 | |
| 9854 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9855 | conftest$ac_exeext conftest.$ac_ext |
| 9856 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9857 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9859 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9860 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9861 | cat >>confdefs.h <<_ACEOF |
| 9862 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9863 | _ACEOF |
| 9864 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9865 | fi |
| 9866 | done |
| 9867 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9868 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9870 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9871 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9872 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9874 | else |
| 9875 | cat >conftest.$ac_ext <<_ACEOF |
| 9876 | /* confdefs.h. */ |
| 9877 | _ACEOF |
| 9878 | cat confdefs.h >>conftest.$ac_ext |
| 9879 | cat >>conftest.$ac_ext <<_ACEOF |
| 9880 | /* end confdefs.h. */ |
| 9881 | #include <stdio.h> |
| 9882 | int |
| 9883 | main () |
| 9884 | { |
| 9885 | |
| 9886 | #ifndef _snprintf |
| 9887 | char *p = (char *) _snprintf; |
| 9888 | #endif |
| 9889 | |
| 9890 | ; |
| 9891 | return 0; |
| 9892 | } |
| 9893 | _ACEOF |
| 9894 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9895 | if { (ac_try="$ac_compile" |
| 9896 | case "(($ac_try" in |
| 9897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9898 | *) ac_try_echo=$ac_try;; |
| 9899 | esac |
| 9900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9901 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9902 | ac_status=$? |
| 9903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9904 | rm -f conftest.er1 |
| 9905 | cat conftest.err >&5 |
| 9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9907 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9909 | { (case "(($ac_try" in |
| 9910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9911 | *) ac_try_echo=$ac_try;; |
| 9912 | esac |
| 9913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9914 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9915 | ac_status=$? |
| 9916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9917 | (exit $ac_status); }; } && |
| 9918 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9919 | { (case "(($ac_try" in |
| 9920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9921 | *) ac_try_echo=$ac_try;; |
| 9922 | esac |
| 9923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9924 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9925 | ac_status=$? |
| 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); }; }; then |
| 9928 | ac_cv_have_decl__snprintf=yes |
| 9929 | else |
| 9930 | echo "$as_me: failed program was:" >&5 |
| 9931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9933 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9934 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9935 | |
| 9936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9937 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9938 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9939 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9940 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9941 | gt_value=1 |
| 9942 | else |
| 9943 | gt_value=0 |
| 9944 | fi |
| 9945 | |
| 9946 | cat >>confdefs.h <<_ACEOF |
| 9947 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9948 | _ACEOF |
| 9949 | |
| 9950 | |
| 9951 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9952 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9953 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9954 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9956 | else |
| 9957 | cat >conftest.$ac_ext <<_ACEOF |
| 9958 | /* confdefs.h. */ |
| 9959 | _ACEOF |
| 9960 | cat confdefs.h >>conftest.$ac_ext |
| 9961 | cat >>conftest.$ac_ext <<_ACEOF |
| 9962 | /* end confdefs.h. */ |
| 9963 | #include <stdio.h> |
| 9964 | int |
| 9965 | main () |
| 9966 | { |
| 9967 | |
| 9968 | #ifndef _snwprintf |
| 9969 | char *p = (char *) _snwprintf; |
| 9970 | #endif |
| 9971 | |
| 9972 | ; |
| 9973 | return 0; |
| 9974 | } |
| 9975 | _ACEOF |
| 9976 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9977 | if { (ac_try="$ac_compile" |
| 9978 | case "(($ac_try" in |
| 9979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9980 | *) ac_try_echo=$ac_try;; |
| 9981 | esac |
| 9982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9983 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9984 | ac_status=$? |
| 9985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9986 | rm -f conftest.er1 |
| 9987 | cat conftest.err >&5 |
| 9988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9989 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9991 | { (case "(($ac_try" in |
| 9992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9993 | *) ac_try_echo=$ac_try;; |
| 9994 | esac |
| 9995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9996 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9997 | ac_status=$? |
| 9998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9999 | (exit $ac_status); }; } && |
| 10000 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10001 | { (case "(($ac_try" in |
| 10002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10003 | *) ac_try_echo=$ac_try;; |
| 10004 | esac |
| 10005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10006 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10007 | ac_status=$? |
| 10008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10009 | (exit $ac_status); }; }; then |
| 10010 | ac_cv_have_decl__snwprintf=yes |
| 10011 | else |
| 10012 | echo "$as_me: failed program was:" >&5 |
| 10013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10014 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10015 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10016 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10017 | |
| 10018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10019 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10020 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 10021 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10022 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 10023 | gt_value=1 |
| 10024 | else |
| 10025 | gt_value=0 |
| 10026 | fi |
| 10027 | |
| 10028 | cat >>confdefs.h <<_ACEOF |
| 10029 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 10030 | _ACEOF |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10035 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 10036 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10037 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 10038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10039 | else |
| 10040 | cat >conftest.$ac_ext <<_ACEOF |
| 10041 | /* confdefs.h. */ |
| 10042 | _ACEOF |
| 10043 | cat confdefs.h >>conftest.$ac_ext |
| 10044 | cat >>conftest.$ac_ext <<_ACEOF |
| 10045 | /* end confdefs.h. */ |
| 10046 | #include <stdio.h> |
| 10047 | int |
| 10048 | main () |
| 10049 | { |
| 10050 | |
| 10051 | #ifndef feof_unlocked |
| 10052 | char *p = (char *) feof_unlocked; |
| 10053 | #endif |
| 10054 | |
| 10055 | ; |
| 10056 | return 0; |
| 10057 | } |
| 10058 | _ACEOF |
| 10059 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10060 | if { (ac_try="$ac_compile" |
| 10061 | case "(($ac_try" in |
| 10062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10063 | *) ac_try_echo=$ac_try;; |
| 10064 | esac |
| 10065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10066 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10067 | ac_status=$? |
| 10068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10069 | rm -f conftest.er1 |
| 10070 | cat conftest.err >&5 |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10074 | { (case "(($ac_try" in |
| 10075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10076 | *) ac_try_echo=$ac_try;; |
| 10077 | esac |
| 10078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10079 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10080 | ac_status=$? |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); }; } && |
| 10083 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10084 | { (case "(($ac_try" in |
| 10085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10086 | *) ac_try_echo=$ac_try;; |
| 10087 | esac |
| 10088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10089 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10090 | ac_status=$? |
| 10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10092 | (exit $ac_status); }; }; then |
| 10093 | ac_cv_have_decl_feof_unlocked=yes |
| 10094 | else |
| 10095 | echo "$as_me: failed program was:" >&5 |
| 10096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10098 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10099 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10100 | |
| 10101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10102 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10103 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 10104 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10105 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 10106 | gt_value=1 |
| 10107 | else |
| 10108 | gt_value=0 |
| 10109 | fi |
| 10110 | |
| 10111 | cat >>confdefs.h <<_ACEOF |
| 10112 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 10113 | _ACEOF |
| 10114 | |
| 10115 | |
| 10116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10117 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 10118 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10119 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 10120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10121 | else |
| 10122 | cat >conftest.$ac_ext <<_ACEOF |
| 10123 | /* confdefs.h. */ |
| 10124 | _ACEOF |
| 10125 | cat confdefs.h >>conftest.$ac_ext |
| 10126 | cat >>conftest.$ac_ext <<_ACEOF |
| 10127 | /* end confdefs.h. */ |
| 10128 | #include <stdio.h> |
| 10129 | int |
| 10130 | main () |
| 10131 | { |
| 10132 | |
| 10133 | #ifndef fgets_unlocked |
| 10134 | char *p = (char *) fgets_unlocked; |
| 10135 | #endif |
| 10136 | |
| 10137 | ; |
| 10138 | return 0; |
| 10139 | } |
| 10140 | _ACEOF |
| 10141 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10142 | if { (ac_try="$ac_compile" |
| 10143 | case "(($ac_try" in |
| 10144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10145 | *) ac_try_echo=$ac_try;; |
| 10146 | esac |
| 10147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10148 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10149 | ac_status=$? |
| 10150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10151 | rm -f conftest.er1 |
| 10152 | cat conftest.err >&5 |
| 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10154 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10156 | { (case "(($ac_try" in |
| 10157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10158 | *) ac_try_echo=$ac_try;; |
| 10159 | esac |
| 10160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10161 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10162 | ac_status=$? |
| 10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10164 | (exit $ac_status); }; } && |
| 10165 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10166 | { (case "(($ac_try" in |
| 10167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10168 | *) ac_try_echo=$ac_try;; |
| 10169 | esac |
| 10170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10171 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10172 | ac_status=$? |
| 10173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10174 | (exit $ac_status); }; }; then |
| 10175 | ac_cv_have_decl_fgets_unlocked=yes |
| 10176 | else |
| 10177 | echo "$as_me: failed program was:" >&5 |
| 10178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10179 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10180 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10181 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10182 | |
| 10183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10184 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10185 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 10186 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10187 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 10188 | gt_value=1 |
| 10189 | else |
| 10190 | gt_value=0 |
| 10191 | fi |
| 10192 | |
| 10193 | cat >>confdefs.h <<_ACEOF |
| 10194 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 10195 | _ACEOF |
| 10196 | |
| 10197 | |
| 10198 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10199 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 10200 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10201 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 10202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10203 | else |
| 10204 | cat >conftest.$ac_ext <<_ACEOF |
| 10205 | /* confdefs.h. */ |
| 10206 | _ACEOF |
| 10207 | cat confdefs.h >>conftest.$ac_ext |
| 10208 | cat >>conftest.$ac_ext <<_ACEOF |
| 10209 | /* end confdefs.h. */ |
| 10210 | #include <stdio.h> |
| 10211 | int |
| 10212 | main () |
| 10213 | { |
| 10214 | |
| 10215 | #ifndef getc_unlocked |
| 10216 | char *p = (char *) getc_unlocked; |
| 10217 | #endif |
| 10218 | |
| 10219 | ; |
| 10220 | return 0; |
| 10221 | } |
| 10222 | _ACEOF |
| 10223 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10224 | if { (ac_try="$ac_compile" |
| 10225 | case "(($ac_try" in |
| 10226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10227 | *) ac_try_echo=$ac_try;; |
| 10228 | esac |
| 10229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10230 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10231 | ac_status=$? |
| 10232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10233 | rm -f conftest.er1 |
| 10234 | cat conftest.err >&5 |
| 10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10236 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10238 | { (case "(($ac_try" in |
| 10239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10240 | *) ac_try_echo=$ac_try;; |
| 10241 | esac |
| 10242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10243 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10244 | ac_status=$? |
| 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); }; } && |
| 10247 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10248 | { (case "(($ac_try" in |
| 10249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10250 | *) ac_try_echo=$ac_try;; |
| 10251 | esac |
| 10252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10253 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10254 | ac_status=$? |
| 10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10256 | (exit $ac_status); }; }; then |
| 10257 | ac_cv_have_decl_getc_unlocked=yes |
| 10258 | else |
| 10259 | echo "$as_me: failed program was:" >&5 |
| 10260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10261 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10262 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10263 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10264 | |
| 10265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10266 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10267 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 10268 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10269 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 10270 | gt_value=1 |
| 10271 | else |
| 10272 | gt_value=0 |
| 10273 | fi |
| 10274 | |
| 10275 | cat >>confdefs.h <<_ACEOF |
| 10276 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 10277 | _ACEOF |
| 10278 | |
| 10279 | |
| 10280 | |
| 10281 | case $gt_cv_func_printf_posix in |
| 10282 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10283 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10284 | esac |
| 10285 | |
| 10286 | if test "$ac_cv_func_asprintf" = yes; then |
| 10287 | HAVE_ASPRINTF=1 |
| 10288 | else |
| 10289 | HAVE_ASPRINTF=0 |
| 10290 | fi |
| 10291 | |
| 10292 | if test "$ac_cv_func_snprintf" = yes; then |
| 10293 | HAVE_SNPRINTF=1 |
| 10294 | else |
| 10295 | HAVE_SNPRINTF=0 |
| 10296 | fi |
| 10297 | |
| 10298 | if test "$ac_cv_func_wprintf" = yes; then |
| 10299 | HAVE_WPRINTF=1 |
| 10300 | else |
| 10301 | HAVE_WPRINTF=0 |
| 10302 | fi |
| 10303 | |
| 10304 | |
| 10305 | |
| 10306 | |
| 10307 | |
| 10308 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10309 | |
| 10310 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10311 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10312 | for element in $INCICONV; do |
| 10313 | haveit= |
| 10314 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10315 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10316 | acl_save_prefix="$prefix" |
| 10317 | prefix="$acl_final_prefix" |
| 10318 | acl_save_exec_prefix="$exec_prefix" |
| 10319 | exec_prefix="$acl_final_exec_prefix" |
| 10320 | eval x=\"$x\" |
| 10321 | exec_prefix="$acl_save_exec_prefix" |
| 10322 | prefix="$acl_save_prefix" |
| 10323 | |
| 10324 | if test "X$x" = "X$element"; then |
| 10325 | haveit=yes |
| 10326 | break |
| 10327 | fi |
| 10328 | done |
| 10329 | if test -z "$haveit"; then |
| 10330 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10331 | fi |
| 10332 | done |
| 10333 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10334 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10335 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10336 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10337 | if test "${am_cv_func_iconv+set}" = set; then |
| 10338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10339 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10340 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10341 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10342 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10343 | cat >conftest.$ac_ext <<_ACEOF |
| 10344 | /* confdefs.h. */ |
| 10345 | _ACEOF |
| 10346 | cat confdefs.h >>conftest.$ac_ext |
| 10347 | cat >>conftest.$ac_ext <<_ACEOF |
| 10348 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10349 | #include <stdlib.h> |
| 10350 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10351 | int |
| 10352 | main () |
| 10353 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10354 | iconv_t cd = iconv_open("",""); |
| 10355 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10356 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10357 | ; |
| 10358 | return 0; |
| 10359 | } |
| 10360 | _ACEOF |
| 10361 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10362 | if { (ac_try="$ac_link" |
| 10363 | case "(($ac_try" in |
| 10364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10365 | *) ac_try_echo=$ac_try;; |
| 10366 | esac |
| 10367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10368 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10369 | ac_status=$? |
| 10370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10371 | rm -f conftest.er1 |
| 10372 | cat conftest.err >&5 |
| 10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10374 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10376 | { (case "(($ac_try" in |
| 10377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10378 | *) ac_try_echo=$ac_try;; |
| 10379 | esac |
| 10380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10381 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10382 | ac_status=$? |
| 10383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10384 | (exit $ac_status); }; } && |
| 10385 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10386 | { (case "(($ac_try" in |
| 10387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10388 | *) ac_try_echo=$ac_try;; |
| 10389 | esac |
| 10390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10391 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10392 | ac_status=$? |
| 10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10394 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10395 | am_cv_func_iconv=yes |
| 10396 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10397 | echo "$as_me: failed program was:" >&5 |
| 10398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10399 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10400 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10401 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10402 | |
| 10403 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10404 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10405 | if test "$am_cv_func_iconv" != yes; then |
| 10406 | am_save_LIBS="$LIBS" |
| 10407 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10408 | cat >conftest.$ac_ext <<_ACEOF |
| 10409 | /* confdefs.h. */ |
| 10410 | _ACEOF |
| 10411 | cat confdefs.h >>conftest.$ac_ext |
| 10412 | cat >>conftest.$ac_ext <<_ACEOF |
| 10413 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10414 | #include <stdlib.h> |
| 10415 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10416 | int |
| 10417 | main () |
| 10418 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10419 | iconv_t cd = iconv_open("",""); |
| 10420 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10421 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10422 | ; |
| 10423 | return 0; |
| 10424 | } |
| 10425 | _ACEOF |
| 10426 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10427 | if { (ac_try="$ac_link" |
| 10428 | case "(($ac_try" in |
| 10429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10430 | *) ac_try_echo=$ac_try;; |
| 10431 | esac |
| 10432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10433 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10434 | ac_status=$? |
| 10435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10436 | rm -f conftest.er1 |
| 10437 | cat conftest.err >&5 |
| 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10441 | { (case "(($ac_try" in |
| 10442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10443 | *) ac_try_echo=$ac_try;; |
| 10444 | esac |
| 10445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10446 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10447 | ac_status=$? |
| 10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10449 | (exit $ac_status); }; } && |
| 10450 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10451 | { (case "(($ac_try" in |
| 10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10453 | *) ac_try_echo=$ac_try;; |
| 10454 | esac |
| 10455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10456 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | ac_status=$? |
| 10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10459 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10460 | am_cv_lib_iconv=yes |
| 10461 | am_cv_func_iconv=yes |
| 10462 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10463 | echo "$as_me: failed program was:" >&5 |
| 10464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10466 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10467 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10468 | |
| 10469 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10470 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10471 | LIBS="$am_save_LIBS" |
| 10472 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10474 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10475 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10476 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10477 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10478 | |
| 10479 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10480 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10481 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10482 | |
| 10483 | fi |
| 10484 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10485 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 10486 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 10487 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 10488 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10489 | else |
| 10490 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10491 | LIBICONV= |
| 10492 | LTLIBICONV= |
| 10493 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10494 | |
| 10495 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10496 | |
| 10497 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10498 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10499 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10500 | if test "${am_cv_proto_iconv+set}" = set; then |
| 10501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10502 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10503 | |
| 10504 | cat >conftest.$ac_ext <<_ACEOF |
| 10505 | /* confdefs.h. */ |
| 10506 | _ACEOF |
| 10507 | cat confdefs.h >>conftest.$ac_ext |
| 10508 | cat >>conftest.$ac_ext <<_ACEOF |
| 10509 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10510 | |
| 10511 | #include <stdlib.h> |
| 10512 | #include <iconv.h> |
| 10513 | extern |
| 10514 | #ifdef __cplusplus |
| 10515 | "C" |
| 10516 | #endif |
| 10517 | #if defined(__STDC__) || defined(__cplusplus) |
| 10518 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10519 | #else |
| 10520 | size_t iconv(); |
| 10521 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10522 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10523 | int |
| 10524 | main () |
| 10525 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10526 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10527 | ; |
| 10528 | return 0; |
| 10529 | } |
| 10530 | _ACEOF |
| 10531 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10532 | if { (ac_try="$ac_compile" |
| 10533 | case "(($ac_try" in |
| 10534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10535 | *) ac_try_echo=$ac_try;; |
| 10536 | esac |
| 10537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10538 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10539 | ac_status=$? |
| 10540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10541 | rm -f conftest.er1 |
| 10542 | cat conftest.err >&5 |
| 10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10544 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10546 | { (case "(($ac_try" in |
| 10547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10548 | *) ac_try_echo=$ac_try;; |
| 10549 | esac |
| 10550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10551 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10552 | ac_status=$? |
| 10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10554 | (exit $ac_status); }; } && |
| 10555 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10556 | { (case "(($ac_try" in |
| 10557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10558 | *) ac_try_echo=$ac_try;; |
| 10559 | esac |
| 10560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10561 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10562 | ac_status=$? |
| 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10564 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10565 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10566 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10567 | echo "$as_me: failed program was:" >&5 |
| 10568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10570 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10572 | |
| 10573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10574 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10575 | fi |
| 10576 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10577 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10578 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10579 | }$am_cv_proto_iconv" >&5 |
| 10580 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10581 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10582 | |
| 10583 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10584 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10585 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10586 | |
| 10587 | fi |
| 10588 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10589 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10590 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 10591 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10592 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 10593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10594 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10595 | cat >conftest.$ac_ext <<_ACEOF |
| 10596 | /* confdefs.h. */ |
| 10597 | _ACEOF |
| 10598 | cat confdefs.h >>conftest.$ac_ext |
| 10599 | cat >>conftest.$ac_ext <<_ACEOF |
| 10600 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10601 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10602 | int |
| 10603 | main () |
| 10604 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10605 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10606 | ; |
| 10607 | return 0; |
| 10608 | } |
| 10609 | _ACEOF |
| 10610 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10611 | if { (ac_try="$ac_link" |
| 10612 | case "(($ac_try" in |
| 10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10614 | *) ac_try_echo=$ac_try;; |
| 10615 | esac |
| 10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10617 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10618 | ac_status=$? |
| 10619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10620 | rm -f conftest.er1 |
| 10621 | cat conftest.err >&5 |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10625 | { (case "(($ac_try" in |
| 10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10627 | *) ac_try_echo=$ac_try;; |
| 10628 | esac |
| 10629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10630 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10631 | ac_status=$? |
| 10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10633 | (exit $ac_status); }; } && |
| 10634 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10635 | { (case "(($ac_try" in |
| 10636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10637 | *) ac_try_echo=$ac_try;; |
| 10638 | esac |
| 10639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10640 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10641 | ac_status=$? |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10643 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10644 | am_cv_langinfo_codeset=yes |
| 10645 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10646 | echo "$as_me: failed program was:" >&5 |
| 10647 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10648 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10649 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10650 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10651 | |
| 10652 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10653 | conftest$ac_exeext conftest.$ac_ext |
| 10654 | |
| 10655 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10656 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 10657 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10658 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10659 | |
| 10660 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10661 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10662 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10663 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10664 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10665 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10666 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10667 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10668 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 10669 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10670 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 10671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10672 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | /* confdefs.h. */ |
| 10675 | _ACEOF |
| 10676 | cat confdefs.h >>conftest.$ac_ext |
| 10677 | cat >>conftest.$ac_ext <<_ACEOF |
| 10678 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10679 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | int |
| 10681 | main () |
| 10682 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10683 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10684 | ; |
| 10685 | return 0; |
| 10686 | } |
| 10687 | _ACEOF |
| 10688 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10689 | if { (ac_try="$ac_link" |
| 10690 | case "(($ac_try" in |
| 10691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10692 | *) ac_try_echo=$ac_try;; |
| 10693 | esac |
| 10694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10695 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10696 | ac_status=$? |
| 10697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10698 | rm -f conftest.er1 |
| 10699 | cat conftest.err >&5 |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10703 | { (case "(($ac_try" in |
| 10704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10705 | *) ac_try_echo=$ac_try;; |
| 10706 | esac |
| 10707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10708 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10709 | ac_status=$? |
| 10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10711 | (exit $ac_status); }; } && |
| 10712 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10713 | { (case "(($ac_try" in |
| 10714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10715 | *) ac_try_echo=$ac_try;; |
| 10716 | esac |
| 10717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10718 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10719 | ac_status=$? |
| 10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10721 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10722 | am_cv_val_LC_MESSAGES=yes |
| 10723 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10724 | echo "$as_me: failed program was:" >&5 |
| 10725 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10726 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10727 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10728 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10729 | |
| 10730 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10731 | conftest$ac_exeext conftest.$ac_ext |
| 10732 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10733 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10734 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10735 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10736 | |
| 10737 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10738 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10739 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10740 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10741 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10742 | |
| 10743 | fi |
| 10744 | |
| 10745 | for ac_prog in bison |
| 10746 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10748 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10751 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 10752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10753 | else |
| 10754 | if test -n "$INTLBISON"; then |
| 10755 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10756 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10758 | for as_dir in $PATH |
| 10759 | do |
| 10760 | IFS=$as_save_IFS |
| 10761 | test -z "$as_dir" && as_dir=. |
| 10762 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10764 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10766 | break 2 |
| 10767 | fi |
| 10768 | done |
| 10769 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10770 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10771 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10772 | fi |
| 10773 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10774 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10775 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10776 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10777 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10778 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10780 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10781 | fi |
| 10782 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10783 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10784 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10785 | done |
| 10786 | |
| 10787 | if test -z "$INTLBISON"; then |
| 10788 | ac_verc_fail=yes |
| 10789 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10790 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10791 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10792 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10793 | case $ac_prog_version in |
| 10794 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10795 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10796 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10797 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10798 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10799 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10800 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10801 | fi |
| 10802 | if test $ac_verc_fail = yes; then |
| 10803 | INTLBISON=: |
| 10804 | fi |
| 10805 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10806 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10807 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10808 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10809 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10810 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10811 | |
| 10812 | |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
| 10818 | |
| 10819 | |
| 10820 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10821 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10822 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 10823 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10824 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10825 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10826 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10827 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10828 | fi |
| 10829 | |
| 10830 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10831 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10832 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10833 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10834 | |
| 10835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10836 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10837 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10838 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10839 | LIBINTL= |
| 10840 | LTLIBINTL= |
| 10841 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10842 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10843 | if test "$USE_NLS" = "yes"; then |
| 10844 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10846 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10847 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10848 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10849 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10850 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10851 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10852 | else |
| 10853 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10854 | fi |
| 10855 | |
| 10856 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10857 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10858 | |
| 10859 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10860 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10861 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10862 | |
| 10863 | |
| 10864 | |
| 10865 | |
| 10866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10867 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10868 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10869 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10871 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10872 | cat >conftest.$ac_ext <<_ACEOF |
| 10873 | /* confdefs.h. */ |
| 10874 | _ACEOF |
| 10875 | cat confdefs.h >>conftest.$ac_ext |
| 10876 | cat >>conftest.$ac_ext <<_ACEOF |
| 10877 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10878 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10879 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10880 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10881 | int |
| 10882 | main () |
| 10883 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10884 | bindtextdomain ("", ""); |
| 10885 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10886 | ; |
| 10887 | return 0; |
| 10888 | } |
| 10889 | _ACEOF |
| 10890 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10891 | if { (ac_try="$ac_link" |
| 10892 | case "(($ac_try" in |
| 10893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10894 | *) ac_try_echo=$ac_try;; |
| 10895 | esac |
| 10896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10897 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10898 | ac_status=$? |
| 10899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10900 | rm -f conftest.er1 |
| 10901 | cat conftest.err >&5 |
| 10902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10903 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10905 | { (case "(($ac_try" in |
| 10906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10907 | *) ac_try_echo=$ac_try;; |
| 10908 | esac |
| 10909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10910 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10911 | ac_status=$? |
| 10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10913 | (exit $ac_status); }; } && |
| 10914 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10915 | { (case "(($ac_try" in |
| 10916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10917 | *) ac_try_echo=$ac_try;; |
| 10918 | esac |
| 10919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10920 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10921 | ac_status=$? |
| 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10923 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10924 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10925 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10926 | echo "$as_me: failed program was:" >&5 |
| 10927 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10929 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10930 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10931 | |
| 10932 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10933 | conftest$ac_exeext conftest.$ac_ext |
| 10934 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10935 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10936 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10937 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10938 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10939 | |
| 10940 | |
| 10941 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10942 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10943 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10944 | acl_save_prefix="$prefix" |
| 10945 | prefix="$acl_final_prefix" |
| 10946 | acl_save_exec_prefix="$exec_prefix" |
| 10947 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10948 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10949 | eval additional_includedir=\"$includedir\" |
| 10950 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10951 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10952 | exec_prefix="$acl_save_exec_prefix" |
| 10953 | prefix="$acl_save_prefix" |
| 10954 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10955 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10956 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10957 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10958 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10959 | if test "X$withval" = "Xno"; then |
| 10960 | use_additional=no |
| 10961 | else |
| 10962 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10963 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10964 | acl_save_prefix="$prefix" |
| 10965 | prefix="$acl_final_prefix" |
| 10966 | acl_save_exec_prefix="$exec_prefix" |
| 10967 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10968 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10969 | eval additional_includedir=\"$includedir\" |
| 10970 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10971 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10972 | exec_prefix="$acl_save_exec_prefix" |
| 10973 | prefix="$acl_save_prefix" |
| 10974 | |
| 10975 | else |
| 10976 | additional_includedir="$withval/include" |
| 10977 | additional_libdir="$withval/lib" |
| 10978 | fi |
| 10979 | fi |
| 10980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10981 | fi |
| 10982 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10983 | LIBINTL= |
| 10984 | LTLIBINTL= |
| 10985 | INCINTL= |
| 10986 | rpathdirs= |
| 10987 | ltrpathdirs= |
| 10988 | names_already_handled= |
| 10989 | names_next_round='intl ' |
| 10990 | while test -n "$names_next_round"; do |
| 10991 | names_this_round="$names_next_round" |
| 10992 | names_next_round= |
| 10993 | for name in $names_this_round; do |
| 10994 | already_handled= |
| 10995 | for n in $names_already_handled; do |
| 10996 | if test "$n" = "$name"; then |
| 10997 | already_handled=yes |
| 10998 | break |
| 10999 | fi |
| 11000 | done |
| 11001 | if test -z "$already_handled"; then |
| 11002 | names_already_handled="$names_already_handled $name" |
| 11003 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 11004 | eval value=\"\$HAVE_LIB$uppername\" |
| 11005 | if test -n "$value"; then |
| 11006 | if test "$value" = yes; then |
| 11007 | eval value=\"\$LIB$uppername\" |
| 11008 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 11009 | eval value=\"\$LTLIB$uppername\" |
| 11010 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 11011 | else |
| 11012 | : |
| 11013 | fi |
| 11014 | else |
| 11015 | found_dir= |
| 11016 | found_la= |
| 11017 | found_so= |
| 11018 | found_a= |
| 11019 | if test $use_additional = yes; then |
| 11020 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 11021 | found_dir="$additional_libdir" |
| 11022 | found_so="$additional_libdir/lib$name.$shlibext" |
| 11023 | if test -f "$additional_libdir/lib$name.la"; then |
| 11024 | found_la="$additional_libdir/lib$name.la" |
| 11025 | fi |
| 11026 | else |
| 11027 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 11028 | found_dir="$additional_libdir" |
| 11029 | found_a="$additional_libdir/lib$name.$libext" |
| 11030 | if test -f "$additional_libdir/lib$name.la"; then |
| 11031 | found_la="$additional_libdir/lib$name.la" |
| 11032 | fi |
| 11033 | fi |
| 11034 | fi |
| 11035 | fi |
| 11036 | if test "X$found_dir" = "X"; then |
| 11037 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11038 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11039 | acl_save_prefix="$prefix" |
| 11040 | prefix="$acl_final_prefix" |
| 11041 | acl_save_exec_prefix="$exec_prefix" |
| 11042 | exec_prefix="$acl_final_exec_prefix" |
| 11043 | eval x=\"$x\" |
| 11044 | exec_prefix="$acl_save_exec_prefix" |
| 11045 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11046 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11047 | case "$x" in |
| 11048 | -L*) |
| 11049 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 11050 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 11051 | found_dir="$dir" |
| 11052 | found_so="$dir/lib$name.$shlibext" |
| 11053 | if test -f "$dir/lib$name.la"; then |
| 11054 | found_la="$dir/lib$name.la" |
| 11055 | fi |
| 11056 | else |
| 11057 | if test -f "$dir/lib$name.$libext"; then |
| 11058 | found_dir="$dir" |
| 11059 | found_a="$dir/lib$name.$libext" |
| 11060 | if test -f "$dir/lib$name.la"; then |
| 11061 | found_la="$dir/lib$name.la" |
| 11062 | fi |
| 11063 | fi |
| 11064 | fi |
| 11065 | ;; |
| 11066 | esac |
| 11067 | if test "X$found_dir" != "X"; then |
| 11068 | break |
| 11069 | fi |
| 11070 | done |
| 11071 | fi |
| 11072 | if test "X$found_dir" != "X"; then |
| 11073 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11074 | if test "X$found_so" != "X"; then |
| 11075 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11076 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11077 | else |
| 11078 | haveit= |
| 11079 | for x in $ltrpathdirs; do |
| 11080 | if test "X$x" = "X$found_dir"; then |
| 11081 | haveit=yes |
| 11082 | break |
| 11083 | fi |
| 11084 | done |
| 11085 | if test -z "$haveit"; then |
| 11086 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11087 | fi |
| 11088 | if test "$hardcode_direct" = yes; then |
| 11089 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11090 | else |
| 11091 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11092 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11093 | haveit= |
| 11094 | for x in $rpathdirs; do |
| 11095 | if test "X$x" = "X$found_dir"; then |
| 11096 | haveit=yes |
| 11097 | break |
| 11098 | fi |
| 11099 | done |
| 11100 | if test -z "$haveit"; then |
| 11101 | rpathdirs="$rpathdirs $found_dir" |
| 11102 | fi |
| 11103 | else |
| 11104 | haveit= |
| 11105 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11106 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11107 | acl_save_prefix="$prefix" |
| 11108 | prefix="$acl_final_prefix" |
| 11109 | acl_save_exec_prefix="$exec_prefix" |
| 11110 | exec_prefix="$acl_final_exec_prefix" |
| 11111 | eval x=\"$x\" |
| 11112 | exec_prefix="$acl_save_exec_prefix" |
| 11113 | prefix="$acl_save_prefix" |
| 11114 | |
| 11115 | if test "X$x" = "X-L$found_dir"; then |
| 11116 | haveit=yes |
| 11117 | break |
| 11118 | fi |
| 11119 | done |
| 11120 | if test -z "$haveit"; then |
| 11121 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11122 | fi |
| 11123 | if test "$hardcode_minus_L" != no; then |
| 11124 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11125 | else |
| 11126 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11127 | fi |
| 11128 | fi |
| 11129 | fi |
| 11130 | fi |
| 11131 | else |
| 11132 | if test "X$found_a" != "X"; then |
| 11133 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11134 | else |
| 11135 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11136 | fi |
| 11137 | fi |
| 11138 | additional_includedir= |
| 11139 | case "$found_dir" in |
| 11140 | */lib | */lib/) |
| 11141 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11142 | additional_includedir="$basedir/include" |
| 11143 | ;; |
| 11144 | esac |
| 11145 | if test "X$additional_includedir" != "X"; then |
| 11146 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11147 | haveit= |
| 11148 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11149 | if test -n "$GCC"; then |
| 11150 | case $host_os in |
| 11151 | linux*) haveit=yes;; |
| 11152 | esac |
| 11153 | fi |
| 11154 | fi |
| 11155 | if test -z "$haveit"; then |
| 11156 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11157 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11158 | acl_save_prefix="$prefix" |
| 11159 | prefix="$acl_final_prefix" |
| 11160 | acl_save_exec_prefix="$exec_prefix" |
| 11161 | exec_prefix="$acl_final_exec_prefix" |
| 11162 | eval x=\"$x\" |
| 11163 | exec_prefix="$acl_save_exec_prefix" |
| 11164 | prefix="$acl_save_prefix" |
| 11165 | |
| 11166 | if test "X$x" = "X-I$additional_includedir"; then |
| 11167 | haveit=yes |
| 11168 | break |
| 11169 | fi |
| 11170 | done |
| 11171 | if test -z "$haveit"; then |
| 11172 | if test -d "$additional_includedir"; then |
| 11173 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11174 | fi |
| 11175 | fi |
| 11176 | fi |
| 11177 | fi |
| 11178 | fi |
| 11179 | if test -n "$found_la"; then |
| 11180 | save_libdir="$libdir" |
| 11181 | case "$found_la" in |
| 11182 | */* | *\\*) . "$found_la" ;; |
| 11183 | *) . "./$found_la" ;; |
| 11184 | esac |
| 11185 | libdir="$save_libdir" |
| 11186 | for dep in $dependency_libs; do |
| 11187 | case "$dep" in |
| 11188 | -L*) |
| 11189 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11190 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11191 | haveit= |
| 11192 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11193 | if test -n "$GCC"; then |
| 11194 | case $host_os in |
| 11195 | linux*) haveit=yes;; |
| 11196 | esac |
| 11197 | fi |
| 11198 | fi |
| 11199 | if test -z "$haveit"; then |
| 11200 | haveit= |
| 11201 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11202 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11203 | acl_save_prefix="$prefix" |
| 11204 | prefix="$acl_final_prefix" |
| 11205 | acl_save_exec_prefix="$exec_prefix" |
| 11206 | exec_prefix="$acl_final_exec_prefix" |
| 11207 | eval x=\"$x\" |
| 11208 | exec_prefix="$acl_save_exec_prefix" |
| 11209 | prefix="$acl_save_prefix" |
| 11210 | |
| 11211 | if test "X$x" = "X-L$additional_libdir"; then |
| 11212 | haveit=yes |
| 11213 | break |
| 11214 | fi |
| 11215 | done |
| 11216 | if test -z "$haveit"; then |
| 11217 | if test -d "$additional_libdir"; then |
| 11218 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11219 | fi |
| 11220 | fi |
| 11221 | haveit= |
| 11222 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11223 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11224 | acl_save_prefix="$prefix" |
| 11225 | prefix="$acl_final_prefix" |
| 11226 | acl_save_exec_prefix="$exec_prefix" |
| 11227 | exec_prefix="$acl_final_exec_prefix" |
| 11228 | eval x=\"$x\" |
| 11229 | exec_prefix="$acl_save_exec_prefix" |
| 11230 | prefix="$acl_save_prefix" |
| 11231 | |
| 11232 | if test "X$x" = "X-L$additional_libdir"; then |
| 11233 | haveit=yes |
| 11234 | break |
| 11235 | fi |
| 11236 | done |
| 11237 | if test -z "$haveit"; then |
| 11238 | if test -d "$additional_libdir"; then |
| 11239 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11240 | fi |
| 11241 | fi |
| 11242 | fi |
| 11243 | fi |
| 11244 | ;; |
| 11245 | -R*) |
| 11246 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11247 | if test "$enable_rpath" != no; then |
| 11248 | haveit= |
| 11249 | for x in $rpathdirs; do |
| 11250 | if test "X$x" = "X$dir"; then |
| 11251 | haveit=yes |
| 11252 | break |
| 11253 | fi |
| 11254 | done |
| 11255 | if test -z "$haveit"; then |
| 11256 | rpathdirs="$rpathdirs $dir" |
| 11257 | fi |
| 11258 | haveit= |
| 11259 | for x in $ltrpathdirs; do |
| 11260 | if test "X$x" = "X$dir"; then |
| 11261 | haveit=yes |
| 11262 | break |
| 11263 | fi |
| 11264 | done |
| 11265 | if test -z "$haveit"; then |
| 11266 | ltrpathdirs="$ltrpathdirs $dir" |
| 11267 | fi |
| 11268 | fi |
| 11269 | ;; |
| 11270 | -l*) |
| 11271 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11272 | ;; |
| 11273 | *.la) |
| 11274 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11275 | ;; |
| 11276 | *) |
| 11277 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11278 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11279 | ;; |
| 11280 | esac |
| 11281 | done |
| 11282 | fi |
| 11283 | else |
| 11284 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11285 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11286 | fi |
| 11287 | fi |
| 11288 | fi |
| 11289 | done |
| 11290 | done |
| 11291 | if test "X$rpathdirs" != "X"; then |
| 11292 | if test -n "$hardcode_libdir_separator"; then |
| 11293 | alldirs= |
| 11294 | for found_dir in $rpathdirs; do |
| 11295 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11296 | done |
| 11297 | acl_save_libdir="$libdir" |
| 11298 | libdir="$alldirs" |
| 11299 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11300 | libdir="$acl_save_libdir" |
| 11301 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11302 | else |
| 11303 | for found_dir in $rpathdirs; do |
| 11304 | acl_save_libdir="$libdir" |
| 11305 | libdir="$found_dir" |
| 11306 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11307 | libdir="$acl_save_libdir" |
| 11308 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11309 | done |
| 11310 | fi |
| 11311 | fi |
| 11312 | if test "X$ltrpathdirs" != "X"; then |
| 11313 | for found_dir in $ltrpathdirs; do |
| 11314 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11315 | done |
| 11316 | fi |
| 11317 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11318 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 11319 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11320 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 11321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11322 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11323 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11324 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11325 | gt_save_LIBS="$LIBS" |
| 11326 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11327 | cat >conftest.$ac_ext <<_ACEOF |
| 11328 | /* confdefs.h. */ |
| 11329 | _ACEOF |
| 11330 | cat confdefs.h >>conftest.$ac_ext |
| 11331 | cat >>conftest.$ac_ext <<_ACEOF |
| 11332 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11333 | #include <libintl.h> |
| 11334 | extern int _nl_msg_cat_cntr; |
| 11335 | extern |
| 11336 | #ifdef __cplusplus |
| 11337 | "C" |
| 11338 | #endif |
| 11339 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11340 | int |
| 11341 | main () |
| 11342 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11343 | bindtextdomain ("", ""); |
| 11344 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11345 | ; |
| 11346 | return 0; |
| 11347 | } |
| 11348 | _ACEOF |
| 11349 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11350 | if { (ac_try="$ac_link" |
| 11351 | case "(($ac_try" in |
| 11352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11353 | *) ac_try_echo=$ac_try;; |
| 11354 | esac |
| 11355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11356 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11357 | ac_status=$? |
| 11358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11359 | rm -f conftest.er1 |
| 11360 | cat conftest.err >&5 |
| 11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11362 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11364 | { (case "(($ac_try" in |
| 11365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11366 | *) ac_try_echo=$ac_try;; |
| 11367 | esac |
| 11368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11369 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | ac_status=$? |
| 11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11372 | (exit $ac_status); }; } && |
| 11373 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11374 | { (case "(($ac_try" in |
| 11375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11376 | *) ac_try_echo=$ac_try;; |
| 11377 | esac |
| 11378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11379 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11380 | ac_status=$? |
| 11381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11382 | (exit $ac_status); }; }; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11383 | gt_cv_func_gnugettext1_libintl=yes |
| 11384 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11385 | echo "$as_me: failed program was:" >&5 |
| 11386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11387 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11388 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11390 | |
| 11391 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11392 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11393 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 11394 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11395 | cat >conftest.$ac_ext <<_ACEOF |
| 11396 | /* confdefs.h. */ |
| 11397 | _ACEOF |
| 11398 | cat confdefs.h >>conftest.$ac_ext |
| 11399 | cat >>conftest.$ac_ext <<_ACEOF |
| 11400 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11401 | #include <libintl.h> |
| 11402 | extern int _nl_msg_cat_cntr; |
| 11403 | extern |
| 11404 | #ifdef __cplusplus |
| 11405 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11406 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11407 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11408 | int |
| 11409 | main () |
| 11410 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11411 | bindtextdomain ("", ""); |
| 11412 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11413 | ; |
| 11414 | return 0; |
| 11415 | } |
| 11416 | _ACEOF |
| 11417 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11418 | if { (ac_try="$ac_link" |
| 11419 | case "(($ac_try" in |
| 11420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11421 | *) ac_try_echo=$ac_try;; |
| 11422 | esac |
| 11423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11424 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11425 | ac_status=$? |
| 11426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11427 | rm -f conftest.er1 |
| 11428 | cat conftest.err >&5 |
| 11429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11430 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11432 | { (case "(($ac_try" in |
| 11433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11434 | *) ac_try_echo=$ac_try;; |
| 11435 | esac |
| 11436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11437 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11438 | ac_status=$? |
| 11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11440 | (exit $ac_status); }; } && |
| 11441 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11442 | { (case "(($ac_try" in |
| 11443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11444 | *) ac_try_echo=$ac_try;; |
| 11445 | esac |
| 11446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11447 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11448 | ac_status=$? |
| 11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11450 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11451 | LIBINTL="$LIBINTL $LIBICONV" |
| 11452 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11453 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11454 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11455 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11456 | echo "$as_me: failed program was:" >&5 |
| 11457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11459 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11460 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11461 | |
| 11462 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11463 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11464 | fi |
| 11465 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11466 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11467 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11468 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 11469 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11470 | fi |
| 11471 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11472 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 11473 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11474 | && test "$PACKAGE" != gettext-runtime \ |
| 11475 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11476 | gt_use_preinstalled_gnugettext=yes |
| 11477 | else |
| 11478 | LIBINTL= |
| 11479 | LTLIBINTL= |
| 11480 | INCINTL= |
| 11481 | fi |
| 11482 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11484 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11485 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11486 | fi |
| 11487 | fi |
| 11488 | |
| 11489 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11490 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11491 | USE_INCLUDED_LIBINTL=yes |
| 11492 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 11493 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 11494 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11495 | fi |
| 11496 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11497 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11498 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11499 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11500 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11501 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11502 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11503 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11504 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11505 | |
| 11506 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11507 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11508 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11509 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11510 | else |
| 11511 | USE_NLS=no |
| 11512 | fi |
| 11513 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11514 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11515 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 11516 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 11517 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11518 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11519 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11520 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 11521 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11522 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11523 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11524 | gt_source="external libintl" |
| 11525 | else |
| 11526 | gt_source="libc" |
| 11527 | fi |
| 11528 | else |
| 11529 | gt_source="included intl directory" |
| 11530 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11531 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 11532 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11533 | fi |
| 11534 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11535 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11536 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11537 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11538 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11539 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 11540 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 11541 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 11542 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11543 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11544 | for element in $INCINTL; do |
| 11545 | haveit= |
| 11546 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11547 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11548 | acl_save_prefix="$prefix" |
| 11549 | prefix="$acl_final_prefix" |
| 11550 | acl_save_exec_prefix="$exec_prefix" |
| 11551 | exec_prefix="$acl_final_exec_prefix" |
| 11552 | eval x=\"$x\" |
| 11553 | exec_prefix="$acl_save_exec_prefix" |
| 11554 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11556 | if test "X$x" = "X$element"; then |
| 11557 | haveit=yes |
| 11558 | break |
| 11559 | fi |
| 11560 | done |
| 11561 | if test -z "$haveit"; then |
| 11562 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11563 | fi |
| 11564 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11565 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11566 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11567 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11568 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11569 | cat >>confdefs.h <<\_ACEOF |
| 11570 | #define HAVE_GETTEXT 1 |
| 11571 | _ACEOF |
| 11572 | |
| 11573 | |
| 11574 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11575 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11576 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11577 | |
| 11578 | fi |
| 11579 | |
| 11580 | POSUB=po |
| 11581 | fi |
| 11582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11583 | |
| 11584 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11585 | BUILD_INCLUDED_LIBINTL=yes |
| 11586 | fi |
| 11587 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11588 | |
| 11589 | |
| 11590 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11591 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11592 | nls_cv_header_intl= |
| 11593 | nls_cv_header_libgt= |
| 11594 | |
| 11595 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11597 | |
| 11598 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11599 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11600 | |
| 11601 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11602 | |
| 11603 | |
| 11604 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 11605 | INTLOBJS="\$(GETTOBJS)" |
| 11606 | fi |
| 11607 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11608 | |
| 11609 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11610 | |
| 11611 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11612 | |
| 11613 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11614 | |
| 11615 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11616 | |
| 11617 | |
| 11618 | |
| 11619 | |
| 11620 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11621 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 11622 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 11623 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 11624 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11626 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11627 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11628 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11629 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11630 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11631 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11632 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11633 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11634 | *@@@%%%=?*=@@@%%%*) |
| 11635 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11636 | *) |
| 11637 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11638 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11639 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11641 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 11642 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11643 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11644 | SET_MAKE= |
| 11645 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11646 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11647 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11648 | SET_MAKE="MAKE=${MAKE-make}" |
| 11649 | fi |
| 11650 | |
| 11651 | # Extract the first word of "ln", so it can be a program name with args. |
| 11652 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11653 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11655 | if test "${ac_cv_path_LN+set}" = set; then |
| 11656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11657 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11658 | case $LN in |
| 11659 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11660 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11661 | ;; |
| 11662 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11664 | for as_dir in $PATH |
| 11665 | do |
| 11666 | IFS=$as_save_IFS |
| 11667 | test -z "$as_dir" && as_dir=. |
| 11668 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11670 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 11671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11672 | break 2 |
| 11673 | fi |
| 11674 | done |
| 11675 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11676 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11677 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11678 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11679 | ;; |
| 11680 | esac |
| 11681 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11682 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11683 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11684 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 11685 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11686 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11687 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11688 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11689 | fi |
| 11690 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11691 | |
| 11692 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 11693 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11694 | LN_S=$as_ln_s |
| 11695 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11696 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11697 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11698 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11699 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 11700 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11701 | fi |
| 11702 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11703 | # Extract the first word of "mv", so it can be a program name with args. |
| 11704 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11707 | if test "${ac_cv_path_MV+set}" = set; then |
| 11708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11709 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11710 | case $MV in |
| 11711 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11712 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11713 | ;; |
| 11714 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11716 | for as_dir in $PATH |
| 11717 | do |
| 11718 | IFS=$as_save_IFS |
| 11719 | test -z "$as_dir" && as_dir=. |
| 11720 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11722 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 11723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11724 | break 2 |
| 11725 | fi |
| 11726 | done |
| 11727 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11728 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11729 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11730 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11731 | ;; |
| 11732 | esac |
| 11733 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11734 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11735 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11736 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 11737 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11738 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11739 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11740 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11741 | fi |
| 11742 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11743 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11744 | # Extract the first word of "cp", so it can be a program name with args. |
| 11745 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11748 | if test "${ac_cv_path_CP+set}" = set; then |
| 11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11750 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11751 | case $CP in |
| 11752 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11753 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11754 | ;; |
| 11755 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11757 | for as_dir in $PATH |
| 11758 | do |
| 11759 | IFS=$as_save_IFS |
| 11760 | test -z "$as_dir" && as_dir=. |
| 11761 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11763 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 11764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11765 | break 2 |
| 11766 | fi |
| 11767 | done |
| 11768 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11769 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11770 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11771 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11772 | ;; |
| 11773 | esac |
| 11774 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11775 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11776 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11777 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 11778 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11779 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11780 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11781 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11782 | fi |
| 11783 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11784 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11785 | # Extract the first word of "rm", so it can be a program name with args. |
| 11786 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11787 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11789 | if test "${ac_cv_path_RM+set}" = set; then |
| 11790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11791 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11792 | case $RM in |
| 11793 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11794 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11795 | ;; |
| 11796 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11798 | for as_dir in $PATH |
| 11799 | do |
| 11800 | IFS=$as_save_IFS |
| 11801 | test -z "$as_dir" && as_dir=. |
| 11802 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11804 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 11805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11806 | break 2 |
| 11807 | fi |
| 11808 | done |
| 11809 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11810 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11811 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11812 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11813 | ;; |
| 11814 | esac |
| 11815 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11816 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11817 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11818 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 11819 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11820 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11821 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11822 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11823 | fi |
| 11824 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11825 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11826 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11827 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11828 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11830 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 11831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11832 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11833 | case $CHMOD in |
| 11834 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11835 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11836 | ;; |
| 11837 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11839 | for as_dir in $PATH |
| 11840 | do |
| 11841 | IFS=$as_save_IFS |
| 11842 | test -z "$as_dir" && as_dir=. |
| 11843 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11845 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 11846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11847 | break 2 |
| 11848 | fi |
| 11849 | done |
| 11850 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11851 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11852 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11853 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11854 | ;; |
| 11855 | esac |
| 11856 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11857 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11858 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11859 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11860 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11861 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11862 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11863 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11864 | fi |
| 11865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11866 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11867 | for ac_prog in gawk mawk nawk awk |
| 11868 | do |
| 11869 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11870 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11871 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11873 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11875 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11876 | if test -n "$AWK"; then |
| 11877 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11878 | else |
| 11879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11880 | for as_dir in $PATH |
| 11881 | do |
| 11882 | IFS=$as_save_IFS |
| 11883 | test -z "$as_dir" && as_dir=. |
| 11884 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11886 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11888 | break 2 |
| 11889 | fi |
| 11890 | done |
| 11891 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11892 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11893 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11894 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11895 | fi |
| 11896 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11897 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11898 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11899 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11900 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11901 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11902 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11903 | fi |
| 11904 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11905 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11906 | test -n "$AWK" && break |
| 11907 | done |
| 11908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11909 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11910 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 11911 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11913 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11914 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11915 | then ac_cv_path_EGREP="$GREP -E" |
| 11916 | else |
| 11917 | # Extract the first word of "egrep" to use in msg output |
| 11918 | if test -z "$EGREP"; then |
| 11919 | set dummy egrep; ac_prog_name=$2 |
| 11920 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 11921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11922 | else |
| 11923 | ac_path_EGREP_found=false |
| 11924 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11926 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11927 | do |
| 11928 | IFS=$as_save_IFS |
| 11929 | test -z "$as_dir" && as_dir=. |
| 11930 | for ac_prog in egrep; do |
| 11931 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11932 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 11933 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 11934 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 11935 | # Check for GNU $ac_path_EGREP |
| 11936 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11937 | *GNU*) |
| 11938 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11939 | *) |
| 11940 | ac_count=0 |
| 11941 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 11942 | while : |
| 11943 | do |
| 11944 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11945 | mv "conftest.tmp" "conftest.in" |
| 11946 | cp "conftest.in" "conftest.nl" |
| 11947 | echo 'EGREP' >> "conftest.nl" |
| 11948 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11949 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11950 | ac_count=`expr $ac_count + 1` |
| 11951 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11952 | # Best one so far, save it but keep looking for a better one |
| 11953 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11954 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11955 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11956 | # 10*(2^10) chars as input seems more than enough |
| 11957 | test $ac_count -gt 10 && break |
| 11958 | done |
| 11959 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11960 | esac |
| 11961 | |
| 11962 | |
| 11963 | $ac_path_EGREP_found && break 3 |
| 11964 | done |
| 11965 | done |
| 11966 | |
| 11967 | done |
| 11968 | IFS=$as_save_IFS |
| 11969 | |
| 11970 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11971 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11972 | |
| 11973 | EGREP="$ac_cv_path_EGREP" |
| 11974 | if test -z "$EGREP"; then |
| 11975 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11976 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11977 | { (exit 1); exit 1; }; } |
| 11978 | fi |
| 11979 | |
| 11980 | else |
| 11981 | ac_cv_path_EGREP=$EGREP |
| 11982 | fi |
| 11983 | |
| 11984 | |
| 11985 | fi |
| 11986 | fi |
| 11987 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11988 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11989 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11990 | |
| 11991 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11992 | # Extract the first word of "sed", so it can be a program name with args. |
| 11993 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11994 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | if test "${ac_cv_path_SED+set}" = set; then |
| 11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11998 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11999 | case $SED in |
| 12000 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12001 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 12002 | ;; |
| 12003 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12005 | for as_dir in $PATH |
| 12006 | do |
| 12007 | IFS=$as_save_IFS |
| 12008 | test -z "$as_dir" && as_dir=. |
| 12009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12011 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 12012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12013 | break 2 |
| 12014 | fi |
| 12015 | done |
| 12016 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12017 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12019 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 12020 | ;; |
| 12021 | esac |
| 12022 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12024 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12025 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12026 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12027 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12028 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12029 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12030 | fi |
| 12031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12032 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12033 | # Extract the first word of "perl", so it can be a program name with args. |
| 12034 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12035 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12037 | if test "${ac_cv_path_PERL+set}" = set; then |
| 12038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12039 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12040 | case $PERL in |
| 12041 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12042 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 12043 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12044 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12046 | for as_dir in $PATH |
| 12047 | do |
| 12048 | IFS=$as_save_IFS |
| 12049 | test -z "$as_dir" && as_dir=. |
| 12050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12052 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 12053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12054 | break 2 |
| 12055 | fi |
| 12056 | done |
| 12057 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12058 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12059 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12060 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 12061 | ;; |
| 12062 | esac |
| 12063 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12064 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12065 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12066 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 12067 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12068 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12069 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12070 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12071 | fi |
| 12072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12073 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12074 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 12075 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12078 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 12079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12080 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12081 | case $LDCONFIG in |
| 12082 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12083 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 12084 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12085 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12087 | for as_dir in $PATH |
| 12088 | do |
| 12089 | IFS=$as_save_IFS |
| 12090 | test -z "$as_dir" && as_dir=. |
| 12091 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12093 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12095 | break 2 |
| 12096 | fi |
| 12097 | done |
| 12098 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12099 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12100 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12101 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 12102 | ;; |
| 12103 | esac |
| 12104 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12105 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12106 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12107 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 12108 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12109 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12110 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12111 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12112 | fi |
| 12113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12115 | if test -n "$ac_tool_prefix"; then |
| 12116 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12117 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12118 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12120 | if test "${ac_cv_prog_AR+set}" = set; then |
| 12121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12122 | else |
| 12123 | if test -n "$AR"; then |
| 12124 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12125 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12127 | for as_dir in $PATH |
| 12128 | do |
| 12129 | IFS=$as_save_IFS |
| 12130 | test -z "$as_dir" && as_dir=. |
| 12131 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12133 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 12134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12135 | break 2 |
| 12136 | fi |
| 12137 | done |
| 12138 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12139 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12140 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12141 | fi |
| 12142 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12143 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12144 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12145 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 12146 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12147 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12148 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12149 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12150 | fi |
| 12151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12152 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12153 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12154 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12155 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12156 | # Extract the first word of "ar", so it can be a program name with args. |
| 12157 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12158 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12160 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12162 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12163 | if test -n "$ac_ct_AR"; then |
| 12164 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12165 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12167 | for as_dir in $PATH |
| 12168 | do |
| 12169 | IFS=$as_save_IFS |
| 12170 | test -z "$as_dir" && as_dir=. |
| 12171 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12173 | ac_cv_prog_ac_ct_AR="ar" |
| 12174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12175 | break 2 |
| 12176 | fi |
| 12177 | done |
| 12178 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12179 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12180 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12181 | fi |
| 12182 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12183 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12184 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12185 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 12186 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12187 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12188 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12189 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12190 | fi |
| 12191 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12192 | if test "x$ac_ct_AR" = x; then |
| 12193 | AR="ar" |
| 12194 | else |
| 12195 | case $cross_compiling:$ac_tool_warned in |
| 12196 | yes:) |
| 12197 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12198 | whose name does not start with the host triplet. If you think this |
| 12199 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12200 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12201 | whose name does not start with the host triplet. If you think this |
| 12202 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12203 | ac_tool_warned=yes ;; |
| 12204 | esac |
| 12205 | AR=$ac_ct_AR |
| 12206 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12207 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12208 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12209 | fi |
| 12210 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12211 | if test -n "$ac_tool_prefix"; then |
| 12212 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12213 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12214 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12215 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12216 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 12217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12218 | else |
| 12219 | if test -n "$RANLIB"; then |
| 12220 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12221 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12223 | for as_dir in $PATH |
| 12224 | do |
| 12225 | IFS=$as_save_IFS |
| 12226 | test -z "$as_dir" && as_dir=. |
| 12227 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12229 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 12230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12231 | break 2 |
| 12232 | fi |
| 12233 | done |
| 12234 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12235 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12236 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12237 | fi |
| 12238 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12239 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12240 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12241 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 12242 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12243 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12244 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12245 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12246 | fi |
| 12247 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12248 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12250 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12251 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12252 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12253 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12254 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12256 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 12257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12258 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12259 | if test -n "$ac_ct_RANLIB"; then |
| 12260 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12261 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12263 | for as_dir in $PATH |
| 12264 | do |
| 12265 | IFS=$as_save_IFS |
| 12266 | test -z "$as_dir" && as_dir=. |
| 12267 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12269 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 12270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12271 | break 2 |
| 12272 | fi |
| 12273 | done |
| 12274 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12275 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12276 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12277 | fi |
| 12278 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12279 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12280 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12281 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 12282 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12283 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12284 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12285 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12286 | fi |
| 12287 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12288 | if test "x$ac_ct_RANLIB" = x; then |
| 12289 | RANLIB=":" |
| 12290 | else |
| 12291 | case $cross_compiling:$ac_tool_warned in |
| 12292 | yes:) |
| 12293 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12294 | whose name does not start with the host triplet. If you think this |
| 12295 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12296 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12297 | whose name does not start with the host triplet. If you think this |
| 12298 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12299 | ac_tool_warned=yes ;; |
| 12300 | esac |
| 12301 | RANLIB=$ac_ct_RANLIB |
| 12302 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12303 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12304 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12305 | fi |
| 12306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12307 | if test -n "$ac_tool_prefix"; then |
| 12308 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12309 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12312 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 12313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12314 | else |
| 12315 | if test -n "$STRIP"; then |
| 12316 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12317 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12319 | for as_dir in $PATH |
| 12320 | do |
| 12321 | IFS=$as_save_IFS |
| 12322 | test -z "$as_dir" && as_dir=. |
| 12323 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12325 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 12326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12327 | break 2 |
| 12328 | fi |
| 12329 | done |
| 12330 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12331 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12332 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12333 | fi |
| 12334 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12335 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12336 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12337 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 12338 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12339 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12340 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12341 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12342 | fi |
| 12343 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12344 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12345 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12346 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12347 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12348 | # Extract the first word of "strip", so it can be a program name with args. |
| 12349 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12350 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12352 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 12353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12354 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12355 | if test -n "$ac_ct_STRIP"; then |
| 12356 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12357 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12359 | for as_dir in $PATH |
| 12360 | do |
| 12361 | IFS=$as_save_IFS |
| 12362 | test -z "$as_dir" && as_dir=. |
| 12363 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12365 | ac_cv_prog_ac_ct_STRIP="strip" |
| 12366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12367 | break 2 |
| 12368 | fi |
| 12369 | done |
| 12370 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12371 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12372 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12373 | fi |
| 12374 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12375 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12376 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12377 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 12378 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12379 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12380 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12381 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12382 | fi |
| 12383 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12384 | if test "x$ac_ct_STRIP" = x; then |
| 12385 | STRIP=":" |
| 12386 | else |
| 12387 | case $cross_compiling:$ac_tool_warned in |
| 12388 | yes:) |
| 12389 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12390 | whose name does not start with the host triplet. If you think this |
| 12391 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12392 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12393 | whose name does not start with the host triplet. If you think this |
| 12394 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12395 | ac_tool_warned=yes ;; |
| 12396 | esac |
| 12397 | STRIP=$ac_ct_STRIP |
| 12398 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12400 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12401 | fi |
| 12402 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12403 | # Find a good install program. We prefer a C program (faster), |
| 12404 | # so one script is as good as another. But avoid the broken or |
| 12405 | # incompatible versions: |
| 12406 | # SysV /etc/install, /usr/sbin/install |
| 12407 | # SunOS /usr/etc/install |
| 12408 | # IRIX /sbin/install |
| 12409 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12410 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12411 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12412 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 12413 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12414 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12415 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12416 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 12417 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12418 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12419 | if test "${ac_cv_path_install+set}" = set; then |
| 12420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12421 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12423 | for as_dir in $PATH |
| 12424 | do |
| 12425 | IFS=$as_save_IFS |
| 12426 | test -z "$as_dir" && as_dir=. |
| 12427 | # Account for people who put trailing slashes in PATH elements. |
| 12428 | case $as_dir/ in |
| 12429 | ./ | .// | /cC/* | \ |
| 12430 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 12431 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 12432 | /usr/ucb/* ) ;; |
| 12433 | *) |
| 12434 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 12435 | # Don't use installbsd from OSF since it installs stuff as root |
| 12436 | # by default. |
| 12437 | for ac_prog in ginstall scoinst install; do |
| 12438 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12439 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12440 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12441 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12442 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12443 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12444 | elif test $ac_prog = install && |
| 12445 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 12446 | # program-specific install script used by HP pwplus--don't use. |
| 12447 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12448 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12449 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 12450 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12451 | fi |
| 12452 | fi |
| 12453 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12454 | done |
| 12455 | ;; |
| 12456 | esac |
| 12457 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12458 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12460 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12461 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12462 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12463 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12464 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12465 | # As a last resort, use the slow shell script. Don't cache a |
| 12466 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12467 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12468 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12469 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12470 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12471 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12472 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 12473 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12474 | |
| 12475 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 12476 | # It thinks the first close brace ends the variable substitution. |
| 12477 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 12478 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12479 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12480 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12481 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 12482 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12483 | # See if we need a separate native compiler. |
| 12484 | if test $cross_compiling = no; then |
| 12485 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12486 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12487 | else |
| 12488 | for ac_prog in gcc cc |
| 12489 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12490 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12491 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12494 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 12495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12496 | else |
| 12497 | if test -n "$BUILD_CC"; then |
| 12498 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12499 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12501 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12502 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12503 | IFS=$as_save_IFS |
| 12504 | test -z "$as_dir" && as_dir=. |
| 12505 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12507 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 12508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12509 | break 2 |
| 12510 | fi |
| 12511 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12512 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12513 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12514 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12515 | fi |
| 12516 | fi |
| 12517 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12518 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12519 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 12520 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12521 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12522 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12523 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12524 | fi |
| 12525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12526 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12527 | test -n "$BUILD_CC" && break |
| 12528 | done |
| 12529 | |
| 12530 | fi |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | |
| 12547 | |
| 12548 | |
| 12549 | |
| 12550 | |
| 12551 | |
| 12552 | |
| 12553 | |
| 12554 | |
| 12555 | |
| 12556 | |
| 12557 | |
| 12558 | |
| 12559 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 12560 | |
| 12561 | for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12562 | do |
| 12563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12565 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12567 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12569 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12570 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12571 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12572 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12573 | else |
| 12574 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12575 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12576 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12577 | cat >conftest.$ac_ext <<_ACEOF |
| 12578 | /* confdefs.h. */ |
| 12579 | _ACEOF |
| 12580 | cat confdefs.h >>conftest.$ac_ext |
| 12581 | cat >>conftest.$ac_ext <<_ACEOF |
| 12582 | /* end confdefs.h. */ |
| 12583 | $ac_includes_default |
| 12584 | #include <$ac_header> |
| 12585 | _ACEOF |
| 12586 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12587 | if { (ac_try="$ac_compile" |
| 12588 | case "(($ac_try" in |
| 12589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12590 | *) ac_try_echo=$ac_try;; |
| 12591 | esac |
| 12592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12593 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12594 | ac_status=$? |
| 12595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12596 | rm -f conftest.er1 |
| 12597 | cat conftest.err >&5 |
| 12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12599 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12601 | { (case "(($ac_try" in |
| 12602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12603 | *) ac_try_echo=$ac_try;; |
| 12604 | esac |
| 12605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12606 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | ac_status=$? |
| 12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12609 | (exit $ac_status); }; } && |
| 12610 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12611 | { (case "(($ac_try" in |
| 12612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12613 | *) ac_try_echo=$ac_try;; |
| 12614 | esac |
| 12615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12616 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12617 | ac_status=$? |
| 12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12619 | (exit $ac_status); }; }; then |
| 12620 | ac_header_compiler=yes |
| 12621 | else |
| 12622 | echo "$as_me: failed program was:" >&5 |
| 12623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12624 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12625 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12626 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12627 | |
| 12628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12629 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12630 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12631 | |
| 12632 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12633 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12634 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12635 | cat >conftest.$ac_ext <<_ACEOF |
| 12636 | /* confdefs.h. */ |
| 12637 | _ACEOF |
| 12638 | cat confdefs.h >>conftest.$ac_ext |
| 12639 | cat >>conftest.$ac_ext <<_ACEOF |
| 12640 | /* end confdefs.h. */ |
| 12641 | #include <$ac_header> |
| 12642 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12643 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12644 | case "(($ac_try" in |
| 12645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12646 | *) ac_try_echo=$ac_try;; |
| 12647 | esac |
| 12648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12649 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12650 | ac_status=$? |
| 12651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12652 | rm -f conftest.er1 |
| 12653 | cat conftest.err >&5 |
| 12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12655 | (exit $ac_status); } >/dev/null; then |
| 12656 | if test -s conftest.err; then |
| 12657 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12659 | else |
| 12660 | ac_cpp_err= |
| 12661 | fi |
| 12662 | else |
| 12663 | ac_cpp_err=yes |
| 12664 | fi |
| 12665 | if test -z "$ac_cpp_err"; then |
| 12666 | ac_header_preproc=yes |
| 12667 | else |
| 12668 | echo "$as_me: failed program was:" >&5 |
| 12669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12670 | |
| 12671 | ac_header_preproc=no |
| 12672 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12673 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12674 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12675 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12676 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12677 | |
| 12678 | # So? What about this header? |
| 12679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12680 | yes:no: ) |
| 12681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12685 | ac_header_preproc=yes |
| 12686 | ;; |
| 12687 | no:yes:* ) |
| 12688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12690 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12691 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12694 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12695 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12699 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12700 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12701 | ;; |
| 12702 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12703 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12707 | else |
| 12708 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12709 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12710 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12711 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12712 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12713 | |
| 12714 | fi |
| 12715 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12716 | cat >>confdefs.h <<_ACEOF |
| 12717 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12718 | _ACEOF |
| 12719 | |
| 12720 | fi |
| 12721 | |
| 12722 | done |
| 12723 | |
| 12724 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12725 | |
| 12726 | for ac_header in sys/disk.h sys/mount.h |
| 12727 | do |
| 12728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12729 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12731 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12733 | else |
| 12734 | cat >conftest.$ac_ext <<_ACEOF |
| 12735 | /* confdefs.h. */ |
| 12736 | _ACEOF |
| 12737 | cat confdefs.h >>conftest.$ac_ext |
| 12738 | cat >>conftest.$ac_ext <<_ACEOF |
| 12739 | /* end confdefs.h. */ |
| 12740 | |
| 12741 | #if HAVE_SYS_QUEUE_H |
| 12742 | #include <sys/queue.h> |
| 12743 | #endif |
| 12744 | |
| 12745 | |
| 12746 | #include <$ac_header> |
| 12747 | _ACEOF |
| 12748 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12749 | if { (ac_try="$ac_compile" |
| 12750 | case "(($ac_try" in |
| 12751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12752 | *) ac_try_echo=$ac_try;; |
| 12753 | esac |
| 12754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12755 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12756 | ac_status=$? |
| 12757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12758 | rm -f conftest.er1 |
| 12759 | cat conftest.err >&5 |
| 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12761 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12763 | { (case "(($ac_try" in |
| 12764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12765 | *) ac_try_echo=$ac_try;; |
| 12766 | esac |
| 12767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12768 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12769 | ac_status=$? |
| 12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12771 | (exit $ac_status); }; } && |
| 12772 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12773 | { (case "(($ac_try" in |
| 12774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12775 | *) ac_try_echo=$ac_try;; |
| 12776 | esac |
| 12777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12778 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12779 | ac_status=$? |
| 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12781 | (exit $ac_status); }; }; then |
| 12782 | eval "$as_ac_Header=yes" |
| 12783 | else |
| 12784 | echo "$as_me: failed program was:" >&5 |
| 12785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12787 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12788 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12789 | |
| 12790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12794 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12796 | cat >>confdefs.h <<_ACEOF |
| 12797 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12798 | _ACEOF |
| 12799 | |
| 12800 | fi |
| 12801 | |
| 12802 | done |
| 12803 | |
| 12804 | |
| 12805 | for ac_header in net/if.h |
| 12806 | do |
| 12807 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12808 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12810 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12812 | else |
| 12813 | cat >conftest.$ac_ext <<_ACEOF |
| 12814 | /* confdefs.h. */ |
| 12815 | _ACEOF |
| 12816 | cat confdefs.h >>conftest.$ac_ext |
| 12817 | cat >>conftest.$ac_ext <<_ACEOF |
| 12818 | /* end confdefs.h. */ |
| 12819 | |
| 12820 | #if HAVE_SYS_TYPES_H |
| 12821 | #include <sys/types.h> |
| 12822 | #endif |
| 12823 | #if HAVE_SYS_SOCKET |
| 12824 | #include <sys/socket.h> |
| 12825 | #endif |
| 12826 | |
| 12827 | |
| 12828 | #include <$ac_header> |
| 12829 | _ACEOF |
| 12830 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12831 | if { (ac_try="$ac_compile" |
| 12832 | case "(($ac_try" in |
| 12833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12834 | *) ac_try_echo=$ac_try;; |
| 12835 | esac |
| 12836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12837 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12838 | ac_status=$? |
| 12839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12840 | rm -f conftest.er1 |
| 12841 | cat conftest.err >&5 |
| 12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12843 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12845 | { (case "(($ac_try" in |
| 12846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12847 | *) ac_try_echo=$ac_try;; |
| 12848 | esac |
| 12849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12850 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12851 | ac_status=$? |
| 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12853 | (exit $ac_status); }; } && |
| 12854 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12855 | { (case "(($ac_try" in |
| 12856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12857 | *) ac_try_echo=$ac_try;; |
| 12858 | esac |
| 12859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12860 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12861 | ac_status=$? |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); }; }; then |
| 12864 | eval "$as_ac_Header=yes" |
| 12865 | else |
| 12866 | echo "$as_me: failed program was:" >&5 |
| 12867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12869 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12870 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12871 | |
| 12872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12873 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12874 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12875 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12876 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12877 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12878 | cat >>confdefs.h <<_ACEOF |
| 12879 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12880 | _ACEOF |
| 12881 | |
| 12882 | fi |
| 12883 | |
| 12884 | done |
| 12885 | |
| 12886 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12887 | for ac_func in vprintf |
| 12888 | do |
| 12889 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12890 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12891 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12892 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12894 | else |
| 12895 | cat >conftest.$ac_ext <<_ACEOF |
| 12896 | /* confdefs.h. */ |
| 12897 | _ACEOF |
| 12898 | cat confdefs.h >>conftest.$ac_ext |
| 12899 | cat >>conftest.$ac_ext <<_ACEOF |
| 12900 | /* end confdefs.h. */ |
| 12901 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12903 | #define $ac_func innocuous_$ac_func |
| 12904 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12905 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12906 | which can conflict with char $ac_func (); below. |
| 12907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12908 | <limits.h> exists even on freestanding compilers. */ |
| 12909 | |
| 12910 | #ifdef __STDC__ |
| 12911 | # include <limits.h> |
| 12912 | #else |
| 12913 | # include <assert.h> |
| 12914 | #endif |
| 12915 | |
| 12916 | #undef $ac_func |
| 12917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12918 | /* Override any GCC internal prototype to avoid an error. |
| 12919 | Use char because int might match the return type of a GCC |
| 12920 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12921 | #ifdef __cplusplus |
| 12922 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12923 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12924 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12925 | /* The GNU C library defines this for functions which it implements |
| 12926 | to always fail with ENOSYS. Some functions are actually named |
| 12927 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12928 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12929 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12930 | #endif |
| 12931 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12932 | int |
| 12933 | main () |
| 12934 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12935 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12936 | ; |
| 12937 | return 0; |
| 12938 | } |
| 12939 | _ACEOF |
| 12940 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12941 | if { (ac_try="$ac_link" |
| 12942 | case "(($ac_try" in |
| 12943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12944 | *) ac_try_echo=$ac_try;; |
| 12945 | esac |
| 12946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12947 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12948 | ac_status=$? |
| 12949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12950 | rm -f conftest.er1 |
| 12951 | cat conftest.err >&5 |
| 12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12953 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12955 | { (case "(($ac_try" in |
| 12956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12957 | *) ac_try_echo=$ac_try;; |
| 12958 | esac |
| 12959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12960 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12961 | ac_status=$? |
| 12962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12963 | (exit $ac_status); }; } && |
| 12964 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12965 | { (case "(($ac_try" in |
| 12966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12967 | *) ac_try_echo=$ac_try;; |
| 12968 | esac |
| 12969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12970 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12971 | ac_status=$? |
| 12972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12973 | (exit $ac_status); }; }; then |
| 12974 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12975 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12976 | echo "$as_me: failed program was:" >&5 |
| 12977 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12978 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12979 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12980 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12981 | |
| 12982 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12983 | conftest$ac_exeext conftest.$ac_ext |
| 12984 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12985 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12986 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12987 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12988 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12989 | cat >>confdefs.h <<_ACEOF |
| 12990 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12991 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12993 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12994 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12995 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12997 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12998 | cat >conftest.$ac_ext <<_ACEOF |
| 12999 | /* confdefs.h. */ |
| 13000 | _ACEOF |
| 13001 | cat confdefs.h >>conftest.$ac_ext |
| 13002 | cat >>conftest.$ac_ext <<_ACEOF |
| 13003 | /* end confdefs.h. */ |
| 13004 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 13005 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13006 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13007 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13008 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13009 | which can conflict with char _doprnt (); below. |
| 13010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13011 | <limits.h> exists even on freestanding compilers. */ |
| 13012 | |
| 13013 | #ifdef __STDC__ |
| 13014 | # include <limits.h> |
| 13015 | #else |
| 13016 | # include <assert.h> |
| 13017 | #endif |
| 13018 | |
| 13019 | #undef _doprnt |
| 13020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13021 | /* Override any GCC internal prototype to avoid an error. |
| 13022 | Use char because int might match the return type of a GCC |
| 13023 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13024 | #ifdef __cplusplus |
| 13025 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13026 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13027 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13028 | /* The GNU C library defines this for functions which it implements |
| 13029 | to always fail with ENOSYS. Some functions are actually named |
| 13030 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13031 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13032 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13033 | #endif |
| 13034 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13035 | int |
| 13036 | main () |
| 13037 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13038 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13039 | ; |
| 13040 | return 0; |
| 13041 | } |
| 13042 | _ACEOF |
| 13043 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13044 | if { (ac_try="$ac_link" |
| 13045 | case "(($ac_try" in |
| 13046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13047 | *) ac_try_echo=$ac_try;; |
| 13048 | esac |
| 13049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13050 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13051 | ac_status=$? |
| 13052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13053 | rm -f conftest.er1 |
| 13054 | cat conftest.err >&5 |
| 13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13056 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13058 | { (case "(($ac_try" in |
| 13059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13060 | *) ac_try_echo=$ac_try;; |
| 13061 | esac |
| 13062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13063 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13064 | ac_status=$? |
| 13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13066 | (exit $ac_status); }; } && |
| 13067 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13068 | { (case "(($ac_try" in |
| 13069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13070 | *) ac_try_echo=$ac_try;; |
| 13071 | esac |
| 13072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13073 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13074 | ac_status=$? |
| 13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13076 | (exit $ac_status); }; }; then |
| 13077 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13078 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13079 | echo "$as_me: failed program was:" >&5 |
| 13080 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13082 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13083 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13084 | |
| 13085 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13086 | conftest$ac_exeext conftest.$ac_ext |
| 13087 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13088 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 13089 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13090 | if test $ac_cv_func__doprnt = yes; then |
| 13091 | |
| 13092 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13093 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13094 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13095 | |
| 13096 | fi |
| 13097 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13098 | fi |
| 13099 | done |
| 13100 | |
| 13101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13102 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 13103 | echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13104 | if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13106 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13107 | cat >conftest.$ac_ext <<_ACEOF |
| 13108 | /* confdefs.h. */ |
| 13109 | _ACEOF |
| 13110 | cat confdefs.h >>conftest.$ac_ext |
| 13111 | cat >>conftest.$ac_ext <<_ACEOF |
| 13112 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13113 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13115 | int |
| 13116 | main () |
| 13117 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13118 | static struct dirent ac_aggr; |
| 13119 | if (ac_aggr.d_reclen) |
| 13120 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13121 | ; |
| 13122 | return 0; |
| 13123 | } |
| 13124 | _ACEOF |
| 13125 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13126 | if { (ac_try="$ac_compile" |
| 13127 | case "(($ac_try" in |
| 13128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13129 | *) ac_try_echo=$ac_try;; |
| 13130 | esac |
| 13131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13132 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13133 | ac_status=$? |
| 13134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13135 | rm -f conftest.er1 |
| 13136 | cat conftest.err >&5 |
| 13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13138 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13140 | { (case "(($ac_try" in |
| 13141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13142 | *) ac_try_echo=$ac_try;; |
| 13143 | esac |
| 13144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13145 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13146 | ac_status=$? |
| 13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13148 | (exit $ac_status); }; } && |
| 13149 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13150 | { (case "(($ac_try" in |
| 13151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13152 | *) ac_try_echo=$ac_try;; |
| 13153 | esac |
| 13154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13155 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13156 | ac_status=$? |
| 13157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13158 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13159 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13160 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13161 | echo "$as_me: failed program was:" >&5 |
| 13162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13164 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13165 | /* confdefs.h. */ |
| 13166 | _ACEOF |
| 13167 | cat confdefs.h >>conftest.$ac_ext |
| 13168 | cat >>conftest.$ac_ext <<_ACEOF |
| 13169 | /* end confdefs.h. */ |
| 13170 | #include <dirent.h> |
| 13171 | |
| 13172 | int |
| 13173 | main () |
| 13174 | { |
| 13175 | static struct dirent ac_aggr; |
| 13176 | if (sizeof ac_aggr.d_reclen) |
| 13177 | return 0; |
| 13178 | ; |
| 13179 | return 0; |
| 13180 | } |
| 13181 | _ACEOF |
| 13182 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13183 | if { (ac_try="$ac_compile" |
| 13184 | case "(($ac_try" in |
| 13185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13186 | *) ac_try_echo=$ac_try;; |
| 13187 | esac |
| 13188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13189 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13190 | ac_status=$? |
| 13191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13192 | rm -f conftest.er1 |
| 13193 | cat conftest.err >&5 |
| 13194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13195 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13197 | { (case "(($ac_try" in |
| 13198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13199 | *) ac_try_echo=$ac_try;; |
| 13200 | esac |
| 13201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13202 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13203 | ac_status=$? |
| 13204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13205 | (exit $ac_status); }; } && |
| 13206 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13207 | { (case "(($ac_try" in |
| 13208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13209 | *) ac_try_echo=$ac_try;; |
| 13210 | esac |
| 13211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13212 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13213 | ac_status=$? |
| 13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13215 | (exit $ac_status); }; }; then |
| 13216 | ac_cv_member_struct_dirent_d_reclen=yes |
| 13217 | else |
| 13218 | echo "$as_me: failed program was:" >&5 |
| 13219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13220 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13221 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13222 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13223 | |
| 13224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13226 | |
| 13227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13229 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 13230 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13231 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 13232 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13233 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13234 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13235 | |
| 13236 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13237 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13238 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 13239 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13240 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13242 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13243 | cat >conftest.$ac_ext <<_ACEOF |
| 13244 | /* confdefs.h. */ |
| 13245 | _ACEOF |
| 13246 | cat confdefs.h >>conftest.$ac_ext |
| 13247 | cat >>conftest.$ac_ext <<_ACEOF |
| 13248 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13249 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13250 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13251 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13252 | int |
| 13253 | main () |
| 13254 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13255 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13256 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13257 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13258 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13259 | ; |
| 13260 | return 0; |
| 13261 | } |
| 13262 | _ACEOF |
| 13263 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13264 | if { (ac_try="$ac_compile" |
| 13265 | case "(($ac_try" in |
| 13266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13267 | *) ac_try_echo=$ac_try;; |
| 13268 | esac |
| 13269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13270 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13271 | ac_status=$? |
| 13272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13273 | rm -f conftest.er1 |
| 13274 | cat conftest.err >&5 |
| 13275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13276 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13278 | { (case "(($ac_try" in |
| 13279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13280 | *) ac_try_echo=$ac_try;; |
| 13281 | esac |
| 13282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13283 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13284 | ac_status=$? |
| 13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13286 | (exit $ac_status); }; } && |
| 13287 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13288 | { (case "(($ac_try" in |
| 13289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13290 | *) ac_try_echo=$ac_try;; |
| 13291 | esac |
| 13292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13293 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13294 | ac_status=$? |
| 13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13296 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13297 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13298 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13299 | echo "$as_me: failed program was:" >&5 |
| 13300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13302 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13303 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13304 | |
| 13305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13306 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13307 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 13308 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13309 | if test $ac_cv_type_ssize_t = yes; then |
| 13310 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13311 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13312 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13313 | |
| 13314 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13315 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13316 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 13317 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13318 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13320 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13321 | cat >conftest.$ac_ext <<_ACEOF |
| 13322 | /* confdefs.h. */ |
| 13323 | _ACEOF |
| 13324 | cat confdefs.h >>conftest.$ac_ext |
| 13325 | cat >>conftest.$ac_ext <<_ACEOF |
| 13326 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13327 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13329 | int |
| 13330 | main () |
| 13331 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13332 | #ifndef llseek |
| 13333 | char *p = (char *) llseek; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13334 | return !p; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13335 | #endif |
| 13336 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13337 | ; |
| 13338 | return 0; |
| 13339 | } |
| 13340 | _ACEOF |
| 13341 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13342 | if { (ac_try="$ac_compile" |
| 13343 | case "(($ac_try" in |
| 13344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13345 | *) ac_try_echo=$ac_try;; |
| 13346 | esac |
| 13347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13348 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13349 | ac_status=$? |
| 13350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13351 | rm -f conftest.er1 |
| 13352 | cat conftest.err >&5 |
| 13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13354 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13356 | { (case "(($ac_try" in |
| 13357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13358 | *) ac_try_echo=$ac_try;; |
| 13359 | esac |
| 13360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13361 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13362 | ac_status=$? |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); }; } && |
| 13365 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13366 | { (case "(($ac_try" in |
| 13367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13368 | *) ac_try_echo=$ac_try;; |
| 13369 | esac |
| 13370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13371 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13372 | ac_status=$? |
| 13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13374 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13375 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13376 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13377 | echo "$as_me: failed program was:" >&5 |
| 13378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13380 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13381 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13382 | |
| 13383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13385 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 13386 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13387 | if test $ac_cv_have_decl_llseek = yes; then |
| 13388 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13389 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13390 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13391 | |
| 13392 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13394 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 13395 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13396 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13398 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13399 | cat >conftest.$ac_ext <<_ACEOF |
| 13400 | /* confdefs.h. */ |
| 13401 | _ACEOF |
| 13402 | cat confdefs.h >>conftest.$ac_ext |
| 13403 | cat >>conftest.$ac_ext <<_ACEOF |
| 13404 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13405 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13406 | #define _LARGEFILE64_SOURCE |
| 13407 | #include <unistd.h> |
| 13408 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13409 | int |
| 13410 | main () |
| 13411 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13412 | #ifndef lseek64 |
| 13413 | char *p = (char *) lseek64; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13414 | return !p; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13415 | #endif |
| 13416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13417 | ; |
| 13418 | return 0; |
| 13419 | } |
| 13420 | _ACEOF |
| 13421 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13422 | if { (ac_try="$ac_compile" |
| 13423 | case "(($ac_try" in |
| 13424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13425 | *) ac_try_echo=$ac_try;; |
| 13426 | esac |
| 13427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13428 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13429 | ac_status=$? |
| 13430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13431 | rm -f conftest.er1 |
| 13432 | cat conftest.err >&5 |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13436 | { (case "(($ac_try" in |
| 13437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13438 | *) ac_try_echo=$ac_try;; |
| 13439 | esac |
| 13440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13441 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13442 | ac_status=$? |
| 13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); }; } && |
| 13445 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13446 | { (case "(($ac_try" in |
| 13447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13448 | *) ac_try_echo=$ac_try;; |
| 13449 | esac |
| 13450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13451 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13452 | ac_status=$? |
| 13453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13454 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13455 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13456 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13457 | echo "$as_me: failed program was:" >&5 |
| 13458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13459 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13460 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13461 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13462 | |
| 13463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13464 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13465 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 13466 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13467 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 13468 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13469 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13470 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13471 | |
| 13472 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13473 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13474 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13475 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13476 | ac_cv_sizeof_short=2 |
| 13477 | ac_cv_sizeof_int=4 |
| 13478 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 13479 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13480 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 13481 | echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13482 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13483 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 13484 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13485 | if test "${ac_cv_type_short+set}" = set; then |
| 13486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13487 | else |
| 13488 | cat >conftest.$ac_ext <<_ACEOF |
| 13489 | /* confdefs.h. */ |
| 13490 | _ACEOF |
| 13491 | cat confdefs.h >>conftest.$ac_ext |
| 13492 | cat >>conftest.$ac_ext <<_ACEOF |
| 13493 | /* end confdefs.h. */ |
| 13494 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13495 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13496 | int |
| 13497 | main () |
| 13498 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13499 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13500 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13501 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13502 | return 0; |
| 13503 | ; |
| 13504 | return 0; |
| 13505 | } |
| 13506 | _ACEOF |
| 13507 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13508 | if { (ac_try="$ac_compile" |
| 13509 | case "(($ac_try" in |
| 13510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13511 | *) ac_try_echo=$ac_try;; |
| 13512 | esac |
| 13513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13514 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13515 | ac_status=$? |
| 13516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13517 | rm -f conftest.er1 |
| 13518 | cat conftest.err >&5 |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13522 | { (case "(($ac_try" in |
| 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13524 | *) ac_try_echo=$ac_try;; |
| 13525 | esac |
| 13526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13527 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13528 | ac_status=$? |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); }; } && |
| 13531 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13532 | { (case "(($ac_try" in |
| 13533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13534 | *) ac_try_echo=$ac_try;; |
| 13535 | esac |
| 13536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13537 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13538 | ac_status=$? |
| 13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13540 | (exit $ac_status); }; }; then |
| 13541 | ac_cv_type_short=yes |
| 13542 | else |
| 13543 | echo "$as_me: failed program was:" >&5 |
| 13544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13546 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13547 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13550 | fi |
| 13551 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 13552 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 13553 | |
| 13554 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 13555 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13556 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 13557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13558 | else |
| 13559 | if test "$ac_cv_type_short" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13560 | # The cast to long int works around a bug in the HP C Compiler |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13561 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13562 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13563 | # This bug is HP SR number 8606223364. |
| 13564 | if test "$cross_compiling" = yes; then |
| 13565 | # Depending upon the size, compute the lo and hi bounds. |
| 13566 | cat >conftest.$ac_ext <<_ACEOF |
| 13567 | /* confdefs.h. */ |
| 13568 | _ACEOF |
| 13569 | cat confdefs.h >>conftest.$ac_ext |
| 13570 | cat >>conftest.$ac_ext <<_ACEOF |
| 13571 | /* end confdefs.h. */ |
| 13572 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13573 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13574 | int |
| 13575 | main () |
| 13576 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13577 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13578 | test_array [0] = 0 |
| 13579 | |
| 13580 | ; |
| 13581 | return 0; |
| 13582 | } |
| 13583 | _ACEOF |
| 13584 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13585 | if { (ac_try="$ac_compile" |
| 13586 | case "(($ac_try" in |
| 13587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13588 | *) ac_try_echo=$ac_try;; |
| 13589 | esac |
| 13590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13591 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13592 | ac_status=$? |
| 13593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13594 | rm -f conftest.er1 |
| 13595 | cat conftest.err >&5 |
| 13596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13597 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13599 | { (case "(($ac_try" in |
| 13600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13601 | *) ac_try_echo=$ac_try;; |
| 13602 | esac |
| 13603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13604 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13605 | ac_status=$? |
| 13606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13607 | (exit $ac_status); }; } && |
| 13608 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13609 | { (case "(($ac_try" in |
| 13610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13611 | *) ac_try_echo=$ac_try;; |
| 13612 | esac |
| 13613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13614 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13615 | ac_status=$? |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); }; }; then |
| 13618 | ac_lo=0 ac_mid=0 |
| 13619 | while :; do |
| 13620 | cat >conftest.$ac_ext <<_ACEOF |
| 13621 | /* confdefs.h. */ |
| 13622 | _ACEOF |
| 13623 | cat confdefs.h >>conftest.$ac_ext |
| 13624 | cat >>conftest.$ac_ext <<_ACEOF |
| 13625 | /* end confdefs.h. */ |
| 13626 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13627 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13628 | int |
| 13629 | main () |
| 13630 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13631 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13632 | test_array [0] = 0 |
| 13633 | |
| 13634 | ; |
| 13635 | return 0; |
| 13636 | } |
| 13637 | _ACEOF |
| 13638 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13639 | if { (ac_try="$ac_compile" |
| 13640 | case "(($ac_try" in |
| 13641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13642 | *) ac_try_echo=$ac_try;; |
| 13643 | esac |
| 13644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13645 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13646 | ac_status=$? |
| 13647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13648 | rm -f conftest.er1 |
| 13649 | cat conftest.err >&5 |
| 13650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13651 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13653 | { (case "(($ac_try" in |
| 13654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13655 | *) ac_try_echo=$ac_try;; |
| 13656 | esac |
| 13657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13658 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13659 | ac_status=$? |
| 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13661 | (exit $ac_status); }; } && |
| 13662 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13663 | { (case "(($ac_try" in |
| 13664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13665 | *) ac_try_echo=$ac_try;; |
| 13666 | esac |
| 13667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13668 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13669 | ac_status=$? |
| 13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13671 | (exit $ac_status); }; }; then |
| 13672 | ac_hi=$ac_mid; break |
| 13673 | else |
| 13674 | echo "$as_me: failed program was:" >&5 |
| 13675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13676 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13677 | ac_lo=`expr $ac_mid + 1` |
| 13678 | if test $ac_lo -le $ac_mid; then |
| 13679 | ac_lo= ac_hi= |
| 13680 | break |
| 13681 | fi |
| 13682 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13684 | |
| 13685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13686 | done |
| 13687 | else |
| 13688 | echo "$as_me: failed program was:" >&5 |
| 13689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13690 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13691 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13692 | /* confdefs.h. */ |
| 13693 | _ACEOF |
| 13694 | cat confdefs.h >>conftest.$ac_ext |
| 13695 | cat >>conftest.$ac_ext <<_ACEOF |
| 13696 | /* end confdefs.h. */ |
| 13697 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13698 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13699 | int |
| 13700 | main () |
| 13701 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13703 | test_array [0] = 0 |
| 13704 | |
| 13705 | ; |
| 13706 | return 0; |
| 13707 | } |
| 13708 | _ACEOF |
| 13709 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13710 | if { (ac_try="$ac_compile" |
| 13711 | case "(($ac_try" in |
| 13712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13713 | *) ac_try_echo=$ac_try;; |
| 13714 | esac |
| 13715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13716 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13717 | ac_status=$? |
| 13718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13719 | rm -f conftest.er1 |
| 13720 | cat conftest.err >&5 |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13724 | { (case "(($ac_try" in |
| 13725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13726 | *) ac_try_echo=$ac_try;; |
| 13727 | esac |
| 13728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13729 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13730 | ac_status=$? |
| 13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13732 | (exit $ac_status); }; } && |
| 13733 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13734 | { (case "(($ac_try" in |
| 13735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13736 | *) ac_try_echo=$ac_try;; |
| 13737 | esac |
| 13738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13739 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13740 | ac_status=$? |
| 13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13742 | (exit $ac_status); }; }; then |
| 13743 | ac_hi=-1 ac_mid=-1 |
| 13744 | while :; do |
| 13745 | cat >conftest.$ac_ext <<_ACEOF |
| 13746 | /* confdefs.h. */ |
| 13747 | _ACEOF |
| 13748 | cat confdefs.h >>conftest.$ac_ext |
| 13749 | cat >>conftest.$ac_ext <<_ACEOF |
| 13750 | /* end confdefs.h. */ |
| 13751 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13752 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13753 | int |
| 13754 | main () |
| 13755 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13756 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13757 | test_array [0] = 0 |
| 13758 | |
| 13759 | ; |
| 13760 | return 0; |
| 13761 | } |
| 13762 | _ACEOF |
| 13763 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13764 | if { (ac_try="$ac_compile" |
| 13765 | case "(($ac_try" in |
| 13766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13767 | *) ac_try_echo=$ac_try;; |
| 13768 | esac |
| 13769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13770 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13771 | ac_status=$? |
| 13772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13773 | rm -f conftest.er1 |
| 13774 | cat conftest.err >&5 |
| 13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13776 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13778 | { (case "(($ac_try" in |
| 13779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13780 | *) ac_try_echo=$ac_try;; |
| 13781 | esac |
| 13782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13783 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13784 | ac_status=$? |
| 13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13786 | (exit $ac_status); }; } && |
| 13787 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13788 | { (case "(($ac_try" in |
| 13789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13790 | *) ac_try_echo=$ac_try;; |
| 13791 | esac |
| 13792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13793 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13794 | ac_status=$? |
| 13795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13796 | (exit $ac_status); }; }; then |
| 13797 | ac_lo=$ac_mid; break |
| 13798 | else |
| 13799 | echo "$as_me: failed program was:" >&5 |
| 13800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13802 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13803 | if test $ac_mid -le $ac_hi; then |
| 13804 | ac_lo= ac_hi= |
| 13805 | break |
| 13806 | fi |
| 13807 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13809 | |
| 13810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13811 | done |
| 13812 | else |
| 13813 | echo "$as_me: failed program was:" >&5 |
| 13814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13816 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13818 | |
| 13819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13820 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13821 | |
| 13822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13823 | # Binary search between lo and hi bounds. |
| 13824 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13825 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13826 | cat >conftest.$ac_ext <<_ACEOF |
| 13827 | /* confdefs.h. */ |
| 13828 | _ACEOF |
| 13829 | cat confdefs.h >>conftest.$ac_ext |
| 13830 | cat >>conftest.$ac_ext <<_ACEOF |
| 13831 | /* end confdefs.h. */ |
| 13832 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13833 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13834 | int |
| 13835 | main () |
| 13836 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13837 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13838 | test_array [0] = 0 |
| 13839 | |
| 13840 | ; |
| 13841 | return 0; |
| 13842 | } |
| 13843 | _ACEOF |
| 13844 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13845 | if { (ac_try="$ac_compile" |
| 13846 | case "(($ac_try" in |
| 13847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13848 | *) ac_try_echo=$ac_try;; |
| 13849 | esac |
| 13850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13851 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13852 | ac_status=$? |
| 13853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13854 | rm -f conftest.er1 |
| 13855 | cat conftest.err >&5 |
| 13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13857 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13859 | { (case "(($ac_try" in |
| 13860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13861 | *) ac_try_echo=$ac_try;; |
| 13862 | esac |
| 13863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13864 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13865 | ac_status=$? |
| 13866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13867 | (exit $ac_status); }; } && |
| 13868 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13869 | { (case "(($ac_try" in |
| 13870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13871 | *) ac_try_echo=$ac_try;; |
| 13872 | esac |
| 13873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13874 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13875 | ac_status=$? |
| 13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13877 | (exit $ac_status); }; }; then |
| 13878 | ac_hi=$ac_mid |
| 13879 | else |
| 13880 | echo "$as_me: failed program was:" >&5 |
| 13881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13883 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13885 | |
| 13886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13887 | done |
| 13888 | case $ac_lo in |
| 13889 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13890 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13891 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13892 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13893 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13894 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13895 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13896 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13897 | cat >conftest.$ac_ext <<_ACEOF |
| 13898 | /* confdefs.h. */ |
| 13899 | _ACEOF |
| 13900 | cat confdefs.h >>conftest.$ac_ext |
| 13901 | cat >>conftest.$ac_ext <<_ACEOF |
| 13902 | /* end confdefs.h. */ |
| 13903 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13904 | typedef short ac__type_sizeof_; |
| 13905 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13906 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13907 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13908 | #include <stdlib.h> |
| 13909 | int |
| 13910 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13911 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13912 | |
| 13913 | FILE *f = fopen ("conftest.val", "w"); |
| 13914 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13915 | return 1; |
| 13916 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13917 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13918 | long int i = longval (); |
| 13919 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13920 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13921 | fprintf (f, "%ld\n", i); |
| 13922 | } |
| 13923 | else |
| 13924 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13925 | unsigned long int i = ulongval (); |
| 13926 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13927 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13928 | fprintf (f, "%lu\n", i); |
| 13929 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13930 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13931 | |
| 13932 | ; |
| 13933 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13934 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13935 | _ACEOF |
| 13936 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13937 | if { (ac_try="$ac_link" |
| 13938 | case "(($ac_try" in |
| 13939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13940 | *) ac_try_echo=$ac_try;; |
| 13941 | esac |
| 13942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13943 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13944 | ac_status=$? |
| 13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13947 | { (case "(($ac_try" in |
| 13948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13949 | *) ac_try_echo=$ac_try;; |
| 13950 | esac |
| 13951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13952 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13953 | ac_status=$? |
| 13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13955 | (exit $ac_status); }; }; then |
| 13956 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13957 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13958 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13959 | echo "$as_me: failed program was:" >&5 |
| 13960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13961 | |
| 13962 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13963 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13964 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13965 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13966 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13967 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13968 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13969 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13970 | fi |
| 13971 | rm -f conftest.val |
| 13972 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13973 | ac_cv_sizeof_short=0 |
| 13974 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13975 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13976 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 13977 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13978 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13979 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13980 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13981 | |
| 13982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13983 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 13984 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13985 | if test "${ac_cv_type_int+set}" = set; then |
| 13986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13987 | else |
| 13988 | cat >conftest.$ac_ext <<_ACEOF |
| 13989 | /* confdefs.h. */ |
| 13990 | _ACEOF |
| 13991 | cat confdefs.h >>conftest.$ac_ext |
| 13992 | cat >>conftest.$ac_ext <<_ACEOF |
| 13993 | /* end confdefs.h. */ |
| 13994 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13995 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13996 | int |
| 13997 | main () |
| 13998 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13999 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14000 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14001 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14002 | return 0; |
| 14003 | ; |
| 14004 | return 0; |
| 14005 | } |
| 14006 | _ACEOF |
| 14007 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14008 | if { (ac_try="$ac_compile" |
| 14009 | case "(($ac_try" in |
| 14010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14011 | *) ac_try_echo=$ac_try;; |
| 14012 | esac |
| 14013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14014 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14015 | ac_status=$? |
| 14016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14017 | rm -f conftest.er1 |
| 14018 | cat conftest.err >&5 |
| 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14020 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14022 | { (case "(($ac_try" in |
| 14023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14024 | *) ac_try_echo=$ac_try;; |
| 14025 | esac |
| 14026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14027 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14028 | ac_status=$? |
| 14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14030 | (exit $ac_status); }; } && |
| 14031 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14032 | { (case "(($ac_try" in |
| 14033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14034 | *) ac_try_echo=$ac_try;; |
| 14035 | esac |
| 14036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14037 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14038 | ac_status=$? |
| 14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14040 | (exit $ac_status); }; }; then |
| 14041 | ac_cv_type_int=yes |
| 14042 | else |
| 14043 | echo "$as_me: failed program was:" >&5 |
| 14044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14046 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14047 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14050 | fi |
| 14051 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 14052 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 14053 | |
| 14054 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 14055 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14056 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 14057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14058 | else |
| 14059 | if test "$ac_cv_type_int" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14060 | # The cast to long int works around a bug in the HP C Compiler |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14061 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14062 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14063 | # This bug is HP SR number 8606223364. |
| 14064 | if test "$cross_compiling" = yes; then |
| 14065 | # Depending upon the size, compute the lo and hi bounds. |
| 14066 | cat >conftest.$ac_ext <<_ACEOF |
| 14067 | /* confdefs.h. */ |
| 14068 | _ACEOF |
| 14069 | cat confdefs.h >>conftest.$ac_ext |
| 14070 | cat >>conftest.$ac_ext <<_ACEOF |
| 14071 | /* end confdefs.h. */ |
| 14072 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14073 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14074 | int |
| 14075 | main () |
| 14076 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14077 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14078 | test_array [0] = 0 |
| 14079 | |
| 14080 | ; |
| 14081 | return 0; |
| 14082 | } |
| 14083 | _ACEOF |
| 14084 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14085 | if { (ac_try="$ac_compile" |
| 14086 | case "(($ac_try" in |
| 14087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14088 | *) ac_try_echo=$ac_try;; |
| 14089 | esac |
| 14090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14091 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14092 | ac_status=$? |
| 14093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14094 | rm -f conftest.er1 |
| 14095 | cat conftest.err >&5 |
| 14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14097 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14099 | { (case "(($ac_try" in |
| 14100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14101 | *) ac_try_echo=$ac_try;; |
| 14102 | esac |
| 14103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14104 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14105 | ac_status=$? |
| 14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14107 | (exit $ac_status); }; } && |
| 14108 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14109 | { (case "(($ac_try" in |
| 14110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14111 | *) ac_try_echo=$ac_try;; |
| 14112 | esac |
| 14113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14114 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14115 | ac_status=$? |
| 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14117 | (exit $ac_status); }; }; then |
| 14118 | ac_lo=0 ac_mid=0 |
| 14119 | while :; do |
| 14120 | cat >conftest.$ac_ext <<_ACEOF |
| 14121 | /* confdefs.h. */ |
| 14122 | _ACEOF |
| 14123 | cat confdefs.h >>conftest.$ac_ext |
| 14124 | cat >>conftest.$ac_ext <<_ACEOF |
| 14125 | /* end confdefs.h. */ |
| 14126 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14127 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14128 | int |
| 14129 | main () |
| 14130 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14131 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14132 | test_array [0] = 0 |
| 14133 | |
| 14134 | ; |
| 14135 | return 0; |
| 14136 | } |
| 14137 | _ACEOF |
| 14138 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14139 | if { (ac_try="$ac_compile" |
| 14140 | case "(($ac_try" in |
| 14141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14142 | *) ac_try_echo=$ac_try;; |
| 14143 | esac |
| 14144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14145 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14146 | ac_status=$? |
| 14147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14148 | rm -f conftest.er1 |
| 14149 | cat conftest.err >&5 |
| 14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14151 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14153 | { (case "(($ac_try" in |
| 14154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14155 | *) ac_try_echo=$ac_try;; |
| 14156 | esac |
| 14157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14158 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14159 | ac_status=$? |
| 14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14161 | (exit $ac_status); }; } && |
| 14162 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14163 | { (case "(($ac_try" in |
| 14164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14165 | *) ac_try_echo=$ac_try;; |
| 14166 | esac |
| 14167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14168 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14169 | ac_status=$? |
| 14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14171 | (exit $ac_status); }; }; then |
| 14172 | ac_hi=$ac_mid; break |
| 14173 | else |
| 14174 | echo "$as_me: failed program was:" >&5 |
| 14175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14177 | ac_lo=`expr $ac_mid + 1` |
| 14178 | if test $ac_lo -le $ac_mid; then |
| 14179 | ac_lo= ac_hi= |
| 14180 | break |
| 14181 | fi |
| 14182 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14183 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14184 | |
| 14185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14186 | done |
| 14187 | else |
| 14188 | echo "$as_me: failed program was:" >&5 |
| 14189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14191 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14192 | /* confdefs.h. */ |
| 14193 | _ACEOF |
| 14194 | cat confdefs.h >>conftest.$ac_ext |
| 14195 | cat >>conftest.$ac_ext <<_ACEOF |
| 14196 | /* end confdefs.h. */ |
| 14197 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14198 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14199 | int |
| 14200 | main () |
| 14201 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14202 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14203 | test_array [0] = 0 |
| 14204 | |
| 14205 | ; |
| 14206 | return 0; |
| 14207 | } |
| 14208 | _ACEOF |
| 14209 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14210 | if { (ac_try="$ac_compile" |
| 14211 | case "(($ac_try" in |
| 14212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14213 | *) ac_try_echo=$ac_try;; |
| 14214 | esac |
| 14215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14216 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14217 | ac_status=$? |
| 14218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14219 | rm -f conftest.er1 |
| 14220 | cat conftest.err >&5 |
| 14221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14222 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14224 | { (case "(($ac_try" in |
| 14225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14226 | *) ac_try_echo=$ac_try;; |
| 14227 | esac |
| 14228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14229 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14230 | ac_status=$? |
| 14231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14232 | (exit $ac_status); }; } && |
| 14233 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14234 | { (case "(($ac_try" in |
| 14235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14236 | *) ac_try_echo=$ac_try;; |
| 14237 | esac |
| 14238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14239 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14240 | ac_status=$? |
| 14241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14242 | (exit $ac_status); }; }; then |
| 14243 | ac_hi=-1 ac_mid=-1 |
| 14244 | while :; do |
| 14245 | cat >conftest.$ac_ext <<_ACEOF |
| 14246 | /* confdefs.h. */ |
| 14247 | _ACEOF |
| 14248 | cat confdefs.h >>conftest.$ac_ext |
| 14249 | cat >>conftest.$ac_ext <<_ACEOF |
| 14250 | /* end confdefs.h. */ |
| 14251 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14252 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14253 | int |
| 14254 | main () |
| 14255 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14256 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14257 | test_array [0] = 0 |
| 14258 | |
| 14259 | ; |
| 14260 | return 0; |
| 14261 | } |
| 14262 | _ACEOF |
| 14263 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14264 | if { (ac_try="$ac_compile" |
| 14265 | case "(($ac_try" in |
| 14266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14267 | *) ac_try_echo=$ac_try;; |
| 14268 | esac |
| 14269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14270 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14271 | ac_status=$? |
| 14272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14273 | rm -f conftest.er1 |
| 14274 | cat conftest.err >&5 |
| 14275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14276 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14278 | { (case "(($ac_try" in |
| 14279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14280 | *) ac_try_echo=$ac_try;; |
| 14281 | esac |
| 14282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14283 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14284 | ac_status=$? |
| 14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14286 | (exit $ac_status); }; } && |
| 14287 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14288 | { (case "(($ac_try" in |
| 14289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14290 | *) ac_try_echo=$ac_try;; |
| 14291 | esac |
| 14292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14293 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14294 | ac_status=$? |
| 14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14296 | (exit $ac_status); }; }; then |
| 14297 | ac_lo=$ac_mid; break |
| 14298 | else |
| 14299 | echo "$as_me: failed program was:" >&5 |
| 14300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14302 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14303 | if test $ac_mid -le $ac_hi; then |
| 14304 | ac_lo= ac_hi= |
| 14305 | break |
| 14306 | fi |
| 14307 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14308 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14309 | |
| 14310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14311 | done |
| 14312 | else |
| 14313 | echo "$as_me: failed program was:" >&5 |
| 14314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14315 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14316 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14317 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14318 | |
| 14319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14320 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14321 | |
| 14322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14323 | # Binary search between lo and hi bounds. |
| 14324 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14325 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14326 | cat >conftest.$ac_ext <<_ACEOF |
| 14327 | /* confdefs.h. */ |
| 14328 | _ACEOF |
| 14329 | cat confdefs.h >>conftest.$ac_ext |
| 14330 | cat >>conftest.$ac_ext <<_ACEOF |
| 14331 | /* end confdefs.h. */ |
| 14332 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14333 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14334 | int |
| 14335 | main () |
| 14336 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14337 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14338 | test_array [0] = 0 |
| 14339 | |
| 14340 | ; |
| 14341 | return 0; |
| 14342 | } |
| 14343 | _ACEOF |
| 14344 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14345 | if { (ac_try="$ac_compile" |
| 14346 | case "(($ac_try" in |
| 14347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14348 | *) ac_try_echo=$ac_try;; |
| 14349 | esac |
| 14350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14351 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14352 | ac_status=$? |
| 14353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14354 | rm -f conftest.er1 |
| 14355 | cat conftest.err >&5 |
| 14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14357 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14359 | { (case "(($ac_try" in |
| 14360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14361 | *) ac_try_echo=$ac_try;; |
| 14362 | esac |
| 14363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14364 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14365 | ac_status=$? |
| 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14367 | (exit $ac_status); }; } && |
| 14368 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14369 | { (case "(($ac_try" in |
| 14370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14371 | *) ac_try_echo=$ac_try;; |
| 14372 | esac |
| 14373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14374 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14375 | ac_status=$? |
| 14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14377 | (exit $ac_status); }; }; then |
| 14378 | ac_hi=$ac_mid |
| 14379 | else |
| 14380 | echo "$as_me: failed program was:" >&5 |
| 14381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14382 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14383 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14385 | |
| 14386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14387 | done |
| 14388 | case $ac_lo in |
| 14389 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14391 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14392 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14393 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14394 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14395 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14396 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14397 | cat >conftest.$ac_ext <<_ACEOF |
| 14398 | /* confdefs.h. */ |
| 14399 | _ACEOF |
| 14400 | cat confdefs.h >>conftest.$ac_ext |
| 14401 | cat >>conftest.$ac_ext <<_ACEOF |
| 14402 | /* end confdefs.h. */ |
| 14403 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14404 | typedef int ac__type_sizeof_; |
| 14405 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14406 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14407 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14408 | #include <stdlib.h> |
| 14409 | int |
| 14410 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14411 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14412 | |
| 14413 | FILE *f = fopen ("conftest.val", "w"); |
| 14414 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14415 | return 1; |
| 14416 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14417 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14418 | long int i = longval (); |
| 14419 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14420 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14421 | fprintf (f, "%ld\n", i); |
| 14422 | } |
| 14423 | else |
| 14424 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14425 | unsigned long int i = ulongval (); |
| 14426 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14427 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14428 | fprintf (f, "%lu\n", i); |
| 14429 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14430 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14431 | |
| 14432 | ; |
| 14433 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14434 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14435 | _ACEOF |
| 14436 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14437 | if { (ac_try="$ac_link" |
| 14438 | case "(($ac_try" in |
| 14439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14440 | *) ac_try_echo=$ac_try;; |
| 14441 | esac |
| 14442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14443 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14444 | ac_status=$? |
| 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14446 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14447 | { (case "(($ac_try" in |
| 14448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14449 | *) ac_try_echo=$ac_try;; |
| 14450 | esac |
| 14451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14452 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14453 | ac_status=$? |
| 14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14455 | (exit $ac_status); }; }; then |
| 14456 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14457 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14458 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14459 | echo "$as_me: failed program was:" >&5 |
| 14460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14461 | |
| 14462 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14463 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14464 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14465 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14466 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14467 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14468 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14470 | fi |
| 14471 | rm -f conftest.val |
| 14472 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14473 | ac_cv_sizeof_int=0 |
| 14474 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14475 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14476 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14477 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14478 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14479 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14481 | |
| 14482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14483 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 14484 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14485 | if test "${ac_cv_type_long+set}" = set; then |
| 14486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14487 | else |
| 14488 | cat >conftest.$ac_ext <<_ACEOF |
| 14489 | /* confdefs.h. */ |
| 14490 | _ACEOF |
| 14491 | cat confdefs.h >>conftest.$ac_ext |
| 14492 | cat >>conftest.$ac_ext <<_ACEOF |
| 14493 | /* end confdefs.h. */ |
| 14494 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14495 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14496 | int |
| 14497 | main () |
| 14498 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14499 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14500 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14501 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14502 | return 0; |
| 14503 | ; |
| 14504 | return 0; |
| 14505 | } |
| 14506 | _ACEOF |
| 14507 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14508 | if { (ac_try="$ac_compile" |
| 14509 | case "(($ac_try" in |
| 14510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14511 | *) ac_try_echo=$ac_try;; |
| 14512 | esac |
| 14513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14514 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14515 | ac_status=$? |
| 14516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14517 | rm -f conftest.er1 |
| 14518 | cat conftest.err >&5 |
| 14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14520 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14522 | { (case "(($ac_try" in |
| 14523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14524 | *) ac_try_echo=$ac_try;; |
| 14525 | esac |
| 14526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14527 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14528 | ac_status=$? |
| 14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14530 | (exit $ac_status); }; } && |
| 14531 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14532 | { (case "(($ac_try" in |
| 14533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14534 | *) ac_try_echo=$ac_try;; |
| 14535 | esac |
| 14536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14537 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14538 | ac_status=$? |
| 14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14540 | (exit $ac_status); }; }; then |
| 14541 | ac_cv_type_long=yes |
| 14542 | else |
| 14543 | echo "$as_me: failed program was:" >&5 |
| 14544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14546 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14547 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14550 | fi |
| 14551 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 14552 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 14553 | |
| 14554 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 14555 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14556 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 14557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14558 | else |
| 14559 | if test "$ac_cv_type_long" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14560 | # The cast to long int works around a bug in the HP C Compiler |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14561 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14562 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14563 | # This bug is HP SR number 8606223364. |
| 14564 | if test "$cross_compiling" = yes; then |
| 14565 | # Depending upon the size, compute the lo and hi bounds. |
| 14566 | cat >conftest.$ac_ext <<_ACEOF |
| 14567 | /* confdefs.h. */ |
| 14568 | _ACEOF |
| 14569 | cat confdefs.h >>conftest.$ac_ext |
| 14570 | cat >>conftest.$ac_ext <<_ACEOF |
| 14571 | /* end confdefs.h. */ |
| 14572 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14573 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14574 | int |
| 14575 | main () |
| 14576 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14577 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14578 | test_array [0] = 0 |
| 14579 | |
| 14580 | ; |
| 14581 | return 0; |
| 14582 | } |
| 14583 | _ACEOF |
| 14584 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14585 | if { (ac_try="$ac_compile" |
| 14586 | case "(($ac_try" in |
| 14587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14588 | *) ac_try_echo=$ac_try;; |
| 14589 | esac |
| 14590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14591 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | ac_status=$? |
| 14593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14594 | rm -f conftest.er1 |
| 14595 | cat conftest.err >&5 |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14597 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14599 | { (case "(($ac_try" in |
| 14600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14601 | *) ac_try_echo=$ac_try;; |
| 14602 | esac |
| 14603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14604 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14605 | ac_status=$? |
| 14606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14607 | (exit $ac_status); }; } && |
| 14608 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14609 | { (case "(($ac_try" in |
| 14610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14611 | *) ac_try_echo=$ac_try;; |
| 14612 | esac |
| 14613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14614 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14615 | ac_status=$? |
| 14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14617 | (exit $ac_status); }; }; then |
| 14618 | ac_lo=0 ac_mid=0 |
| 14619 | while :; do |
| 14620 | cat >conftest.$ac_ext <<_ACEOF |
| 14621 | /* confdefs.h. */ |
| 14622 | _ACEOF |
| 14623 | cat confdefs.h >>conftest.$ac_ext |
| 14624 | cat >>conftest.$ac_ext <<_ACEOF |
| 14625 | /* end confdefs.h. */ |
| 14626 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14627 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14628 | int |
| 14629 | main () |
| 14630 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14631 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14632 | test_array [0] = 0 |
| 14633 | |
| 14634 | ; |
| 14635 | return 0; |
| 14636 | } |
| 14637 | _ACEOF |
| 14638 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14639 | if { (ac_try="$ac_compile" |
| 14640 | case "(($ac_try" in |
| 14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14642 | *) ac_try_echo=$ac_try;; |
| 14643 | esac |
| 14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14645 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14646 | ac_status=$? |
| 14647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14648 | rm -f conftest.er1 |
| 14649 | cat conftest.err >&5 |
| 14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14651 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14653 | { (case "(($ac_try" in |
| 14654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14655 | *) ac_try_echo=$ac_try;; |
| 14656 | esac |
| 14657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14658 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14659 | ac_status=$? |
| 14660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14661 | (exit $ac_status); }; } && |
| 14662 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14663 | { (case "(($ac_try" in |
| 14664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14665 | *) ac_try_echo=$ac_try;; |
| 14666 | esac |
| 14667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14668 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14669 | ac_status=$? |
| 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14671 | (exit $ac_status); }; }; then |
| 14672 | ac_hi=$ac_mid; break |
| 14673 | else |
| 14674 | echo "$as_me: failed program was:" >&5 |
| 14675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14676 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14677 | ac_lo=`expr $ac_mid + 1` |
| 14678 | if test $ac_lo -le $ac_mid; then |
| 14679 | ac_lo= ac_hi= |
| 14680 | break |
| 14681 | fi |
| 14682 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14684 | |
| 14685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14686 | done |
| 14687 | else |
| 14688 | echo "$as_me: failed program was:" >&5 |
| 14689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14690 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14691 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14692 | /* confdefs.h. */ |
| 14693 | _ACEOF |
| 14694 | cat confdefs.h >>conftest.$ac_ext |
| 14695 | cat >>conftest.$ac_ext <<_ACEOF |
| 14696 | /* end confdefs.h. */ |
| 14697 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14698 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14699 | int |
| 14700 | main () |
| 14701 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14703 | test_array [0] = 0 |
| 14704 | |
| 14705 | ; |
| 14706 | return 0; |
| 14707 | } |
| 14708 | _ACEOF |
| 14709 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14710 | if { (ac_try="$ac_compile" |
| 14711 | case "(($ac_try" in |
| 14712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14713 | *) ac_try_echo=$ac_try;; |
| 14714 | esac |
| 14715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14716 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14717 | ac_status=$? |
| 14718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14719 | rm -f conftest.er1 |
| 14720 | cat conftest.err >&5 |
| 14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14722 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14724 | { (case "(($ac_try" in |
| 14725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14726 | *) ac_try_echo=$ac_try;; |
| 14727 | esac |
| 14728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14729 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14730 | ac_status=$? |
| 14731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14732 | (exit $ac_status); }; } && |
| 14733 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14734 | { (case "(($ac_try" in |
| 14735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14736 | *) ac_try_echo=$ac_try;; |
| 14737 | esac |
| 14738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14739 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14740 | ac_status=$? |
| 14741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14742 | (exit $ac_status); }; }; then |
| 14743 | ac_hi=-1 ac_mid=-1 |
| 14744 | while :; do |
| 14745 | cat >conftest.$ac_ext <<_ACEOF |
| 14746 | /* confdefs.h. */ |
| 14747 | _ACEOF |
| 14748 | cat confdefs.h >>conftest.$ac_ext |
| 14749 | cat >>conftest.$ac_ext <<_ACEOF |
| 14750 | /* end confdefs.h. */ |
| 14751 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14752 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14753 | int |
| 14754 | main () |
| 14755 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14756 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14757 | test_array [0] = 0 |
| 14758 | |
| 14759 | ; |
| 14760 | return 0; |
| 14761 | } |
| 14762 | _ACEOF |
| 14763 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14764 | if { (ac_try="$ac_compile" |
| 14765 | case "(($ac_try" in |
| 14766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14767 | *) ac_try_echo=$ac_try;; |
| 14768 | esac |
| 14769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14770 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14771 | ac_status=$? |
| 14772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14773 | rm -f conftest.er1 |
| 14774 | cat conftest.err >&5 |
| 14775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14776 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14778 | { (case "(($ac_try" in |
| 14779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14780 | *) ac_try_echo=$ac_try;; |
| 14781 | esac |
| 14782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14783 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14784 | ac_status=$? |
| 14785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14786 | (exit $ac_status); }; } && |
| 14787 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14788 | { (case "(($ac_try" in |
| 14789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14790 | *) ac_try_echo=$ac_try;; |
| 14791 | esac |
| 14792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14793 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14794 | ac_status=$? |
| 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14796 | (exit $ac_status); }; }; then |
| 14797 | ac_lo=$ac_mid; break |
| 14798 | else |
| 14799 | echo "$as_me: failed program was:" >&5 |
| 14800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14802 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14803 | if test $ac_mid -le $ac_hi; then |
| 14804 | ac_lo= ac_hi= |
| 14805 | break |
| 14806 | fi |
| 14807 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14809 | |
| 14810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14811 | done |
| 14812 | else |
| 14813 | echo "$as_me: failed program was:" >&5 |
| 14814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14816 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14818 | |
| 14819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14820 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14821 | |
| 14822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14823 | # Binary search between lo and hi bounds. |
| 14824 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14825 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14826 | cat >conftest.$ac_ext <<_ACEOF |
| 14827 | /* confdefs.h. */ |
| 14828 | _ACEOF |
| 14829 | cat confdefs.h >>conftest.$ac_ext |
| 14830 | cat >>conftest.$ac_ext <<_ACEOF |
| 14831 | /* end confdefs.h. */ |
| 14832 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14833 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14834 | int |
| 14835 | main () |
| 14836 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14837 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14838 | test_array [0] = 0 |
| 14839 | |
| 14840 | ; |
| 14841 | return 0; |
| 14842 | } |
| 14843 | _ACEOF |
| 14844 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14845 | if { (ac_try="$ac_compile" |
| 14846 | case "(($ac_try" in |
| 14847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14848 | *) ac_try_echo=$ac_try;; |
| 14849 | esac |
| 14850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14851 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14852 | ac_status=$? |
| 14853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14854 | rm -f conftest.er1 |
| 14855 | cat conftest.err >&5 |
| 14856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14857 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14859 | { (case "(($ac_try" in |
| 14860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14861 | *) ac_try_echo=$ac_try;; |
| 14862 | esac |
| 14863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14864 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14865 | ac_status=$? |
| 14866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14867 | (exit $ac_status); }; } && |
| 14868 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14869 | { (case "(($ac_try" in |
| 14870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14871 | *) ac_try_echo=$ac_try;; |
| 14872 | esac |
| 14873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14874 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14875 | ac_status=$? |
| 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14877 | (exit $ac_status); }; }; then |
| 14878 | ac_hi=$ac_mid |
| 14879 | else |
| 14880 | echo "$as_me: failed program was:" >&5 |
| 14881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14883 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14885 | |
| 14886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14887 | done |
| 14888 | case $ac_lo in |
| 14889 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14890 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14891 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14892 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14893 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14894 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14895 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14896 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14897 | cat >conftest.$ac_ext <<_ACEOF |
| 14898 | /* confdefs.h. */ |
| 14899 | _ACEOF |
| 14900 | cat confdefs.h >>conftest.$ac_ext |
| 14901 | cat >>conftest.$ac_ext <<_ACEOF |
| 14902 | /* end confdefs.h. */ |
| 14903 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14904 | typedef long ac__type_sizeof_; |
| 14905 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14906 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14907 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14908 | #include <stdlib.h> |
| 14909 | int |
| 14910 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14911 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14912 | |
| 14913 | FILE *f = fopen ("conftest.val", "w"); |
| 14914 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14915 | return 1; |
| 14916 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14917 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14918 | long int i = longval (); |
| 14919 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14920 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14921 | fprintf (f, "%ld\n", i); |
| 14922 | } |
| 14923 | else |
| 14924 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14925 | unsigned long int i = ulongval (); |
| 14926 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14927 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14928 | fprintf (f, "%lu\n", i); |
| 14929 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14930 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14931 | |
| 14932 | ; |
| 14933 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14934 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14935 | _ACEOF |
| 14936 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14937 | if { (ac_try="$ac_link" |
| 14938 | case "(($ac_try" in |
| 14939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14940 | *) ac_try_echo=$ac_try;; |
| 14941 | esac |
| 14942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14943 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14944 | ac_status=$? |
| 14945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14947 | { (case "(($ac_try" in |
| 14948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14949 | *) ac_try_echo=$ac_try;; |
| 14950 | esac |
| 14951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14952 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14953 | ac_status=$? |
| 14954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14955 | (exit $ac_status); }; }; then |
| 14956 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14957 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14958 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14959 | echo "$as_me: failed program was:" >&5 |
| 14960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14961 | |
| 14962 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14963 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14964 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14965 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14966 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14967 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14968 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14969 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14970 | fi |
| 14971 | rm -f conftest.val |
| 14972 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14973 | ac_cv_sizeof_long=0 |
| 14974 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14975 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14976 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 14977 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14978 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14979 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14980 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14981 | |
| 14982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14983 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 14984 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14985 | if test "${ac_cv_type_long_long+set}" = set; then |
| 14986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14987 | else |
| 14988 | cat >conftest.$ac_ext <<_ACEOF |
| 14989 | /* confdefs.h. */ |
| 14990 | _ACEOF |
| 14991 | cat confdefs.h >>conftest.$ac_ext |
| 14992 | cat >>conftest.$ac_ext <<_ACEOF |
| 14993 | /* end confdefs.h. */ |
| 14994 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14995 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14996 | int |
| 14997 | main () |
| 14998 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14999 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15000 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15001 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15002 | return 0; |
| 15003 | ; |
| 15004 | return 0; |
| 15005 | } |
| 15006 | _ACEOF |
| 15007 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15008 | if { (ac_try="$ac_compile" |
| 15009 | case "(($ac_try" in |
| 15010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15011 | *) ac_try_echo=$ac_try;; |
| 15012 | esac |
| 15013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15014 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15015 | ac_status=$? |
| 15016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15017 | rm -f conftest.er1 |
| 15018 | cat conftest.err >&5 |
| 15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15020 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15022 | { (case "(($ac_try" in |
| 15023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15024 | *) ac_try_echo=$ac_try;; |
| 15025 | esac |
| 15026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15027 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15028 | ac_status=$? |
| 15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15030 | (exit $ac_status); }; } && |
| 15031 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15032 | { (case "(($ac_try" in |
| 15033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15034 | *) ac_try_echo=$ac_try;; |
| 15035 | esac |
| 15036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15037 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15038 | ac_status=$? |
| 15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15040 | (exit $ac_status); }; }; then |
| 15041 | ac_cv_type_long_long=yes |
| 15042 | else |
| 15043 | echo "$as_me: failed program was:" >&5 |
| 15044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15046 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15047 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15050 | fi |
| 15051 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 15052 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 15053 | |
| 15054 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 15055 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15056 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 15057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15058 | else |
| 15059 | if test "$ac_cv_type_long_long" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15060 | # The cast to long int works around a bug in the HP C Compiler |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15061 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15062 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15063 | # This bug is HP SR number 8606223364. |
| 15064 | if test "$cross_compiling" = yes; then |
| 15065 | # Depending upon the size, compute the lo and hi bounds. |
| 15066 | cat >conftest.$ac_ext <<_ACEOF |
| 15067 | /* confdefs.h. */ |
| 15068 | _ACEOF |
| 15069 | cat confdefs.h >>conftest.$ac_ext |
| 15070 | cat >>conftest.$ac_ext <<_ACEOF |
| 15071 | /* end confdefs.h. */ |
| 15072 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15073 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15074 | int |
| 15075 | main () |
| 15076 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15077 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15078 | test_array [0] = 0 |
| 15079 | |
| 15080 | ; |
| 15081 | return 0; |
| 15082 | } |
| 15083 | _ACEOF |
| 15084 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15085 | if { (ac_try="$ac_compile" |
| 15086 | case "(($ac_try" in |
| 15087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15088 | *) ac_try_echo=$ac_try;; |
| 15089 | esac |
| 15090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15091 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15092 | ac_status=$? |
| 15093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15094 | rm -f conftest.er1 |
| 15095 | cat conftest.err >&5 |
| 15096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15097 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15099 | { (case "(($ac_try" in |
| 15100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15101 | *) ac_try_echo=$ac_try;; |
| 15102 | esac |
| 15103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15104 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15105 | ac_status=$? |
| 15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15107 | (exit $ac_status); }; } && |
| 15108 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15109 | { (case "(($ac_try" in |
| 15110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15111 | *) ac_try_echo=$ac_try;; |
| 15112 | esac |
| 15113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15114 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15115 | ac_status=$? |
| 15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15117 | (exit $ac_status); }; }; then |
| 15118 | ac_lo=0 ac_mid=0 |
| 15119 | while :; do |
| 15120 | cat >conftest.$ac_ext <<_ACEOF |
| 15121 | /* confdefs.h. */ |
| 15122 | _ACEOF |
| 15123 | cat confdefs.h >>conftest.$ac_ext |
| 15124 | cat >>conftest.$ac_ext <<_ACEOF |
| 15125 | /* end confdefs.h. */ |
| 15126 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15127 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15128 | int |
| 15129 | main () |
| 15130 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15131 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15132 | test_array [0] = 0 |
| 15133 | |
| 15134 | ; |
| 15135 | return 0; |
| 15136 | } |
| 15137 | _ACEOF |
| 15138 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15139 | if { (ac_try="$ac_compile" |
| 15140 | case "(($ac_try" in |
| 15141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15142 | *) ac_try_echo=$ac_try;; |
| 15143 | esac |
| 15144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15145 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15146 | ac_status=$? |
| 15147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15148 | rm -f conftest.er1 |
| 15149 | cat conftest.err >&5 |
| 15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15151 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15153 | { (case "(($ac_try" in |
| 15154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15155 | *) ac_try_echo=$ac_try;; |
| 15156 | esac |
| 15157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15158 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15159 | ac_status=$? |
| 15160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15161 | (exit $ac_status); }; } && |
| 15162 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15163 | { (case "(($ac_try" in |
| 15164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15165 | *) ac_try_echo=$ac_try;; |
| 15166 | esac |
| 15167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15168 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15169 | ac_status=$? |
| 15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15171 | (exit $ac_status); }; }; then |
| 15172 | ac_hi=$ac_mid; break |
| 15173 | else |
| 15174 | echo "$as_me: failed program was:" >&5 |
| 15175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15177 | ac_lo=`expr $ac_mid + 1` |
| 15178 | if test $ac_lo -le $ac_mid; then |
| 15179 | ac_lo= ac_hi= |
| 15180 | break |
| 15181 | fi |
| 15182 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15183 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15184 | |
| 15185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15186 | done |
| 15187 | else |
| 15188 | echo "$as_me: failed program was:" >&5 |
| 15189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15191 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15192 | /* confdefs.h. */ |
| 15193 | _ACEOF |
| 15194 | cat confdefs.h >>conftest.$ac_ext |
| 15195 | cat >>conftest.$ac_ext <<_ACEOF |
| 15196 | /* end confdefs.h. */ |
| 15197 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15198 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15199 | int |
| 15200 | main () |
| 15201 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15202 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15203 | test_array [0] = 0 |
| 15204 | |
| 15205 | ; |
| 15206 | return 0; |
| 15207 | } |
| 15208 | _ACEOF |
| 15209 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15210 | if { (ac_try="$ac_compile" |
| 15211 | case "(($ac_try" in |
| 15212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15213 | *) ac_try_echo=$ac_try;; |
| 15214 | esac |
| 15215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15216 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15217 | ac_status=$? |
| 15218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15219 | rm -f conftest.er1 |
| 15220 | cat conftest.err >&5 |
| 15221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15222 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15224 | { (case "(($ac_try" in |
| 15225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15226 | *) ac_try_echo=$ac_try;; |
| 15227 | esac |
| 15228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15229 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15230 | ac_status=$? |
| 15231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15232 | (exit $ac_status); }; } && |
| 15233 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15234 | { (case "(($ac_try" in |
| 15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15236 | *) ac_try_echo=$ac_try;; |
| 15237 | esac |
| 15238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15239 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15240 | ac_status=$? |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); }; }; then |
| 15243 | ac_hi=-1 ac_mid=-1 |
| 15244 | while :; do |
| 15245 | cat >conftest.$ac_ext <<_ACEOF |
| 15246 | /* confdefs.h. */ |
| 15247 | _ACEOF |
| 15248 | cat confdefs.h >>conftest.$ac_ext |
| 15249 | cat >>conftest.$ac_ext <<_ACEOF |
| 15250 | /* end confdefs.h. */ |
| 15251 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15252 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15253 | int |
| 15254 | main () |
| 15255 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15256 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15257 | test_array [0] = 0 |
| 15258 | |
| 15259 | ; |
| 15260 | return 0; |
| 15261 | } |
| 15262 | _ACEOF |
| 15263 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15264 | if { (ac_try="$ac_compile" |
| 15265 | case "(($ac_try" in |
| 15266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15267 | *) ac_try_echo=$ac_try;; |
| 15268 | esac |
| 15269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15270 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15271 | ac_status=$? |
| 15272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15273 | rm -f conftest.er1 |
| 15274 | cat conftest.err >&5 |
| 15275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15276 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15278 | { (case "(($ac_try" in |
| 15279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15280 | *) ac_try_echo=$ac_try;; |
| 15281 | esac |
| 15282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15283 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15284 | ac_status=$? |
| 15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15286 | (exit $ac_status); }; } && |
| 15287 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15288 | { (case "(($ac_try" in |
| 15289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15290 | *) ac_try_echo=$ac_try;; |
| 15291 | esac |
| 15292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15293 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15294 | ac_status=$? |
| 15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15296 | (exit $ac_status); }; }; then |
| 15297 | ac_lo=$ac_mid; break |
| 15298 | else |
| 15299 | echo "$as_me: failed program was:" >&5 |
| 15300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15302 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15303 | if test $ac_mid -le $ac_hi; then |
| 15304 | ac_lo= ac_hi= |
| 15305 | break |
| 15306 | fi |
| 15307 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15308 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15309 | |
| 15310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15311 | done |
| 15312 | else |
| 15313 | echo "$as_me: failed program was:" >&5 |
| 15314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15315 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15316 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15317 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15318 | |
| 15319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15320 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15321 | |
| 15322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15323 | # Binary search between lo and hi bounds. |
| 15324 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15325 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15326 | cat >conftest.$ac_ext <<_ACEOF |
| 15327 | /* confdefs.h. */ |
| 15328 | _ACEOF |
| 15329 | cat confdefs.h >>conftest.$ac_ext |
| 15330 | cat >>conftest.$ac_ext <<_ACEOF |
| 15331 | /* end confdefs.h. */ |
| 15332 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15333 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15334 | int |
| 15335 | main () |
| 15336 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15337 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15338 | test_array [0] = 0 |
| 15339 | |
| 15340 | ; |
| 15341 | return 0; |
| 15342 | } |
| 15343 | _ACEOF |
| 15344 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15345 | if { (ac_try="$ac_compile" |
| 15346 | case "(($ac_try" in |
| 15347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15348 | *) ac_try_echo=$ac_try;; |
| 15349 | esac |
| 15350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15351 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15352 | ac_status=$? |
| 15353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15354 | rm -f conftest.er1 |
| 15355 | cat conftest.err >&5 |
| 15356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15357 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15359 | { (case "(($ac_try" in |
| 15360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15361 | *) ac_try_echo=$ac_try;; |
| 15362 | esac |
| 15363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15364 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15365 | ac_status=$? |
| 15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15367 | (exit $ac_status); }; } && |
| 15368 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15369 | { (case "(($ac_try" in |
| 15370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15371 | *) ac_try_echo=$ac_try;; |
| 15372 | esac |
| 15373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15374 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15375 | ac_status=$? |
| 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15377 | (exit $ac_status); }; }; then |
| 15378 | ac_hi=$ac_mid |
| 15379 | else |
| 15380 | echo "$as_me: failed program was:" >&5 |
| 15381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15382 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15383 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15385 | |
| 15386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15387 | done |
| 15388 | case $ac_lo in |
| 15389 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15390 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15391 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15392 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15393 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15394 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15395 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15396 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15397 | cat >conftest.$ac_ext <<_ACEOF |
| 15398 | /* confdefs.h. */ |
| 15399 | _ACEOF |
| 15400 | cat confdefs.h >>conftest.$ac_ext |
| 15401 | cat >>conftest.$ac_ext <<_ACEOF |
| 15402 | /* end confdefs.h. */ |
| 15403 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15404 | typedef long long ac__type_sizeof_; |
| 15405 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 15406 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15407 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15408 | #include <stdlib.h> |
| 15409 | int |
| 15410 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15411 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15412 | |
| 15413 | FILE *f = fopen ("conftest.val", "w"); |
| 15414 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15415 | return 1; |
| 15416 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15417 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15418 | long int i = longval (); |
| 15419 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 15420 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15421 | fprintf (f, "%ld\n", i); |
| 15422 | } |
| 15423 | else |
| 15424 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15425 | unsigned long int i = ulongval (); |
| 15426 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 15427 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15428 | fprintf (f, "%lu\n", i); |
| 15429 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15430 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15431 | |
| 15432 | ; |
| 15433 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15434 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15435 | _ACEOF |
| 15436 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15437 | if { (ac_try="$ac_link" |
| 15438 | case "(($ac_try" in |
| 15439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15440 | *) ac_try_echo=$ac_try;; |
| 15441 | esac |
| 15442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15443 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15444 | ac_status=$? |
| 15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15446 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15447 | { (case "(($ac_try" in |
| 15448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15449 | *) ac_try_echo=$ac_try;; |
| 15450 | esac |
| 15451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15452 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15453 | ac_status=$? |
| 15454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15455 | (exit $ac_status); }; }; then |
| 15456 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15457 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15458 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15459 | echo "$as_me: failed program was:" >&5 |
| 15460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15461 | |
| 15462 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15463 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15464 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15465 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15466 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15467 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15468 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15470 | fi |
| 15471 | rm -f conftest.val |
| 15472 | else |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15473 | ac_cv_sizeof_long_long=0 |
| 15474 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15475 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15476 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 15477 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15478 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15479 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15480 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15481 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15482 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15483 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 15484 | SIZEOF_INT=$ac_cv_sizeof_int |
| 15485 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15486 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 15487 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15488 | |
| 15489 | |
| 15490 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15491 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15492 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15493 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15495 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15496 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15497 | cat >conftest.$ac_ext <<_ACEOF |
| 15498 | /* confdefs.h. */ |
| 15499 | _ACEOF |
| 15500 | cat confdefs.h >>conftest.$ac_ext |
| 15501 | cat >>conftest.$ac_ext <<_ACEOF |
| 15502 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15503 | #include <sys/types.h> |
| 15504 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15506 | int |
| 15507 | main () |
| 15508 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15509 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15510 | bogus endian macros |
| 15511 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15512 | |
| 15513 | ; |
| 15514 | return 0; |
| 15515 | } |
| 15516 | _ACEOF |
| 15517 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15518 | if { (ac_try="$ac_compile" |
| 15519 | case "(($ac_try" in |
| 15520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15521 | *) ac_try_echo=$ac_try;; |
| 15522 | esac |
| 15523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15524 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15525 | ac_status=$? |
| 15526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15527 | rm -f conftest.er1 |
| 15528 | cat conftest.err >&5 |
| 15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15530 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15532 | { (case "(($ac_try" in |
| 15533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15534 | *) ac_try_echo=$ac_try;; |
| 15535 | esac |
| 15536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15537 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15538 | ac_status=$? |
| 15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15540 | (exit $ac_status); }; } && |
| 15541 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15542 | { (case "(($ac_try" in |
| 15543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15544 | *) ac_try_echo=$ac_try;; |
| 15545 | esac |
| 15546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15547 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15548 | ac_status=$? |
| 15549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15550 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15551 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15552 | cat >conftest.$ac_ext <<_ACEOF |
| 15553 | /* confdefs.h. */ |
| 15554 | _ACEOF |
| 15555 | cat confdefs.h >>conftest.$ac_ext |
| 15556 | cat >>conftest.$ac_ext <<_ACEOF |
| 15557 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15558 | #include <sys/types.h> |
| 15559 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15560 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15561 | int |
| 15562 | main () |
| 15563 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15564 | #if BYTE_ORDER != BIG_ENDIAN |
| 15565 | not big endian |
| 15566 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15567 | |
| 15568 | ; |
| 15569 | return 0; |
| 15570 | } |
| 15571 | _ACEOF |
| 15572 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15573 | if { (ac_try="$ac_compile" |
| 15574 | case "(($ac_try" in |
| 15575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15576 | *) ac_try_echo=$ac_try;; |
| 15577 | esac |
| 15578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15579 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15580 | ac_status=$? |
| 15581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15582 | rm -f conftest.er1 |
| 15583 | cat conftest.err >&5 |
| 15584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15585 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15587 | { (case "(($ac_try" in |
| 15588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15589 | *) ac_try_echo=$ac_try;; |
| 15590 | esac |
| 15591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15592 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15593 | ac_status=$? |
| 15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15595 | (exit $ac_status); }; } && |
| 15596 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15597 | { (case "(($ac_try" in |
| 15598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15599 | *) ac_try_echo=$ac_try;; |
| 15600 | esac |
| 15601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15602 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15603 | ac_status=$? |
| 15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15605 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15606 | ac_cv_c_bigendian=yes |
| 15607 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15608 | echo "$as_me: failed program was:" >&5 |
| 15609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15610 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15611 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15612 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15613 | |
| 15614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15615 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15616 | echo "$as_me: failed program was:" >&5 |
| 15617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15619 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15620 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15621 | # try to guess the endianness by grepping values into an object file |
| 15622 | ac_cv_c_bigendian=unknown |
| 15623 | cat >conftest.$ac_ext <<_ACEOF |
| 15624 | /* confdefs.h. */ |
| 15625 | _ACEOF |
| 15626 | cat confdefs.h >>conftest.$ac_ext |
| 15627 | cat >>conftest.$ac_ext <<_ACEOF |
| 15628 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15629 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15630 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15631 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15632 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15633 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15634 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15635 | int |
| 15636 | main () |
| 15637 | { |
| 15638 | _ascii (); _ebcdic (); |
| 15639 | ; |
| 15640 | return 0; |
| 15641 | } |
| 15642 | _ACEOF |
| 15643 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15644 | if { (ac_try="$ac_compile" |
| 15645 | case "(($ac_try" in |
| 15646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15647 | *) ac_try_echo=$ac_try;; |
| 15648 | esac |
| 15649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15650 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15651 | ac_status=$? |
| 15652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15653 | rm -f conftest.er1 |
| 15654 | cat conftest.err >&5 |
| 15655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15656 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15658 | { (case "(($ac_try" in |
| 15659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15660 | *) ac_try_echo=$ac_try;; |
| 15661 | esac |
| 15662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15663 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15664 | ac_status=$? |
| 15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15666 | (exit $ac_status); }; } && |
| 15667 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15668 | { (case "(($ac_try" in |
| 15669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15670 | *) ac_try_echo=$ac_try;; |
| 15671 | esac |
| 15672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15673 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15674 | ac_status=$? |
| 15675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15676 | (exit $ac_status); }; }; then |
| 15677 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15678 | ac_cv_c_bigendian=yes |
| 15679 | fi |
| 15680 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15681 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15682 | ac_cv_c_bigendian=no |
| 15683 | else |
| 15684 | # finding both strings is unlikely to happen, but who knows? |
| 15685 | ac_cv_c_bigendian=unknown |
| 15686 | fi |
| 15687 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15688 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15689 | echo "$as_me: failed program was:" >&5 |
| 15690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15691 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15692 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15693 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15694 | |
| 15695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15696 | else |
| 15697 | cat >conftest.$ac_ext <<_ACEOF |
| 15698 | /* confdefs.h. */ |
| 15699 | _ACEOF |
| 15700 | cat confdefs.h >>conftest.$ac_ext |
| 15701 | cat >>conftest.$ac_ext <<_ACEOF |
| 15702 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15703 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15704 | int |
| 15705 | main () |
| 15706 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15707 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15708 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15709 | union |
| 15710 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15711 | long int l; |
| 15712 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15713 | } u; |
| 15714 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15715 | return u.c[sizeof (long int) - 1] == 1; |
| 15716 | |
| 15717 | ; |
| 15718 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15719 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15720 | _ACEOF |
| 15721 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15722 | if { (ac_try="$ac_link" |
| 15723 | case "(($ac_try" in |
| 15724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15725 | *) ac_try_echo=$ac_try;; |
| 15726 | esac |
| 15727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15728 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15729 | ac_status=$? |
| 15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15732 | { (case "(($ac_try" in |
| 15733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15734 | *) ac_try_echo=$ac_try;; |
| 15735 | esac |
| 15736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15737 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15738 | ac_status=$? |
| 15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15740 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15741 | ac_cv_c_bigendian=no |
| 15742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15743 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15744 | echo "$as_me: failed program was:" >&5 |
| 15745 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15746 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15747 | ( exit $ac_status ) |
| 15748 | ac_cv_c_bigendian=yes |
| 15749 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15750 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15751 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15752 | |
| 15753 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15754 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15755 | |
| 15756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15758 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15759 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15760 | case $ac_cv_c_bigendian in |
| 15761 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15762 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15763 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15764 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15765 | _ACEOF |
| 15766 | ;; |
| 15767 | no) |
| 15768 | ;; |
| 15769 | *) |
| 15770 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 15771 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15772 | echo "$as_me: error: unknown endianness |
| 15773 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15774 | { (exit 1); exit 1; }; } ;; |
| 15775 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15776 | |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15777 | /bin/sh $ac_aux_dir/parse-types.sh |
| 15778 | ASM_TYPES_HEADER=./asm_types.h |
| 15779 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15780 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15781 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15782 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15784 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15785 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15789 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15790 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15791 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15792 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15793 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15794 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15795 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15796 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15797 | cat >conftest.$ac_ext <<_ACEOF |
| 15798 | /* confdefs.h. */ |
| 15799 | _ACEOF |
| 15800 | cat confdefs.h >>conftest.$ac_ext |
| 15801 | cat >>conftest.$ac_ext <<_ACEOF |
| 15802 | /* end confdefs.h. */ |
| 15803 | $ac_includes_default |
| 15804 | #include <$ac_header> |
| 15805 | _ACEOF |
| 15806 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15807 | if { (ac_try="$ac_compile" |
| 15808 | case "(($ac_try" in |
| 15809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15810 | *) ac_try_echo=$ac_try;; |
| 15811 | esac |
| 15812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15813 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15814 | ac_status=$? |
| 15815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15816 | rm -f conftest.er1 |
| 15817 | cat conftest.err >&5 |
| 15818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15819 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15821 | { (case "(($ac_try" in |
| 15822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15823 | *) ac_try_echo=$ac_try;; |
| 15824 | esac |
| 15825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15826 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15827 | ac_status=$? |
| 15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15829 | (exit $ac_status); }; } && |
| 15830 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15831 | { (case "(($ac_try" in |
| 15832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15833 | *) ac_try_echo=$ac_try;; |
| 15834 | esac |
| 15835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15836 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15837 | ac_status=$? |
| 15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15839 | (exit $ac_status); }; }; then |
| 15840 | ac_header_compiler=yes |
| 15841 | else |
| 15842 | echo "$as_me: failed program was:" >&5 |
| 15843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15844 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15845 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15846 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15847 | |
| 15848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15849 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15850 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15851 | |
| 15852 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15853 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15854 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15855 | cat >conftest.$ac_ext <<_ACEOF |
| 15856 | /* confdefs.h. */ |
| 15857 | _ACEOF |
| 15858 | cat confdefs.h >>conftest.$ac_ext |
| 15859 | cat >>conftest.$ac_ext <<_ACEOF |
| 15860 | /* end confdefs.h. */ |
| 15861 | #include <$ac_header> |
| 15862 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15863 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15864 | case "(($ac_try" in |
| 15865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15866 | *) ac_try_echo=$ac_try;; |
| 15867 | esac |
| 15868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15869 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15870 | ac_status=$? |
| 15871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15872 | rm -f conftest.er1 |
| 15873 | cat conftest.err >&5 |
| 15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15875 | (exit $ac_status); } >/dev/null; then |
| 15876 | if test -s conftest.err; then |
| 15877 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15879 | else |
| 15880 | ac_cpp_err= |
| 15881 | fi |
| 15882 | else |
| 15883 | ac_cpp_err=yes |
| 15884 | fi |
| 15885 | if test -z "$ac_cpp_err"; then |
| 15886 | ac_header_preproc=yes |
| 15887 | else |
| 15888 | echo "$as_me: failed program was:" >&5 |
| 15889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15890 | |
| 15891 | ac_header_preproc=no |
| 15892 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15893 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15894 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15895 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15896 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15897 | |
| 15898 | # So? What about this header? |
| 15899 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15900 | yes:no: ) |
| 15901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15904 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15905 | ac_header_preproc=yes |
| 15906 | ;; |
| 15907 | no:yes:* ) |
| 15908 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15909 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15910 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15911 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15912 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15913 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15914 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15915 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15917 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15918 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15919 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15920 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15921 | ;; |
| 15922 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15923 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15927 | else |
| 15928 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15929 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15930 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15931 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15932 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15933 | |
| 15934 | fi |
| 15935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15936 | cat >>confdefs.h <<_ACEOF |
| 15937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15938 | _ACEOF |
| 15939 | |
| 15940 | fi |
| 15941 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15942 | done |
| 15943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15944 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 15945 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15946 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 15947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15948 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15949 | cat >conftest.$ac_ext <<_ACEOF |
| 15950 | /* confdefs.h. */ |
| 15951 | _ACEOF |
| 15952 | cat confdefs.h >>conftest.$ac_ext |
| 15953 | cat >>conftest.$ac_ext <<_ACEOF |
| 15954 | /* end confdefs.h. */ |
| 15955 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15956 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15957 | int |
| 15958 | main () |
| 15959 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15960 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15961 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15962 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15963 | return 0; |
| 15964 | ; |
| 15965 | return 0; |
| 15966 | } |
| 15967 | _ACEOF |
| 15968 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15969 | if { (ac_try="$ac_compile" |
| 15970 | case "(($ac_try" in |
| 15971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15972 | *) ac_try_echo=$ac_try;; |
| 15973 | esac |
| 15974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15975 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15976 | ac_status=$? |
| 15977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15978 | rm -f conftest.er1 |
| 15979 | cat conftest.err >&5 |
| 15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15981 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15983 | { (case "(($ac_try" in |
| 15984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15985 | *) ac_try_echo=$ac_try;; |
| 15986 | esac |
| 15987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15988 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15989 | ac_status=$? |
| 15990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15991 | (exit $ac_status); }; } && |
| 15992 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15993 | { (case "(($ac_try" in |
| 15994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15995 | *) ac_try_echo=$ac_try;; |
| 15996 | esac |
| 15997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15998 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15999 | ac_status=$? |
| 16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16001 | (exit $ac_status); }; }; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 16002 | ac_cv_type_intptr_t=yes |
| 16003 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16004 | echo "$as_me: failed program was:" >&5 |
| 16005 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 16006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16007 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 16008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16009 | |
| 16010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 16011 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16012 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 16013 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16014 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16015 | |
| 16016 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 16017 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16018 | _ACEOF |
| 16019 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 16020 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16021 | fi |
| 16022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16023 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 16024 | echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16025 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 16026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16027 | else |
| 16028 | cat >conftest.$ac_ext <<_ACEOF |
| 16029 | /* confdefs.h. */ |
| 16030 | _ACEOF |
| 16031 | cat confdefs.h >>conftest.$ac_ext |
| 16032 | cat >>conftest.$ac_ext <<_ACEOF |
| 16033 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16034 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16035 | int |
| 16036 | main () |
| 16037 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16038 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16039 | ; |
| 16040 | return 0; |
| 16041 | } |
| 16042 | _ACEOF |
| 16043 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16044 | if { (ac_try="$ac_compile" |
| 16045 | case "(($ac_try" in |
| 16046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16047 | *) ac_try_echo=$ac_try;; |
| 16048 | esac |
| 16049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16050 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16051 | ac_status=$? |
| 16052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16053 | rm -f conftest.er1 |
| 16054 | cat conftest.err >&5 |
| 16055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16056 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16058 | { (case "(($ac_try" in |
| 16059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16060 | *) ac_try_echo=$ac_try;; |
| 16061 | esac |
| 16062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16063 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16064 | ac_status=$? |
| 16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16066 | (exit $ac_status); }; } && |
| 16067 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16068 | { (case "(($ac_try" in |
| 16069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16070 | *) ac_try_echo=$ac_try;; |
| 16071 | esac |
| 16072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16073 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16074 | ac_status=$? |
| 16075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16076 | (exit $ac_status); }; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16077 | e2fsprogs_cv_struct_st_flags=yes |
| 16078 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16079 | echo "$as_me: failed program was:" >&5 |
| 16080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16082 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16083 | fi |
| 16084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16086 | fi |
| 16087 | |
| 16088 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 16089 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16090 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16091 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 16092 | echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16093 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 16094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16095 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16096 | cat >conftest.$ac_ext <<_ACEOF |
| 16097 | /* confdefs.h. */ |
| 16098 | _ACEOF |
| 16099 | cat confdefs.h >>conftest.$ac_ext |
| 16100 | cat >>conftest.$ac_ext <<_ACEOF |
| 16101 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16102 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16103 | int |
| 16104 | main () |
| 16105 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16106 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16107 | ; |
| 16108 | return 0; |
| 16109 | } |
| 16110 | _ACEOF |
| 16111 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16112 | if { (ac_try="$ac_compile" |
| 16113 | case "(($ac_try" in |
| 16114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16115 | *) ac_try_echo=$ac_try;; |
| 16116 | esac |
| 16117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16118 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16119 | ac_status=$? |
| 16120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16121 | rm -f conftest.er1 |
| 16122 | cat conftest.err >&5 |
| 16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16124 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16126 | { (case "(($ac_try" in |
| 16127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16128 | *) ac_try_echo=$ac_try;; |
| 16129 | esac |
| 16130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16131 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16132 | ac_status=$? |
| 16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16134 | (exit $ac_status); }; } && |
| 16135 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16136 | { (case "(($ac_try" in |
| 16137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16138 | *) ac_try_echo=$ac_try;; |
| 16139 | esac |
| 16140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16141 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16142 | ac_status=$? |
| 16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16144 | (exit $ac_status); }; }; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16145 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 16146 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16147 | echo "$as_me: failed program was:" >&5 |
| 16148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16149 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16150 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16151 | fi |
| 16152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16154 | fi |
| 16155 | |
| 16156 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 16157 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16158 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16159 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16160 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16161 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16162 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16163 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16164 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16165 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 16166 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16167 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16169 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16170 | cat >conftest.$ac_ext <<_ACEOF |
| 16171 | /* confdefs.h. */ |
| 16172 | _ACEOF |
| 16173 | cat confdefs.h >>conftest.$ac_ext |
| 16174 | cat >>conftest.$ac_ext <<_ACEOF |
| 16175 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16176 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16177 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16179 | int |
| 16180 | main () |
| 16181 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16182 | static struct sockaddr ac_aggr; |
| 16183 | if (ac_aggr.sa_len) |
| 16184 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16185 | ; |
| 16186 | return 0; |
| 16187 | } |
| 16188 | _ACEOF |
| 16189 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16190 | if { (ac_try="$ac_compile" |
| 16191 | case "(($ac_try" in |
| 16192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16193 | *) ac_try_echo=$ac_try;; |
| 16194 | esac |
| 16195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16196 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16197 | ac_status=$? |
| 16198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16199 | rm -f conftest.er1 |
| 16200 | cat conftest.err >&5 |
| 16201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16202 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16204 | { (case "(($ac_try" in |
| 16205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16206 | *) ac_try_echo=$ac_try;; |
| 16207 | esac |
| 16208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16209 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16210 | ac_status=$? |
| 16211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16212 | (exit $ac_status); }; } && |
| 16213 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16214 | { (case "(($ac_try" in |
| 16215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16216 | *) ac_try_echo=$ac_try;; |
| 16217 | esac |
| 16218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16219 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16220 | ac_status=$? |
| 16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16222 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16223 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16225 | echo "$as_me: failed program was:" >&5 |
| 16226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16227 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16228 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16229 | /* confdefs.h. */ |
| 16230 | _ACEOF |
| 16231 | cat confdefs.h >>conftest.$ac_ext |
| 16232 | cat >>conftest.$ac_ext <<_ACEOF |
| 16233 | /* end confdefs.h. */ |
| 16234 | #include <sys/types.h> |
| 16235 | #include <sys/socket.h> |
| 16236 | |
| 16237 | int |
| 16238 | main () |
| 16239 | { |
| 16240 | static struct sockaddr ac_aggr; |
| 16241 | if (sizeof ac_aggr.sa_len) |
| 16242 | return 0; |
| 16243 | ; |
| 16244 | return 0; |
| 16245 | } |
| 16246 | _ACEOF |
| 16247 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16248 | if { (ac_try="$ac_compile" |
| 16249 | case "(($ac_try" in |
| 16250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16251 | *) ac_try_echo=$ac_try;; |
| 16252 | esac |
| 16253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16254 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16255 | ac_status=$? |
| 16256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16257 | rm -f conftest.er1 |
| 16258 | cat conftest.err >&5 |
| 16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16260 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16262 | { (case "(($ac_try" in |
| 16263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16264 | *) ac_try_echo=$ac_try;; |
| 16265 | esac |
| 16266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16267 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16268 | ac_status=$? |
| 16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16270 | (exit $ac_status); }; } && |
| 16271 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16272 | { (case "(($ac_try" in |
| 16273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16274 | *) ac_try_echo=$ac_try;; |
| 16275 | esac |
| 16276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16277 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16278 | ac_status=$? |
| 16279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16280 | (exit $ac_status); }; }; then |
| 16281 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 16282 | else |
| 16283 | echo "$as_me: failed program was:" >&5 |
| 16284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16286 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16287 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16288 | |
| 16289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16290 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16291 | |
| 16292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16293 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16294 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 16295 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16296 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16297 | |
| 16298 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16299 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16300 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16301 | |
| 16302 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16303 | |
| 16304 | |
| 16305 | |
| 16306 | |
| 16307 | |
| 16308 | |
| 16309 | |
| 16310 | |
| 16311 | |
| 16312 | |
| 16313 | |
| 16314 | |
| 16315 | |
| 16316 | |
| 16317 | |
| 16318 | |
| 16319 | |
| 16320 | |
| 16321 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16322 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 16323 | |
| 16324 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 16325 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 16326 | |
| 16327 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16328 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16329 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16330 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16332 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16334 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16335 | cat >conftest.$ac_ext <<_ACEOF |
| 16336 | /* confdefs.h. */ |
| 16337 | _ACEOF |
| 16338 | cat confdefs.h >>conftest.$ac_ext |
| 16339 | cat >>conftest.$ac_ext <<_ACEOF |
| 16340 | /* end confdefs.h. */ |
| 16341 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16343 | #define $ac_func innocuous_$ac_func |
| 16344 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16345 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16346 | which can conflict with char $ac_func (); below. |
| 16347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16348 | <limits.h> exists even on freestanding compilers. */ |
| 16349 | |
| 16350 | #ifdef __STDC__ |
| 16351 | # include <limits.h> |
| 16352 | #else |
| 16353 | # include <assert.h> |
| 16354 | #endif |
| 16355 | |
| 16356 | #undef $ac_func |
| 16357 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16358 | /* Override any GCC internal prototype to avoid an error. |
| 16359 | Use char because int might match the return type of a GCC |
| 16360 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16361 | #ifdef __cplusplus |
| 16362 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16363 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16364 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16365 | /* The GNU C library defines this for functions which it implements |
| 16366 | to always fail with ENOSYS. Some functions are actually named |
| 16367 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16368 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16369 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16370 | #endif |
| 16371 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16372 | int |
| 16373 | main () |
| 16374 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16375 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16376 | ; |
| 16377 | return 0; |
| 16378 | } |
| 16379 | _ACEOF |
| 16380 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16381 | if { (ac_try="$ac_link" |
| 16382 | case "(($ac_try" in |
| 16383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16384 | *) ac_try_echo=$ac_try;; |
| 16385 | esac |
| 16386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16387 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16388 | ac_status=$? |
| 16389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16390 | rm -f conftest.er1 |
| 16391 | cat conftest.err >&5 |
| 16392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16393 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16395 | { (case "(($ac_try" in |
| 16396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16397 | *) ac_try_echo=$ac_try;; |
| 16398 | esac |
| 16399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16400 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16401 | ac_status=$? |
| 16402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16403 | (exit $ac_status); }; } && |
| 16404 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16405 | { (case "(($ac_try" in |
| 16406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16407 | *) ac_try_echo=$ac_try;; |
| 16408 | esac |
| 16409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16410 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16411 | ac_status=$? |
| 16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16413 | (exit $ac_status); }; }; then |
| 16414 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16415 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16416 | echo "$as_me: failed program was:" >&5 |
| 16417 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 16418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16419 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16420 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16421 | |
| 16422 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16423 | conftest$ac_exeext conftest.$ac_ext |
| 16424 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16425 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16426 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16427 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16428 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16429 | cat >>confdefs.h <<_ACEOF |
| 16430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16431 | _ACEOF |
| 16432 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16433 | fi |
| 16434 | done |
| 16435 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16436 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16437 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 16438 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16439 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 16440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16441 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16442 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16443 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16444 | cat >conftest.$ac_ext <<_ACEOF |
| 16445 | /* confdefs.h. */ |
| 16446 | _ACEOF |
| 16447 | cat confdefs.h >>conftest.$ac_ext |
| 16448 | cat >>conftest.$ac_ext <<_ACEOF |
| 16449 | /* end confdefs.h. */ |
| 16450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16451 | /* Override any GCC internal prototype to avoid an error. |
| 16452 | Use char because int might match the return type of a GCC |
| 16453 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16454 | #ifdef __cplusplus |
| 16455 | extern "C" |
| 16456 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16457 | char socket (); |
| 16458 | int |
| 16459 | main () |
| 16460 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16461 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16462 | ; |
| 16463 | return 0; |
| 16464 | } |
| 16465 | _ACEOF |
| 16466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16467 | if { (ac_try="$ac_link" |
| 16468 | case "(($ac_try" in |
| 16469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16470 | *) ac_try_echo=$ac_try;; |
| 16471 | esac |
| 16472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16473 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16474 | ac_status=$? |
| 16475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16476 | rm -f conftest.er1 |
| 16477 | cat conftest.err >&5 |
| 16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16479 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16481 | { (case "(($ac_try" in |
| 16482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16483 | *) ac_try_echo=$ac_try;; |
| 16484 | esac |
| 16485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16486 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16487 | ac_status=$? |
| 16488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16489 | (exit $ac_status); }; } && |
| 16490 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16491 | { (case "(($ac_try" in |
| 16492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16493 | *) ac_try_echo=$ac_try;; |
| 16494 | esac |
| 16495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16496 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16497 | ac_status=$? |
| 16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16499 | (exit $ac_status); }; }; then |
| 16500 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16501 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16502 | echo "$as_me: failed program was:" >&5 |
| 16503 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16504 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16505 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16507 | |
| 16508 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16509 | conftest$ac_exeext conftest.$ac_ext |
| 16510 | LIBS=$ac_check_lib_save_LIBS |
| 16511 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16512 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 16513 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16514 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16515 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16516 | fi |
| 16517 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16518 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16519 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16520 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16521 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16522 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16524 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16525 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16526 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16527 | cat >conftest.$ac_ext <<_ACEOF |
| 16528 | /* confdefs.h. */ |
| 16529 | _ACEOF |
| 16530 | cat confdefs.h >>conftest.$ac_ext |
| 16531 | cat >>conftest.$ac_ext <<_ACEOF |
| 16532 | /* end confdefs.h. */ |
| 16533 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16534 | /* Override any GCC internal prototype to avoid an error. |
| 16535 | Use char because int might match the return type of a GCC |
| 16536 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16537 | #ifdef __cplusplus |
| 16538 | extern "C" |
| 16539 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16540 | char dlopen (); |
| 16541 | int |
| 16542 | main () |
| 16543 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16544 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16545 | ; |
| 16546 | return 0; |
| 16547 | } |
| 16548 | _ACEOF |
| 16549 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16550 | if { (ac_try="$ac_link" |
| 16551 | case "(($ac_try" in |
| 16552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16553 | *) ac_try_echo=$ac_try;; |
| 16554 | esac |
| 16555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16556 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16557 | ac_status=$? |
| 16558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16559 | rm -f conftest.er1 |
| 16560 | cat conftest.err >&5 |
| 16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16562 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16564 | { (case "(($ac_try" in |
| 16565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16566 | *) ac_try_echo=$ac_try;; |
| 16567 | esac |
| 16568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16569 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16570 | ac_status=$? |
| 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16572 | (exit $ac_status); }; } && |
| 16573 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16574 | { (case "(($ac_try" in |
| 16575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16576 | *) ac_try_echo=$ac_try;; |
| 16577 | esac |
| 16578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16579 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16580 | ac_status=$? |
| 16581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16582 | (exit $ac_status); }; }; then |
| 16583 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16584 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16585 | echo "$as_me: failed program was:" >&5 |
| 16586 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16588 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16589 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16590 | |
| 16591 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16592 | conftest$ac_exeext conftest.$ac_ext |
| 16593 | LIBS=$ac_check_lib_save_LIBS |
| 16594 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16595 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16596 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16597 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16598 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16599 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16600 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16601 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16602 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16603 | fi |
| 16604 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16606 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 16607 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16608 | if test "${ac_cv_have_optreset+set}" = set; then |
| 16609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16610 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16611 | cat >conftest.$ac_ext <<_ACEOF |
| 16612 | /* confdefs.h. */ |
| 16613 | _ACEOF |
| 16614 | cat confdefs.h >>conftest.$ac_ext |
| 16615 | cat >>conftest.$ac_ext <<_ACEOF |
| 16616 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16617 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16618 | |
| 16619 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16621 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16622 | ac_cv_have_optreset=yes |
| 16623 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16624 | ac_cv_have_optreset=no |
| 16625 | fi |
| 16626 | rm -f conftest* |
| 16627 | |
| 16628 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16629 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 16630 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16631 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16632 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16633 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16634 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16635 | |
| 16636 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16637 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 16638 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16639 | if diff -u $0 $0 >& /dev/null ; then |
| 16640 | UNI_DIFF_OPTS=-u |
| 16641 | else |
| 16642 | UNI_DIFF_OPTS=-c |
| 16643 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16644 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 16645 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16646 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16647 | case "$host_os" in |
| 16648 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16649 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16650 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16651 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16652 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16653 | ;; |
| 16654 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16655 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16656 | CYGWIN_CMT="#" |
| 16657 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16658 | case "$host_os" in |
| 16659 | linux*) |
| 16660 | LINUX_CMT= |
| 16661 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16662 | cygwin) |
| 16663 | CYGWIN_CMT= |
| 16664 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16665 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16666 | esac |
| 16667 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16668 | |
| 16669 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16670 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16671 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16672 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 16673 | root_prefix=""; |
| 16674 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16675 | fi |
| 16676 | ;; |
| 16677 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16678 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16679 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16680 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16681 | prefix="/usr"; |
| 16682 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 16683 | if test "$mandir" = '${prefix}/man' ; then |
| 16684 | echo "...and mandir defaults to /usr/share/man" |
| 16685 | mandir=/usr/share/man |
| 16686 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16687 | fi |
| 16688 | ;; |
| 16689 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16690 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 16691 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16692 | root_prefix="$ac_default_prefix" |
| 16693 | else |
| 16694 | root_prefix="$prefix" |
| 16695 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 16696 | root_bindir=$bindir |
| 16697 | root_sbindir=$sbindir |
| 16698 | root_libdir=$libdir |
| 16699 | root_sysconfdir=$sysconfdir |
| 16700 | else |
| 16701 | root_bindir='${root_prefix}/bin' |
| 16702 | root_sbindir='${root_prefix}/sbin' |
| 16703 | root_libdir='${root_prefix}/lib' |
| 16704 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16705 | fi |
| 16706 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16707 | |
| 16708 | |
| 16709 | |
| 16710 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16711 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 16712 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16713 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 16714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16715 | else |
| 16716 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16717 | cat >conftest.$ac_ext <<_ACEOF |
| 16718 | /* confdefs.h. */ |
| 16719 | _ACEOF |
| 16720 | cat confdefs.h >>conftest.$ac_ext |
| 16721 | cat >>conftest.$ac_ext <<_ACEOF |
| 16722 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16723 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16724 | int |
| 16725 | main () |
| 16726 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16727 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16728 | ; |
| 16729 | return 0; |
| 16730 | } |
| 16731 | _ACEOF |
| 16732 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16733 | if { (ac_try="$ac_link" |
| 16734 | case "(($ac_try" in |
| 16735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16736 | *) ac_try_echo=$ac_try;; |
| 16737 | esac |
| 16738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16739 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16740 | ac_status=$? |
| 16741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16742 | rm -f conftest.er1 |
| 16743 | cat conftest.err >&5 |
| 16744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16745 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16747 | { (case "(($ac_try" in |
| 16748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16749 | *) ac_try_echo=$ac_try;; |
| 16750 | esac |
| 16751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16752 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16753 | ac_status=$? |
| 16754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16755 | (exit $ac_status); }; } && |
| 16756 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16757 | { (case "(($ac_try" in |
| 16758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16759 | *) ac_try_echo=$ac_try;; |
| 16760 | esac |
| 16761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16762 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16763 | ac_status=$? |
| 16764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16765 | (exit $ac_status); }; }; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16766 | ac_cv_e2fsprogs_use_static=yes |
| 16767 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16768 | echo "$as_me: failed program was:" >&5 |
| 16769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16771 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16773 | |
| 16774 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16775 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16776 | LDFLAGS=$SAVE_LDFLAGS |
| 16777 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16778 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16779 | case "$host_os" in |
| 16780 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16781 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16782 | ;; |
| 16783 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16784 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 16785 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 16786 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16787 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16788 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16789 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16790 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16791 | case "$host_os" in |
| 16792 | darwin*) |
| 16793 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16794 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16795 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16796 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16797 | |
| 16798 | ;; |
| 16799 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16800 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 16801 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 16802 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16803 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16804 | if test "$cross_compiling" = yes ; then |
| 16805 | DO_TEST_SUITE= |
| 16806 | else |
| 16807 | DO_TEST_SUITE=check |
| 16808 | fi |
| 16809 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 16810 | INTL_FLAGS= |
| 16811 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 16812 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 16813 | fi |
| 16814 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 16815 | if test $cross_compiling = no; then |
| 16816 | BUILD_CFLAGS="$CFLAGS" |
| 16817 | BUILD_LDFLAGS="$LDFLAGS" |
| 16818 | else |
| 16819 | BUILD_CFLAGS= |
| 16820 | BUILD_LDFLAGS= |
| 16821 | fi |
| 16822 | |
| 16823 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16824 | test -d lib || mkdir lib |
| 16825 | test -d include || mkdir include |
| 16826 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16827 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 16828 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 16829 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 16830 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 16831 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16832 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 16833 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 16834 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 16835 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 16836 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16837 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 16838 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 16839 | if test -d `dirname ${srcdir}/$i` ; then |
| 16840 | outlist="$outlist $i" |
| 16841 | fi |
| 16842 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16843 | ac_config_files="$ac_config_files $outlist" |
| 16844 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16845 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16846 | # This file is a shell script that caches the results of configure |
| 16847 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16848 | # scripts and configure runs, see configure's option --config-cache. |
| 16849 | # It is not useful on other systems. If it contains results you don't |
| 16850 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16851 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16852 | # config.status only pays attention to the cache file if you give it |
| 16853 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16854 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16855 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16856 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16857 | # following values. |
| 16858 | |
| 16859 | _ACEOF |
| 16860 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 16861 | # The following way of writing the cache mishandles newlines in values, |
| 16862 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16863 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16864 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16865 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16866 | ( |
| 16867 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16868 | eval ac_val=\$$ac_var |
| 16869 | case $ac_val in #( |
| 16870 | *${as_nl}*) |
| 16871 | case $ac_var in #( |
| 16872 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 16873 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 16874 | esac |
| 16875 | case $ac_var in #( |
| 16876 | _ | IFS | as_nl) ;; #( |
| 16877 | *) $as_unset $ac_var ;; |
| 16878 | esac ;; |
| 16879 | esac |
| 16880 | done |
| 16881 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16882 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16883 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16884 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16885 | # `set' does not quote correctly, so add quotes (double-quote |
| 16886 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16887 | sed -n \ |
| 16888 | "s/'/'\\\\''/g; |
| 16889 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16890 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16891 | *) |
| 16892 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16893 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16894 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16895 | esac | |
| 16896 | sort |
| 16897 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16898 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16899 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16900 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16901 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16902 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16903 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16904 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16905 | :end' >>confcache |
| 16906 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16907 | if test -w "$cache_file"; then |
| 16908 | test "x$cache_file" != "x/dev/null" && |
| 16909 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16910 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16911 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16912 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16913 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16914 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16915 | fi |
| 16916 | fi |
| 16917 | rm -f confcache |
| 16918 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16919 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16920 | # Let make expand exec_prefix. |
| 16921 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16922 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16923 | # Transform confdefs.h into DEFS. |
| 16924 | # Protect against shell expansion while executing Makefile rules. |
| 16925 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16926 | # |
| 16927 | # If the first sed substitution is executed (which looks for macros that |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16928 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16929 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16930 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16931 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16932 | :clear |
| 16933 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16934 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16935 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16936 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16937 | b any |
| 16938 | :quote |
| 16939 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 16940 | s/\[/\\&/g |
| 16941 | s/\]/\\&/g |
| 16942 | s/\$/$$/g |
| 16943 | H |
| 16944 | :any |
| 16945 | ${ |
| 16946 | g |
| 16947 | s/^\n// |
| 16948 | s/\n/ /g |
| 16949 | p |
| 16950 | } |
| 16951 | ' |
| 16952 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16953 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16954 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16955 | ac_libobjs= |
| 16956 | ac_ltlibobjs= |
| 16957 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16958 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16959 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16960 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 16961 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16962 | # will be set to the directory where LIBOBJS objects are built. |
| 16963 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16964 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16965 | done |
| 16966 | LIBOBJS=$ac_libobjs |
| 16967 | |
| 16968 | LTLIBOBJS=$ac_ltlibobjs |
| 16969 | |
| 16970 | |
| 16971 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16972 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16973 | ac_clean_files_save=$ac_clean_files |
| 16974 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16975 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16976 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16977 | cat >$CONFIG_STATUS <<_ACEOF |
| 16978 | #! $SHELL |
| 16979 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16980 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16981 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16982 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16983 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16984 | debug=false |
| 16985 | ac_cs_recheck=false |
| 16986 | ac_cs_silent=false |
| 16987 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16988 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16989 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16990 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16991 | ## --------------------- ## |
| 16992 | ## M4sh Initialization. ## |
| 16993 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16994 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16995 | # Be Bourne compatible |
| 16996 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16997 | emulate sh |
| 16998 | NULLCMD=: |
| 16999 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17000 | # is contrary to our usage. Disable this feature. |
| 17001 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17002 | setopt NO_GLOB_SUBST |
| 17003 | else |
| 17004 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17005 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17006 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17007 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17008 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17010 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17011 | # Avoid depending upon Character Ranges. |
| 17012 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17013 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17014 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17015 | as_cr_digits='0123456789' |
| 17016 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17017 | |
| 17018 | # The user is always right. |
| 17019 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17020 | echo "#! /bin/sh" >conf$$.sh |
| 17021 | echo "exit 0" >>conf$$.sh |
| 17022 | chmod +x conf$$.sh |
| 17023 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 17024 | PATH_SEPARATOR=';' |
| 17025 | else |
| 17026 | PATH_SEPARATOR=: |
| 17027 | fi |
| 17028 | rm -f conf$$.sh |
| 17029 | fi |
| 17030 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17031 | # Support unset when possible. |
| 17032 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17033 | as_unset=unset |
| 17034 | else |
| 17035 | as_unset=false |
| 17036 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17038 | |
| 17039 | # IFS |
| 17040 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17041 | # there to prevent editors from complaining about space-tab. |
| 17042 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17043 | # splitting by setting IFS to empty value.) |
| 17044 | as_nl=' |
| 17045 | ' |
| 17046 | IFS=" "" $as_nl" |
| 17047 | |
| 17048 | # Find who we are. Look in the path if we contain no directory separator. |
| 17049 | case $0 in |
| 17050 | *[\\/]* ) as_myself=$0 ;; |
| 17051 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17052 | for as_dir in $PATH |
| 17053 | do |
| 17054 | IFS=$as_save_IFS |
| 17055 | test -z "$as_dir" && as_dir=. |
| 17056 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17057 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17058 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17060 | ;; |
| 17061 | esac |
| 17062 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17063 | # in which case we are not to be found in the path. |
| 17064 | if test "x$as_myself" = x; then |
| 17065 | as_myself=$0 |
| 17066 | fi |
| 17067 | if test ! -f "$as_myself"; then |
| 17068 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17069 | { (exit 1); exit 1; } |
| 17070 | fi |
| 17071 | |
| 17072 | # Work around bugs in pre-3.0 UWIN ksh. |
| 17073 | for as_var in ENV MAIL MAILPATH |
| 17074 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17075 | done |
| 17076 | PS1='$ ' |
| 17077 | PS2='> ' |
| 17078 | PS4='+ ' |
| 17079 | |
| 17080 | # NLS nuisances. |
| 17081 | for as_var in \ |
| 17082 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 17083 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 17084 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17085 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17086 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 17087 | eval $as_var=C; export $as_var |
| 17088 | else |
| 17089 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17090 | fi |
| 17091 | done |
| 17092 | |
| 17093 | # Required to use basename. |
| 17094 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17095 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 17096 | as_expr=expr |
| 17097 | else |
| 17098 | as_expr=false |
| 17099 | fi |
| 17100 | |
| 17101 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 17102 | as_basename=basename |
| 17103 | else |
| 17104 | as_basename=false |
| 17105 | fi |
| 17106 | |
| 17107 | |
| 17108 | # Name of the executable. |
| 17109 | as_me=`$as_basename -- "$0" || |
| 17110 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17111 | X"$0" : 'X\(//\)$' \| \ |
| 17112 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17113 | echo X/"$0" | |
| 17114 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17115 | s//\1/ |
| 17116 | q |
| 17117 | } |
| 17118 | /^X\/\(\/\/\)$/{ |
| 17119 | s//\1/ |
| 17120 | q |
| 17121 | } |
| 17122 | /^X\/\(\/\).*/{ |
| 17123 | s//\1/ |
| 17124 | q |
| 17125 | } |
| 17126 | s/.*/./; q'` |
| 17127 | |
| 17128 | # CDPATH. |
| 17129 | $as_unset CDPATH |
| 17130 | |
| 17131 | |
| 17132 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17133 | as_lineno_1=$LINENO |
| 17134 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17135 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17136 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17138 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17139 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17140 | # line-number line after each line using $LINENO; the second 'sed' |
| 17141 | # does the real work. The second script uses 'N' to pair each |
| 17142 | # line-number line with the line containing $LINENO, and appends |
| 17143 | # trailing '-' during substitution so that $LINENO is not a special |
| 17144 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17145 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17146 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17147 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17148 | sed -n ' |
| 17149 | p |
| 17150 | /[$]LINENO/= |
| 17151 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17152 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17153 | s/[$]LINENO.*/&-/ |
| 17154 | t lineno |
| 17155 | b |
| 17156 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17157 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17158 | :loop |
| 17159 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17160 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17161 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17162 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17163 | chmod +x "$as_me.lineno" || |
| 17164 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17165 | { (exit 1); exit 1; }; } |
| 17166 | |
| 17167 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17168 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17169 | # original and so on. Autoconf is especially sensitive to this). |
| 17170 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17171 | # Exit status is that of the last command. |
| 17172 | exit |
| 17173 | } |
| 17174 | |
| 17175 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17176 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17177 | as_dirname=dirname |
| 17178 | else |
| 17179 | as_dirname=false |
| 17180 | fi |
| 17181 | |
| 17182 | ECHO_C= ECHO_N= ECHO_T= |
| 17183 | case `echo -n x` in |
| 17184 | -n*) |
| 17185 | case `echo 'x\c'` in |
| 17186 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17187 | *) ECHO_C='\c';; |
| 17188 | esac;; |
| 17189 | *) |
| 17190 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17191 | esac |
| 17192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17193 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17194 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17195 | as_expr=expr |
| 17196 | else |
| 17197 | as_expr=false |
| 17198 | fi |
| 17199 | |
| 17200 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17201 | if test -d conf$$.dir; then |
| 17202 | rm -f conf$$.dir/conf$$.file |
| 17203 | else |
| 17204 | rm -f conf$$.dir |
| 17205 | mkdir conf$$.dir |
| 17206 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17207 | echo >conf$$.file |
| 17208 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17209 | as_ln_s='ln -s' |
| 17210 | # ... but there are two gotchas: |
| 17211 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17212 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17213 | # In both cases, we have to default to `cp -p'. |
| 17214 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17215 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17216 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17217 | as_ln_s=ln |
| 17218 | else |
| 17219 | as_ln_s='cp -p' |
| 17220 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17221 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17222 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17223 | |
| 17224 | if mkdir -p . 2>/dev/null; then |
| 17225 | as_mkdir_p=: |
| 17226 | else |
| 17227 | test -d ./-p && rmdir ./-p |
| 17228 | as_mkdir_p=false |
| 17229 | fi |
| 17230 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17231 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 17232 | # systems may use methods other than mode bits to determine executability. |
| 17233 | cat >conf$$.file <<_ASEOF |
| 17234 | #! /bin/sh |
| 17235 | exit 0 |
| 17236 | _ASEOF |
| 17237 | chmod +x conf$$.file |
| 17238 | if test -x conf$$.file >/dev/null 2>&1; then |
| 17239 | as_executable_p="test -x" |
| 17240 | else |
| 17241 | as_executable_p=: |
| 17242 | fi |
| 17243 | rm -f conf$$.file |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17244 | |
| 17245 | # Sed expression to map a string onto a valid CPP name. |
| 17246 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17247 | |
| 17248 | # Sed expression to map a string onto a valid variable name. |
| 17249 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17250 | |
| 17251 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17252 | exec 6>&1 |
| 17253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17254 | # Save the log message, to keep $[0] and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17255 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17256 | # values after options handling. |
| 17257 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17258 | This file was extended by $as_me, which was |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17259 | generated by GNU Autoconf 2.60. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17260 | |
| 17261 | CONFIG_FILES = $CONFIG_FILES |
| 17262 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17263 | CONFIG_LINKS = $CONFIG_LINKS |
| 17264 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17265 | $ $0 $@ |
| 17266 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17267 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17268 | " |
| 17269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17270 | _ACEOF |
| 17271 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17272 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17273 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17274 | config_files="$ac_config_files" |
| 17275 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17276 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17277 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17278 | |
| 17279 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17280 | ac_cs_usage="\ |
| 17281 | \`$as_me' instantiates files from templates according to the |
| 17282 | current configuration. |
| 17283 | |
| 17284 | Usage: $0 [OPTIONS] [FILE]... |
| 17285 | |
| 17286 | -h, --help print this help, then exit |
| 17287 | -V, --version print version number, then exit |
| 17288 | -q, --quiet do not print progress messages |
| 17289 | -d, --debug don't remove temporary files |
| 17290 | --recheck update $as_me by reconfiguring in the same conditions |
| 17291 | --file=FILE[:TEMPLATE] |
| 17292 | instantiate the configuration file FILE |
| 17293 | |
| 17294 | Configuration files: |
| 17295 | $config_files |
| 17296 | |
| 17297 | Configuration commands: |
| 17298 | $config_commands |
| 17299 | |
| 17300 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17302 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17303 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17304 | ac_cs_version="\\ |
| 17305 | config.status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17306 | configured by $0, generated by GNU Autoconf 2.60, |
| 17307 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17309 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17310 | This config.status script is free software; the Free Software Foundation |
| 17311 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17312 | |
| 17313 | ac_pwd='$ac_pwd' |
| 17314 | srcdir='$srcdir' |
| 17315 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17316 | _ACEOF |
| 17317 | |
| 17318 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17319 | # If no file are specified by the user, then we need to provide default |
| 17320 | # value. By we need to know if files were specified by the user. |
| 17321 | ac_need_defaults=: |
| 17322 | while test $# != 0 |
| 17323 | do |
| 17324 | case $1 in |
| 17325 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17326 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17327 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17328 | ac_shift=: |
| 17329 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17330 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17331 | ac_option=$1 |
| 17332 | ac_optarg=$2 |
| 17333 | ac_shift=shift |
| 17334 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17335 | esac |
| 17336 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17337 | case $ac_option in |
| 17338 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17339 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17340 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17341 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17342 | echo "$ac_cs_version"; exit ;; |
| 17343 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17344 | debug=: ;; |
| 17345 | --file | --fil | --fi | --f ) |
| 17346 | $ac_shift |
| 17347 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 17348 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17349 | --he | --h | --help | --hel | -h ) |
| 17350 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17351 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17352 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17353 | ac_cs_silent=: ;; |
| 17354 | |
| 17355 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17356 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 17357 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17358 | { (exit 1); exit 1; }; } ;; |
| 17359 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17360 | *) ac_config_targets="$ac_config_targets $1" |
| 17361 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17362 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17363 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17364 | shift |
| 17365 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17366 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17367 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17368 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17369 | if $ac_cs_silent; then |
| 17370 | exec 6>/dev/null |
| 17371 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17372 | fi |
| 17373 | |
| 17374 | _ACEOF |
| 17375 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17376 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17377 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 17378 | CONFIG_SHELL=$SHELL |
| 17379 | export CONFIG_SHELL |
| 17380 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17381 | fi |
| 17382 | |
| 17383 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17384 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17385 | exec 5>>config.log |
| 17386 | { |
| 17387 | echo |
| 17388 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17389 | ## Running $as_me. ## |
| 17390 | _ASBOX |
| 17391 | echo "$ac_log" |
| 17392 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17394 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17395 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17396 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17397 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17398 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17399 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17400 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17401 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17402 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17403 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 17404 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17405 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17407 | _ACEOF |
| 17408 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17409 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17410 | |
| 17411 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17412 | for ac_config_target in $ac_config_targets |
| 17413 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17414 | case $ac_config_target in |
| 17415 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 17416 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 17417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17418 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17419 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17420 | { (exit 1); exit 1; }; };; |
| 17421 | esac |
| 17422 | done |
| 17423 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17424 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17425 | # If the user did not use the arguments to specify the items to instantiate, |
| 17426 | # then the envvar interface is used. Set only those that are not. |
| 17427 | # We use the long form for the default assignment because of an extremely |
| 17428 | # bizarre bug on SunOS 4.1.3. |
| 17429 | if $ac_need_defaults; then |
| 17430 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17431 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 17432 | fi |
| 17433 | |
| 17434 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17435 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17436 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17437 | # Hook for its removal unless debugging. |
| 17438 | # Note that there is a small window in which the directory will not be cleaned: |
| 17439 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17440 | $debug || |
| 17441 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17442 | tmp= |
| 17443 | trap 'exit_status=$? |
| 17444 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17445 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17446 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17447 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17448 | # Create a (secure) tmp directory for tmp files. |
| 17449 | |
| 17450 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17451 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17452 | test -n "$tmp" && test -d "$tmp" |
| 17453 | } || |
| 17454 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17455 | tmp=./conf$$-$RANDOM |
| 17456 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17457 | } || |
| 17458 | { |
| 17459 | echo "$me: cannot create a temporary directory in ." >&2 |
| 17460 | { (exit 1); exit 1; } |
| 17461 | } |
| 17462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17463 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17464 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17465 | # |
| 17466 | |
| 17467 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17468 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17469 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17470 | |
| 17471 | _ACEOF |
| 17472 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17473 | # Create sed commands to just substitute file output variables. |
| 17474 | |
| 17475 | # Remaining file output variables are in a fragment that also has non-file |
| 17476 | # output varibles. |
| 17477 | |
| 17478 | |
| 17479 | |
| 17480 | ac_delim='%!_!# ' |
| 17481 | for ac_last_try in false false false false false :; do |
| 17482 | cat >conf$$subs.sed <<_ACEOF |
| 17483 | SHELL!$SHELL$ac_delim |
| 17484 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 17485 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 17486 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 17487 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 17488 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 17489 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 17490 | exec_prefix!$exec_prefix$ac_delim |
| 17491 | prefix!$prefix$ac_delim |
| 17492 | program_transform_name!$program_transform_name$ac_delim |
| 17493 | bindir!$bindir$ac_delim |
| 17494 | sbindir!$sbindir$ac_delim |
| 17495 | libexecdir!$libexecdir$ac_delim |
| 17496 | datarootdir!$datarootdir$ac_delim |
| 17497 | datadir!$datadir$ac_delim |
| 17498 | sysconfdir!$sysconfdir$ac_delim |
| 17499 | sharedstatedir!$sharedstatedir$ac_delim |
| 17500 | localstatedir!$localstatedir$ac_delim |
| 17501 | includedir!$includedir$ac_delim |
| 17502 | oldincludedir!$oldincludedir$ac_delim |
| 17503 | docdir!$docdir$ac_delim |
| 17504 | infodir!$infodir$ac_delim |
| 17505 | htmldir!$htmldir$ac_delim |
| 17506 | dvidir!$dvidir$ac_delim |
| 17507 | pdfdir!$pdfdir$ac_delim |
| 17508 | psdir!$psdir$ac_delim |
| 17509 | libdir!$libdir$ac_delim |
| 17510 | localedir!$localedir$ac_delim |
| 17511 | mandir!$mandir$ac_delim |
| 17512 | DEFS!$DEFS$ac_delim |
| 17513 | ECHO_C!$ECHO_C$ac_delim |
| 17514 | ECHO_N!$ECHO_N$ac_delim |
| 17515 | ECHO_T!$ECHO_T$ac_delim |
| 17516 | LIBS!$LIBS$ac_delim |
| 17517 | build_alias!$build_alias$ac_delim |
| 17518 | host_alias!$host_alias$ac_delim |
| 17519 | target_alias!$target_alias$ac_delim |
| 17520 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 17521 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 17522 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 17523 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 17524 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17525 | build!$build$ac_delim |
| 17526 | build_cpu!$build_cpu$ac_delim |
| 17527 | build_vendor!$build_vendor$ac_delim |
| 17528 | build_os!$build_os$ac_delim |
| 17529 | host!$host$ac_delim |
| 17530 | host_cpu!$host_cpu$ac_delim |
| 17531 | host_vendor!$host_vendor$ac_delim |
| 17532 | host_os!$host_os$ac_delim |
| 17533 | CC!$CC$ac_delim |
| 17534 | CFLAGS!$CFLAGS$ac_delim |
| 17535 | LDFLAGS!$LDFLAGS$ac_delim |
| 17536 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 17537 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 17538 | EXEEXT!$EXEEXT$ac_delim |
| 17539 | OBJEXT!$OBJEXT$ac_delim |
| 17540 | LD!$LD$ac_delim |
| 17541 | CPP!$CPP$ac_delim |
| 17542 | GREP!$GREP$ac_delim |
| 17543 | EGREP!$EGREP$ac_delim |
| 17544 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 17545 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 17546 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 17547 | ELF_CMT!$ELF_CMT$ac_delim |
| 17548 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 17549 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 17550 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 17551 | LIB_EXT!$LIB_EXT$ac_delim |
| 17552 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 17553 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
| 17554 | SWAPFS_CMT!$SWAPFS_CMT$ac_delim |
| 17555 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 17556 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 17557 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 17558 | E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17559 | _ACEOF |
| 17560 | |
| 17561 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 17562 | break |
| 17563 | elif $ac_last_try; then |
| 17564 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17565 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17566 | { (exit 1); exit 1; }; } |
| 17567 | else |
| 17568 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17569 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17570 | done |
| 17571 | |
| 17572 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 17573 | if test -n "$ac_eof"; then |
| 17574 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 17575 | ac_eof=`expr $ac_eof + 1` |
| 17576 | fi |
| 17577 | |
| 17578 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17579 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 17580 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17581 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 17582 | r $MCONFIG |
| 17583 | d |
| 17584 | } |
| 17585 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 17586 | r $MAKEFILE_ELF |
| 17587 | d |
| 17588 | } |
| 17589 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 17590 | r $MAKEFILE_BSDLIB |
| 17591 | d |
| 17592 | } |
| 17593 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 17594 | r $MAKEFILE_PROFILE |
| 17595 | d |
| 17596 | } |
| 17597 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 17598 | r $MAKEFILE_CHECKER |
| 17599 | d |
| 17600 | } |
| 17601 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 17602 | r $MAKEFILE_LIBRARY |
| 17603 | d |
| 17604 | } |
| 17605 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 17606 | r $ASM_TYPES_HEADER |
| 17607 | d |
| 17608 | } |
| 17609 | _ACEOF |
| 17610 | sed ' |
| 17611 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 17612 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 17613 | :n |
| 17614 | t n |
| 17615 | s/'"$ac_delim"'$/,g/; t |
| 17616 | s/$/\\/; p |
| 17617 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 17618 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 17619 | rm -f conf$$subs.sed |
| 17620 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17621 | CEOF$ac_eof |
| 17622 | _ACEOF |
| 17623 | |
| 17624 | |
| 17625 | ac_delim='%!_!# ' |
| 17626 | for ac_last_try in false false false false false :; do |
| 17627 | cat >conf$$subs.sed <<_ACEOF |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 17628 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17629 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 17630 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 17631 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
| 17632 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 17633 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 17634 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 17635 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
| 17636 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 17637 | PACKAGE!$PACKAGE$ac_delim |
| 17638 | VERSION!$VERSION$ac_delim |
| 17639 | SET_MAKE!$SET_MAKE$ac_delim |
| 17640 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 17641 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 17642 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 17643 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 17644 | USE_NLS!$USE_NLS$ac_delim |
| 17645 | MSGFMT!$MSGFMT$ac_delim |
| 17646 | GMSGFMT!$GMSGFMT$ac_delim |
| 17647 | XGETTEXT!$XGETTEXT$ac_delim |
| 17648 | MSGMERGE!$MSGMERGE$ac_delim |
| 17649 | RANLIB!$RANLIB$ac_delim |
| 17650 | ALLOCA!$ALLOCA$ac_delim |
| 17651 | GLIBC21!$GLIBC21$ac_delim |
| 17652 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 17653 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 17654 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 17655 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 17656 | LIBICONV!$LIBICONV$ac_delim |
| 17657 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 17658 | INTLBISON!$INTLBISON$ac_delim |
| 17659 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 17660 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 17661 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 17662 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 17663 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 17664 | GENCAT!$GENCAT$ac_delim |
| 17665 | INTLOBJS!$INTLOBJS$ac_delim |
| 17666 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 17667 | INTLLIBS!$INTLLIBS$ac_delim |
| 17668 | LIBINTL!$LIBINTL$ac_delim |
| 17669 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 17670 | POSUB!$POSUB$ac_delim |
| 17671 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 17672 | LN!$LN$ac_delim |
| 17673 | LN_S!$LN_S$ac_delim |
| 17674 | MV!$MV$ac_delim |
| 17675 | CP!$CP$ac_delim |
| 17676 | RM!$RM$ac_delim |
| 17677 | CHMOD!$CHMOD$ac_delim |
| 17678 | AWK!$AWK$ac_delim |
| 17679 | SED!$SED$ac_delim |
| 17680 | PERL!$PERL$ac_delim |
| 17681 | LDCONFIG!$LDCONFIG$ac_delim |
| 17682 | AR!$AR$ac_delim |
| 17683 | STRIP!$STRIP$ac_delim |
| 17684 | BUILD_CC!$BUILD_CC$ac_delim |
| 17685 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 17686 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 17687 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 17688 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 17689 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 17690 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 17691 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 17692 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 17693 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 17694 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 17695 | root_prefix!$root_prefix$ac_delim |
| 17696 | root_bindir!$root_bindir$ac_delim |
| 17697 | root_sbindir!$root_sbindir$ac_delim |
| 17698 | root_libdir!$root_libdir$ac_delim |
| 17699 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 17700 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 17701 | SS_DIR!$SS_DIR$ac_delim |
| 17702 | ET_DIR!$ET_DIR$ac_delim |
| 17703 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 17704 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 17705 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 17706 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 17707 | LIBOBJS!$LIBOBJS$ac_delim |
| 17708 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 17709 | _ACEOF |
| 17710 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame^] | 17711 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17712 | break |
| 17713 | elif $ac_last_try; then |
| 17714 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17715 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17716 | { (exit 1); exit 1; }; } |
| 17717 | else |
| 17718 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17719 | fi |
| 17720 | done |
| 17721 | |
| 17722 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 17723 | if test -n "$ac_eof"; then |
| 17724 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 17725 | ac_eof=`expr $ac_eof + 1` |
| 17726 | fi |
| 17727 | |
| 17728 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17729 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 17730 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 17731 | _ACEOF |
| 17732 | sed ' |
| 17733 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 17734 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 17735 | :n |
| 17736 | t n |
| 17737 | s/'"$ac_delim"'$/,g/; t |
| 17738 | s/$/\\/; p |
| 17739 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 17740 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 17741 | rm -f conf$$subs.sed |
| 17742 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17743 | :end |
| 17744 | s/|#_!!_#|//g |
| 17745 | CEOF$ac_eof |
| 17746 | _ACEOF |
| 17747 | |
| 17748 | |
| 17749 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17750 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17751 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17752 | # (actually we leave an empty line to preserve line numbers). |
| 17753 | if test "x$srcdir" = x.; then |
| 17754 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17755 | s/:*\$(srcdir):*/:/ |
| 17756 | s/:*\${srcdir}:*/:/ |
| 17757 | s/:*@srcdir@:*/:/ |
| 17758 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17759 | s/:*$// |
| 17760 | s/^[^=]*=[ ]*$// |
| 17761 | }' |
| 17762 | fi |
| 17763 | |
| 17764 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17765 | fi # test -n "$CONFIG_FILES" |
| 17766 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17767 | |
| 17768 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 17769 | do |
| 17770 | case $ac_tag in |
| 17771 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17772 | esac |
| 17773 | case $ac_mode$ac_tag in |
| 17774 | :[FHL]*:*);; |
| 17775 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 17776 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 17777 | { (exit 1); exit 1; }; };; |
| 17778 | :[FH]-) ac_tag=-:-;; |
| 17779 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17780 | esac |
| 17781 | ac_save_IFS=$IFS |
| 17782 | IFS=: |
| 17783 | set x $ac_tag |
| 17784 | IFS=$ac_save_IFS |
| 17785 | shift |
| 17786 | ac_file=$1 |
| 17787 | shift |
| 17788 | |
| 17789 | case $ac_mode in |
| 17790 | :L) ac_source=$1;; |
| 17791 | :[FH]) |
| 17792 | ac_file_inputs= |
| 17793 | for ac_f |
| 17794 | do |
| 17795 | case $ac_f in |
| 17796 | -) ac_f="$tmp/stdin";; |
| 17797 | *) # Look for the file first in the build tree, then in the source tree |
| 17798 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17799 | # because $ac_f cannot contain `:'. |
| 17800 | test -f "$ac_f" || |
| 17801 | case $ac_f in |
| 17802 | [\\/$]*) false;; |
| 17803 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17804 | esac || |
| 17805 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17806 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 17807 | { (exit 1); exit 1; }; };; |
| 17808 | esac |
| 17809 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 17810 | done |
| 17811 | |
| 17812 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17813 | # use $as_me), people would be surprised to read: |
| 17814 | # /* config.h. Generated by config.status. */ |
| 17815 | configure_input="Generated from "`IFS=: |
| 17816 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 17817 | if test x"$ac_file" != x-; then |
| 17818 | configure_input="$ac_file. $configure_input" |
| 17819 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17820 | echo "$as_me: creating $ac_file" >&6;} |
| 17821 | fi |
| 17822 | |
| 17823 | case $ac_tag in |
| 17824 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 17825 | esac |
| 17826 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17827 | esac |
| 17828 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17829 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17830 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17831 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17832 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17833 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17834 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17835 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17836 | s//\1/ |
| 17837 | q |
| 17838 | } |
| 17839 | /^X\(\/\/\)[^/].*/{ |
| 17840 | s//\1/ |
| 17841 | q |
| 17842 | } |
| 17843 | /^X\(\/\/\)$/{ |
| 17844 | s//\1/ |
| 17845 | q |
| 17846 | } |
| 17847 | /^X\(\/\).*/{ |
| 17848 | s//\1/ |
| 17849 | q |
| 17850 | } |
| 17851 | s/.*/./; q'` |
| 17852 | { as_dir="$ac_dir" |
| 17853 | case $as_dir in #( |
| 17854 | -*) as_dir=./$as_dir;; |
| 17855 | esac |
| 17856 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17857 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17858 | while :; do |
| 17859 | case $as_dir in #( |
| 17860 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 17861 | *) as_qdir=$as_dir;; |
| 17862 | esac |
| 17863 | as_dirs="'$as_qdir' $as_dirs" |
| 17864 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17865 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17866 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17867 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17868 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17869 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17871 | s//\1/ |
| 17872 | q |
| 17873 | } |
| 17874 | /^X\(\/\/\)[^/].*/{ |
| 17875 | s//\1/ |
| 17876 | q |
| 17877 | } |
| 17878 | /^X\(\/\/\)$/{ |
| 17879 | s//\1/ |
| 17880 | q |
| 17881 | } |
| 17882 | /^X\(\/\).*/{ |
| 17883 | s//\1/ |
| 17884 | q |
| 17885 | } |
| 17886 | s/.*/./; q'` |
| 17887 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17888 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17889 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17890 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17891 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17892 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17893 | ac_builddir=. |
| 17894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17895 | case "$ac_dir" in |
| 17896 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17897 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17899 | # A ".." for each directory in $ac_dir_suffix. |
| 17900 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 17901 | case $ac_top_builddir_sub in |
| 17902 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17903 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17904 | esac ;; |
| 17905 | esac |
| 17906 | ac_abs_top_builddir=$ac_pwd |
| 17907 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17908 | # for backward compatibility: |
| 17909 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17910 | |
| 17911 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17912 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17913 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17914 | ac_top_srcdir=$ac_top_builddir_sub |
| 17915 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17916 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17917 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17918 | ac_top_srcdir=$srcdir |
| 17919 | ac_abs_top_srcdir=$srcdir ;; |
| 17920 | *) # Relative name. |
| 17921 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17922 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17923 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17924 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17925 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17926 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17927 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17928 | case $ac_mode in |
| 17929 | :F) |
| 17930 | # |
| 17931 | # CONFIG_FILE |
| 17932 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17933 | |
| 17934 | case $INSTALL in |
| 17935 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17936 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17937 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17938 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17939 | |
| 17940 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17941 | # If the template does not know about datarootdir, expand it. |
| 17942 | # FIXME: This hack should be removed a few years after 2.60. |
| 17943 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17944 | |
| 17945 | case `sed -n '/datarootdir/ { |
| 17946 | p |
| 17947 | q |
| 17948 | } |
| 17949 | /@datadir@/p |
| 17950 | /@docdir@/p |
| 17951 | /@infodir@/p |
| 17952 | /@localedir@/p |
| 17953 | /@mandir@/p |
| 17954 | ' $ac_file_inputs` in |
| 17955 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17956 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17957 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17958 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17959 | _ACEOF |
| 17960 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17961 | ac_datarootdir_hack=' |
| 17962 | s&@datadir@&$datadir&g |
| 17963 | s&@docdir@&$docdir&g |
| 17964 | s&@infodir@&$infodir&g |
| 17965 | s&@localedir@&$localedir&g |
| 17966 | s&@mandir@&$mandir&g |
| 17967 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17968 | esac |
| 17969 | _ACEOF |
| 17970 | |
| 17971 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17972 | # Shell code in configure.ac might set extrasub. |
| 17973 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17974 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17975 | sed "$ac_vpsub |
| 17976 | $extrasub |
| 17977 | _ACEOF |
| 17978 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17979 | :t |
| 17980 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17981 | s&@configure_input@&$configure_input&;t t |
| 17982 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17983 | s&@srcdir@&$ac_srcdir&;t t |
| 17984 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17985 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17986 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17987 | s&@builddir@&$ac_builddir&;t t |
| 17988 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17989 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17990 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17991 | $ac_datarootdir_hack |
| 17992 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17993 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17994 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17995 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17996 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 17997 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17998 | which seems to be undefined. Please make sure it is defined." >&5 |
| 17999 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 18000 | which seems to be undefined. Please make sure it is defined." >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 18002 | rm -f "$tmp/stdin" |
| 18003 | case $ac_file in |
| 18004 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 18005 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 18006 | esac |
| 18007 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18008 | |
| 18009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 18010 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 18011 | echo "$as_me: executing $ac_file commands" >&6;} |
| 18012 | ;; |
| 18013 | esac |
| 18014 | |
| 18015 | |
| 18016 | case $ac_file$ac_mode in |
| 18017 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18018 | for ac_file in $CONFIG_FILES; do |
| 18019 | # Support "outfile[:infile[:infile...]]" |
| 18020 | case "$ac_file" in |
| 18021 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 18022 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18023 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 18024 | case "$ac_file" in */Makefile.in) |
| 18025 | # Adjust a relative srcdir. |
| 18026 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 18027 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 18028 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 18029 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 18030 | # In autoconf-2.50 it is called $srcdir. |
| 18031 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 18032 | case "$ac_given_srcdir" in |
| 18033 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 18034 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 18035 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 18036 | esac |
| 18037 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 18038 | rm -f "$ac_dir/POTFILES" |
| 18039 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 18040 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18041 | POMAKEFILEDEPS="POTFILES.in" |
| 18042 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18043 | # on $ac_dir but don't depend on user-specified configuration |
| 18044 | # parameters. |
| 18045 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 18046 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18047 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18048 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 18049 | fi |
| 18050 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 18051 | # Hide the ALL_LINGUAS assigment from automake. |
| 18052 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18053 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 18054 | else |
| 18055 | # The set of available languages was given in configure.in. |
| 18056 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18057 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18058 | # Compute POFILES |
| 18059 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 18060 | # Compute UPDATEPOFILES |
| 18061 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 18062 | # Compute DUMMYPOFILES |
| 18063 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 18064 | # Compute GMOFILES |
| 18065 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18066 | case "$ac_given_srcdir" in |
| 18067 | .) srcdirpre= ;; |
| 18068 | *) srcdirpre='$(srcdir)/' ;; |
| 18069 | esac |
| 18070 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18071 | UPDATEPOFILES= |
| 18072 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18073 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18074 | for lang in $ALL_LINGUAS; do |
| 18075 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18076 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 18077 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18078 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18079 | done |
| 18080 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 18081 | # environment variable. |
| 18082 | INST_LINGUAS= |
| 18083 | if test -n "$ALL_LINGUAS"; then |
| 18084 | for presentlang in $ALL_LINGUAS; do |
| 18085 | useit=no |
| 18086 | if test "%UNSET%" != "$LINGUAS"; then |
| 18087 | desiredlanguages="$LINGUAS" |
| 18088 | else |
| 18089 | desiredlanguages="$ALL_LINGUAS" |
| 18090 | fi |
| 18091 | for desiredlang in $desiredlanguages; do |
| 18092 | # Use the presentlang catalog if desiredlang is |
| 18093 | # a. equal to presentlang, or |
| 18094 | # b. a variant of presentlang (because in this case, |
| 18095 | # presentlang can be used as a fallback for messages |
| 18096 | # which are not translated in the desiredlang catalog). |
| 18097 | case "$desiredlang" in |
| 18098 | "$presentlang"*) useit=yes;; |
| 18099 | esac |
| 18100 | done |
| 18101 | if test $useit = yes; then |
| 18102 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 18103 | fi |
| 18104 | done |
| 18105 | fi |
| 18106 | CATALOGS= |
| 18107 | if test -n "$INST_LINGUAS"; then |
| 18108 | for lang in $INST_LINGUAS; do |
| 18109 | CATALOGS="$CATALOGS $lang.gmo" |
| 18110 | done |
| 18111 | fi |
| 18112 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18113 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18114 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 18115 | if test -f "$f"; then |
| 18116 | case "$f" in |
| 18117 | *.orig | *.bak | *~) ;; |
| 18118 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 18119 | esac |
| 18120 | fi |
| 18121 | done |
| 18122 | fi |
| 18123 | ;; |
| 18124 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18125 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 18126 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 18127 | esac |
| 18128 | done # for ac_tag |
| 18129 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18130 | |
| 18131 | { (exit 0); exit 0; } |
| 18132 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 18133 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18134 | ac_clean_files=$ac_clean_files_save |
| 18135 | |
| 18136 | |
| 18137 | # configure is writing to config.log, and then calls config.status. |
| 18138 | # config.status does its own redirection, appending to config.log. |
| 18139 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18140 | # by configure, so config.status won't be able to write to it; its |
| 18141 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18142 | # effectively closing config.log, so it can be properly (re)opened and |
| 18143 | # appended to by config.status. When coming back to configure, we |
| 18144 | # need to make the FD available again. |
| 18145 | if test "$no_create" != yes; then |
| 18146 | ac_cs_success=: |
| 18147 | ac_config_status_args= |
| 18148 | test "$silent" = yes && |
| 18149 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18150 | exec 5>/dev/null |
| 18151 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 18152 | exec 5>>config.log |
| 18153 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18154 | # would make configure fail if this is the last instruction. |
| 18155 | $ac_cs_success || { (exit 1); exit 1; } |
| 18156 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 18157 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 18158 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 18159 | |