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 |
| 642 | build |
| 643 | build_cpu |
| 644 | build_vendor |
| 645 | build_os |
| 646 | host |
| 647 | host_cpu |
| 648 | host_vendor |
| 649 | host_os |
| 650 | CC |
| 651 | CFLAGS |
| 652 | LDFLAGS |
| 653 | CPPFLAGS |
| 654 | ac_ct_CC |
| 655 | EXEEXT |
| 656 | OBJEXT |
| 657 | LD |
| 658 | CPP |
| 659 | GREP |
| 660 | EGREP |
| 661 | LINUX_INCLUDE |
| 662 | MAINTAINER_CMT |
| 663 | HTREE_CMT |
| 664 | ELF_CMT |
| 665 | BSDLIB_CMT |
| 666 | PROFILE_CMT |
| 667 | CHECKER_CMT |
| 668 | LIB_EXT |
| 669 | STATIC_LIB_EXT |
| 670 | PROFILED_LIB_EXT |
| 671 | SWAPFS_CMT |
| 672 | DEBUGFS_CMT |
| 673 | IMAGER_CMT |
| 674 | RESIZER_CMT |
| 675 | E2FSCK_TYPE |
| 676 | FSCK_PROG |
| 677 | FSCK_MAN |
| 678 | E2INITRD_PROG |
| 679 | E2INITRD_MAN |
| 680 | DEVMAPPER_REQ |
| 681 | DEVMAPPER_PC_LIBS |
| 682 | DEVMAPPER_LIBS |
| 683 | STATIC_DEVMAPPER_LIBS |
| 684 | GETTEXT_PACKAGE |
| 685 | PACKAGE |
| 686 | VERSION |
| 687 | SET_MAKE |
| 688 | INSTALL_PROGRAM |
| 689 | INSTALL_SCRIPT |
| 690 | INSTALL_DATA |
| 691 | MKINSTALLDIRS |
| 692 | USE_NLS |
| 693 | MSGFMT |
| 694 | GMSGFMT |
| 695 | XGETTEXT |
| 696 | MSGMERGE |
| 697 | RANLIB |
| 698 | ALLOCA |
| 699 | GLIBC21 |
| 700 | HAVE_POSIX_PRINTF |
| 701 | HAVE_ASPRINTF |
| 702 | HAVE_SNPRINTF |
| 703 | HAVE_WPRINTF |
| 704 | LIBICONV |
| 705 | LTLIBICONV |
| 706 | INTLBISON |
| 707 | BUILD_INCLUDED_LIBINTL |
| 708 | USE_INCLUDED_LIBINTL |
| 709 | CATOBJEXT |
| 710 | DATADIRNAME |
| 711 | INSTOBJEXT |
| 712 | GENCAT |
| 713 | INTLOBJS |
| 714 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 715 | INTLLIBS |
| 716 | LIBINTL |
| 717 | LTLIBINTL |
| 718 | POSUB |
| 719 | BINARY_TYPE |
| 720 | LN |
| 721 | LN_S |
| 722 | MV |
| 723 | CP |
| 724 | RM |
| 725 | CHMOD |
| 726 | AWK |
| 727 | SED |
| 728 | PERL |
| 729 | LDCONFIG |
| 730 | AR |
| 731 | STRIP |
| 732 | BUILD_CC |
| 733 | SIZEOF_SHORT |
| 734 | SIZEOF_INT |
| 735 | SIZEOF_LONG |
| 736 | SIZEOF_LONG_LONG |
| 737 | SOCKET_LIB |
| 738 | DLOPEN_LIB |
| 739 | UNI_DIFF_OPTS |
| 740 | LINUX_CMT |
| 741 | CYGWIN_CMT |
| 742 | UNIX_CMT |
| 743 | root_prefix |
| 744 | root_bindir |
| 745 | root_sbindir |
| 746 | root_libdir |
| 747 | root_sysconfdir |
| 748 | LDFLAG_STATIC |
| 749 | SS_DIR |
| 750 | ET_DIR |
| 751 | DO_TEST_SUITE |
| 752 | INTL_FLAGS |
| 753 | BUILD_CFLAGS |
| 754 | BUILD_LDFLAGS |
| 755 | LIBOBJS |
| 756 | LTLIBOBJS' |
| 757 | ac_subst_files='MCONFIG |
| 758 | MAKEFILE_ELF |
| 759 | MAKEFILE_BSDLIB |
| 760 | MAKEFILE_PROFILE |
| 761 | MAKEFILE_CHECKER |
| 762 | MAKEFILE_LIBRARY |
| 763 | ASM_TYPES_HEADER' |
| 764 | ac_precious_vars='build_alias |
| 765 | host_alias |
| 766 | target_alias |
| 767 | CC |
| 768 | CFLAGS |
| 769 | LDFLAGS |
| 770 | CPPFLAGS |
| 771 | CPP' |
| 772 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 773 | |
| 774 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 775 | ac_init_help= |
| 776 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 777 | # The variables have the same names as the options, with |
| 778 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 779 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 780 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 781 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 782 | no_recursion= |
| 783 | prefix=NONE |
| 784 | program_prefix=NONE |
| 785 | program_suffix=NONE |
| 786 | program_transform_name=s,x,x, |
| 787 | silent= |
| 788 | site= |
| 789 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 790 | verbose= |
| 791 | x_includes=NONE |
| 792 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 793 | |
| 794 | # Installation directory options. |
| 795 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 796 | # and all the variables that are supposed to be based on exec_prefix |
| 797 | # by default will actually change. |
| 798 | # 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^] | 799 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 800 | bindir='${exec_prefix}/bin' |
| 801 | sbindir='${exec_prefix}/sbin' |
| 802 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 803 | datarootdir='${prefix}/share' |
| 804 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 805 | sysconfdir='${prefix}/etc' |
| 806 | sharedstatedir='${prefix}/com' |
| 807 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 808 | includedir='${prefix}/include' |
| 809 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 810 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 811 | infodir='${datarootdir}/info' |
| 812 | htmldir='${docdir}' |
| 813 | dvidir='${docdir}' |
| 814 | pdfdir='${docdir}' |
| 815 | psdir='${docdir}' |
| 816 | libdir='${exec_prefix}/lib' |
| 817 | localedir='${datarootdir}/locale' |
| 818 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 819 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 820 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 821 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 822 | for ac_option |
| 823 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 824 | # If the previous option needs an argument, assign it. |
| 825 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 826 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 827 | ac_prev= |
| 828 | continue |
| 829 | fi |
| 830 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 831 | case $ac_option in |
| 832 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 833 | *) ac_optarg=yes ;; |
| 834 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 835 | |
| 836 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 837 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 838 | case $ac_dashdash$ac_option in |
| 839 | --) |
| 840 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 842 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 843 | ac_prev=bindir ;; |
| 844 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 845 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 846 | |
| 847 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 848 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 849 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 850 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 851 | |
| 852 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 853 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 854 | ac_prev=cache_file ;; |
| 855 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 856 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 857 | cache_file=$ac_optarg ;; |
| 858 | |
| 859 | --config-cache | -C) |
| 860 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 861 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 862 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 863 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 864 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 865 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 867 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 868 | | --dataroo | --dataro | --datar) |
| 869 | ac_prev=datarootdir ;; |
| 870 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 871 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 872 | datarootdir=$ac_optarg ;; |
| 873 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 874 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 875 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 876 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 877 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 878 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 879 | { (exit 1); exit 1; }; } |
| 880 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 881 | eval enable_$ac_feature=no ;; |
| 882 | |
| 883 | -docdir | --docdir | --docdi | --doc | --do) |
| 884 | ac_prev=docdir ;; |
| 885 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 886 | docdir=$ac_optarg ;; |
| 887 | |
| 888 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 889 | ac_prev=dvidir ;; |
| 890 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 891 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 892 | |
| 893 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 894 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 896 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 897 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 898 | { (exit 1); exit 1; }; } |
| 899 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 900 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 901 | |
| 902 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 903 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 904 | | --exec | --exe | --ex) |
| 905 | ac_prev=exec_prefix ;; |
| 906 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 907 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 908 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 909 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 910 | |
| 911 | -gas | --gas | --ga | --g) |
| 912 | # Obsolete; use --with-gas. |
| 913 | with_gas=yes ;; |
| 914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 915 | -help | --help | --hel | --he | -h) |
| 916 | ac_init_help=long ;; |
| 917 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 918 | ac_init_help=recursive ;; |
| 919 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 920 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 921 | |
| 922 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 923 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 924 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 925 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 927 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 928 | ac_prev=htmldir ;; |
| 929 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 930 | | --ht=*) |
| 931 | htmldir=$ac_optarg ;; |
| 932 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 933 | -includedir | --includedir | --includedi | --included | --include \ |
| 934 | | --includ | --inclu | --incl | --inc) |
| 935 | ac_prev=includedir ;; |
| 936 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 937 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 938 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 939 | |
| 940 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 941 | ac_prev=infodir ;; |
| 942 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 943 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 944 | |
| 945 | -libdir | --libdir | --libdi | --libd) |
| 946 | ac_prev=libdir ;; |
| 947 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 948 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 949 | |
| 950 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 951 | | --libexe | --libex | --libe) |
| 952 | ac_prev=libexecdir ;; |
| 953 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 954 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 955 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 957 | -localedir | --localedir | --localedi | --localed | --locale) |
| 958 | ac_prev=localedir ;; |
| 959 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 960 | localedir=$ac_optarg ;; |
| 961 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 962 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 963 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 964 | ac_prev=localstatedir ;; |
| 965 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 966 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 967 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 968 | |
| 969 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 970 | ac_prev=mandir ;; |
| 971 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 972 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 973 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 974 | -nfp | --nfp | --nf) |
| 975 | # Obsolete; use --without-fp. |
| 976 | with_fp=no ;; |
| 977 | |
| 978 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 979 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 980 | no_create=yes ;; |
| 981 | |
| 982 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 983 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 984 | no_recursion=yes ;; |
| 985 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 986 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 987 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 988 | | --oldin | --oldi | --old | --ol | --o) |
| 989 | ac_prev=oldincludedir ;; |
| 990 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 991 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 992 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 993 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 994 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 996 | ac_prev=prefix ;; |
| 997 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 998 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 999 | |
| 1000 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1001 | | --program-pre | --program-pr | --program-p) |
| 1002 | ac_prev=program_prefix ;; |
| 1003 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1004 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1005 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1006 | |
| 1007 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1008 | | --program-suf | --program-su | --program-s) |
| 1009 | ac_prev=program_suffix ;; |
| 1010 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1011 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1012 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1013 | |
| 1014 | -program-transform-name | --program-transform-name \ |
| 1015 | | --program-transform-nam | --program-transform-na \ |
| 1016 | | --program-transform-n | --program-transform- \ |
| 1017 | | --program-transform | --program-transfor \ |
| 1018 | | --program-transfo | --program-transf \ |
| 1019 | | --program-trans | --program-tran \ |
| 1020 | | --progr-tra | --program-tr | --program-t) |
| 1021 | ac_prev=program_transform_name ;; |
| 1022 | -program-transform-name=* | --program-transform-name=* \ |
| 1023 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1024 | | --program-transform-n=* | --program-transform-=* \ |
| 1025 | | --program-transform=* | --program-transfor=* \ |
| 1026 | | --program-transfo=* | --program-transf=* \ |
| 1027 | | --program-trans=* | --program-tran=* \ |
| 1028 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1029 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1030 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1031 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1032 | ac_prev=pdfdir ;; |
| 1033 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1034 | pdfdir=$ac_optarg ;; |
| 1035 | |
| 1036 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1037 | ac_prev=psdir ;; |
| 1038 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1039 | psdir=$ac_optarg ;; |
| 1040 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1041 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1042 | | -silent | --silent | --silen | --sile | --sil) |
| 1043 | silent=yes ;; |
| 1044 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1045 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1046 | ac_prev=sbindir ;; |
| 1047 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1048 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1049 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1050 | |
| 1051 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1052 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1053 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1054 | | --sha | --sh) |
| 1055 | ac_prev=sharedstatedir ;; |
| 1056 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1057 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1058 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1059 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1060 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1061 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | -site | --site | --sit) |
| 1063 | ac_prev=site ;; |
| 1064 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1065 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1066 | |
| 1067 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1068 | ac_prev=srcdir ;; |
| 1069 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1070 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1071 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1072 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1073 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1074 | ac_prev=sysconfdir ;; |
| 1075 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1076 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1077 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1078 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1079 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1080 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1081 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1082 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1083 | |
| 1084 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1085 | verbose=yes ;; |
| 1086 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | -version | --version | --versio | --versi | --vers | -V) |
| 1088 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1089 | |
| 1090 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1091 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1092 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1093 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1094 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1095 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1096 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1097 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | |
| 1099 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1100 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1101 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1102 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1103 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1104 | { (exit 1); exit 1; }; } |
| 1105 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1106 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1107 | |
| 1108 | --x) |
| 1109 | # Obsolete; use --with-x. |
| 1110 | with_x=yes ;; |
| 1111 | |
| 1112 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1113 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1114 | ac_prev=x_includes ;; |
| 1115 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1116 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1117 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1118 | |
| 1119 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1120 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1121 | ac_prev=x_libraries ;; |
| 1122 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1123 | | --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] | 1124 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1126 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1127 | Try \`$0 --help' for more information." >&2 |
| 1128 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1129 | ;; |
| 1130 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1131 | *=*) |
| 1132 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1133 | # Reject names that are not valid shell variable names. |
| 1134 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1135 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1136 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1137 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1138 | export $ac_envvar ;; |
| 1139 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1140 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1141 | # FIXME: should be removed in autoconf 3.0. |
| 1142 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1143 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1144 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1145 | : ${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] | 1146 | ;; |
| 1147 | |
| 1148 | esac |
| 1149 | done |
| 1150 | |
| 1151 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1153 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1154 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1155 | fi |
| 1156 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1157 | # Be sure to have absolute directory names. |
| 1158 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1159 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1160 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1161 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1162 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1163 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1164 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1165 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1166 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1167 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1168 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1169 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1170 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1171 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1172 | # There might be people who depend on the old broken behavior: `$host' |
| 1173 | # used to hold the argument of --host etc. |
| 1174 | # FIXME: To remove some day. |
| 1175 | build=$build_alias |
| 1176 | host=$host_alias |
| 1177 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1179 | # FIXME: To remove some day. |
| 1180 | if test "x$host_alias" != x; then |
| 1181 | if test "x$build_alias" = x; then |
| 1182 | cross_compiling=maybe |
| 1183 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1184 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1185 | elif test "x$build_alias" != "x$host_alias"; then |
| 1186 | cross_compiling=yes |
| 1187 | fi |
| 1188 | fi |
| 1189 | |
| 1190 | ac_tool_prefix= |
| 1191 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1192 | |
| 1193 | test "$silent" = yes && exec 6>/dev/null |
| 1194 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1195 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1196 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1197 | ac_ls_di=`ls -di .` && |
| 1198 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1199 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1200 | { (exit 1); exit 1; }; } |
| 1201 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1202 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1203 | { (exit 1); exit 1; }; } |
| 1204 | |
| 1205 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1206 | # Find the source files, if location was not specified. |
| 1207 | if test -z "$srcdir"; then |
| 1208 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1209 | # Try the directory containing this script, then the parent directory. |
| 1210 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1211 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1212 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1213 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1214 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1215 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1216 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1217 | s//\1/ |
| 1218 | q |
| 1219 | } |
| 1220 | /^X\(\/\/\)[^/].*/{ |
| 1221 | s//\1/ |
| 1222 | q |
| 1223 | } |
| 1224 | /^X\(\/\/\)$/{ |
| 1225 | s//\1/ |
| 1226 | q |
| 1227 | } |
| 1228 | /^X\(\/\).*/{ |
| 1229 | s//\1/ |
| 1230 | q |
| 1231 | } |
| 1232 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1233 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1234 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1235 | srcdir=.. |
| 1236 | fi |
| 1237 | else |
| 1238 | ac_srcdir_defaulted=no |
| 1239 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1240 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1241 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1242 | { 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] | 1243 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1244 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1245 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1246 | ac_abs_confdir=`( |
| 1247 | 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] | 1248 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1249 | pwd)` |
| 1250 | # When building in place, set srcdir=. |
| 1251 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1252 | srcdir=. |
| 1253 | fi |
| 1254 | # Remove unnecessary trailing slashes from srcdir. |
| 1255 | # Double slashes in file names in object file debugging info |
| 1256 | # mess up M-x gdb in Emacs. |
| 1257 | case $srcdir in |
| 1258 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1259 | esac |
| 1260 | for ac_var in $ac_precious_vars; do |
| 1261 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1262 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1263 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1264 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1265 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1266 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1267 | # |
| 1268 | # Report the --help message. |
| 1269 | # |
| 1270 | if test "$ac_init_help" = "long"; then |
| 1271 | # Omit some internal or obsolete options to make the list less imposing. |
| 1272 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1273 | cat <<_ACEOF |
| 1274 | \`configure' configures this package to adapt to many kinds of systems. |
| 1275 | |
| 1276 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1277 | |
| 1278 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1279 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1280 | |
| 1281 | Defaults for the options are specified in brackets. |
| 1282 | |
| 1283 | Configuration: |
| 1284 | -h, --help display this help and exit |
| 1285 | --help=short display options specific to this package |
| 1286 | --help=recursive display the short help of all the included packages |
| 1287 | -V, --version display version information and exit |
| 1288 | -q, --quiet, --silent do not print \`checking...' messages |
| 1289 | --cache-file=FILE cache test results in FILE [disabled] |
| 1290 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1291 | -n, --no-create do not create output files |
| 1292 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1293 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1294 | Installation directories: |
| 1295 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1296 | [$ac_default_prefix] |
| 1297 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1298 | [PREFIX] |
| 1299 | |
| 1300 | By default, \`make install' will install all the files in |
| 1301 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1302 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1303 | for instance \`--prefix=\$HOME'. |
| 1304 | |
| 1305 | For better control, use the options below. |
| 1306 | |
| 1307 | Fine tuning of the installation directories: |
| 1308 | --bindir=DIR user executables [EPREFIX/bin] |
| 1309 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1310 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1311 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1312 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1313 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1314 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1315 | --includedir=DIR C header files [PREFIX/include] |
| 1316 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1317 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1318 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1319 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1320 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1321 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1322 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1323 | --htmldir=DIR html documentation [DOCDIR] |
| 1324 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1325 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1326 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1327 | _ACEOF |
| 1328 | |
| 1329 | cat <<\_ACEOF |
| 1330 | |
| 1331 | System types: |
| 1332 | --build=BUILD configure for building on BUILD [guessed] |
| 1333 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1334 | _ACEOF |
| 1335 | fi |
| 1336 | |
| 1337 | if test -n "$ac_init_help"; then |
| 1338 | |
| 1339 | cat <<\_ACEOF |
| 1340 | |
| 1341 | Optional Features: |
| 1342 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1343 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1344 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1345 | --enable-compression enable EXPERIMENTAL compression support |
| 1346 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1347 | --enable-elf-shlibs select ELF shared libraries |
| 1348 | --enable-bsd-shlibs select BSD shared libraries |
| 1349 | --enable-profile build profiling libraries |
| 1350 | --enable-checker build checker libraries |
| 1351 | --enable-jbd-debug enable journal debugging |
| 1352 | --enable-blkid-debug enable blkid debugging |
| 1353 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 1354 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 1355 | --disable-debugfs disable support of debugfs program |
| 1356 | --disable-imager disable support of e2image program |
| 1357 | --disable-resizer disable support of e2resize program |
| 1358 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 1359 | --enable-fsck build fsck wrapper program |
| 1360 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1361 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1362 | --disable-nls do not use Native Language Support |
| 1363 | --disable-rpath do not hardcode runtime library paths |
| 1364 | |
| 1365 | Optional Packages: |
| 1366 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1367 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1368 | --with-diet-libc Use diet libc |
| 1369 | --with-cc=COMPILER select compiler to use |
| 1370 | --with-linker=LINKER select linker to use |
| 1371 | --with-ccopts=CCOPTS select compiler command line options |
| 1372 | --with-ldopts=LDOPTS select linker command line options |
| 1373 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1374 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1375 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1376 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1377 | --with-included-gettext use the GNU gettext library included here |
| 1378 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1379 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1380 | |
| 1381 | Some influential environment variables: |
| 1382 | CC C compiler command |
| 1383 | CFLAGS C compiler flags |
| 1384 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1385 | nonstandard directory <lib dir> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1386 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1387 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1388 | CPP C preprocessor |
| 1389 | |
| 1390 | Use these variables to override the choices made by `configure' or to help |
| 1391 | it to find libraries and programs with nonstandard names/locations. |
| 1392 | |
| 1393 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1394 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1395 | fi |
| 1396 | |
| 1397 | if test "$ac_init_help" = "recursive"; then |
| 1398 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1399 | 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^] | 1400 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1401 | ac_builddir=. |
| 1402 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1403 | case "$ac_dir" in |
| 1404 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1405 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1406 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1407 | # A ".." for each directory in $ac_dir_suffix. |
| 1408 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1409 | case $ac_top_builddir_sub in |
| 1410 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1411 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1412 | esac ;; |
| 1413 | esac |
| 1414 | ac_abs_top_builddir=$ac_pwd |
| 1415 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1416 | # for backward compatibility: |
| 1417 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1418 | |
| 1419 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1420 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1421 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1422 | ac_top_srcdir=$ac_top_builddir_sub |
| 1423 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1424 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1425 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1426 | ac_top_srcdir=$srcdir |
| 1427 | ac_abs_top_srcdir=$srcdir ;; |
| 1428 | *) # Relative name. |
| 1429 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1430 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1431 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1432 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1433 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1434 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1435 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1436 | # Check for guested configure. |
| 1437 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1438 | echo && |
| 1439 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1440 | elif test -f "$ac_srcdir/configure"; then |
| 1441 | echo && |
| 1442 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1443 | else |
| 1444 | 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^] | 1445 | fi || ac_status=$? |
| 1446 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1447 | done |
| 1448 | fi |
| 1449 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1450 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1451 | if $ac_init_version; then |
| 1452 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1453 | configure |
| 1454 | generated by GNU Autoconf 2.60 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1455 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1456 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1457 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1458 | This configure script is free software; the Free Software Foundation |
| 1459 | gives unlimited permission to copy, distribute and modify it. |
| 1460 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1461 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1462 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1463 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1464 | This file contains any messages produced by compilers while |
| 1465 | running configure, to aid debugging if configure makes a mistake. |
| 1466 | |
| 1467 | It was created by $as_me, which was |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1468 | generated by GNU Autoconf 2.60. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1469 | |
| 1470 | $ $0 $@ |
| 1471 | |
| 1472 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1473 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | { |
| 1475 | cat <<_ASUNAME |
| 1476 | ## --------- ## |
| 1477 | ## Platform. ## |
| 1478 | ## --------- ## |
| 1479 | |
| 1480 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1481 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1482 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1483 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1484 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1485 | |
| 1486 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1487 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1488 | |
| 1489 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1490 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1491 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1492 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1493 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1494 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1495 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1496 | |
| 1497 | _ASUNAME |
| 1498 | |
| 1499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1500 | for as_dir in $PATH |
| 1501 | do |
| 1502 | IFS=$as_save_IFS |
| 1503 | test -z "$as_dir" && as_dir=. |
| 1504 | echo "PATH: $as_dir" |
| 1505 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1506 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | |
| 1508 | } >&5 |
| 1509 | |
| 1510 | cat >&5 <<_ACEOF |
| 1511 | |
| 1512 | |
| 1513 | ## ----------- ## |
| 1514 | ## Core tests. ## |
| 1515 | ## ----------- ## |
| 1516 | |
| 1517 | _ACEOF |
| 1518 | |
| 1519 | |
| 1520 | # Keep a trace of the command line. |
| 1521 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1522 | # Strip out --silent because we don't want to record it for future runs. |
| 1523 | # Also quote any args containing shell meta-characters. |
| 1524 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1525 | ac_configure_args= |
| 1526 | ac_configure_args0= |
| 1527 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1528 | ac_must_keep_next=false |
| 1529 | for ac_pass in 1 2 |
| 1530 | do |
| 1531 | for ac_arg |
| 1532 | do |
| 1533 | case $ac_arg in |
| 1534 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1535 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1536 | | -silent | --silent | --silen | --sile | --sil) |
| 1537 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1538 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1539 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1540 | esac |
| 1541 | case $ac_pass in |
| 1542 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1543 | 2) |
| 1544 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1545 | if test $ac_must_keep_next = true; then |
| 1546 | ac_must_keep_next=false # Got value, back to normal. |
| 1547 | else |
| 1548 | case $ac_arg in |
| 1549 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1550 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1551 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1552 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1553 | case "$ac_configure_args0 " in |
| 1554 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1555 | esac |
| 1556 | ;; |
| 1557 | -* ) ac_must_keep_next=true ;; |
| 1558 | esac |
| 1559 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1560 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1561 | ;; |
| 1562 | esac |
| 1563 | done |
| 1564 | done |
| 1565 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1566 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1567 | |
| 1568 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1569 | # config.log. We remove comments because anyway the quotes in there |
| 1570 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1571 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1572 | # 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] | 1573 | trap 'exit_status=$? |
| 1574 | # Save into config.log some information that might help in debugging. |
| 1575 | { |
| 1576 | echo |
| 1577 | |
| 1578 | cat <<\_ASBOX |
| 1579 | ## ---------------- ## |
| 1580 | ## Cache variables. ## |
| 1581 | ## ---------------- ## |
| 1582 | _ASBOX |
| 1583 | echo |
| 1584 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1585 | ( |
| 1586 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1587 | eval ac_val=\$$ac_var |
| 1588 | case $ac_val in #( |
| 1589 | *${as_nl}*) |
| 1590 | case $ac_var in #( |
| 1591 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1592 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1593 | esac |
| 1594 | case $ac_var in #( |
| 1595 | _ | IFS | as_nl) ;; #( |
| 1596 | *) $as_unset $ac_var ;; |
| 1597 | esac ;; |
| 1598 | esac |
| 1599 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1600 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1601 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1602 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1603 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1604 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1605 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1606 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1607 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1608 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1609 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1610 | esac | |
| 1611 | sort |
| 1612 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1613 | echo |
| 1614 | |
| 1615 | cat <<\_ASBOX |
| 1616 | ## ----------------- ## |
| 1617 | ## Output variables. ## |
| 1618 | ## ----------------- ## |
| 1619 | _ASBOX |
| 1620 | echo |
| 1621 | for ac_var in $ac_subst_vars |
| 1622 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1623 | eval ac_val=\$$ac_var |
| 1624 | case $ac_val in |
| 1625 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1626 | esac |
| 1627 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | done | sort |
| 1629 | echo |
| 1630 | |
| 1631 | if test -n "$ac_subst_files"; then |
| 1632 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1633 | ## ------------------- ## |
| 1634 | ## File substitutions. ## |
| 1635 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1636 | _ASBOX |
| 1637 | echo |
| 1638 | for ac_var in $ac_subst_files |
| 1639 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1640 | eval ac_val=\$$ac_var |
| 1641 | case $ac_val in |
| 1642 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1643 | esac |
| 1644 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1645 | done | sort |
| 1646 | echo |
| 1647 | fi |
| 1648 | |
| 1649 | if test -s confdefs.h; then |
| 1650 | cat <<\_ASBOX |
| 1651 | ## ----------- ## |
| 1652 | ## confdefs.h. ## |
| 1653 | ## ----------- ## |
| 1654 | _ASBOX |
| 1655 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1656 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1657 | echo |
| 1658 | fi |
| 1659 | test "$ac_signal" != 0 && |
| 1660 | echo "$as_me: caught signal $ac_signal" |
| 1661 | echo "$as_me: exit $exit_status" |
| 1662 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1663 | rm -f core *.core core.conftest.* && |
| 1664 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1665 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1666 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1667 | for ac_signal in 1 2 13 15; do |
| 1668 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1669 | done |
| 1670 | ac_signal=0 |
| 1671 | |
| 1672 | # 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^] | 1673 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1674 | |
| 1675 | # Predefined preprocessor variables. |
| 1676 | |
| 1677 | cat >>confdefs.h <<_ACEOF |
| 1678 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1679 | _ACEOF |
| 1680 | |
| 1681 | |
| 1682 | cat >>confdefs.h <<_ACEOF |
| 1683 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1684 | _ACEOF |
| 1685 | |
| 1686 | |
| 1687 | cat >>confdefs.h <<_ACEOF |
| 1688 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1689 | _ACEOF |
| 1690 | |
| 1691 | |
| 1692 | cat >>confdefs.h <<_ACEOF |
| 1693 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1694 | _ACEOF |
| 1695 | |
| 1696 | |
| 1697 | cat >>confdefs.h <<_ACEOF |
| 1698 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1699 | _ACEOF |
| 1700 | |
| 1701 | |
| 1702 | # 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] | 1703 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1704 | if test -n "$CONFIG_SITE"; then |
| 1705 | set x "$CONFIG_SITE" |
| 1706 | elif test "x$prefix" != xNONE; then |
| 1707 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1708 | else |
| 1709 | set x "$ac_default_prefix/share/config.site" \ |
| 1710 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1712 | shift |
| 1713 | for ac_site_file |
| 1714 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1715 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1716 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1717 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1718 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1719 | . "$ac_site_file" |
| 1720 | fi |
| 1721 | done |
| 1722 | |
| 1723 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1724 | # Some versions of bash will fail to source /dev/null (special |
| 1725 | # files actually), so we avoid doing that. |
| 1726 | if test -f "$cache_file"; then |
| 1727 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1728 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1729 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1730 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1731 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1732 | esac |
| 1733 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1734 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1735 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1736 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1737 | >$cache_file |
| 1738 | fi |
| 1739 | |
| 1740 | # Check that the precious variables saved in the cache have kept the same |
| 1741 | # value. |
| 1742 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1743 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1744 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1745 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1746 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1747 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1748 | case $ac_old_set,$ac_new_set in |
| 1749 | set,) |
| 1750 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1751 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1752 | ac_cache_corrupted=: ;; |
| 1753 | ,set) |
| 1754 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1755 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1756 | ac_cache_corrupted=: ;; |
| 1757 | ,);; |
| 1758 | *) |
| 1759 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1760 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1761 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1762 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1763 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1764 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1765 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1766 | ac_cache_corrupted=: |
| 1767 | fi;; |
| 1768 | esac |
| 1769 | # Pass precious variables to config.status. |
| 1770 | if test "$ac_new_set" = set; then |
| 1771 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1772 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1773 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1774 | esac |
| 1775 | case " $ac_configure_args " in |
| 1776 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1777 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1778 | esac |
| 1779 | fi |
| 1780 | done |
| 1781 | if $ac_cache_corrupted; then |
| 1782 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1783 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1784 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1785 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1786 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1787 | fi |
| 1788 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1805 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1806 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1810 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1811 | |
| 1812 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1813 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1814 | for ac_dir in config "$srcdir"/config; do |
| 1815 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1816 | ac_aux_dir=$ac_dir |
| 1817 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1818 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1819 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1820 | ac_aux_dir=$ac_dir |
| 1821 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1822 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1823 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1824 | ac_aux_dir=$ac_dir |
| 1825 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1826 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1827 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1828 | done |
| 1829 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1830 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1831 | 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] | 1832 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1833 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1834 | |
| 1835 | # These three variables are undocumented and unsupported, |
| 1836 | # and are intended to be withdrawn in a future Autoconf release. |
| 1837 | # They can cause serious problems if a builder's source tree is in a directory |
| 1838 | # whose full name contains unusual characters. |
| 1839 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1840 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1841 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1842 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1843 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1844 | MCONFIG=./MCONFIG |
| 1845 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1846 | BINARY_TYPE=bin |
| 1847 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1848 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1849 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1850 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1851 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1852 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1853 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1854 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1855 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1856 | E2FSPROGS_YEAR=$YEAR |
| 1857 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1858 | E2FSPROGS_YEAR=19$YEAR |
| 1859 | else |
| 1860 | E2FSPROGS_YEAR=20$YEAR |
| 1861 | fi |
| 1862 | |
| 1863 | case $MONTH in |
| 1864 | Jan) E2FSPROGS_MONTH="January" ;; |
| 1865 | Feb) E2FSPROGS_MONTH="February" ;; |
| 1866 | Mar) E2FSPROGS_MONTH="March" ;; |
| 1867 | Apr) E2FSPROGS_MONTH="April" ;; |
| 1868 | May) E2FSPROGS_MONTH="May" ;; |
| 1869 | Jun) E2FSPROGS_MONTH="June" ;; |
| 1870 | Jul) E2FSPROGS_MONTH="July" ;; |
| 1871 | Aug) E2FSPROGS_MONTH="August" ;; |
| 1872 | Sep) E2FSPROGS_MONTH="September" ;; |
| 1873 | Oct) E2FSPROGS_MONTH="October" ;; |
| 1874 | Nov) E2FSPROGS_MONTH="November" ;; |
| 1875 | Dec) E2FSPROGS_MONTH="December" ;; |
| 1876 | *) echo "Unknown month $MONTH??" ;; |
| 1877 | esac |
| 1878 | |
| 1879 | unset DATE MONTH YEAR |
| 1880 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1881 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1882 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1883 | |
| 1884 | |
| 1885 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1886 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1887 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1888 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1889 | 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] | 1890 | { (exit 1); exit 1; }; } |
| 1891 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1892 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1893 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1894 | if test "${ac_cv_build+set}" = set; then |
| 1895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1896 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1897 | ac_build_alias=$build_alias |
| 1898 | test "x$ac_build_alias" = x && |
| 1899 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1900 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1901 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1902 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1903 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1904 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1905 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1906 | 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] | 1907 | { (exit 1); exit 1; }; } |
| 1908 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1909 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1910 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1911 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1912 | case $ac_cv_build in |
| 1913 | *-*-*) ;; |
| 1914 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1915 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1916 | { (exit 1); exit 1; }; };; |
| 1917 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1918 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1919 | ac_save_IFS=$IFS; IFS='-' |
| 1920 | set x $ac_cv_build |
| 1921 | shift |
| 1922 | build_cpu=$1 |
| 1923 | build_vendor=$2 |
| 1924 | shift; shift |
| 1925 | # Remember, the first character of IFS is used to create $*, |
| 1926 | # except with old shells: |
| 1927 | build_os=$* |
| 1928 | IFS=$ac_save_IFS |
| 1929 | 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] | 1930 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1932 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1933 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1934 | if test "${ac_cv_host+set}" = set; then |
| 1935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1936 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1937 | if test "x$host_alias" = x; then |
| 1938 | ac_cv_host=$ac_cv_build |
| 1939 | else |
| 1940 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1941 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1942 | 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] | 1943 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1944 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1945 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1946 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1947 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1948 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1949 | case $ac_cv_host in |
| 1950 | *-*-*) ;; |
| 1951 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1952 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1953 | { (exit 1); exit 1; }; };; |
| 1954 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1955 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1956 | ac_save_IFS=$IFS; IFS='-' |
| 1957 | set x $ac_cv_host |
| 1958 | shift |
| 1959 | host_cpu=$1 |
| 1960 | host_vendor=$2 |
| 1961 | shift; shift |
| 1962 | # Remember, the first character of IFS is used to create $*, |
| 1963 | # except with old shells: |
| 1964 | host_os=$* |
| 1965 | IFS=$ac_save_IFS |
| 1966 | 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] | 1967 | |
| 1968 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1970 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1971 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1972 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 1973 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 1974 | echo "${ECHO_T}CC=$CC" >&6; } |
| 1975 | fi |
| 1976 | |
| 1977 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1978 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1979 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 1980 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1981 | CC=$withval |
| 1982 | else |
| 1983 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1984 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 1985 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 1986 | fi |
| 1987 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1988 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1989 | ac_ext=c |
| 1990 | ac_cpp='$CPP $CPPFLAGS' |
| 1991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1994 | if test -n "$ac_tool_prefix"; then |
| 1995 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1996 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 1997 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1999 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2001 | else |
| 2002 | if test -n "$CC"; then |
| 2003 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2004 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2006 | for as_dir in $PATH |
| 2007 | do |
| 2008 | IFS=$as_save_IFS |
| 2009 | test -z "$as_dir" && as_dir=. |
| 2010 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2011 | 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] | 2012 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2014 | break 2 |
| 2015 | fi |
| 2016 | done |
| 2017 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2018 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2019 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2020 | fi |
| 2021 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2022 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2023 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2024 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2025 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2026 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2027 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2028 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2029 | fi |
| 2030 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2032 | fi |
| 2033 | if test -z "$ac_cv_prog_CC"; then |
| 2034 | ac_ct_CC=$CC |
| 2035 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2036 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2039 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2041 | else |
| 2042 | if test -n "$ac_ct_CC"; then |
| 2043 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2044 | else |
| 2045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2046 | for as_dir in $PATH |
| 2047 | do |
| 2048 | IFS=$as_save_IFS |
| 2049 | test -z "$as_dir" && as_dir=. |
| 2050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2051 | 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] | 2052 | ac_cv_prog_ac_ct_CC="gcc" |
| 2053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2054 | break 2 |
| 2055 | fi |
| 2056 | done |
| 2057 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2058 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2059 | |
| 2060 | fi |
| 2061 | fi |
| 2062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2063 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2064 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2065 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2066 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2067 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2068 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2069 | fi |
| 2070 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2071 | if test "x$ac_ct_CC" = x; then |
| 2072 | CC="" |
| 2073 | else |
| 2074 | case $cross_compiling:$ac_tool_warned in |
| 2075 | yes:) |
| 2076 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2077 | whose name does not start with the host triplet. If you think this |
| 2078 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2079 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2080 | whose name does not start with the host triplet. If you think this |
| 2081 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2082 | ac_tool_warned=yes ;; |
| 2083 | esac |
| 2084 | CC=$ac_ct_CC |
| 2085 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2086 | else |
| 2087 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2088 | fi |
| 2089 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2090 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2091 | if test -n "$ac_tool_prefix"; then |
| 2092 | # 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] | 2093 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2094 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2096 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2098 | else |
| 2099 | if test -n "$CC"; then |
| 2100 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2101 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2103 | for as_dir in $PATH |
| 2104 | do |
| 2105 | IFS=$as_save_IFS |
| 2106 | test -z "$as_dir" && as_dir=. |
| 2107 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2108 | 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] | 2109 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2111 | break 2 |
| 2112 | fi |
| 2113 | done |
| 2114 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2115 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2116 | |
| 2117 | fi |
| 2118 | fi |
| 2119 | CC=$ac_cv_prog_CC |
| 2120 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2121 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2122 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2123 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2124 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2125 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2126 | fi |
| 2127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2128 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2129 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2130 | fi |
| 2131 | if test -z "$CC"; then |
| 2132 | # Extract the first word of "cc", so it can be a program name with args. |
| 2133 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2134 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2136 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2138 | else |
| 2139 | if test -n "$CC"; then |
| 2140 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2141 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2142 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2144 | for as_dir in $PATH |
| 2145 | do |
| 2146 | IFS=$as_save_IFS |
| 2147 | test -z "$as_dir" && as_dir=. |
| 2148 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2149 | 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] | 2150 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2151 | ac_prog_rejected=yes |
| 2152 | continue |
| 2153 | fi |
| 2154 | ac_cv_prog_CC="cc" |
| 2155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2156 | break 2 |
| 2157 | fi |
| 2158 | done |
| 2159 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2160 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2161 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2162 | if test $ac_prog_rejected = yes; then |
| 2163 | # We found a bogon in the path, so make sure we never use it. |
| 2164 | set dummy $ac_cv_prog_CC |
| 2165 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2166 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2167 | # We chose a different compiler from the bogus one. |
| 2168 | # However, it has the same basename, so the bogon will be chosen |
| 2169 | # first if we set CC to just the basename; use the full file name. |
| 2170 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2171 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2172 | fi |
| 2173 | fi |
| 2174 | fi |
| 2175 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2176 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2177 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2178 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2179 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2180 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2181 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2182 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2183 | fi |
| 2184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2185 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2186 | fi |
| 2187 | if test -z "$CC"; then |
| 2188 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2189 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2190 | do |
| 2191 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2192 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2195 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2197 | else |
| 2198 | if test -n "$CC"; then |
| 2199 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2200 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2202 | for as_dir in $PATH |
| 2203 | do |
| 2204 | IFS=$as_save_IFS |
| 2205 | test -z "$as_dir" && as_dir=. |
| 2206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2207 | 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] | 2208 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2210 | break 2 |
| 2211 | fi |
| 2212 | done |
| 2213 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2214 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2215 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2216 | fi |
| 2217 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2218 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2219 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2220 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2221 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2222 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2224 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2225 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2227 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2228 | test -n "$CC" && break |
| 2229 | done |
| 2230 | fi |
| 2231 | if test -z "$CC"; then |
| 2232 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2233 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2234 | do |
| 2235 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2236 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2239 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2241 | else |
| 2242 | if test -n "$ac_ct_CC"; then |
| 2243 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2244 | else |
| 2245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2246 | for as_dir in $PATH |
| 2247 | do |
| 2248 | IFS=$as_save_IFS |
| 2249 | test -z "$as_dir" && as_dir=. |
| 2250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2251 | 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] | 2252 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2254 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2255 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2256 | done |
| 2257 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2258 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2259 | |
| 2260 | fi |
| 2261 | fi |
| 2262 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2263 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2264 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2265 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2266 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2268 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2269 | fi |
| 2270 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2271 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2272 | test -n "$ac_ct_CC" && break |
| 2273 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2274 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2275 | if test "x$ac_ct_CC" = x; then |
| 2276 | CC="" |
| 2277 | else |
| 2278 | case $cross_compiling:$ac_tool_warned in |
| 2279 | yes:) |
| 2280 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2281 | whose name does not start with the host triplet. If you think this |
| 2282 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2283 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2284 | whose name does not start with the host triplet. If you think this |
| 2285 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2286 | ac_tool_warned=yes ;; |
| 2287 | esac |
| 2288 | CC=$ac_ct_CC |
| 2289 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2290 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2291 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2292 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2293 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2294 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2295 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2296 | See \`config.log' for more details." >&5 |
| 2297 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2298 | See \`config.log' for more details." >&2;} |
| 2299 | { (exit 1); exit 1; }; } |
| 2300 | |
| 2301 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2302 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2303 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2304 | { (ac_try="$ac_compiler --version >&5" |
| 2305 | case "(($ac_try" in |
| 2306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2307 | *) ac_try_echo=$ac_try;; |
| 2308 | esac |
| 2309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2310 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2311 | ac_status=$? |
| 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2313 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2314 | { (ac_try="$ac_compiler -v >&5" |
| 2315 | case "(($ac_try" in |
| 2316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2317 | *) ac_try_echo=$ac_try;; |
| 2318 | esac |
| 2319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2320 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2321 | ac_status=$? |
| 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2323 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2324 | { (ac_try="$ac_compiler -V >&5" |
| 2325 | case "(($ac_try" in |
| 2326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2327 | *) ac_try_echo=$ac_try;; |
| 2328 | esac |
| 2329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2330 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2331 | ac_status=$? |
| 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2333 | (exit $ac_status); } |
| 2334 | |
| 2335 | cat >conftest.$ac_ext <<_ACEOF |
| 2336 | /* confdefs.h. */ |
| 2337 | _ACEOF |
| 2338 | cat confdefs.h >>conftest.$ac_ext |
| 2339 | cat >>conftest.$ac_ext <<_ACEOF |
| 2340 | /* end confdefs.h. */ |
| 2341 | |
| 2342 | int |
| 2343 | main () |
| 2344 | { |
| 2345 | |
| 2346 | ; |
| 2347 | return 0; |
| 2348 | } |
| 2349 | _ACEOF |
| 2350 | ac_clean_files_save=$ac_clean_files |
| 2351 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2352 | # Try to create an executable without -o first, disregard a.out. |
| 2353 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2354 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2355 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2356 | 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] | 2357 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2358 | # |
| 2359 | # List of possible output files, starting from the most likely. |
| 2360 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2361 | # only as a last resort. b.out is created by i960 compilers. |
| 2362 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2363 | # |
| 2364 | # The IRIX 6 linker writes into existing files which may not be |
| 2365 | # executable, retaining their permissions. Remove them first so a |
| 2366 | # subsequent execution test works. |
| 2367 | ac_rmfiles= |
| 2368 | for ac_file in $ac_files |
| 2369 | do |
| 2370 | case $ac_file in |
| 2371 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2372 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2373 | esac |
| 2374 | done |
| 2375 | rm -f $ac_rmfiles |
| 2376 | |
| 2377 | if { (ac_try="$ac_link_default" |
| 2378 | case "(($ac_try" in |
| 2379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2380 | *) ac_try_echo=$ac_try;; |
| 2381 | esac |
| 2382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2383 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2384 | ac_status=$? |
| 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2386 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2387 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2388 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2389 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2390 | # so that the user can short-circuit this test for compilers unknown to |
| 2391 | # Autoconf. |
| 2392 | for ac_file in $ac_files |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2393 | do |
| 2394 | test -f "$ac_file" || continue |
| 2395 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2396 | *.$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] | 2397 | ;; |
| 2398 | [ab].out ) |
| 2399 | # We found the default executable, but exeext='' is most |
| 2400 | # certainly right. |
| 2401 | break;; |
| 2402 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2403 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2404 | then :; else |
| 2405 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2406 | fi |
| 2407 | # We set ac_cv_exeext here because the later test for it is not |
| 2408 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2409 | # argument, so we may need to know it at that point already. |
| 2410 | # Even if this section looks crufty: it has the advantage of |
| 2411 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2412 | break;; |
| 2413 | * ) |
| 2414 | break;; |
| 2415 | esac |
| 2416 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2417 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2418 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2419 | else |
| 2420 | echo "$as_me: failed program was:" >&5 |
| 2421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2422 | |
| 2423 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2424 | See \`config.log' for more details." >&5 |
| 2425 | echo "$as_me: error: C compiler cannot create executables |
| 2426 | See \`config.log' for more details." >&2;} |
| 2427 | { (exit 77); exit 77; }; } |
| 2428 | fi |
| 2429 | |
| 2430 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2431 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2432 | echo "${ECHO_T}$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2433 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2434 | # 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] | 2435 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2436 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2437 | 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] | 2438 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2439 | # If not cross compiling, check that we can run a simple program. |
| 2440 | if test "$cross_compiling" != yes; then |
| 2441 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2442 | { (case "(($ac_try" in |
| 2443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2444 | *) ac_try_echo=$ac_try;; |
| 2445 | esac |
| 2446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2447 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2448 | ac_status=$? |
| 2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2450 | (exit $ac_status); }; }; then |
| 2451 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2452 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | if test "$cross_compiling" = maybe; then |
| 2454 | cross_compiling=yes |
| 2455 | else |
| 2456 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2457 | If you meant to cross compile, use \`--host'. |
| 2458 | See \`config.log' for more details." >&5 |
| 2459 | echo "$as_me: error: cannot run C compiled programs. |
| 2460 | If you meant to cross compile, use \`--host'. |
| 2461 | See \`config.log' for more details." >&2;} |
| 2462 | { (exit 1); exit 1; }; } |
| 2463 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2464 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2465 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2466 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2467 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2468 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2469 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2470 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2471 | # 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] | 2472 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2473 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2474 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2475 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2476 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2477 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2478 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2479 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2480 | if { (ac_try="$ac_link" |
| 2481 | case "(($ac_try" in |
| 2482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2483 | *) ac_try_echo=$ac_try;; |
| 2484 | esac |
| 2485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2486 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2487 | ac_status=$? |
| 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2489 | (exit $ac_status); }; then |
| 2490 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2491 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2492 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2493 | # `rm'. |
| 2494 | for ac_file in conftest.exe conftest conftest.*; do |
| 2495 | test -f "$ac_file" || continue |
| 2496 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2497 | *.$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] | 2498 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2499 | break;; |
| 2500 | * ) break;; |
| 2501 | esac |
| 2502 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2503 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2504 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2505 | See \`config.log' for more details." >&5 |
| 2506 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2507 | See \`config.log' for more details." >&2;} |
| 2508 | { (exit 1); exit 1; }; } |
| 2509 | fi |
| 2510 | |
| 2511 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2512 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2513 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2514 | |
| 2515 | rm -f conftest.$ac_ext |
| 2516 | EXEEXT=$ac_cv_exeext |
| 2517 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2518 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2519 | 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] | 2520 | if test "${ac_cv_objext+set}" = set; then |
| 2521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2522 | else |
| 2523 | cat >conftest.$ac_ext <<_ACEOF |
| 2524 | /* confdefs.h. */ |
| 2525 | _ACEOF |
| 2526 | cat confdefs.h >>conftest.$ac_ext |
| 2527 | cat >>conftest.$ac_ext <<_ACEOF |
| 2528 | /* end confdefs.h. */ |
| 2529 | |
| 2530 | int |
| 2531 | main () |
| 2532 | { |
| 2533 | |
| 2534 | ; |
| 2535 | return 0; |
| 2536 | } |
| 2537 | _ACEOF |
| 2538 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2539 | if { (ac_try="$ac_compile" |
| 2540 | case "(($ac_try" in |
| 2541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2542 | *) ac_try_echo=$ac_try;; |
| 2543 | esac |
| 2544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2545 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2546 | ac_status=$? |
| 2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2548 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2549 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2550 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2551 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2552 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2553 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2554 | break;; |
| 2555 | esac |
| 2556 | done |
| 2557 | else |
| 2558 | echo "$as_me: failed program was:" >&5 |
| 2559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2560 | |
| 2561 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2562 | See \`config.log' for more details." >&5 |
| 2563 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2564 | See \`config.log' for more details." >&2;} |
| 2565 | { (exit 1); exit 1; }; } |
| 2566 | fi |
| 2567 | |
| 2568 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2569 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2570 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2571 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2572 | OBJEXT=$ac_cv_objext |
| 2573 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2574 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2575 | 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] | 2576 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2578 | else |
| 2579 | cat >conftest.$ac_ext <<_ACEOF |
| 2580 | /* confdefs.h. */ |
| 2581 | _ACEOF |
| 2582 | cat confdefs.h >>conftest.$ac_ext |
| 2583 | cat >>conftest.$ac_ext <<_ACEOF |
| 2584 | /* end confdefs.h. */ |
| 2585 | |
| 2586 | int |
| 2587 | main () |
| 2588 | { |
| 2589 | #ifndef __GNUC__ |
| 2590 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2591 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2592 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2593 | ; |
| 2594 | return 0; |
| 2595 | } |
| 2596 | _ACEOF |
| 2597 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2598 | if { (ac_try="$ac_compile" |
| 2599 | case "(($ac_try" in |
| 2600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2601 | *) ac_try_echo=$ac_try;; |
| 2602 | esac |
| 2603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2604 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2605 | ac_status=$? |
| 2606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2607 | rm -f conftest.er1 |
| 2608 | cat conftest.err >&5 |
| 2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2610 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2612 | { (case "(($ac_try" in |
| 2613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2614 | *) ac_try_echo=$ac_try;; |
| 2615 | esac |
| 2616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2617 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2618 | ac_status=$? |
| 2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2620 | (exit $ac_status); }; } && |
| 2621 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2622 | { (case "(($ac_try" in |
| 2623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2624 | *) ac_try_echo=$ac_try;; |
| 2625 | esac |
| 2626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2627 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2628 | ac_status=$? |
| 2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2630 | (exit $ac_status); }; }; then |
| 2631 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2632 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2633 | echo "$as_me: failed program was:" >&5 |
| 2634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2635 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2636 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2637 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2638 | |
| 2639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2640 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2641 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2642 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2643 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2644 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2645 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2646 | ac_test_CFLAGS=${CFLAGS+set} |
| 2647 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2648 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2649 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2650 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2652 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2653 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2654 | ac_c_werror_flag=yes |
| 2655 | ac_cv_prog_cc_g=no |
| 2656 | CFLAGS="-g" |
| 2657 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | /* confdefs.h. */ |
| 2659 | _ACEOF |
| 2660 | cat confdefs.h >>conftest.$ac_ext |
| 2661 | cat >>conftest.$ac_ext <<_ACEOF |
| 2662 | /* end confdefs.h. */ |
| 2663 | |
| 2664 | int |
| 2665 | main () |
| 2666 | { |
| 2667 | |
| 2668 | ; |
| 2669 | return 0; |
| 2670 | } |
| 2671 | _ACEOF |
| 2672 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2673 | if { (ac_try="$ac_compile" |
| 2674 | case "(($ac_try" in |
| 2675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2676 | *) ac_try_echo=$ac_try;; |
| 2677 | esac |
| 2678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2679 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2680 | ac_status=$? |
| 2681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2682 | rm -f conftest.er1 |
| 2683 | cat conftest.err >&5 |
| 2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2685 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2687 | { (case "(($ac_try" in |
| 2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2689 | *) ac_try_echo=$ac_try;; |
| 2690 | esac |
| 2691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2692 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2693 | ac_status=$? |
| 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2695 | (exit $ac_status); }; } && |
| 2696 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2697 | { (case "(($ac_try" in |
| 2698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2699 | *) ac_try_echo=$ac_try;; |
| 2700 | esac |
| 2701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2702 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2703 | ac_status=$? |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); }; }; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2706 | ac_cv_prog_cc_g=yes |
| 2707 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2708 | echo "$as_me: failed program was:" >&5 |
| 2709 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2710 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2711 | CFLAGS="" |
| 2712 | cat >conftest.$ac_ext <<_ACEOF |
| 2713 | /* confdefs.h. */ |
| 2714 | _ACEOF |
| 2715 | cat confdefs.h >>conftest.$ac_ext |
| 2716 | cat >>conftest.$ac_ext <<_ACEOF |
| 2717 | /* end confdefs.h. */ |
| 2718 | |
| 2719 | int |
| 2720 | main () |
| 2721 | { |
| 2722 | |
| 2723 | ; |
| 2724 | return 0; |
| 2725 | } |
| 2726 | _ACEOF |
| 2727 | rm -f conftest.$ac_objext |
| 2728 | if { (ac_try="$ac_compile" |
| 2729 | case "(($ac_try" in |
| 2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2731 | *) ac_try_echo=$ac_try;; |
| 2732 | esac |
| 2733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2734 | (eval "$ac_compile") 2>conftest.er1 |
| 2735 | ac_status=$? |
| 2736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2737 | rm -f conftest.er1 |
| 2738 | cat conftest.err >&5 |
| 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); } && |
| 2741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2742 | { (case "(($ac_try" in |
| 2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2744 | *) ac_try_echo=$ac_try;; |
| 2745 | esac |
| 2746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2747 | (eval "$ac_try") 2>&5 |
| 2748 | ac_status=$? |
| 2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2750 | (exit $ac_status); }; } && |
| 2751 | { ac_try='test -s conftest.$ac_objext' |
| 2752 | { (case "(($ac_try" in |
| 2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2754 | *) ac_try_echo=$ac_try;; |
| 2755 | esac |
| 2756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2757 | (eval "$ac_try") 2>&5 |
| 2758 | ac_status=$? |
| 2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2760 | (exit $ac_status); }; }; then |
| 2761 | : |
| 2762 | else |
| 2763 | echo "$as_me: failed program was:" >&5 |
| 2764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2765 | |
| 2766 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2767 | CFLAGS="-g" |
| 2768 | cat >conftest.$ac_ext <<_ACEOF |
| 2769 | /* confdefs.h. */ |
| 2770 | _ACEOF |
| 2771 | cat confdefs.h >>conftest.$ac_ext |
| 2772 | cat >>conftest.$ac_ext <<_ACEOF |
| 2773 | /* end confdefs.h. */ |
| 2774 | |
| 2775 | int |
| 2776 | main () |
| 2777 | { |
| 2778 | |
| 2779 | ; |
| 2780 | return 0; |
| 2781 | } |
| 2782 | _ACEOF |
| 2783 | rm -f conftest.$ac_objext |
| 2784 | if { (ac_try="$ac_compile" |
| 2785 | case "(($ac_try" in |
| 2786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2787 | *) ac_try_echo=$ac_try;; |
| 2788 | esac |
| 2789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2790 | (eval "$ac_compile") 2>conftest.er1 |
| 2791 | ac_status=$? |
| 2792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2793 | rm -f conftest.er1 |
| 2794 | cat conftest.err >&5 |
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); } && |
| 2797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2798 | { (case "(($ac_try" in |
| 2799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2800 | *) ac_try_echo=$ac_try;; |
| 2801 | esac |
| 2802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2803 | (eval "$ac_try") 2>&5 |
| 2804 | ac_status=$? |
| 2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2806 | (exit $ac_status); }; } && |
| 2807 | { ac_try='test -s conftest.$ac_objext' |
| 2808 | { (case "(($ac_try" in |
| 2809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2810 | *) ac_try_echo=$ac_try;; |
| 2811 | esac |
| 2812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2813 | (eval "$ac_try") 2>&5 |
| 2814 | ac_status=$? |
| 2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2816 | (exit $ac_status); }; }; then |
| 2817 | ac_cv_prog_cc_g=yes |
| 2818 | else |
| 2819 | echo "$as_me: failed program was:" >&5 |
| 2820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2821 | |
| 2822 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2824 | |
| 2825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2826 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2827 | |
| 2828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2829 | fi |
| 2830 | |
| 2831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2832 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2833 | fi |
| 2834 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2835 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2836 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2837 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2838 | elif test $ac_cv_prog_cc_g = yes; then |
| 2839 | if test "$GCC" = yes; then |
| 2840 | CFLAGS="-g -O2" |
| 2841 | else |
| 2842 | CFLAGS="-g" |
| 2843 | fi |
| 2844 | else |
| 2845 | if test "$GCC" = yes; then |
| 2846 | CFLAGS="-O2" |
| 2847 | else |
| 2848 | CFLAGS= |
| 2849 | fi |
| 2850 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2851 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2852 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2853 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2855 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2856 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2857 | ac_save_CC=$CC |
| 2858 | cat >conftest.$ac_ext <<_ACEOF |
| 2859 | /* confdefs.h. */ |
| 2860 | _ACEOF |
| 2861 | cat confdefs.h >>conftest.$ac_ext |
| 2862 | cat >>conftest.$ac_ext <<_ACEOF |
| 2863 | /* end confdefs.h. */ |
| 2864 | #include <stdarg.h> |
| 2865 | #include <stdio.h> |
| 2866 | #include <sys/types.h> |
| 2867 | #include <sys/stat.h> |
| 2868 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2869 | struct buf { int x; }; |
| 2870 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2871 | static char *e (p, i) |
| 2872 | char **p; |
| 2873 | int i; |
| 2874 | { |
| 2875 | return p[i]; |
| 2876 | } |
| 2877 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2878 | { |
| 2879 | char *s; |
| 2880 | va_list v; |
| 2881 | va_start (v,p); |
| 2882 | s = g (p, va_arg (v,int)); |
| 2883 | va_end (v); |
| 2884 | return s; |
| 2885 | } |
| 2886 | |
| 2887 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2888 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2889 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2890 | 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] | 2891 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2892 | 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^] | 2893 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2894 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2895 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2896 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2897 | inside strings and character constants. */ |
| 2898 | #define FOO(x) 'x' |
| 2899 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2900 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2901 | int test (int i, double x); |
| 2902 | struct s1 {int (*f) (int a);}; |
| 2903 | struct s2 {int (*f) (double a);}; |
| 2904 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2905 | int argc; |
| 2906 | char **argv; |
| 2907 | int |
| 2908 | main () |
| 2909 | { |
| 2910 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2911 | ; |
| 2912 | return 0; |
| 2913 | } |
| 2914 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2915 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2916 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2917 | do |
| 2918 | CC="$ac_save_CC $ac_arg" |
| 2919 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2920 | if { (ac_try="$ac_compile" |
| 2921 | case "(($ac_try" in |
| 2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2923 | *) ac_try_echo=$ac_try;; |
| 2924 | esac |
| 2925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2926 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2927 | ac_status=$? |
| 2928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2929 | rm -f conftest.er1 |
| 2930 | cat conftest.err >&5 |
| 2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2932 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2934 | { (case "(($ac_try" in |
| 2935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2936 | *) ac_try_echo=$ac_try;; |
| 2937 | esac |
| 2938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2939 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2940 | ac_status=$? |
| 2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2942 | (exit $ac_status); }; } && |
| 2943 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2944 | { (case "(($ac_try" in |
| 2945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2946 | *) ac_try_echo=$ac_try;; |
| 2947 | esac |
| 2948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2949 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2950 | ac_status=$? |
| 2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2952 | (exit $ac_status); }; }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2953 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | else |
| 2955 | echo "$as_me: failed program was:" >&5 |
| 2956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2958 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2959 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2960 | |
| 2961 | rm -f core conftest.err conftest.$ac_objext |
| 2962 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2963 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2964 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2965 | CC=$ac_save_CC |
| 2966 | |
| 2967 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2968 | # AC_CACHE_VAL |
| 2969 | case "x$ac_cv_prog_cc_c89" in |
| 2970 | x) |
| 2971 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2972 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2973 | xno) |
| 2974 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2975 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2976 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2977 | CC="$CC $ac_cv_prog_cc_c89" |
| 2978 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2979 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2980 | esac |
| 2981 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2982 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2983 | ac_ext=c |
| 2984 | ac_cpp='$CPP $CPPFLAGS' |
| 2985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2988 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2989 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2990 | # Check whether --with-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2991 | if test "${with_linker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2992 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 2993 | echo "${ECHO_T}LD=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2994 | LD=$withval |
| 2995 | else |
| 2996 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 2997 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 2998 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 2999 | fi |
| 3000 | export LD |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3003 | # Check whether --with-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3004 | if test "${with_ccopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3005 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3006 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3007 | CFLAGS=$withval |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3008 | fi |
| 3009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | ac_ext=c |
| 3011 | ac_cpp='$CPP $CPPFLAGS' |
| 3012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3015 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3016 | 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] | 3017 | # On Suns, sometimes $CPP names a directory. |
| 3018 | if test -n "$CPP" && test -d "$CPP"; then |
| 3019 | CPP= |
| 3020 | fi |
| 3021 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3022 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3024 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3025 | # Double quotes because CPP needs to be expanded |
| 3026 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3027 | do |
| 3028 | ac_preproc_ok=false |
| 3029 | for ac_c_preproc_warn_flag in '' yes |
| 3030 | do |
| 3031 | # Use a header file that comes with gcc, so configuring glibc |
| 3032 | # with a fresh cross-compiler works. |
| 3033 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3034 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3035 | # 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] | 3036 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3037 | cat >conftest.$ac_ext <<_ACEOF |
| 3038 | /* confdefs.h. */ |
| 3039 | _ACEOF |
| 3040 | cat confdefs.h >>conftest.$ac_ext |
| 3041 | cat >>conftest.$ac_ext <<_ACEOF |
| 3042 | /* end confdefs.h. */ |
| 3043 | #ifdef __STDC__ |
| 3044 | # include <limits.h> |
| 3045 | #else |
| 3046 | # include <assert.h> |
| 3047 | #endif |
| 3048 | Syntax error |
| 3049 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3050 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3051 | case "(($ac_try" in |
| 3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3053 | *) ac_try_echo=$ac_try;; |
| 3054 | esac |
| 3055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3056 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3057 | ac_status=$? |
| 3058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3059 | rm -f conftest.er1 |
| 3060 | cat conftest.err >&5 |
| 3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3062 | (exit $ac_status); } >/dev/null; then |
| 3063 | if test -s conftest.err; then |
| 3064 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3066 | else |
| 3067 | ac_cpp_err= |
| 3068 | fi |
| 3069 | else |
| 3070 | ac_cpp_err=yes |
| 3071 | fi |
| 3072 | if test -z "$ac_cpp_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3073 | : |
| 3074 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3075 | echo "$as_me: failed program was:" >&5 |
| 3076 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3077 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3078 | # Broken: fails on valid input. |
| 3079 | continue |
| 3080 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3081 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3082 | rm -f conftest.err conftest.$ac_ext |
| 3083 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3084 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3085 | # can be detected and how. |
| 3086 | cat >conftest.$ac_ext <<_ACEOF |
| 3087 | /* confdefs.h. */ |
| 3088 | _ACEOF |
| 3089 | cat confdefs.h >>conftest.$ac_ext |
| 3090 | cat >>conftest.$ac_ext <<_ACEOF |
| 3091 | /* end confdefs.h. */ |
| 3092 | #include <ac_nonexistent.h> |
| 3093 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3095 | case "(($ac_try" in |
| 3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3097 | *) ac_try_echo=$ac_try;; |
| 3098 | esac |
| 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3101 | ac_status=$? |
| 3102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3103 | rm -f conftest.er1 |
| 3104 | cat conftest.err >&5 |
| 3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3106 | (exit $ac_status); } >/dev/null; then |
| 3107 | if test -s conftest.err; then |
| 3108 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3109 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3110 | else |
| 3111 | ac_cpp_err= |
| 3112 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3113 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3114 | ac_cpp_err=yes |
| 3115 | fi |
| 3116 | if test -z "$ac_cpp_err"; then |
| 3117 | # Broken: success on invalid input. |
| 3118 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3119 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3120 | echo "$as_me: failed program was:" >&5 |
| 3121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3122 | |
| 3123 | # Passes both tests. |
| 3124 | ac_preproc_ok=: |
| 3125 | break |
| 3126 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3127 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3128 | rm -f conftest.err conftest.$ac_ext |
| 3129 | |
| 3130 | done |
| 3131 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3132 | rm -f conftest.err conftest.$ac_ext |
| 3133 | if $ac_preproc_ok; then |
| 3134 | break |
| 3135 | fi |
| 3136 | |
| 3137 | done |
| 3138 | ac_cv_prog_CPP=$CPP |
| 3139 | |
| 3140 | fi |
| 3141 | CPP=$ac_cv_prog_CPP |
| 3142 | else |
| 3143 | ac_cv_prog_CPP=$CPP |
| 3144 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3145 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3146 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3147 | ac_preproc_ok=false |
| 3148 | for ac_c_preproc_warn_flag in '' yes |
| 3149 | do |
| 3150 | # Use a header file that comes with gcc, so configuring glibc |
| 3151 | # with a fresh cross-compiler works. |
| 3152 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3153 | # <limits.h> exists even on freestanding compilers. |
| 3154 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3155 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3156 | cat >conftest.$ac_ext <<_ACEOF |
| 3157 | /* confdefs.h. */ |
| 3158 | _ACEOF |
| 3159 | cat confdefs.h >>conftest.$ac_ext |
| 3160 | cat >>conftest.$ac_ext <<_ACEOF |
| 3161 | /* end confdefs.h. */ |
| 3162 | #ifdef __STDC__ |
| 3163 | # include <limits.h> |
| 3164 | #else |
| 3165 | # include <assert.h> |
| 3166 | #endif |
| 3167 | Syntax error |
| 3168 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3170 | case "(($ac_try" in |
| 3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3172 | *) ac_try_echo=$ac_try;; |
| 3173 | esac |
| 3174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3175 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3176 | ac_status=$? |
| 3177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3178 | rm -f conftest.er1 |
| 3179 | cat conftest.err >&5 |
| 3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3181 | (exit $ac_status); } >/dev/null; then |
| 3182 | if test -s conftest.err; then |
| 3183 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3185 | else |
| 3186 | ac_cpp_err= |
| 3187 | fi |
| 3188 | else |
| 3189 | ac_cpp_err=yes |
| 3190 | fi |
| 3191 | if test -z "$ac_cpp_err"; then |
| 3192 | : |
| 3193 | else |
| 3194 | echo "$as_me: failed program was:" >&5 |
| 3195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3196 | |
| 3197 | # Broken: fails on valid input. |
| 3198 | continue |
| 3199 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3200 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3201 | rm -f conftest.err conftest.$ac_ext |
| 3202 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3203 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3204 | # can be detected and how. |
| 3205 | cat >conftest.$ac_ext <<_ACEOF |
| 3206 | /* confdefs.h. */ |
| 3207 | _ACEOF |
| 3208 | cat confdefs.h >>conftest.$ac_ext |
| 3209 | cat >>conftest.$ac_ext <<_ACEOF |
| 3210 | /* end confdefs.h. */ |
| 3211 | #include <ac_nonexistent.h> |
| 3212 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3213 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3214 | case "(($ac_try" in |
| 3215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3216 | *) ac_try_echo=$ac_try;; |
| 3217 | esac |
| 3218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3219 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3220 | ac_status=$? |
| 3221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3222 | rm -f conftest.er1 |
| 3223 | cat conftest.err >&5 |
| 3224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3225 | (exit $ac_status); } >/dev/null; then |
| 3226 | if test -s conftest.err; then |
| 3227 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3228 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3229 | else |
| 3230 | ac_cpp_err= |
| 3231 | fi |
| 3232 | else |
| 3233 | ac_cpp_err=yes |
| 3234 | fi |
| 3235 | if test -z "$ac_cpp_err"; then |
| 3236 | # Broken: success on invalid input. |
| 3237 | continue |
| 3238 | else |
| 3239 | echo "$as_me: failed program was:" >&5 |
| 3240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3241 | |
| 3242 | # Passes both tests. |
| 3243 | ac_preproc_ok=: |
| 3244 | break |
| 3245 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3246 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3247 | rm -f conftest.err conftest.$ac_ext |
| 3248 | |
| 3249 | done |
| 3250 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3251 | rm -f conftest.err conftest.$ac_ext |
| 3252 | if $ac_preproc_ok; then |
| 3253 | : |
| 3254 | else |
| 3255 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3256 | See \`config.log' for more details." >&5 |
| 3257 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3258 | See \`config.log' for more details." >&2;} |
| 3259 | { (exit 1); exit 1; }; } |
| 3260 | fi |
| 3261 | |
| 3262 | ac_ext=c |
| 3263 | ac_cpp='$CPP $CPPFLAGS' |
| 3264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3267 | |
| 3268 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3269 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3270 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3271 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3273 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3274 | # Extract the first word of "grep ggrep" to use in msg output |
| 3275 | if test -z "$GREP"; then |
| 3276 | set dummy grep ggrep; ac_prog_name=$2 |
| 3277 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3279 | else |
| 3280 | ac_path_GREP_found=false |
| 3281 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3283 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3284 | do |
| 3285 | IFS=$as_save_IFS |
| 3286 | test -z "$as_dir" && as_dir=. |
| 3287 | for ac_prog in grep ggrep; do |
| 3288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3289 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3290 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3291 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3292 | # Check for GNU $ac_path_GREP |
| 3293 | case `"$ac_path_GREP" --version 2>&1` in |
| 3294 | *GNU*) |
| 3295 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3296 | *) |
| 3297 | ac_count=0 |
| 3298 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3299 | while : |
| 3300 | do |
| 3301 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3302 | mv "conftest.tmp" "conftest.in" |
| 3303 | cp "conftest.in" "conftest.nl" |
| 3304 | echo 'GREP' >> "conftest.nl" |
| 3305 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3306 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3307 | ac_count=`expr $ac_count + 1` |
| 3308 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3309 | # Best one so far, save it but keep looking for a better one |
| 3310 | ac_cv_path_GREP="$ac_path_GREP" |
| 3311 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3312 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3313 | # 10*(2^10) chars as input seems more than enough |
| 3314 | test $ac_count -gt 10 && break |
| 3315 | done |
| 3316 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3317 | esac |
| 3318 | |
| 3319 | |
| 3320 | $ac_path_GREP_found && break 3 |
| 3321 | done |
| 3322 | done |
| 3323 | |
| 3324 | done |
| 3325 | IFS=$as_save_IFS |
| 3326 | |
| 3327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3328 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3329 | |
| 3330 | GREP="$ac_cv_path_GREP" |
| 3331 | if test -z "$GREP"; then |
| 3332 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3333 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3334 | { (exit 1); exit 1; }; } |
| 3335 | fi |
| 3336 | |
| 3337 | else |
| 3338 | ac_cv_path_GREP=$GREP |
| 3339 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3340 | |
| 3341 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3342 | fi |
| 3343 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3344 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3345 | GREP="$ac_cv_path_GREP" |
| 3346 | |
| 3347 | |
| 3348 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3349 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3350 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3352 | else |
| 3353 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3354 | then ac_cv_path_EGREP="$GREP -E" |
| 3355 | else |
| 3356 | # Extract the first word of "egrep" to use in msg output |
| 3357 | if test -z "$EGREP"; then |
| 3358 | set dummy egrep; ac_prog_name=$2 |
| 3359 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3361 | else |
| 3362 | ac_path_EGREP_found=false |
| 3363 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3365 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3366 | do |
| 3367 | IFS=$as_save_IFS |
| 3368 | test -z "$as_dir" && as_dir=. |
| 3369 | for ac_prog in egrep; do |
| 3370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3371 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3372 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3373 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3374 | # Check for GNU $ac_path_EGREP |
| 3375 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3376 | *GNU*) |
| 3377 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3378 | *) |
| 3379 | ac_count=0 |
| 3380 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3381 | while : |
| 3382 | do |
| 3383 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3384 | mv "conftest.tmp" "conftest.in" |
| 3385 | cp "conftest.in" "conftest.nl" |
| 3386 | echo 'EGREP' >> "conftest.nl" |
| 3387 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3388 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3389 | ac_count=`expr $ac_count + 1` |
| 3390 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3391 | # Best one so far, save it but keep looking for a better one |
| 3392 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3393 | ac_path_EGREP_max=$ac_count |
| 3394 | fi |
| 3395 | # 10*(2^10) chars as input seems more than enough |
| 3396 | test $ac_count -gt 10 && break |
| 3397 | done |
| 3398 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3399 | esac |
| 3400 | |
| 3401 | |
| 3402 | $ac_path_EGREP_found && break 3 |
| 3403 | done |
| 3404 | done |
| 3405 | |
| 3406 | done |
| 3407 | IFS=$as_save_IFS |
| 3408 | |
| 3409 | |
| 3410 | fi |
| 3411 | |
| 3412 | EGREP="$ac_cv_path_EGREP" |
| 3413 | if test -z "$EGREP"; then |
| 3414 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3415 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3416 | { (exit 1); exit 1; }; } |
| 3417 | fi |
| 3418 | |
| 3419 | else |
| 3420 | ac_cv_path_EGREP=$EGREP |
| 3421 | fi |
| 3422 | |
| 3423 | |
| 3424 | fi |
| 3425 | fi |
| 3426 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3427 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3428 | EGREP="$ac_cv_path_EGREP" |
| 3429 | |
| 3430 | |
| 3431 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3432 | 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] | 3433 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3435 | else |
| 3436 | cat >conftest.$ac_ext <<_ACEOF |
| 3437 | /* confdefs.h. */ |
| 3438 | _ACEOF |
| 3439 | cat confdefs.h >>conftest.$ac_ext |
| 3440 | cat >>conftest.$ac_ext <<_ACEOF |
| 3441 | /* end confdefs.h. */ |
| 3442 | #include <stdlib.h> |
| 3443 | #include <stdarg.h> |
| 3444 | #include <string.h> |
| 3445 | #include <float.h> |
| 3446 | |
| 3447 | int |
| 3448 | main () |
| 3449 | { |
| 3450 | |
| 3451 | ; |
| 3452 | return 0; |
| 3453 | } |
| 3454 | _ACEOF |
| 3455 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3456 | if { (ac_try="$ac_compile" |
| 3457 | case "(($ac_try" in |
| 3458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3459 | *) ac_try_echo=$ac_try;; |
| 3460 | esac |
| 3461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3462 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3463 | ac_status=$? |
| 3464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3465 | rm -f conftest.er1 |
| 3466 | cat conftest.err >&5 |
| 3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3468 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3470 | { (case "(($ac_try" in |
| 3471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3472 | *) ac_try_echo=$ac_try;; |
| 3473 | esac |
| 3474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3475 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3476 | ac_status=$? |
| 3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3478 | (exit $ac_status); }; } && |
| 3479 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3480 | { (case "(($ac_try" in |
| 3481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3482 | *) ac_try_echo=$ac_try;; |
| 3483 | esac |
| 3484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3485 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3486 | ac_status=$? |
| 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3488 | (exit $ac_status); }; }; then |
| 3489 | ac_cv_header_stdc=yes |
| 3490 | else |
| 3491 | echo "$as_me: failed program was:" >&5 |
| 3492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3493 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3494 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3495 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3496 | |
| 3497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3498 | |
| 3499 | if test $ac_cv_header_stdc = yes; then |
| 3500 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3501 | cat >conftest.$ac_ext <<_ACEOF |
| 3502 | /* confdefs.h. */ |
| 3503 | _ACEOF |
| 3504 | cat confdefs.h >>conftest.$ac_ext |
| 3505 | cat >>conftest.$ac_ext <<_ACEOF |
| 3506 | /* end confdefs.h. */ |
| 3507 | #include <string.h> |
| 3508 | |
| 3509 | _ACEOF |
| 3510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3511 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3512 | : |
| 3513 | else |
| 3514 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3515 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3516 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3517 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3518 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3519 | |
| 3520 | if test $ac_cv_header_stdc = yes; then |
| 3521 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3522 | cat >conftest.$ac_ext <<_ACEOF |
| 3523 | /* confdefs.h. */ |
| 3524 | _ACEOF |
| 3525 | cat confdefs.h >>conftest.$ac_ext |
| 3526 | cat >>conftest.$ac_ext <<_ACEOF |
| 3527 | /* end confdefs.h. */ |
| 3528 | #include <stdlib.h> |
| 3529 | |
| 3530 | _ACEOF |
| 3531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3532 | $EGREP "free" >/dev/null 2>&1; then |
| 3533 | : |
| 3534 | else |
| 3535 | ac_cv_header_stdc=no |
| 3536 | fi |
| 3537 | rm -f conftest* |
| 3538 | |
| 3539 | fi |
| 3540 | |
| 3541 | if test $ac_cv_header_stdc = yes; then |
| 3542 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3543 | if test "$cross_compiling" = yes; then |
| 3544 | : |
| 3545 | else |
| 3546 | cat >conftest.$ac_ext <<_ACEOF |
| 3547 | /* confdefs.h. */ |
| 3548 | _ACEOF |
| 3549 | cat confdefs.h >>conftest.$ac_ext |
| 3550 | cat >>conftest.$ac_ext <<_ACEOF |
| 3551 | /* end confdefs.h. */ |
| 3552 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3553 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3554 | #if ((' ' & 0x0FF) == 0x020) |
| 3555 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3556 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3557 | #else |
| 3558 | # define ISLOWER(c) \ |
| 3559 | (('a' <= (c) && (c) <= 'i') \ |
| 3560 | || ('j' <= (c) && (c) <= 'r') \ |
| 3561 | || ('s' <= (c) && (c) <= 'z')) |
| 3562 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3563 | #endif |
| 3564 | |
| 3565 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3566 | int |
| 3567 | main () |
| 3568 | { |
| 3569 | int i; |
| 3570 | for (i = 0; i < 256; i++) |
| 3571 | if (XOR (islower (i), ISLOWER (i)) |
| 3572 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3573 | return 2; |
| 3574 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3575 | } |
| 3576 | _ACEOF |
| 3577 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3578 | if { (ac_try="$ac_link" |
| 3579 | case "(($ac_try" in |
| 3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3581 | *) ac_try_echo=$ac_try;; |
| 3582 | esac |
| 3583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3584 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | ac_status=$? |
| 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3588 | { (case "(($ac_try" in |
| 3589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3590 | *) ac_try_echo=$ac_try;; |
| 3591 | esac |
| 3592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3593 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3594 | ac_status=$? |
| 3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3596 | (exit $ac_status); }; }; then |
| 3597 | : |
| 3598 | else |
| 3599 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3600 | echo "$as_me: failed program was:" >&5 |
| 3601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3602 | |
| 3603 | ( exit $ac_status ) |
| 3604 | ac_cv_header_stdc=no |
| 3605 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3606 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3607 | fi |
| 3608 | |
| 3609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3610 | fi |
| 3611 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3612 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3613 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3614 | if test $ac_cv_header_stdc = yes; then |
| 3615 | |
| 3616 | cat >>confdefs.h <<\_ACEOF |
| 3617 | #define STDC_HEADERS 1 |
| 3618 | _ACEOF |
| 3619 | |
| 3620 | fi |
| 3621 | |
| 3622 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | |
| 3630 | |
| 3631 | |
| 3632 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3633 | inttypes.h stdint.h unistd.h |
| 3634 | do |
| 3635 | 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^] | 3636 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3638 | 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] | 3639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3640 | else |
| 3641 | cat >conftest.$ac_ext <<_ACEOF |
| 3642 | /* confdefs.h. */ |
| 3643 | _ACEOF |
| 3644 | cat confdefs.h >>conftest.$ac_ext |
| 3645 | cat >>conftest.$ac_ext <<_ACEOF |
| 3646 | /* end confdefs.h. */ |
| 3647 | $ac_includes_default |
| 3648 | |
| 3649 | #include <$ac_header> |
| 3650 | _ACEOF |
| 3651 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3652 | if { (ac_try="$ac_compile" |
| 3653 | case "(($ac_try" in |
| 3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3655 | *) ac_try_echo=$ac_try;; |
| 3656 | esac |
| 3657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3658 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3659 | ac_status=$? |
| 3660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3661 | rm -f conftest.er1 |
| 3662 | cat conftest.err >&5 |
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3664 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3666 | { (case "(($ac_try" in |
| 3667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3668 | *) ac_try_echo=$ac_try;; |
| 3669 | esac |
| 3670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3671 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3672 | ac_status=$? |
| 3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3674 | (exit $ac_status); }; } && |
| 3675 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3676 | { (case "(($ac_try" in |
| 3677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3678 | *) ac_try_echo=$ac_try;; |
| 3679 | esac |
| 3680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3681 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3682 | ac_status=$? |
| 3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3684 | (exit $ac_status); }; }; then |
| 3685 | eval "$as_ac_Header=yes" |
| 3686 | else |
| 3687 | echo "$as_me: failed program was:" >&5 |
| 3688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3689 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3690 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3691 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3692 | |
| 3693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3694 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3695 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3696 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3697 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3698 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3699 | cat >>confdefs.h <<_ACEOF |
| 3700 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3701 | _ACEOF |
| 3702 | |
| 3703 | fi |
| 3704 | |
| 3705 | done |
| 3706 | |
| 3707 | |
| 3708 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3709 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3710 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3711 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3713 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3714 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3715 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3716 | else |
| 3717 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3718 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3719 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3720 | cat >conftest.$ac_ext <<_ACEOF |
| 3721 | /* confdefs.h. */ |
| 3722 | _ACEOF |
| 3723 | cat confdefs.h >>conftest.$ac_ext |
| 3724 | cat >>conftest.$ac_ext <<_ACEOF |
| 3725 | /* end confdefs.h. */ |
| 3726 | $ac_includes_default |
| 3727 | #include <linux/fs.h> |
| 3728 | _ACEOF |
| 3729 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3730 | if { (ac_try="$ac_compile" |
| 3731 | case "(($ac_try" in |
| 3732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3733 | *) ac_try_echo=$ac_try;; |
| 3734 | esac |
| 3735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3736 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3737 | ac_status=$? |
| 3738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3739 | rm -f conftest.er1 |
| 3740 | cat conftest.err >&5 |
| 3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3742 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3744 | { (case "(($ac_try" in |
| 3745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3746 | *) ac_try_echo=$ac_try;; |
| 3747 | esac |
| 3748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3749 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3750 | ac_status=$? |
| 3751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3752 | (exit $ac_status); }; } && |
| 3753 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3754 | { (case "(($ac_try" in |
| 3755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3756 | *) ac_try_echo=$ac_try;; |
| 3757 | esac |
| 3758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3759 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3760 | ac_status=$? |
| 3761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3762 | (exit $ac_status); }; }; then |
| 3763 | ac_header_compiler=yes |
| 3764 | else |
| 3765 | echo "$as_me: failed program was:" >&5 |
| 3766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3768 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3769 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3770 | |
| 3771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3772 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3773 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3774 | |
| 3775 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3776 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3777 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3778 | cat >conftest.$ac_ext <<_ACEOF |
| 3779 | /* confdefs.h. */ |
| 3780 | _ACEOF |
| 3781 | cat confdefs.h >>conftest.$ac_ext |
| 3782 | cat >>conftest.$ac_ext <<_ACEOF |
| 3783 | /* end confdefs.h. */ |
| 3784 | #include <linux/fs.h> |
| 3785 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3786 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3787 | case "(($ac_try" in |
| 3788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3789 | *) ac_try_echo=$ac_try;; |
| 3790 | esac |
| 3791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3793 | ac_status=$? |
| 3794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3795 | rm -f conftest.er1 |
| 3796 | cat conftest.err >&5 |
| 3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3798 | (exit $ac_status); } >/dev/null; then |
| 3799 | if test -s conftest.err; then |
| 3800 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3802 | else |
| 3803 | ac_cpp_err= |
| 3804 | fi |
| 3805 | else |
| 3806 | ac_cpp_err=yes |
| 3807 | fi |
| 3808 | if test -z "$ac_cpp_err"; then |
| 3809 | ac_header_preproc=yes |
| 3810 | else |
| 3811 | echo "$as_me: failed program was:" >&5 |
| 3812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3813 | |
| 3814 | ac_header_preproc=no |
| 3815 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3816 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3817 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3818 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3819 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3820 | |
| 3821 | # So? What about this header? |
| 3822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3823 | yes:no: ) |
| 3824 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3825 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3826 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3827 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3828 | ac_header_preproc=yes |
| 3829 | ;; |
| 3830 | no:yes:* ) |
| 3831 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3832 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3833 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3834 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3835 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3836 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3837 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3838 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3839 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3840 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3841 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3842 | 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^] | 3843 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3844 | ;; |
| 3845 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3846 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3847 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3848 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3850 | else |
| 3851 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3853 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3854 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3855 | |
| 3856 | fi |
| 3857 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3858 | linux_headers=yes |
| 3859 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3860 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3861 | fi |
| 3862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3863 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3864 | if test "$linux_headers" != yes; then |
| 3865 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3866 | fi |
| 3867 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3868 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3869 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3870 | if test "$GCC" = yes |
| 3871 | then |
| 3872 | case "$host_cpu" in |
| 3873 | alpha) addcflags="-mieee" ;; |
| 3874 | esac |
| 3875 | fi |
| 3876 | if test "x$addcflags" != x |
| 3877 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3878 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3879 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3880 | CFLAGS="$addcflags $CFLAGS" |
| 3881 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3882 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3883 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3884 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3885 | LIB_EXT=.a |
| 3886 | STATIC_LIB_EXT=.a |
| 3887 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3889 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3890 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3891 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3892 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3893 | LDFLAGS=$withval |
| 3894 | else |
| 3895 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3896 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3898 | |
| 3899 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3900 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3901 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3902 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3903 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3904 | fi |
| 3905 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3906 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3907 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3908 | then |
| 3909 | MAINTAINER_CMT=# |
| 3910 | echo "Disabling maintainer mode" |
| 3911 | else |
| 3912 | MAINTAINER_CMT= |
| 3913 | echo "Enabling maintainer mode" |
| 3914 | fi |
| 3915 | |
| 3916 | else |
| 3917 | MAINTAINER_CMT=# |
| 3918 | echo "Disabling maintainer mode by default" |
| 3919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3920 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3922 | |
| 3923 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3924 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3925 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3926 | then |
| 3927 | echo "Disabling compression support" |
| 3928 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3929 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3930 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3931 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3932 | |
| 3933 | echo "Enabling compression support" |
| 3934 | echo "WARNING: Compression support is experimental" |
| 3935 | fi |
| 3936 | |
| 3937 | else |
| 3938 | echo "Disabling compression support by default" |
| 3939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3940 | fi |
| 3941 | |
| 3942 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3943 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3944 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3945 | then |
| 3946 | HTREE_CMT=# |
| 3947 | echo "Disabling htree directory support" |
| 3948 | else |
| 3949 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3950 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3951 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3952 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3953 | |
| 3954 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3955 | fi |
| 3956 | |
| 3957 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3958 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3959 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3960 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3961 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3962 | |
| 3963 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3965 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3967 | |
| 3968 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3969 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3970 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3971 | then |
| 3972 | ELF_CMT=# |
| 3973 | MAKEFILE_ELF=/dev/null |
| 3974 | echo "Disabling ELF shared libraries" |
| 3975 | else |
| 3976 | ELF_CMT= |
| 3977 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3978 | case "$host_os" in |
| 3979 | solaris2.*) |
| 3980 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3981 | ;; |
| 3982 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3983 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3984 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3985 | echo "Enabling ELF shared libraries" |
| 3986 | fi |
| 3987 | |
| 3988 | else |
| 3989 | MAKEFILE_ELF=/dev/null |
| 3990 | ELF_CMT=# |
| 3991 | echo "Disabling ELF shared libraries by default" |
| 3992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3993 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3994 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3996 | |
| 3997 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3998 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 3999 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4000 | then |
| 4001 | BSDLIB_CMT=# |
| 4002 | MAKEFILE_BSDLIB=/dev/null |
| 4003 | echo "Disabling BSD shared libraries" |
| 4004 | else |
| 4005 | BSDLIB_CMT= |
| 4006 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4007 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4008 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4009 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4010 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4011 | LIB_EXT=.dylib |
| 4012 | ;; |
| 4013 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4014 | echo "Enabling BSD shared libraries" |
| 4015 | fi |
| 4016 | |
| 4017 | else |
| 4018 | MAKEFILE_BSDLIB=/dev/null |
| 4019 | BSDLIB_CMT=# |
| 4020 | echo "Disabling BSD shared libraries by default" |
| 4021 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4022 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4023 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4025 | |
| 4026 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4027 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4028 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4029 | then |
| 4030 | PROFILE_CMT=# |
| 4031 | MAKEFILE_PROFILE=/dev/null |
| 4032 | echo "Disabling profiling libraries" |
| 4033 | else |
| 4034 | PROFILE_CMT= |
| 4035 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4036 | PROFILED_LIB_EXT=_p.a |
| 4037 | echo "Building profiling libraries" |
| 4038 | fi |
| 4039 | |
| 4040 | else |
| 4041 | PROFILE_CMT=# |
| 4042 | MAKEFILE_PROFILE=/dev/null |
| 4043 | echo "Disabling profiling libraries by default" |
| 4044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4045 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4046 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4048 | |
| 4049 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4050 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4051 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4052 | then |
| 4053 | CHECKER_CMT=# |
| 4054 | MAKEFILE_CHECKER=/dev/null |
| 4055 | echo "Disabling checker libraries" |
| 4056 | else |
| 4057 | CHECKER_CMT= |
| 4058 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 4059 | echo "Building checker libraries" |
| 4060 | fi |
| 4061 | |
| 4062 | else |
| 4063 | CHECKER_CMT=# |
| 4064 | MAKEFILE_CHECKER=/dev/null |
| 4065 | echo "Disabling checker libraries by default" |
| 4066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4067 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4068 | |
| 4069 | |
| 4070 | |
| 4071 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4073 | |
| 4074 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 4075 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4076 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4077 | then |
| 4078 | echo "Disabling journal debugging" |
| 4079 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4080 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 4081 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4082 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4083 | |
| 4084 | echo "Enabling journal debugging" |
| 4085 | fi |
| 4086 | |
| 4087 | else |
| 4088 | echo "Disabling journal debugging by default" |
| 4089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4090 | fi |
| 4091 | |
| 4092 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4093 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4094 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4095 | then |
| 4096 | echo "Disabling blkid debugging" |
| 4097 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4098 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4099 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4100 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4101 | |
| 4102 | echo "Enabling blkid debugging" |
| 4103 | fi |
| 4104 | |
| 4105 | else |
| 4106 | echo "Disabling blkid debugging by default" |
| 4107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4108 | fi |
| 4109 | |
| 4110 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4111 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4112 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4113 | then |
| 4114 | echo "Disabling testio debugging" |
| 4115 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4116 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4117 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4118 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4119 | |
| 4120 | echo "Enabling testio debugging" |
| 4121 | fi |
| 4122 | |
| 4123 | else |
| 4124 | echo "Disabling testio debugging by default" |
| 4125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4126 | fi |
| 4127 | |
| 4128 | # Check whether --enable-swapfs was given. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4129 | if test "${enable_swapfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4130 | enableval=$enable_swapfs; if test "$enableval" = "no" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4131 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4132 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4133 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4134 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4135 | SWAPFS_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4136 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4137 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4138 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4139 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4140 | echo "Enabling swapfs support" |
| 4141 | fi |
| 4142 | |
| 4143 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4144 | SWAPFS_CMT= |
| 4145 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4146 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4147 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4148 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4149 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4150 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4151 | fi |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4153 | |
| 4154 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4155 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4156 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4157 | then |
| 4158 | echo "Disabling debugfs support" |
| 4159 | DEBUGFS_CMT="#" |
| 4160 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4161 | DEBUGFS_CMT= |
| 4162 | echo "Enabling debugfs support" |
| 4163 | fi |
| 4164 | |
| 4165 | else |
| 4166 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4167 | DEBUGFS_CMT= |
| 4168 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4169 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4170 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4171 | |
| 4172 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4173 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4174 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4175 | then |
| 4176 | echo "Disabling e2image support" |
| 4177 | IMAGER_CMT="#" |
| 4178 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4179 | IMAGER_CMT= |
| 4180 | echo "Enabling e2image support" |
| 4181 | fi |
| 4182 | |
| 4183 | else |
| 4184 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4185 | IMAGER_CMT= |
| 4186 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4187 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4188 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4189 | |
| 4190 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4191 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4192 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4193 | then |
| 4194 | echo "Disabling e2resize support" |
| 4195 | RESIZER_CMT="#" |
| 4196 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4197 | RESIZER_CMT= |
| 4198 | echo "Enabling e2resize support" |
| 4199 | fi |
| 4200 | |
| 4201 | else |
| 4202 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4203 | RESIZER_CMT= |
| 4204 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4205 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4207 | |
| 4208 | # Check whether --enable-dynamic-e2fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4209 | if test "${enable_dynamic_e2fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4210 | enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4211 | then |
| 4212 | E2FSCK_TYPE=static |
| 4213 | echo "Building e2fsck statically" |
| 4214 | else |
| 4215 | E2FSCK_TYPE=shared |
| 4216 | echo "Building e2fsck dynamically" |
| 4217 | fi |
| 4218 | |
| 4219 | else |
| 4220 | E2FSCK_TYPE=static |
| 4221 | echo "Building e2fsck statically by default" |
| 4222 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4223 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4224 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4225 | |
| 4226 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4227 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4228 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4229 | then |
| 4230 | FSCK_PROG='' FSCK_MAN='' |
| 4231 | echo "Not building fsck wrapper" |
| 4232 | else |
| 4233 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4234 | echo "Building fsck wrapper" |
| 4235 | fi |
| 4236 | |
| 4237 | else |
| 4238 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4239 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4240 | FSCK_PROG='' FSCK_MAN='' |
| 4241 | echo "Not building fsck wrapper by default" |
| 4242 | ;; |
| 4243 | *) |
| 4244 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4245 | echo "Building fsck wrapper by default" |
| 4246 | esac |
| 4247 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4248 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4249 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4250 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4251 | |
| 4252 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4253 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4254 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4255 | then |
| 4256 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4257 | echo "Not building e2initrd helper" |
| 4258 | else |
| 4259 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4260 | echo "Building e2initrd helper" |
| 4261 | fi |
| 4262 | |
| 4263 | else |
| 4264 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4265 | echo "Building e2initrd helper by default" |
| 4266 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4267 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4268 | |
| 4269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4270 | |
| 4271 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4272 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4273 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4274 | then |
| 4275 | echo "Disabling device-mapper support" |
| 4276 | DEVMAPPER_REQ='' |
| 4277 | DEVMAPPER_LIBS='' |
| 4278 | STATIC_DEVMAPPER_LIBS='' |
| 4279 | else |
| 4280 | cat >>confdefs.h <<\_ACEOF |
| 4281 | #define HAVE_DEVMAPPER 1 |
| 4282 | _ACEOF |
| 4283 | |
| 4284 | echo "Enabling device-mapper support" |
| 4285 | |
| 4286 | DEVMAPPER_REQ='libselinux libsepol' |
| 4287 | DEVMAPPER_PC_LIBS='-ldevmapper' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4288 | DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread' |
| 4289 | 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] | 4290 | |
| 4291 | fi |
| 4292 | |
| 4293 | else |
| 4294 | echo "Disabling device-mapper support by default" |
| 4295 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4296 | fi |
| 4297 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4298 | |
| 4299 | |
| 4300 | |
| 4301 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4302 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4303 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4304 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4305 | PACKAGE=e2fsprogs |
| 4306 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4307 | VERSION=0.14.1 |
| 4308 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4309 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4310 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4312 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4313 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4314 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4315 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4320 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4321 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4322 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4323 | 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] | 4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4325 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4326 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4327 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4328 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4329 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4330 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4331 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4332 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4333 | *@@@%%%=?*=@@@%%%*) |
| 4334 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4335 | *) |
| 4336 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4337 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4340 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4341 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4342 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4343 | SET_MAKE= |
| 4344 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4346 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4347 | SET_MAKE="MAKE=${MAKE-make}" |
| 4348 | fi |
| 4349 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4350 | # Find a good install program. We prefer a C program (faster), |
| 4351 | # so one script is as good as another. But avoid the broken or |
| 4352 | # incompatible versions: |
| 4353 | # SysV /etc/install, /usr/sbin/install |
| 4354 | # SunOS /usr/etc/install |
| 4355 | # IRIX /sbin/install |
| 4356 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4357 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4358 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4359 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4360 | # 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] | 4361 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4362 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4363 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4364 | 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] | 4365 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4366 | if test "${ac_cv_path_install+set}" = set; then |
| 4367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4368 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4370 | for as_dir in $PATH |
| 4371 | do |
| 4372 | IFS=$as_save_IFS |
| 4373 | test -z "$as_dir" && as_dir=. |
| 4374 | # Account for people who put trailing slashes in PATH elements. |
| 4375 | case $as_dir/ in |
| 4376 | ./ | .// | /cC/* | \ |
| 4377 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4378 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4379 | /usr/ucb/* ) ;; |
| 4380 | *) |
| 4381 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4382 | # Don't use installbsd from OSF since it installs stuff as root |
| 4383 | # by default. |
| 4384 | for ac_prog in ginstall scoinst install; do |
| 4385 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4386 | 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] | 4387 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4388 | 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] | 4389 | # AIX install. It has an incompatible calling convention. |
| 4390 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4391 | elif test $ac_prog = install && |
| 4392 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4393 | # program-specific install script used by HP pwplus--don't use. |
| 4394 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4395 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4396 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4397 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4398 | fi |
| 4399 | fi |
| 4400 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4401 | done |
| 4402 | ;; |
| 4403 | esac |
| 4404 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4405 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4406 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4407 | |
| 4408 | fi |
| 4409 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4410 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4411 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4412 | # As a last resort, use the slow shell script. Don't cache a |
| 4413 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4414 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4415 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4416 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4417 | fi |
| 4418 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4419 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4420 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4421 | |
| 4422 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4423 | # It thinks the first close brace ends the variable substitution. |
| 4424 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4425 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4426 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4427 | |
| 4428 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4429 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4430 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4431 | MKINSTALLDIRS= |
| 4432 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4433 | case "$ac_aux_dir" in |
| 4434 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4435 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4436 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4437 | fi |
| 4438 | if test -z "$MKINSTALLDIRS"; then |
| 4439 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4440 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4442 | |
| 4443 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4444 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4445 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4446 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4447 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4448 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4449 | else |
| 4450 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4451 | fi |
| 4452 | |
| 4453 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4454 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | # Prepare PATH_SEPARATOR. |
| 4462 | # The user is always right. |
| 4463 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4464 | echo "#! /bin/sh" >conf$$.sh |
| 4465 | echo "exit 0" >>conf$$.sh |
| 4466 | chmod +x conf$$.sh |
| 4467 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4468 | PATH_SEPARATOR=';' |
| 4469 | else |
| 4470 | PATH_SEPARATOR=: |
| 4471 | fi |
| 4472 | rm -f conf$$.sh |
| 4473 | fi |
| 4474 | |
| 4475 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4476 | # as systems may use methods other than mode bits to determine executability. |
| 4477 | cat >conf$$.file <<_ASEOF |
| 4478 | #! /bin/sh |
| 4479 | exit 0 |
| 4480 | _ASEOF |
| 4481 | chmod +x conf$$.file |
| 4482 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4483 | ac_executable_p="test -x" |
| 4484 | else |
| 4485 | ac_executable_p="test -f" |
| 4486 | fi |
| 4487 | rm -f conf$$.file |
| 4488 | |
| 4489 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4490 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4491 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4493 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4495 | else |
| 4496 | case "$MSGFMT" in |
| 4497 | [\\/]* | ?:[\\/]*) |
| 4498 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4499 | ;; |
| 4500 | *) |
| 4501 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4502 | for ac_dir in $PATH; do |
| 4503 | IFS="$ac_save_IFS" |
| 4504 | test -z "$ac_dir" && ac_dir=. |
| 4505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4506 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4507 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4508 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4509 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4510 | break 2 |
| 4511 | fi |
| 4512 | fi |
| 4513 | done |
| 4514 | done |
| 4515 | IFS="$ac_save_IFS" |
| 4516 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4517 | ;; |
| 4518 | esac |
| 4519 | fi |
| 4520 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4521 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4522 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4523 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4524 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4525 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4526 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4527 | fi |
| 4528 | |
| 4529 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4530 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4533 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4535 | else |
| 4536 | case $GMSGFMT in |
| 4537 | [\\/]* | ?:[\\/]*) |
| 4538 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4539 | ;; |
| 4540 | *) |
| 4541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4542 | for as_dir in $PATH |
| 4543 | do |
| 4544 | IFS=$as_save_IFS |
| 4545 | test -z "$as_dir" && as_dir=. |
| 4546 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4547 | 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] | 4548 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4550 | break 2 |
| 4551 | fi |
| 4552 | done |
| 4553 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4554 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4555 | |
| 4556 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4557 | ;; |
| 4558 | esac |
| 4559 | fi |
| 4560 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4561 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4562 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4563 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4564 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4565 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4566 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4567 | fi |
| 4568 | |
| 4569 | |
| 4570 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4572 | # Prepare PATH_SEPARATOR. |
| 4573 | # The user is always right. |
| 4574 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4575 | echo "#! /bin/sh" >conf$$.sh |
| 4576 | echo "exit 0" >>conf$$.sh |
| 4577 | chmod +x conf$$.sh |
| 4578 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4579 | PATH_SEPARATOR=';' |
| 4580 | else |
| 4581 | PATH_SEPARATOR=: |
| 4582 | fi |
| 4583 | rm -f conf$$.sh |
| 4584 | fi |
| 4585 | |
| 4586 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4587 | # as systems may use methods other than mode bits to determine executability. |
| 4588 | cat >conf$$.file <<_ASEOF |
| 4589 | #! /bin/sh |
| 4590 | exit 0 |
| 4591 | _ASEOF |
| 4592 | chmod +x conf$$.file |
| 4593 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4594 | ac_executable_p="test -x" |
| 4595 | else |
| 4596 | ac_executable_p="test -f" |
| 4597 | fi |
| 4598 | rm -f conf$$.file |
| 4599 | |
| 4600 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4601 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4602 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4604 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4606 | else |
| 4607 | case "$XGETTEXT" in |
| 4608 | [\\/]* | ?:[\\/]*) |
| 4609 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4610 | ;; |
| 4611 | *) |
| 4612 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4613 | for ac_dir in $PATH; do |
| 4614 | IFS="$ac_save_IFS" |
| 4615 | test -z "$ac_dir" && ac_dir=. |
| 4616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4617 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4618 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4619 | (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 |
| 4620 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4621 | break 2 |
| 4622 | fi |
| 4623 | fi |
| 4624 | done |
| 4625 | done |
| 4626 | IFS="$ac_save_IFS" |
| 4627 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4628 | ;; |
| 4629 | esac |
| 4630 | fi |
| 4631 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4632 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4633 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4634 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4635 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4636 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4637 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4638 | fi |
| 4639 | |
| 4640 | rm -f messages.po |
| 4641 | |
| 4642 | |
| 4643 | # Prepare PATH_SEPARATOR. |
| 4644 | # The user is always right. |
| 4645 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4646 | echo "#! /bin/sh" >conf$$.sh |
| 4647 | echo "exit 0" >>conf$$.sh |
| 4648 | chmod +x conf$$.sh |
| 4649 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4650 | PATH_SEPARATOR=';' |
| 4651 | else |
| 4652 | PATH_SEPARATOR=: |
| 4653 | fi |
| 4654 | rm -f conf$$.sh |
| 4655 | fi |
| 4656 | |
| 4657 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4658 | # as systems may use methods other than mode bits to determine executability. |
| 4659 | cat >conf$$.file <<_ASEOF |
| 4660 | #! /bin/sh |
| 4661 | exit 0 |
| 4662 | _ASEOF |
| 4663 | chmod +x conf$$.file |
| 4664 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4665 | ac_executable_p="test -x" |
| 4666 | else |
| 4667 | ac_executable_p="test -f" |
| 4668 | fi |
| 4669 | rm -f conf$$.file |
| 4670 | |
| 4671 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4672 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4675 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4677 | else |
| 4678 | case "$MSGMERGE" in |
| 4679 | [\\/]* | ?:[\\/]*) |
| 4680 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4681 | ;; |
| 4682 | *) |
| 4683 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4684 | for ac_dir in $PATH; do |
| 4685 | IFS="$ac_save_IFS" |
| 4686 | test -z "$ac_dir" && ac_dir=. |
| 4687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4688 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4689 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4690 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4691 | break 2 |
| 4692 | fi |
| 4693 | fi |
| 4694 | done |
| 4695 | done |
| 4696 | IFS="$ac_save_IFS" |
| 4697 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4698 | ;; |
| 4699 | esac |
| 4700 | fi |
| 4701 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4702 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4703 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4704 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4705 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4707 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4708 | fi |
| 4709 | |
| 4710 | |
| 4711 | if test "$GMSGFMT" != ":"; then |
| 4712 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4713 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4714 | : ; |
| 4715 | else |
| 4716 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4717 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4718 | 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] | 4719 | GMSGFMT=":" |
| 4720 | fi |
| 4721 | fi |
| 4722 | |
| 4723 | if test "$XGETTEXT" != ":"; then |
| 4724 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4725 | (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 |
| 4726 | : ; |
| 4727 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4728 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4729 | 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] | 4730 | XGETTEXT=":" |
| 4731 | fi |
| 4732 | rm -f messages.po |
| 4733 | fi |
| 4734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4735 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4736 | |
| 4737 | |
| 4738 | if test -n "$ac_tool_prefix"; then |
| 4739 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4740 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4741 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4743 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4745 | else |
| 4746 | if test -n "$RANLIB"; then |
| 4747 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4748 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4750 | for as_dir in $PATH |
| 4751 | do |
| 4752 | IFS=$as_save_IFS |
| 4753 | test -z "$as_dir" && as_dir=. |
| 4754 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4755 | 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] | 4756 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4758 | break 2 |
| 4759 | fi |
| 4760 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4761 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4762 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4763 | |
| 4764 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4765 | fi |
| 4766 | RANLIB=$ac_cv_prog_RANLIB |
| 4767 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4768 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4769 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4770 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4772 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4773 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4776 | fi |
| 4777 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4778 | ac_ct_RANLIB=$RANLIB |
| 4779 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4780 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4781 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4783 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4785 | else |
| 4786 | if test -n "$ac_ct_RANLIB"; then |
| 4787 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4788 | else |
| 4789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4790 | for as_dir in $PATH |
| 4791 | do |
| 4792 | IFS=$as_save_IFS |
| 4793 | test -z "$as_dir" && as_dir=. |
| 4794 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4795 | 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] | 4796 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4798 | break 2 |
| 4799 | fi |
| 4800 | done |
| 4801 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4802 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4803 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4804 | fi |
| 4805 | fi |
| 4806 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4807 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4808 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4809 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4810 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4811 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4812 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4813 | fi |
| 4814 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4815 | if test "x$ac_ct_RANLIB" = x; then |
| 4816 | RANLIB=":" |
| 4817 | else |
| 4818 | case $cross_compiling:$ac_tool_warned in |
| 4819 | yes:) |
| 4820 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4821 | whose name does not start with the host triplet. If you think this |
| 4822 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4823 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4824 | whose name does not start with the host triplet. If you think this |
| 4825 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4826 | ac_tool_warned=yes ;; |
| 4827 | esac |
| 4828 | RANLIB=$ac_ct_RANLIB |
| 4829 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4830 | else |
| 4831 | RANLIB="$ac_cv_prog_RANLIB" |
| 4832 | fi |
| 4833 | |
| 4834 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4835 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4836 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4837 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4839 | else |
| 4840 | ac_check_lib_save_LIBS=$LIBS |
| 4841 | LIBS="-lcposix $LIBS" |
| 4842 | cat >conftest.$ac_ext <<_ACEOF |
| 4843 | /* confdefs.h. */ |
| 4844 | _ACEOF |
| 4845 | cat confdefs.h >>conftest.$ac_ext |
| 4846 | cat >>conftest.$ac_ext <<_ACEOF |
| 4847 | /* end confdefs.h. */ |
| 4848 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4849 | /* Override any GCC internal prototype to avoid an error. |
| 4850 | Use char because int might match the return type of a GCC |
| 4851 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4852 | #ifdef __cplusplus |
| 4853 | extern "C" |
| 4854 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4855 | char strerror (); |
| 4856 | int |
| 4857 | main () |
| 4858 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4859 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4860 | ; |
| 4861 | return 0; |
| 4862 | } |
| 4863 | _ACEOF |
| 4864 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4865 | if { (ac_try="$ac_link" |
| 4866 | case "(($ac_try" in |
| 4867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4868 | *) ac_try_echo=$ac_try;; |
| 4869 | esac |
| 4870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4871 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4872 | ac_status=$? |
| 4873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4874 | rm -f conftest.er1 |
| 4875 | cat conftest.err >&5 |
| 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4877 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4879 | { (case "(($ac_try" in |
| 4880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4881 | *) ac_try_echo=$ac_try;; |
| 4882 | esac |
| 4883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4884 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4885 | ac_status=$? |
| 4886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4887 | (exit $ac_status); }; } && |
| 4888 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4889 | { (case "(($ac_try" in |
| 4890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4891 | *) ac_try_echo=$ac_try;; |
| 4892 | esac |
| 4893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4894 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4895 | ac_status=$? |
| 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4897 | (exit $ac_status); }; }; then |
| 4898 | ac_cv_lib_cposix_strerror=yes |
| 4899 | else |
| 4900 | echo "$as_me: failed program was:" >&5 |
| 4901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4902 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4903 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4904 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4905 | |
| 4906 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4907 | conftest$ac_exeext conftest.$ac_ext |
| 4908 | LIBS=$ac_check_lib_save_LIBS |
| 4909 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4910 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4911 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4912 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4913 | LIBS="$LIBS -lcposix" |
| 4914 | fi |
| 4915 | |
| 4916 | |
| 4917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4918 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4919 | 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] | 4920 | if test "${ac_cv_c_const+set}" = set; then |
| 4921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4922 | else |
| 4923 | cat >conftest.$ac_ext <<_ACEOF |
| 4924 | /* confdefs.h. */ |
| 4925 | _ACEOF |
| 4926 | cat confdefs.h >>conftest.$ac_ext |
| 4927 | cat >>conftest.$ac_ext <<_ACEOF |
| 4928 | /* end confdefs.h. */ |
| 4929 | |
| 4930 | int |
| 4931 | main () |
| 4932 | { |
| 4933 | /* FIXME: Include the comments suggested by Paul. */ |
| 4934 | #ifndef __cplusplus |
| 4935 | /* Ultrix mips cc rejects this. */ |
| 4936 | typedef int charset[2]; |
| 4937 | const charset x; |
| 4938 | /* SunOS 4.1.1 cc rejects this. */ |
| 4939 | char const *const *ccp; |
| 4940 | char **p; |
| 4941 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4942 | struct point {int x, y;}; |
| 4943 | static struct point const zero = {0,0}; |
| 4944 | /* AIX XL C 1.02.0.0 rejects this. |
| 4945 | It does not let you subtract one const X* pointer from another in |
| 4946 | an arm of an if-expression whose if-part is not a constant |
| 4947 | expression */ |
| 4948 | const char *g = "string"; |
| 4949 | ccp = &g + (g ? g-g : 0); |
| 4950 | /* HPUX 7.0 cc rejects these. */ |
| 4951 | ++ccp; |
| 4952 | p = (char**) ccp; |
| 4953 | ccp = (char const *const *) p; |
| 4954 | { /* SCO 3.2v4 cc rejects this. */ |
| 4955 | char *t; |
| 4956 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4957 | |
| 4958 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4959 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4960 | } |
| 4961 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4962 | int x[] = {25, 17}; |
| 4963 | const int *foo = &x[0]; |
| 4964 | ++foo; |
| 4965 | } |
| 4966 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4967 | typedef const int *iptr; |
| 4968 | iptr p = 0; |
| 4969 | ++p; |
| 4970 | } |
| 4971 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4972 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4973 | struct s { int j; const int *ap[3]; }; |
| 4974 | struct s *b; b->j = 5; |
| 4975 | } |
| 4976 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4977 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4978 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4979 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4980 | return !x[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4981 | #endif |
| 4982 | |
| 4983 | ; |
| 4984 | return 0; |
| 4985 | } |
| 4986 | _ACEOF |
| 4987 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 4988 | if { (ac_try="$ac_compile" |
| 4989 | case "(($ac_try" in |
| 4990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4991 | *) ac_try_echo=$ac_try;; |
| 4992 | esac |
| 4993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4994 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4995 | ac_status=$? |
| 4996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4997 | rm -f conftest.er1 |
| 4998 | cat conftest.err >&5 |
| 4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5000 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5002 | { (case "(($ac_try" in |
| 5003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5004 | *) ac_try_echo=$ac_try;; |
| 5005 | esac |
| 5006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5007 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5008 | ac_status=$? |
| 5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5010 | (exit $ac_status); }; } && |
| 5011 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5012 | { (case "(($ac_try" in |
| 5013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5014 | *) ac_try_echo=$ac_try;; |
| 5015 | esac |
| 5016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5017 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5018 | ac_status=$? |
| 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5020 | (exit $ac_status); }; }; then |
| 5021 | ac_cv_c_const=yes |
| 5022 | else |
| 5023 | echo "$as_me: failed program was:" >&5 |
| 5024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5025 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5026 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5027 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5028 | |
| 5029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5030 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5031 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5032 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5033 | if test $ac_cv_c_const = no; then |
| 5034 | |
| 5035 | cat >>confdefs.h <<\_ACEOF |
| 5036 | #define const |
| 5037 | _ACEOF |
| 5038 | |
| 5039 | fi |
| 5040 | |
| 5041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5042 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5043 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5044 | if test "${bh_cv_c_signed+set}" = set; then |
| 5045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5046 | else |
| 5047 | cat >conftest.$ac_ext <<_ACEOF |
| 5048 | /* confdefs.h. */ |
| 5049 | _ACEOF |
| 5050 | cat confdefs.h >>conftest.$ac_ext |
| 5051 | cat >>conftest.$ac_ext <<_ACEOF |
| 5052 | /* end confdefs.h. */ |
| 5053 | |
| 5054 | int |
| 5055 | main () |
| 5056 | { |
| 5057 | signed char x; |
| 5058 | ; |
| 5059 | return 0; |
| 5060 | } |
| 5061 | _ACEOF |
| 5062 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5063 | if { (ac_try="$ac_compile" |
| 5064 | case "(($ac_try" in |
| 5065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5066 | *) ac_try_echo=$ac_try;; |
| 5067 | esac |
| 5068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5069 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5070 | ac_status=$? |
| 5071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5072 | rm -f conftest.er1 |
| 5073 | cat conftest.err >&5 |
| 5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5075 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5077 | { (case "(($ac_try" in |
| 5078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5079 | *) ac_try_echo=$ac_try;; |
| 5080 | esac |
| 5081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5082 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5083 | ac_status=$? |
| 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5085 | (exit $ac_status); }; } && |
| 5086 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5087 | { (case "(($ac_try" in |
| 5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5089 | *) ac_try_echo=$ac_try;; |
| 5090 | esac |
| 5091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5092 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5093 | ac_status=$? |
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5095 | (exit $ac_status); }; }; then |
| 5096 | bh_cv_c_signed=yes |
| 5097 | else |
| 5098 | echo "$as_me: failed program was:" >&5 |
| 5099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5100 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5101 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5102 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5103 | |
| 5104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5105 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5106 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5107 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5108 | if test $bh_cv_c_signed = no; then |
| 5109 | |
| 5110 | cat >>confdefs.h <<\_ACEOF |
| 5111 | #define signed |
| 5112 | _ACEOF |
| 5113 | |
| 5114 | fi |
| 5115 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5116 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5117 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5118 | if test "${ac_cv_c_inline+set}" = set; then |
| 5119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5120 | else |
| 5121 | ac_cv_c_inline=no |
| 5122 | for ac_kw in inline __inline__ __inline; do |
| 5123 | cat >conftest.$ac_ext <<_ACEOF |
| 5124 | /* confdefs.h. */ |
| 5125 | _ACEOF |
| 5126 | cat confdefs.h >>conftest.$ac_ext |
| 5127 | cat >>conftest.$ac_ext <<_ACEOF |
| 5128 | /* end confdefs.h. */ |
| 5129 | #ifndef __cplusplus |
| 5130 | typedef int foo_t; |
| 5131 | static $ac_kw foo_t static_foo () {return 0; } |
| 5132 | $ac_kw foo_t foo () {return 0; } |
| 5133 | #endif |
| 5134 | |
| 5135 | _ACEOF |
| 5136 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5137 | if { (ac_try="$ac_compile" |
| 5138 | case "(($ac_try" in |
| 5139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5140 | *) ac_try_echo=$ac_try;; |
| 5141 | esac |
| 5142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5143 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5144 | ac_status=$? |
| 5145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5146 | rm -f conftest.er1 |
| 5147 | cat conftest.err >&5 |
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5149 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5151 | { (case "(($ac_try" in |
| 5152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5153 | *) ac_try_echo=$ac_try;; |
| 5154 | esac |
| 5155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5156 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5157 | ac_status=$? |
| 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5159 | (exit $ac_status); }; } && |
| 5160 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5161 | { (case "(($ac_try" in |
| 5162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5163 | *) ac_try_echo=$ac_try;; |
| 5164 | esac |
| 5165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5166 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5167 | ac_status=$? |
| 5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5169 | (exit $ac_status); }; }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5170 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5171 | else |
| 5172 | echo "$as_me: failed program was:" >&5 |
| 5173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5175 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5176 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5177 | |
| 5178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5179 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5180 | done |
| 5181 | |
| 5182 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5183 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5184 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5185 | |
| 5186 | |
| 5187 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5188 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5189 | *) |
| 5190 | case $ac_cv_c_inline in |
| 5191 | no) ac_val=;; |
| 5192 | *) ac_val=$ac_cv_c_inline;; |
| 5193 | esac |
| 5194 | cat >>confdefs.h <<_ACEOF |
| 5195 | #ifndef __cplusplus |
| 5196 | #define inline $ac_val |
| 5197 | #endif |
| 5198 | _ACEOF |
| 5199 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5200 | esac |
| 5201 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5202 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5203 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5204 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5206 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5207 | cat >conftest.$ac_ext <<_ACEOF |
| 5208 | /* confdefs.h. */ |
| 5209 | _ACEOF |
| 5210 | cat confdefs.h >>conftest.$ac_ext |
| 5211 | cat >>conftest.$ac_ext <<_ACEOF |
| 5212 | /* end confdefs.h. */ |
| 5213 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5214 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5215 | int |
| 5216 | main () |
| 5217 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5218 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5219 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5220 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5221 | return 0; |
| 5222 | ; |
| 5223 | return 0; |
| 5224 | } |
| 5225 | _ACEOF |
| 5226 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5227 | if { (ac_try="$ac_compile" |
| 5228 | case "(($ac_try" in |
| 5229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5230 | *) ac_try_echo=$ac_try;; |
| 5231 | esac |
| 5232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5233 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5234 | ac_status=$? |
| 5235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5236 | rm -f conftest.er1 |
| 5237 | cat conftest.err >&5 |
| 5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5239 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5241 | { (case "(($ac_try" in |
| 5242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5243 | *) ac_try_echo=$ac_try;; |
| 5244 | esac |
| 5245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5246 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5247 | ac_status=$? |
| 5248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5249 | (exit $ac_status); }; } && |
| 5250 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5251 | { (case "(($ac_try" in |
| 5252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5253 | *) ac_try_echo=$ac_try;; |
| 5254 | esac |
| 5255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5256 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5257 | ac_status=$? |
| 5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5259 | (exit $ac_status); }; }; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5260 | ac_cv_type_off_t=yes |
| 5261 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5262 | echo "$as_me: failed program was:" >&5 |
| 5263 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5264 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5265 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5266 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5267 | |
| 5268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5269 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5270 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5271 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5272 | if test $ac_cv_type_off_t = yes; then |
| 5273 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5274 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5275 | |
| 5276 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5277 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5278 | _ACEOF |
| 5279 | |
| 5280 | fi |
| 5281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5282 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5283 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5284 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5286 | else |
| 5287 | cat >conftest.$ac_ext <<_ACEOF |
| 5288 | /* confdefs.h. */ |
| 5289 | _ACEOF |
| 5290 | cat confdefs.h >>conftest.$ac_ext |
| 5291 | cat >>conftest.$ac_ext <<_ACEOF |
| 5292 | /* end confdefs.h. */ |
| 5293 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5294 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5295 | int |
| 5296 | main () |
| 5297 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5298 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5299 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5300 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5301 | return 0; |
| 5302 | ; |
| 5303 | return 0; |
| 5304 | } |
| 5305 | _ACEOF |
| 5306 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5307 | if { (ac_try="$ac_compile" |
| 5308 | case "(($ac_try" in |
| 5309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5310 | *) ac_try_echo=$ac_try;; |
| 5311 | esac |
| 5312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5313 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5314 | ac_status=$? |
| 5315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5316 | rm -f conftest.er1 |
| 5317 | cat conftest.err >&5 |
| 5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5319 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5321 | { (case "(($ac_try" in |
| 5322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5323 | *) ac_try_echo=$ac_try;; |
| 5324 | esac |
| 5325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5326 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5327 | ac_status=$? |
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5329 | (exit $ac_status); }; } && |
| 5330 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5331 | { (case "(($ac_try" in |
| 5332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5333 | *) ac_try_echo=$ac_try;; |
| 5334 | esac |
| 5335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5336 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5337 | ac_status=$? |
| 5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5339 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5340 | ac_cv_type_size_t=yes |
| 5341 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5342 | echo "$as_me: failed program was:" >&5 |
| 5343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5344 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5345 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5347 | |
| 5348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5349 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5350 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5351 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5352 | if test $ac_cv_type_size_t = yes; then |
| 5353 | : |
| 5354 | else |
| 5355 | |
| 5356 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5357 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5358 | _ACEOF |
| 5359 | |
| 5360 | fi |
| 5361 | |
| 5362 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5363 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5364 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5365 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5367 | else |
| 5368 | cat >conftest.$ac_ext <<_ACEOF |
| 5369 | /* confdefs.h. */ |
| 5370 | _ACEOF |
| 5371 | cat confdefs.h >>conftest.$ac_ext |
| 5372 | cat >>conftest.$ac_ext <<_ACEOF |
| 5373 | /* end confdefs.h. */ |
| 5374 | long long ll = 1LL; int i = 63; |
| 5375 | int |
| 5376 | main () |
| 5377 | { |
| 5378 | long long llmax = (long long) -1; |
| 5379 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5380 | ; |
| 5381 | return 0; |
| 5382 | } |
| 5383 | _ACEOF |
| 5384 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5385 | if { (ac_try="$ac_link" |
| 5386 | case "(($ac_try" in |
| 5387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5388 | *) ac_try_echo=$ac_try;; |
| 5389 | esac |
| 5390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5391 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5392 | ac_status=$? |
| 5393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5394 | rm -f conftest.er1 |
| 5395 | cat conftest.err >&5 |
| 5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5397 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5399 | { (case "(($ac_try" in |
| 5400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5401 | *) ac_try_echo=$ac_try;; |
| 5402 | esac |
| 5403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5404 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5405 | ac_status=$? |
| 5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5407 | (exit $ac_status); }; } && |
| 5408 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5409 | { (case "(($ac_try" in |
| 5410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5411 | *) ac_try_echo=$ac_try;; |
| 5412 | esac |
| 5413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5414 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5415 | ac_status=$? |
| 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5417 | (exit $ac_status); }; }; then |
| 5418 | ac_cv_type_long_long=yes |
| 5419 | else |
| 5420 | echo "$as_me: failed program was:" >&5 |
| 5421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5422 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5423 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5424 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5425 | |
| 5426 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5427 | conftest$ac_exeext conftest.$ac_ext |
| 5428 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5429 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5430 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5431 | if test $ac_cv_type_long_long = yes; then |
| 5432 | |
| 5433 | cat >>confdefs.h <<\_ACEOF |
| 5434 | #define HAVE_LONG_LONG 1 |
| 5435 | _ACEOF |
| 5436 | |
| 5437 | fi |
| 5438 | |
| 5439 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5440 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5441 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5442 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5444 | else |
| 5445 | if test "$GCC" = yes; then |
| 5446 | gt_cv_c_long_double=yes |
| 5447 | else |
| 5448 | cat >conftest.$ac_ext <<_ACEOF |
| 5449 | /* confdefs.h. */ |
| 5450 | _ACEOF |
| 5451 | cat confdefs.h >>conftest.$ac_ext |
| 5452 | cat >>conftest.$ac_ext <<_ACEOF |
| 5453 | /* end confdefs.h. */ |
| 5454 | |
| 5455 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5456 | long double foo = 0.0; |
| 5457 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5458 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5459 | |
| 5460 | int |
| 5461 | main () |
| 5462 | { |
| 5463 | |
| 5464 | ; |
| 5465 | return 0; |
| 5466 | } |
| 5467 | _ACEOF |
| 5468 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5469 | if { (ac_try="$ac_compile" |
| 5470 | case "(($ac_try" in |
| 5471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5472 | *) ac_try_echo=$ac_try;; |
| 5473 | esac |
| 5474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5475 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5476 | ac_status=$? |
| 5477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5478 | rm -f conftest.er1 |
| 5479 | cat conftest.err >&5 |
| 5480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5481 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5483 | { (case "(($ac_try" in |
| 5484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5485 | *) ac_try_echo=$ac_try;; |
| 5486 | esac |
| 5487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5488 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5489 | ac_status=$? |
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); }; } && |
| 5492 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5493 | { (case "(($ac_try" in |
| 5494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5495 | *) ac_try_echo=$ac_try;; |
| 5496 | esac |
| 5497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5498 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5499 | ac_status=$? |
| 5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5501 | (exit $ac_status); }; }; then |
| 5502 | gt_cv_c_long_double=yes |
| 5503 | else |
| 5504 | echo "$as_me: failed program was:" >&5 |
| 5505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5506 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5507 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5508 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5509 | |
| 5510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5511 | fi |
| 5512 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5513 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5514 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5515 | if test $gt_cv_c_long_double = yes; then |
| 5516 | |
| 5517 | cat >>confdefs.h <<\_ACEOF |
| 5518 | #define HAVE_LONG_DOUBLE 1 |
| 5519 | _ACEOF |
| 5520 | |
| 5521 | fi |
| 5522 | |
| 5523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5524 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5525 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5526 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5528 | else |
| 5529 | cat >conftest.$ac_ext <<_ACEOF |
| 5530 | /* confdefs.h. */ |
| 5531 | _ACEOF |
| 5532 | cat confdefs.h >>conftest.$ac_ext |
| 5533 | cat >>conftest.$ac_ext <<_ACEOF |
| 5534 | /* end confdefs.h. */ |
| 5535 | #include <stddef.h> |
| 5536 | wchar_t foo = (wchar_t)'\0'; |
| 5537 | int |
| 5538 | main () |
| 5539 | { |
| 5540 | |
| 5541 | ; |
| 5542 | return 0; |
| 5543 | } |
| 5544 | _ACEOF |
| 5545 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5546 | if { (ac_try="$ac_compile" |
| 5547 | case "(($ac_try" in |
| 5548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5549 | *) ac_try_echo=$ac_try;; |
| 5550 | esac |
| 5551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5552 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5553 | ac_status=$? |
| 5554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5555 | rm -f conftest.er1 |
| 5556 | cat conftest.err >&5 |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5560 | { (case "(($ac_try" in |
| 5561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5562 | *) ac_try_echo=$ac_try;; |
| 5563 | esac |
| 5564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5565 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5566 | ac_status=$? |
| 5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5568 | (exit $ac_status); }; } && |
| 5569 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5570 | { (case "(($ac_try" in |
| 5571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5572 | *) ac_try_echo=$ac_try;; |
| 5573 | esac |
| 5574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5575 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5576 | ac_status=$? |
| 5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5578 | (exit $ac_status); }; }; then |
| 5579 | gt_cv_c_wchar_t=yes |
| 5580 | else |
| 5581 | echo "$as_me: failed program was:" >&5 |
| 5582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5584 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5586 | |
| 5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5589 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5590 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5591 | if test $gt_cv_c_wchar_t = yes; then |
| 5592 | |
| 5593 | cat >>confdefs.h <<\_ACEOF |
| 5594 | #define HAVE_WCHAR_T 1 |
| 5595 | _ACEOF |
| 5596 | |
| 5597 | fi |
| 5598 | |
| 5599 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5600 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5601 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5602 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5604 | else |
| 5605 | cat >conftest.$ac_ext <<_ACEOF |
| 5606 | /* confdefs.h. */ |
| 5607 | _ACEOF |
| 5608 | cat confdefs.h >>conftest.$ac_ext |
| 5609 | cat >>conftest.$ac_ext <<_ACEOF |
| 5610 | /* end confdefs.h. */ |
| 5611 | #include <wchar.h> |
| 5612 | wint_t foo = (wchar_t)'\0'; |
| 5613 | int |
| 5614 | main () |
| 5615 | { |
| 5616 | |
| 5617 | ; |
| 5618 | return 0; |
| 5619 | } |
| 5620 | _ACEOF |
| 5621 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5622 | if { (ac_try="$ac_compile" |
| 5623 | case "(($ac_try" in |
| 5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5625 | *) ac_try_echo=$ac_try;; |
| 5626 | esac |
| 5627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5628 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5629 | ac_status=$? |
| 5630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5631 | rm -f conftest.er1 |
| 5632 | cat conftest.err >&5 |
| 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5634 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5636 | { (case "(($ac_try" in |
| 5637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5638 | *) ac_try_echo=$ac_try;; |
| 5639 | esac |
| 5640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5641 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5642 | ac_status=$? |
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5644 | (exit $ac_status); }; } && |
| 5645 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5646 | { (case "(($ac_try" in |
| 5647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5648 | *) ac_try_echo=$ac_try;; |
| 5649 | esac |
| 5650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5651 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5652 | ac_status=$? |
| 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5654 | (exit $ac_status); }; }; then |
| 5655 | gt_cv_c_wint_t=yes |
| 5656 | else |
| 5657 | echo "$as_me: failed program was:" >&5 |
| 5658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5660 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5661 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5662 | |
| 5663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5665 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5666 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5667 | if test $gt_cv_c_wint_t = yes; then |
| 5668 | |
| 5669 | cat >>confdefs.h <<\_ACEOF |
| 5670 | #define HAVE_WINT_T 1 |
| 5671 | _ACEOF |
| 5672 | |
| 5673 | fi |
| 5674 | |
| 5675 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5676 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5677 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5678 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5680 | else |
| 5681 | cat >conftest.$ac_ext <<_ACEOF |
| 5682 | /* confdefs.h. */ |
| 5683 | _ACEOF |
| 5684 | cat confdefs.h >>conftest.$ac_ext |
| 5685 | cat >>conftest.$ac_ext <<_ACEOF |
| 5686 | /* end confdefs.h. */ |
| 5687 | #include <sys/types.h> |
| 5688 | #include <inttypes.h> |
| 5689 | int |
| 5690 | main () |
| 5691 | { |
| 5692 | uintmax_t i = (uintmax_t) -1; |
| 5693 | ; |
| 5694 | return 0; |
| 5695 | } |
| 5696 | _ACEOF |
| 5697 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5698 | if { (ac_try="$ac_compile" |
| 5699 | case "(($ac_try" in |
| 5700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5701 | *) ac_try_echo=$ac_try;; |
| 5702 | esac |
| 5703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5704 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5705 | ac_status=$? |
| 5706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5707 | rm -f conftest.er1 |
| 5708 | cat conftest.err >&5 |
| 5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5710 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5712 | { (case "(($ac_try" in |
| 5713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5714 | *) ac_try_echo=$ac_try;; |
| 5715 | esac |
| 5716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5717 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5718 | ac_status=$? |
| 5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5720 | (exit $ac_status); }; } && |
| 5721 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5722 | { (case "(($ac_try" in |
| 5723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5724 | *) ac_try_echo=$ac_try;; |
| 5725 | esac |
| 5726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5727 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5728 | ac_status=$? |
| 5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5730 | (exit $ac_status); }; }; then |
| 5731 | jm_ac_cv_header_inttypes_h=yes |
| 5732 | else |
| 5733 | echo "$as_me: failed program was:" >&5 |
| 5734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5735 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5736 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5737 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5738 | |
| 5739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5741 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5742 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5743 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5744 | |
| 5745 | cat >>confdefs.h <<_ACEOF |
| 5746 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5747 | _ACEOF |
| 5748 | |
| 5749 | fi |
| 5750 | |
| 5751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5752 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5753 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5754 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5756 | else |
| 5757 | cat >conftest.$ac_ext <<_ACEOF |
| 5758 | /* confdefs.h. */ |
| 5759 | _ACEOF |
| 5760 | cat confdefs.h >>conftest.$ac_ext |
| 5761 | cat >>conftest.$ac_ext <<_ACEOF |
| 5762 | /* end confdefs.h. */ |
| 5763 | #include <sys/types.h> |
| 5764 | #include <stdint.h> |
| 5765 | int |
| 5766 | main () |
| 5767 | { |
| 5768 | uintmax_t i = (uintmax_t) -1; |
| 5769 | ; |
| 5770 | return 0; |
| 5771 | } |
| 5772 | _ACEOF |
| 5773 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5774 | if { (ac_try="$ac_compile" |
| 5775 | case "(($ac_try" in |
| 5776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5777 | *) ac_try_echo=$ac_try;; |
| 5778 | esac |
| 5779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5780 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5781 | ac_status=$? |
| 5782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5783 | rm -f conftest.er1 |
| 5784 | cat conftest.err >&5 |
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5786 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5788 | { (case "(($ac_try" in |
| 5789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5790 | *) ac_try_echo=$ac_try;; |
| 5791 | esac |
| 5792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5793 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5794 | ac_status=$? |
| 5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5796 | (exit $ac_status); }; } && |
| 5797 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5798 | { (case "(($ac_try" in |
| 5799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5800 | *) ac_try_echo=$ac_try;; |
| 5801 | esac |
| 5802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5803 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5804 | ac_status=$? |
| 5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5806 | (exit $ac_status); }; }; then |
| 5807 | jm_ac_cv_header_stdint_h=yes |
| 5808 | else |
| 5809 | echo "$as_me: failed program was:" >&5 |
| 5810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5812 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5813 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5814 | |
| 5815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5816 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5817 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5818 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5819 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5820 | |
| 5821 | cat >>confdefs.h <<_ACEOF |
| 5822 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5823 | _ACEOF |
| 5824 | |
| 5825 | fi |
| 5826 | |
| 5827 | |
| 5828 | |
| 5829 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5830 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5831 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5832 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5834 | else |
| 5835 | cat >conftest.$ac_ext <<_ACEOF |
| 5836 | /* confdefs.h. */ |
| 5837 | _ACEOF |
| 5838 | cat confdefs.h >>conftest.$ac_ext |
| 5839 | cat >>conftest.$ac_ext <<_ACEOF |
| 5840 | /* end confdefs.h. */ |
| 5841 | |
| 5842 | #include <stddef.h> |
| 5843 | #include <stdlib.h> |
| 5844 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5845 | #include <stdint.h> |
| 5846 | #endif |
| 5847 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5848 | #include <inttypes.h> |
| 5849 | #endif |
| 5850 | |
| 5851 | int |
| 5852 | main () |
| 5853 | { |
| 5854 | intmax_t x = -1; |
| 5855 | ; |
| 5856 | return 0; |
| 5857 | } |
| 5858 | _ACEOF |
| 5859 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5860 | if { (ac_try="$ac_compile" |
| 5861 | case "(($ac_try" in |
| 5862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5863 | *) ac_try_echo=$ac_try;; |
| 5864 | esac |
| 5865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5866 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5867 | ac_status=$? |
| 5868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5869 | rm -f conftest.er1 |
| 5870 | cat conftest.err >&5 |
| 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5872 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5874 | { (case "(($ac_try" in |
| 5875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5876 | *) ac_try_echo=$ac_try;; |
| 5877 | esac |
| 5878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5879 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5880 | ac_status=$? |
| 5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5882 | (exit $ac_status); }; } && |
| 5883 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5884 | { (case "(($ac_try" in |
| 5885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5886 | *) ac_try_echo=$ac_try;; |
| 5887 | esac |
| 5888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5889 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5890 | ac_status=$? |
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5892 | (exit $ac_status); }; }; then |
| 5893 | gt_cv_c_intmax_t=yes |
| 5894 | else |
| 5895 | echo "$as_me: failed program was:" >&5 |
| 5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5898 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5899 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5900 | |
| 5901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5902 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5903 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5904 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5905 | if test $gt_cv_c_intmax_t = yes; then |
| 5906 | |
| 5907 | cat >>confdefs.h <<\_ACEOF |
| 5908 | #define HAVE_INTMAX_T 1 |
| 5909 | _ACEOF |
| 5910 | |
| 5911 | fi |
| 5912 | |
| 5913 | |
| 5914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5915 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5916 | 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] | 5917 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5919 | else |
| 5920 | |
| 5921 | if test "$cross_compiling" = yes; then |
| 5922 | |
| 5923 | cat >conftest.$ac_ext <<_ACEOF |
| 5924 | /* confdefs.h. */ |
| 5925 | _ACEOF |
| 5926 | cat confdefs.h >>conftest.$ac_ext |
| 5927 | cat >>conftest.$ac_ext <<_ACEOF |
| 5928 | /* end confdefs.h. */ |
| 5929 | |
| 5930 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5931 | notposix |
| 5932 | #endif |
| 5933 | |
| 5934 | _ACEOF |
| 5935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5936 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5937 | gt_cv_func_printf_posix="guessing no" |
| 5938 | else |
| 5939 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5940 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5941 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5942 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5943 | |
| 5944 | else |
| 5945 | cat >conftest.$ac_ext <<_ACEOF |
| 5946 | /* confdefs.h. */ |
| 5947 | _ACEOF |
| 5948 | cat confdefs.h >>conftest.$ac_ext |
| 5949 | cat >>conftest.$ac_ext <<_ACEOF |
| 5950 | /* end confdefs.h. */ |
| 5951 | |
| 5952 | #include <stdio.h> |
| 5953 | #include <string.h> |
| 5954 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5955 | dollar expansion (possibly an autoconf bug). */ |
| 5956 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5957 | static char buf[100]; |
| 5958 | int main () |
| 5959 | { |
| 5960 | sprintf (buf, format, 33, 55); |
| 5961 | return (strcmp (buf, "55 33") != 0); |
| 5962 | } |
| 5963 | _ACEOF |
| 5964 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5965 | if { (ac_try="$ac_link" |
| 5966 | case "(($ac_try" in |
| 5967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5968 | *) ac_try_echo=$ac_try;; |
| 5969 | esac |
| 5970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5971 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5972 | ac_status=$? |
| 5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5975 | { (case "(($ac_try" in |
| 5976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5977 | *) ac_try_echo=$ac_try;; |
| 5978 | esac |
| 5979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5980 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5981 | ac_status=$? |
| 5982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5983 | (exit $ac_status); }; }; then |
| 5984 | gt_cv_func_printf_posix=yes |
| 5985 | else |
| 5986 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5987 | echo "$as_me: failed program was:" >&5 |
| 5988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5989 | |
| 5990 | ( exit $ac_status ) |
| 5991 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5992 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5993 | 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] | 5994 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5996 | |
| 5997 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5998 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 5999 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 6000 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6001 | case $gt_cv_func_printf_posix in |
| 6002 | *yes) |
| 6003 | |
| 6004 | cat >>confdefs.h <<\_ACEOF |
| 6005 | #define HAVE_POSIX_PRINTF 1 |
| 6006 | _ACEOF |
| 6007 | |
| 6008 | ;; |
| 6009 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6010 | |
| 6011 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6012 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6013 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6014 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6015 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 6016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6018 | cat >conftest.$ac_ext <<_ACEOF |
| 6019 | /* confdefs.h. */ |
| 6020 | _ACEOF |
| 6021 | cat confdefs.h >>conftest.$ac_ext |
| 6022 | cat >>conftest.$ac_ext <<_ACEOF |
| 6023 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6024 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6025 | int |
| 6026 | main () |
| 6027 | { |
| 6028 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6029 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6030 | ; |
| 6031 | return 0; |
| 6032 | } |
| 6033 | _ACEOF |
| 6034 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6035 | if { (ac_try="$ac_link" |
| 6036 | case "(($ac_try" in |
| 6037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6038 | *) ac_try_echo=$ac_try;; |
| 6039 | esac |
| 6040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6041 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | ac_status=$? |
| 6043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6044 | rm -f conftest.er1 |
| 6045 | cat conftest.err >&5 |
| 6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6047 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6049 | { (case "(($ac_try" in |
| 6050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6051 | *) ac_try_echo=$ac_try;; |
| 6052 | esac |
| 6053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6054 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6055 | ac_status=$? |
| 6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6057 | (exit $ac_status); }; } && |
| 6058 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6059 | { (case "(($ac_try" in |
| 6060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6061 | *) ac_try_echo=$ac_try;; |
| 6062 | esac |
| 6063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6064 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6065 | ac_status=$? |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6067 | (exit $ac_status); }; }; then |
| 6068 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6069 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6070 | echo "$as_me: failed program was:" >&5 |
| 6071 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6073 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6074 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6075 | |
| 6076 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6077 | conftest$ac_exeext conftest.$ac_ext |
| 6078 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6079 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6080 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6081 | if test $ac_cv_working_alloca_h = yes; then |
| 6082 | |
| 6083 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6084 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6085 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6086 | |
| 6087 | fi |
| 6088 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6089 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6090 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6091 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6093 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6094 | cat >conftest.$ac_ext <<_ACEOF |
| 6095 | /* confdefs.h. */ |
| 6096 | _ACEOF |
| 6097 | cat confdefs.h >>conftest.$ac_ext |
| 6098 | cat >>conftest.$ac_ext <<_ACEOF |
| 6099 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6100 | #ifdef __GNUC__ |
| 6101 | # define alloca __builtin_alloca |
| 6102 | #else |
| 6103 | # ifdef _MSC_VER |
| 6104 | # include <malloc.h> |
| 6105 | # define alloca _alloca |
| 6106 | # else |
| 6107 | # if HAVE_ALLOCA_H |
| 6108 | # include <alloca.h> |
| 6109 | # else |
| 6110 | # ifdef _AIX |
| 6111 | #pragma alloca |
| 6112 | # else |
| 6113 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6114 | char *alloca (); |
| 6115 | # endif |
| 6116 | # endif |
| 6117 | # endif |
| 6118 | # endif |
| 6119 | #endif |
| 6120 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6121 | int |
| 6122 | main () |
| 6123 | { |
| 6124 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6125 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6126 | ; |
| 6127 | return 0; |
| 6128 | } |
| 6129 | _ACEOF |
| 6130 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6131 | if { (ac_try="$ac_link" |
| 6132 | case "(($ac_try" in |
| 6133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6134 | *) ac_try_echo=$ac_try;; |
| 6135 | esac |
| 6136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6137 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6138 | ac_status=$? |
| 6139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6140 | rm -f conftest.er1 |
| 6141 | cat conftest.err >&5 |
| 6142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6143 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6145 | { (case "(($ac_try" in |
| 6146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6147 | *) ac_try_echo=$ac_try;; |
| 6148 | esac |
| 6149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6150 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6151 | ac_status=$? |
| 6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6153 | (exit $ac_status); }; } && |
| 6154 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6155 | { (case "(($ac_try" in |
| 6156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6157 | *) ac_try_echo=$ac_try;; |
| 6158 | esac |
| 6159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6160 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6161 | ac_status=$? |
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6163 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6164 | ac_cv_func_alloca_works=yes |
| 6165 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6166 | echo "$as_me: failed program was:" >&5 |
| 6167 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6168 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6169 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6171 | |
| 6172 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6173 | conftest$ac_exeext conftest.$ac_ext |
| 6174 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6175 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6176 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6177 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6178 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6179 | |
| 6180 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6181 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6183 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6184 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6185 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6186 | # that cause trouble. Some versions do not even contain alloca or |
| 6187 | # contain a buggy version. If you still want to use their alloca, |
| 6188 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6189 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6190 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6191 | |
| 6192 | cat >>confdefs.h <<\_ACEOF |
| 6193 | #define C_ALLOCA 1 |
| 6194 | _ACEOF |
| 6195 | |
| 6196 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6197 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6198 | 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] | 6199 | if test "${ac_cv_os_cray+set}" = set; then |
| 6200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6201 | else |
| 6202 | cat >conftest.$ac_ext <<_ACEOF |
| 6203 | /* confdefs.h. */ |
| 6204 | _ACEOF |
| 6205 | cat confdefs.h >>conftest.$ac_ext |
| 6206 | cat >>conftest.$ac_ext <<_ACEOF |
| 6207 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6208 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6209 | webecray |
| 6210 | #else |
| 6211 | wenotbecray |
| 6212 | #endif |
| 6213 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6214 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6217 | ac_cv_os_cray=yes |
| 6218 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6219 | ac_cv_os_cray=no |
| 6220 | fi |
| 6221 | rm -f conftest* |
| 6222 | |
| 6223 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6224 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6225 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6226 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6227 | for ac_func in _getb67 GETB67 getb67; do |
| 6228 | 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^] | 6229 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6231 | 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] | 6232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6233 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6234 | cat >conftest.$ac_ext <<_ACEOF |
| 6235 | /* confdefs.h. */ |
| 6236 | _ACEOF |
| 6237 | cat confdefs.h >>conftest.$ac_ext |
| 6238 | cat >>conftest.$ac_ext <<_ACEOF |
| 6239 | /* end confdefs.h. */ |
| 6240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6242 | #define $ac_func innocuous_$ac_func |
| 6243 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6244 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | which can conflict with char $ac_func (); below. |
| 6246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6247 | <limits.h> exists even on freestanding compilers. */ |
| 6248 | |
| 6249 | #ifdef __STDC__ |
| 6250 | # include <limits.h> |
| 6251 | #else |
| 6252 | # include <assert.h> |
| 6253 | #endif |
| 6254 | |
| 6255 | #undef $ac_func |
| 6256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6257 | /* Override any GCC internal prototype to avoid an error. |
| 6258 | Use char because int might match the return type of a GCC |
| 6259 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6260 | #ifdef __cplusplus |
| 6261 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6262 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6263 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6264 | /* The GNU C library defines this for functions which it implements |
| 6265 | to always fail with ENOSYS. Some functions are actually named |
| 6266 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6267 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6268 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6269 | #endif |
| 6270 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6271 | int |
| 6272 | main () |
| 6273 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6274 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | ; |
| 6276 | return 0; |
| 6277 | } |
| 6278 | _ACEOF |
| 6279 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6280 | if { (ac_try="$ac_link" |
| 6281 | case "(($ac_try" in |
| 6282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6283 | *) ac_try_echo=$ac_try;; |
| 6284 | esac |
| 6285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6286 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6287 | ac_status=$? |
| 6288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6289 | rm -f conftest.er1 |
| 6290 | cat conftest.err >&5 |
| 6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6292 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6294 | { (case "(($ac_try" in |
| 6295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6296 | *) ac_try_echo=$ac_try;; |
| 6297 | esac |
| 6298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6299 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6300 | ac_status=$? |
| 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6302 | (exit $ac_status); }; } && |
| 6303 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6304 | { (case "(($ac_try" in |
| 6305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6306 | *) ac_try_echo=$ac_try;; |
| 6307 | esac |
| 6308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6309 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6310 | ac_status=$? |
| 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6312 | (exit $ac_status); }; }; then |
| 6313 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6314 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6315 | echo "$as_me: failed program was:" >&5 |
| 6316 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6317 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6318 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6319 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6320 | |
| 6321 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6322 | conftest$ac_exeext conftest.$ac_ext |
| 6323 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6324 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6326 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6327 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6328 | |
| 6329 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6330 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6331 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6333 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6334 | fi |
| 6335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6336 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6337 | fi |
| 6338 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6339 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6340 | 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] | 6341 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6343 | else |
| 6344 | if test "$cross_compiling" = yes; then |
| 6345 | ac_cv_c_stack_direction=0 |
| 6346 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6347 | cat >conftest.$ac_ext <<_ACEOF |
| 6348 | /* confdefs.h. */ |
| 6349 | _ACEOF |
| 6350 | cat confdefs.h >>conftest.$ac_ext |
| 6351 | cat >>conftest.$ac_ext <<_ACEOF |
| 6352 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6353 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6354 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6355 | find_stack_direction () |
| 6356 | { |
| 6357 | static char *addr = 0; |
| 6358 | auto char dummy; |
| 6359 | if (addr == 0) |
| 6360 | { |
| 6361 | addr = &dummy; |
| 6362 | return find_stack_direction (); |
| 6363 | } |
| 6364 | else |
| 6365 | return (&dummy > addr) ? 1 : -1; |
| 6366 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6367 | |
| 6368 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6369 | main () |
| 6370 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6371 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6372 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6373 | _ACEOF |
| 6374 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6375 | if { (ac_try="$ac_link" |
| 6376 | case "(($ac_try" in |
| 6377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6378 | *) ac_try_echo=$ac_try;; |
| 6379 | esac |
| 6380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6381 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6382 | ac_status=$? |
| 6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6385 | { (case "(($ac_try" in |
| 6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6387 | *) ac_try_echo=$ac_try;; |
| 6388 | esac |
| 6389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6390 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6391 | ac_status=$? |
| 6392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6393 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6394 | ac_cv_c_stack_direction=1 |
| 6395 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6396 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6397 | echo "$as_me: failed program was:" >&5 |
| 6398 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | ( exit $ac_status ) |
| 6401 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6402 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6403 | 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] | 6404 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6405 | |
| 6406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6407 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6408 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6409 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6410 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6411 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6412 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6413 | _ACEOF |
| 6414 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6415 | |
| 6416 | fi |
| 6417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6418 | |
| 6419 | |
| 6420 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6421 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6422 | 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^] | 6423 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6424 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6426 | 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] | 6427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6428 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6429 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6431 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6432 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6433 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6434 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6435 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6436 | cat >conftest.$ac_ext <<_ACEOF |
| 6437 | /* confdefs.h. */ |
| 6438 | _ACEOF |
| 6439 | cat confdefs.h >>conftest.$ac_ext |
| 6440 | cat >>conftest.$ac_ext <<_ACEOF |
| 6441 | /* end confdefs.h. */ |
| 6442 | $ac_includes_default |
| 6443 | #include <$ac_header> |
| 6444 | _ACEOF |
| 6445 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6446 | if { (ac_try="$ac_compile" |
| 6447 | case "(($ac_try" in |
| 6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6449 | *) ac_try_echo=$ac_try;; |
| 6450 | esac |
| 6451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6452 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | ac_status=$? |
| 6454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6455 | rm -f conftest.er1 |
| 6456 | cat conftest.err >&5 |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6460 | { (case "(($ac_try" in |
| 6461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6462 | *) ac_try_echo=$ac_try;; |
| 6463 | esac |
| 6464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6465 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); }; } && |
| 6469 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6470 | { (case "(($ac_try" in |
| 6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6472 | *) ac_try_echo=$ac_try;; |
| 6473 | esac |
| 6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6475 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6476 | ac_status=$? |
| 6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6478 | (exit $ac_status); }; }; then |
| 6479 | ac_header_compiler=yes |
| 6480 | else |
| 6481 | echo "$as_me: failed program was:" >&5 |
| 6482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6484 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6486 | |
| 6487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6488 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6489 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6490 | |
| 6491 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6492 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6493 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6494 | cat >conftest.$ac_ext <<_ACEOF |
| 6495 | /* confdefs.h. */ |
| 6496 | _ACEOF |
| 6497 | cat confdefs.h >>conftest.$ac_ext |
| 6498 | cat >>conftest.$ac_ext <<_ACEOF |
| 6499 | /* end confdefs.h. */ |
| 6500 | #include <$ac_header> |
| 6501 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6502 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6503 | case "(($ac_try" in |
| 6504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6505 | *) ac_try_echo=$ac_try;; |
| 6506 | esac |
| 6507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6508 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6509 | ac_status=$? |
| 6510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6511 | rm -f conftest.er1 |
| 6512 | cat conftest.err >&5 |
| 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6514 | (exit $ac_status); } >/dev/null; then |
| 6515 | if test -s conftest.err; then |
| 6516 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6518 | else |
| 6519 | ac_cpp_err= |
| 6520 | fi |
| 6521 | else |
| 6522 | ac_cpp_err=yes |
| 6523 | fi |
| 6524 | if test -z "$ac_cpp_err"; then |
| 6525 | ac_header_preproc=yes |
| 6526 | else |
| 6527 | echo "$as_me: failed program was:" >&5 |
| 6528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6529 | |
| 6530 | ac_header_preproc=no |
| 6531 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6532 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6533 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6534 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6535 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | |
| 6537 | # So? What about this header? |
| 6538 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6539 | yes:no: ) |
| 6540 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6541 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6542 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6543 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6544 | ac_header_preproc=yes |
| 6545 | ;; |
| 6546 | no:yes:* ) |
| 6547 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6548 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6549 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6550 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6551 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6552 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6553 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6554 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6556 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6557 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6558 | 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^] | 6559 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6560 | ;; |
| 6561 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6562 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6564 | 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] | 6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6566 | else |
| 6567 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6569 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6570 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6571 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6572 | |
| 6573 | fi |
| 6574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6575 | cat >>confdefs.h <<_ACEOF |
| 6576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6577 | _ACEOF |
| 6578 | |
| 6579 | fi |
| 6580 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6581 | done |
| 6582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6583 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6584 | for ac_func in getpagesize |
| 6585 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6586 | 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^] | 6587 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6589 | 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] | 6590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6591 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | cat >conftest.$ac_ext <<_ACEOF |
| 6593 | /* confdefs.h. */ |
| 6594 | _ACEOF |
| 6595 | cat confdefs.h >>conftest.$ac_ext |
| 6596 | cat >>conftest.$ac_ext <<_ACEOF |
| 6597 | /* end confdefs.h. */ |
| 6598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6600 | #define $ac_func innocuous_$ac_func |
| 6601 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6602 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6603 | which can conflict with char $ac_func (); below. |
| 6604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6605 | <limits.h> exists even on freestanding compilers. */ |
| 6606 | |
| 6607 | #ifdef __STDC__ |
| 6608 | # include <limits.h> |
| 6609 | #else |
| 6610 | # include <assert.h> |
| 6611 | #endif |
| 6612 | |
| 6613 | #undef $ac_func |
| 6614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6615 | /* Override any GCC internal prototype to avoid an error. |
| 6616 | Use char because int might match the return type of a GCC |
| 6617 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6618 | #ifdef __cplusplus |
| 6619 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6620 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6621 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6622 | /* The GNU C library defines this for functions which it implements |
| 6623 | to always fail with ENOSYS. Some functions are actually named |
| 6624 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6625 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6626 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6627 | #endif |
| 6628 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6629 | int |
| 6630 | main () |
| 6631 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6632 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6633 | ; |
| 6634 | return 0; |
| 6635 | } |
| 6636 | _ACEOF |
| 6637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6638 | if { (ac_try="$ac_link" |
| 6639 | case "(($ac_try" in |
| 6640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6641 | *) ac_try_echo=$ac_try;; |
| 6642 | esac |
| 6643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6644 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6645 | ac_status=$? |
| 6646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6647 | rm -f conftest.er1 |
| 6648 | cat conftest.err >&5 |
| 6649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6650 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6652 | { (case "(($ac_try" in |
| 6653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6654 | *) ac_try_echo=$ac_try;; |
| 6655 | esac |
| 6656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6657 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6658 | ac_status=$? |
| 6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6660 | (exit $ac_status); }; } && |
| 6661 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6662 | { (case "(($ac_try" in |
| 6663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6664 | *) ac_try_echo=$ac_try;; |
| 6665 | esac |
| 6666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6667 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6668 | ac_status=$? |
| 6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6670 | (exit $ac_status); }; }; then |
| 6671 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6672 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6673 | echo "$as_me: failed program was:" >&5 |
| 6674 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6675 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6676 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6678 | |
| 6679 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6680 | conftest$ac_exeext conftest.$ac_ext |
| 6681 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6682 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6683 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6684 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6686 | cat >>confdefs.h <<_ACEOF |
| 6687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6688 | _ACEOF |
| 6689 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6690 | fi |
| 6691 | done |
| 6692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6693 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6694 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6695 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6697 | else |
| 6698 | if test "$cross_compiling" = yes; then |
| 6699 | ac_cv_func_mmap_fixed_mapped=no |
| 6700 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6701 | cat >conftest.$ac_ext <<_ACEOF |
| 6702 | /* confdefs.h. */ |
| 6703 | _ACEOF |
| 6704 | cat confdefs.h >>conftest.$ac_ext |
| 6705 | cat >>conftest.$ac_ext <<_ACEOF |
| 6706 | /* end confdefs.h. */ |
| 6707 | $ac_includes_default |
| 6708 | /* malloc might have been renamed as rpl_malloc. */ |
| 6709 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6710 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6711 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6712 | Here is a matrix of mmap possibilities: |
| 6713 | mmap private not fixed |
| 6714 | mmap private fixed at somewhere currently unmapped |
| 6715 | mmap private fixed at somewhere already mapped |
| 6716 | mmap shared not fixed |
| 6717 | mmap shared fixed at somewhere currently unmapped |
| 6718 | mmap shared fixed at somewhere already mapped |
| 6719 | For private mappings, we should verify that changes cannot be read() |
| 6720 | back from the file, nor mmap's back from the file at a different |
| 6721 | address. (There have been systems where private was not correctly |
| 6722 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6723 | 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] | 6724 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6725 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6726 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6727 | |
| 6728 | Grep wants private fixed already mapped. |
| 6729 | The main things grep needs to know about mmap are: |
| 6730 | * does it exist and is it safe to write into the mmap'd area |
| 6731 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6732 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6733 | #include <fcntl.h> |
| 6734 | #include <sys/mman.h> |
| 6735 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6736 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 6737 | char *malloc (); |
| 6738 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6739 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | /* This mess was copied from the GNU getpagesize.h. */ |
| 6741 | #if !HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6742 | /* 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] | 6743 | # if !HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6744 | # define HAVE_SYS_PARAM_H 1 |
| 6745 | # endif |
| 6746 | |
| 6747 | # ifdef _SC_PAGESIZE |
| 6748 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6749 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6750 | # if HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6751 | # include <sys/param.h> |
| 6752 | # ifdef EXEC_PAGESIZE |
| 6753 | # define getpagesize() EXEC_PAGESIZE |
| 6754 | # else /* no EXEC_PAGESIZE */ |
| 6755 | # ifdef NBPG |
| 6756 | # define getpagesize() NBPG * CLSIZE |
| 6757 | # ifndef CLSIZE |
| 6758 | # define CLSIZE 1 |
| 6759 | # endif /* no CLSIZE */ |
| 6760 | # else /* no NBPG */ |
| 6761 | # ifdef NBPC |
| 6762 | # define getpagesize() NBPC |
| 6763 | # else /* no NBPC */ |
| 6764 | # ifdef PAGESIZE |
| 6765 | # define getpagesize() PAGESIZE |
| 6766 | # endif /* PAGESIZE */ |
| 6767 | # endif /* no NBPC */ |
| 6768 | # endif /* no NBPG */ |
| 6769 | # endif /* no EXEC_PAGESIZE */ |
| 6770 | # else /* no HAVE_SYS_PARAM_H */ |
| 6771 | # define getpagesize() 8192 /* punt totally */ |
| 6772 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6773 | # endif /* no _SC_PAGESIZE */ |
| 6774 | |
| 6775 | #endif /* no HAVE_GETPAGESIZE */ |
| 6776 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6777 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6778 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6779 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6780 | char *data, *data2, *data3; |
| 6781 | int i, pagesize; |
| 6782 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6783 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6785 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6786 | /* First, make a file with some known garbage in it. */ |
| 6787 | data = (char *) malloc (pagesize); |
| 6788 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6789 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | for (i = 0; i < pagesize; ++i) |
| 6791 | *(data + i) = rand (); |
| 6792 | umask (0); |
| 6793 | fd = creat ("conftest.mmap", 0600); |
| 6794 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6795 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6796 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6797 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6799 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | /* Next, try to mmap the file at a fixed address which already has |
| 6801 | something else allocated at it. If we can, also make sure that |
| 6802 | we see the same garbage. */ |
| 6803 | fd = open ("conftest.mmap", O_RDWR); |
| 6804 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6805 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | data2 = (char *) malloc (2 * pagesize); |
| 6807 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6808 | return 1; |
| 6809 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6810 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6811 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
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 | for (i = 0; i < pagesize; ++i) |
| 6814 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6815 | return 1; |
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 | /* Finally, make sure that changes to the mapped area do not |
| 6818 | percolate back to the file as seen by read(). (This is a bug on |
| 6819 | some variants of i386 svr4.0.) */ |
| 6820 | for (i = 0; i < pagesize; ++i) |
| 6821 | *(data2 + i) = *(data2 + i) + 1; |
| 6822 | data3 = (char *) malloc (pagesize); |
| 6823 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6824 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6825 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6826 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | for (i = 0; i < pagesize; ++i) |
| 6828 | if (*(data + i) != *(data3 + i)) |
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 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6831 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6832 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | _ACEOF |
| 6834 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6835 | if { (ac_try="$ac_link" |
| 6836 | case "(($ac_try" in |
| 6837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6838 | *) ac_try_echo=$ac_try;; |
| 6839 | esac |
| 6840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6841 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6842 | ac_status=$? |
| 6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6844 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6845 | { (case "(($ac_try" in |
| 6846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6847 | *) ac_try_echo=$ac_try;; |
| 6848 | esac |
| 6849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6850 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | ac_status=$? |
| 6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6853 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6854 | ac_cv_func_mmap_fixed_mapped=yes |
| 6855 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6856 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6857 | echo "$as_me: failed program was:" >&5 |
| 6858 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6860 | ( exit $ac_status ) |
| 6861 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6862 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6863 | 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] | 6864 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6865 | |
| 6866 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6867 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6868 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6869 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6870 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6871 | |
| 6872 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6873 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6874 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6875 | |
| 6876 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6877 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6878 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6880 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6881 | 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] | 6882 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6884 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6885 | cat >conftest.$ac_ext <<_ACEOF |
| 6886 | /* confdefs.h. */ |
| 6887 | _ACEOF |
| 6888 | cat confdefs.h >>conftest.$ac_ext |
| 6889 | cat >>conftest.$ac_ext <<_ACEOF |
| 6890 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6891 | |
| 6892 | #include <features.h> |
| 6893 | #ifdef __GNU_LIBRARY__ |
| 6894 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6895 | Lucky GNU user |
| 6896 | #endif |
| 6897 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6898 | |
| 6899 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6901 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6902 | ac_cv_gnu_library_2_1=yes |
| 6903 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6904 | ac_cv_gnu_library_2_1=no |
| 6905 | fi |
| 6906 | rm -f conftest* |
| 6907 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6908 | |
| 6909 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6910 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6911 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6912 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6913 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6914 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6915 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6916 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6917 | |
| 6918 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6919 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6920 | 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] | 6921 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6923 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6924 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6925 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6926 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6927 | # Guess based on the CPU. |
| 6928 | case "$host_cpu" in |
| 6929 | alpha* | i3456786 | m68k | s390*) |
| 6930 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6931 | *) |
| 6932 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6933 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6934 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6935 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | cat >conftest.$ac_ext <<_ACEOF |
| 6937 | /* confdefs.h. */ |
| 6938 | _ACEOF |
| 6939 | cat confdefs.h >>conftest.$ac_ext |
| 6940 | cat >>conftest.$ac_ext <<_ACEOF |
| 6941 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6942 | |
| 6943 | #include <stdlib.h> |
| 6944 | #include <signal.h> |
| 6945 | |
| 6946 | static void |
| 6947 | #ifdef __cplusplus |
| 6948 | sigfpe_handler (int sig) |
| 6949 | #else |
| 6950 | sigfpe_handler (sig) int sig; |
| 6951 | #endif |
| 6952 | { |
| 6953 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6954 | exit (sig != SIGFPE); |
| 6955 | } |
| 6956 | |
| 6957 | int x = 1; |
| 6958 | int y = 0; |
| 6959 | int z; |
| 6960 | int nan; |
| 6961 | |
| 6962 | int main () |
| 6963 | { |
| 6964 | signal (SIGFPE, sigfpe_handler); |
| 6965 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6966 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6967 | signal (SIGTRAP, sigfpe_handler); |
| 6968 | #endif |
| 6969 | /* Linux/SPARC yields signal SIGILL. */ |
| 6970 | #if defined (__sparc__) && defined (__linux__) |
| 6971 | signal (SIGILL, sigfpe_handler); |
| 6972 | #endif |
| 6973 | |
| 6974 | z = x / y; |
| 6975 | nan = y / y; |
| 6976 | exit (1); |
| 6977 | } |
| 6978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | _ACEOF |
| 6980 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6981 | if { (ac_try="$ac_link" |
| 6982 | case "(($ac_try" in |
| 6983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6984 | *) ac_try_echo=$ac_try;; |
| 6985 | esac |
| 6986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6987 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6988 | ac_status=$? |
| 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 6991 | { (case "(($ac_try" in |
| 6992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6993 | *) ac_try_echo=$ac_try;; |
| 6994 | esac |
| 6995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6996 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6997 | ac_status=$? |
| 6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6999 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7000 | gt_cv_int_divbyzero_sigfpe=yes |
| 7001 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7002 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7003 | echo "$as_me: failed program was:" >&5 |
| 7004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7005 | |
| 7006 | ( exit $ac_status ) |
| 7007 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7009 | 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] | 7010 | fi |
| 7011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7012 | |
| 7013 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7014 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7015 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 7016 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7017 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7018 | *yes) value=1;; |
| 7019 | *) value=0;; |
| 7020 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7021 | |
| 7022 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7023 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7024 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7025 | |
| 7026 | |
| 7027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7028 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 7029 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7030 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 7031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7032 | else |
| 7033 | cat >conftest.$ac_ext <<_ACEOF |
| 7034 | /* confdefs.h. */ |
| 7035 | _ACEOF |
| 7036 | cat confdefs.h >>conftest.$ac_ext |
| 7037 | cat >>conftest.$ac_ext <<_ACEOF |
| 7038 | /* end confdefs.h. */ |
| 7039 | unsigned long long ull = 1ULL; int i = 63; |
| 7040 | int |
| 7041 | main () |
| 7042 | { |
| 7043 | unsigned long long ullmax = (unsigned long long) -1; |
| 7044 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7045 | ; |
| 7046 | return 0; |
| 7047 | } |
| 7048 | _ACEOF |
| 7049 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7050 | if { (ac_try="$ac_link" |
| 7051 | case "(($ac_try" in |
| 7052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7053 | *) ac_try_echo=$ac_try;; |
| 7054 | esac |
| 7055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7056 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | ac_status=$? |
| 7058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7059 | rm -f conftest.er1 |
| 7060 | cat conftest.err >&5 |
| 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7062 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7064 | { (case "(($ac_try" in |
| 7065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7066 | *) ac_try_echo=$ac_try;; |
| 7067 | esac |
| 7068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7069 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7070 | ac_status=$? |
| 7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7072 | (exit $ac_status); }; } && |
| 7073 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7074 | { (case "(($ac_try" in |
| 7075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7076 | *) ac_try_echo=$ac_try;; |
| 7077 | esac |
| 7078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7079 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7080 | ac_status=$? |
| 7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7082 | (exit $ac_status); }; }; then |
| 7083 | ac_cv_type_unsigned_long_long=yes |
| 7084 | else |
| 7085 | echo "$as_me: failed program was:" >&5 |
| 7086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7088 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7090 | |
| 7091 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7092 | conftest$ac_exeext conftest.$ac_ext |
| 7093 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7094 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 7095 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7096 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7097 | |
| 7098 | cat >>confdefs.h <<\_ACEOF |
| 7099 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 7100 | _ACEOF |
| 7101 | |
| 7102 | fi |
| 7103 | |
| 7104 | |
| 7105 | |
| 7106 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7107 | 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] | 7108 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7109 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7110 | && ac_type='unsigned long long' \ |
| 7111 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7112 | |
| 7113 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7114 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7115 | _ACEOF |
| 7116 | |
| 7117 | else |
| 7118 | |
| 7119 | cat >>confdefs.h <<\_ACEOF |
| 7120 | #define HAVE_UINTMAX_T 1 |
| 7121 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7122 | |
| 7123 | fi |
| 7124 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7126 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7127 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7128 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 7129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7130 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7131 | |
| 7132 | cat >conftest.$ac_ext <<_ACEOF |
| 7133 | /* confdefs.h. */ |
| 7134 | _ACEOF |
| 7135 | cat confdefs.h >>conftest.$ac_ext |
| 7136 | cat >>conftest.$ac_ext <<_ACEOF |
| 7137 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7138 | #include <sys/types.h> |
| 7139 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | int |
| 7141 | main () |
| 7142 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7143 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7144 | ; |
| 7145 | return 0; |
| 7146 | } |
| 7147 | _ACEOF |
| 7148 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7149 | if { (ac_try="$ac_compile" |
| 7150 | case "(($ac_try" in |
| 7151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7152 | *) ac_try_echo=$ac_try;; |
| 7153 | esac |
| 7154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7155 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7156 | ac_status=$? |
| 7157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7158 | rm -f conftest.er1 |
| 7159 | cat conftest.err >&5 |
| 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7161 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7163 | { (case "(($ac_try" in |
| 7164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7165 | *) ac_try_echo=$ac_try;; |
| 7166 | esac |
| 7167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7168 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7169 | ac_status=$? |
| 7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7171 | (exit $ac_status); }; } && |
| 7172 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7173 | { (case "(($ac_try" in |
| 7174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7175 | *) ac_try_echo=$ac_try;; |
| 7176 | esac |
| 7177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7178 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7179 | ac_status=$? |
| 7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7181 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7182 | gt_cv_header_inttypes_h=yes |
| 7183 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7184 | echo "$as_me: failed program was:" >&5 |
| 7185 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7186 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7187 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7188 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7189 | |
| 7190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7191 | |
| 7192 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7193 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7194 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7195 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7196 | |
| 7197 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7198 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7199 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7200 | |
| 7201 | fi |
| 7202 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7203 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7204 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7205 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7206 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7207 | 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] | 7208 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7210 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7211 | |
| 7212 | cat >conftest.$ac_ext <<_ACEOF |
| 7213 | /* confdefs.h. */ |
| 7214 | _ACEOF |
| 7215 | cat confdefs.h >>conftest.$ac_ext |
| 7216 | cat >>conftest.$ac_ext <<_ACEOF |
| 7217 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7218 | #include <inttypes.h> |
| 7219 | #ifdef PRId32 |
| 7220 | char *p = PRId32; |
| 7221 | #endif |
| 7222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7223 | int |
| 7224 | main () |
| 7225 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7227 | ; |
| 7228 | return 0; |
| 7229 | } |
| 7230 | _ACEOF |
| 7231 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7232 | if { (ac_try="$ac_compile" |
| 7233 | case "(($ac_try" in |
| 7234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7235 | *) ac_try_echo=$ac_try;; |
| 7236 | esac |
| 7237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7238 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7239 | ac_status=$? |
| 7240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7241 | rm -f conftest.er1 |
| 7242 | cat conftest.err >&5 |
| 7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7244 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7246 | { (case "(($ac_try" in |
| 7247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7248 | *) ac_try_echo=$ac_try;; |
| 7249 | esac |
| 7250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7251 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7252 | ac_status=$? |
| 7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7254 | (exit $ac_status); }; } && |
| 7255 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7256 | { (case "(($ac_try" in |
| 7257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7258 | *) ac_try_echo=$ac_try;; |
| 7259 | esac |
| 7260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7261 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | ac_status=$? |
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7264 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7265 | gt_cv_inttypes_pri_broken=no |
| 7266 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7267 | echo "$as_me: failed program was:" >&5 |
| 7268 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7270 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7271 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7272 | |
| 7273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7274 | |
| 7275 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7276 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7277 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7278 | fi |
| 7279 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7280 | |
| 7281 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7282 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7283 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7284 | |
| 7285 | fi |
| 7286 | |
| 7287 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7288 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7289 | for ac_header in stdint.h |
| 7290 | do |
| 7291 | 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^] | 7292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7293 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7295 | 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] | 7296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7297 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7298 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7299 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7300 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7301 | else |
| 7302 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7303 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7304 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7305 | cat >conftest.$ac_ext <<_ACEOF |
| 7306 | /* confdefs.h. */ |
| 7307 | _ACEOF |
| 7308 | cat confdefs.h >>conftest.$ac_ext |
| 7309 | cat >>conftest.$ac_ext <<_ACEOF |
| 7310 | /* end confdefs.h. */ |
| 7311 | $ac_includes_default |
| 7312 | #include <$ac_header> |
| 7313 | _ACEOF |
| 7314 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7315 | if { (ac_try="$ac_compile" |
| 7316 | case "(($ac_try" in |
| 7317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7318 | *) ac_try_echo=$ac_try;; |
| 7319 | esac |
| 7320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7321 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | ac_status=$? |
| 7323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7324 | rm -f conftest.er1 |
| 7325 | cat conftest.err >&5 |
| 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7327 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7329 | { (case "(($ac_try" in |
| 7330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7331 | *) ac_try_echo=$ac_try;; |
| 7332 | esac |
| 7333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7334 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7335 | ac_status=$? |
| 7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7337 | (exit $ac_status); }; } && |
| 7338 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7339 | { (case "(($ac_try" in |
| 7340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7341 | *) ac_try_echo=$ac_try;; |
| 7342 | esac |
| 7343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7344 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7345 | ac_status=$? |
| 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7347 | (exit $ac_status); }; }; then |
| 7348 | ac_header_compiler=yes |
| 7349 | else |
| 7350 | echo "$as_me: failed program was:" >&5 |
| 7351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7353 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7354 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7355 | |
| 7356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7357 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7358 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7359 | |
| 7360 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7361 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7362 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7363 | cat >conftest.$ac_ext <<_ACEOF |
| 7364 | /* confdefs.h. */ |
| 7365 | _ACEOF |
| 7366 | cat confdefs.h >>conftest.$ac_ext |
| 7367 | cat >>conftest.$ac_ext <<_ACEOF |
| 7368 | /* end confdefs.h. */ |
| 7369 | #include <$ac_header> |
| 7370 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7371 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7372 | case "(($ac_try" in |
| 7373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7374 | *) ac_try_echo=$ac_try;; |
| 7375 | esac |
| 7376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7378 | ac_status=$? |
| 7379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7380 | rm -f conftest.er1 |
| 7381 | cat conftest.err >&5 |
| 7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7383 | (exit $ac_status); } >/dev/null; then |
| 7384 | if test -s conftest.err; then |
| 7385 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7386 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7387 | else |
| 7388 | ac_cpp_err= |
| 7389 | fi |
| 7390 | else |
| 7391 | ac_cpp_err=yes |
| 7392 | fi |
| 7393 | if test -z "$ac_cpp_err"; then |
| 7394 | ac_header_preproc=yes |
| 7395 | else |
| 7396 | echo "$as_me: failed program was:" >&5 |
| 7397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7398 | |
| 7399 | ac_header_preproc=no |
| 7400 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7401 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7402 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7403 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7404 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7405 | |
| 7406 | # So? What about this header? |
| 7407 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7408 | yes:no: ) |
| 7409 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7410 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7411 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7412 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7413 | ac_header_preproc=yes |
| 7414 | ;; |
| 7415 | no:yes:* ) |
| 7416 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7417 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7418 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7419 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7420 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7421 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7422 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7423 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7424 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7425 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7426 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7427 | 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^] | 7428 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7429 | ;; |
| 7430 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7431 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7433 | 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] | 7434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7435 | else |
| 7436 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7437 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7438 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7439 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7440 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7441 | |
| 7442 | fi |
| 7443 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7444 | cat >>confdefs.h <<_ACEOF |
| 7445 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7446 | _ACEOF |
| 7447 | |
| 7448 | fi |
| 7449 | |
| 7450 | done |
| 7451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7452 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7453 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7454 | result= |
| 7455 | cat >conftest.$ac_ext <<_ACEOF |
| 7456 | /* confdefs.h. */ |
| 7457 | _ACEOF |
| 7458 | cat confdefs.h >>conftest.$ac_ext |
| 7459 | cat >>conftest.$ac_ext <<_ACEOF |
| 7460 | /* end confdefs.h. */ |
| 7461 | |
| 7462 | #include <limits.h> |
| 7463 | #if HAVE_STDINT_H |
| 7464 | #include <stdint.h> |
| 7465 | #endif |
| 7466 | #ifdef SIZE_MAX |
| 7467 | Found it |
| 7468 | #endif |
| 7469 | |
| 7470 | _ACEOF |
| 7471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7472 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7473 | result=yes |
| 7474 | fi |
| 7475 | rm -f conftest* |
| 7476 | |
| 7477 | if test -z "$result"; then |
| 7478 | if test "$cross_compiling" = yes; then |
| 7479 | # Depending upon the size, compute the lo and hi bounds. |
| 7480 | cat >conftest.$ac_ext <<_ACEOF |
| 7481 | /* confdefs.h. */ |
| 7482 | _ACEOF |
| 7483 | cat confdefs.h >>conftest.$ac_ext |
| 7484 | cat >>conftest.$ac_ext <<_ACEOF |
| 7485 | /* end confdefs.h. */ |
| 7486 | #include <stddef.h> |
| 7487 | int |
| 7488 | main () |
| 7489 | { |
| 7490 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7491 | test_array [0] = 0 |
| 7492 | |
| 7493 | ; |
| 7494 | return 0; |
| 7495 | } |
| 7496 | _ACEOF |
| 7497 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7498 | if { (ac_try="$ac_compile" |
| 7499 | case "(($ac_try" in |
| 7500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7501 | *) ac_try_echo=$ac_try;; |
| 7502 | esac |
| 7503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7504 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7505 | ac_status=$? |
| 7506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7507 | rm -f conftest.er1 |
| 7508 | cat conftest.err >&5 |
| 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7510 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7512 | { (case "(($ac_try" in |
| 7513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7514 | *) ac_try_echo=$ac_try;; |
| 7515 | esac |
| 7516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7517 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7518 | ac_status=$? |
| 7519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7520 | (exit $ac_status); }; } && |
| 7521 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7522 | { (case "(($ac_try" in |
| 7523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7524 | *) ac_try_echo=$ac_try;; |
| 7525 | esac |
| 7526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7527 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7528 | ac_status=$? |
| 7529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7530 | (exit $ac_status); }; }; then |
| 7531 | ac_lo=0 ac_mid=0 |
| 7532 | while :; do |
| 7533 | cat >conftest.$ac_ext <<_ACEOF |
| 7534 | /* confdefs.h. */ |
| 7535 | _ACEOF |
| 7536 | cat confdefs.h >>conftest.$ac_ext |
| 7537 | cat >>conftest.$ac_ext <<_ACEOF |
| 7538 | /* end confdefs.h. */ |
| 7539 | #include <stddef.h> |
| 7540 | int |
| 7541 | main () |
| 7542 | { |
| 7543 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7544 | test_array [0] = 0 |
| 7545 | |
| 7546 | ; |
| 7547 | return 0; |
| 7548 | } |
| 7549 | _ACEOF |
| 7550 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7551 | if { (ac_try="$ac_compile" |
| 7552 | case "(($ac_try" in |
| 7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7554 | *) ac_try_echo=$ac_try;; |
| 7555 | esac |
| 7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7557 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7558 | ac_status=$? |
| 7559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7560 | rm -f conftest.er1 |
| 7561 | cat conftest.err >&5 |
| 7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7563 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7565 | { (case "(($ac_try" in |
| 7566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7567 | *) ac_try_echo=$ac_try;; |
| 7568 | esac |
| 7569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7570 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7571 | ac_status=$? |
| 7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7573 | (exit $ac_status); }; } && |
| 7574 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7575 | { (case "(($ac_try" in |
| 7576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7577 | *) ac_try_echo=$ac_try;; |
| 7578 | esac |
| 7579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7580 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7581 | ac_status=$? |
| 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7583 | (exit $ac_status); }; }; then |
| 7584 | ac_hi=$ac_mid; break |
| 7585 | else |
| 7586 | echo "$as_me: failed program was:" >&5 |
| 7587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7588 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7589 | ac_lo=`expr $ac_mid + 1` |
| 7590 | if test $ac_lo -le $ac_mid; then |
| 7591 | ac_lo= ac_hi= |
| 7592 | break |
| 7593 | fi |
| 7594 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7595 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7596 | |
| 7597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7598 | done |
| 7599 | else |
| 7600 | echo "$as_me: failed program was:" >&5 |
| 7601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7603 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7604 | /* confdefs.h. */ |
| 7605 | _ACEOF |
| 7606 | cat confdefs.h >>conftest.$ac_ext |
| 7607 | cat >>conftest.$ac_ext <<_ACEOF |
| 7608 | /* end confdefs.h. */ |
| 7609 | #include <stddef.h> |
| 7610 | int |
| 7611 | main () |
| 7612 | { |
| 7613 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7614 | test_array [0] = 0 |
| 7615 | |
| 7616 | ; |
| 7617 | return 0; |
| 7618 | } |
| 7619 | _ACEOF |
| 7620 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7621 | if { (ac_try="$ac_compile" |
| 7622 | case "(($ac_try" in |
| 7623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7624 | *) ac_try_echo=$ac_try;; |
| 7625 | esac |
| 7626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7627 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7628 | ac_status=$? |
| 7629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7630 | rm -f conftest.er1 |
| 7631 | cat conftest.err >&5 |
| 7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7633 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7635 | { (case "(($ac_try" in |
| 7636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7637 | *) ac_try_echo=$ac_try;; |
| 7638 | esac |
| 7639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7640 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7641 | ac_status=$? |
| 7642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7643 | (exit $ac_status); }; } && |
| 7644 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7645 | { (case "(($ac_try" in |
| 7646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7647 | *) ac_try_echo=$ac_try;; |
| 7648 | esac |
| 7649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7650 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7651 | ac_status=$? |
| 7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7653 | (exit $ac_status); }; }; then |
| 7654 | ac_hi=-1 ac_mid=-1 |
| 7655 | while :; do |
| 7656 | cat >conftest.$ac_ext <<_ACEOF |
| 7657 | /* confdefs.h. */ |
| 7658 | _ACEOF |
| 7659 | cat confdefs.h >>conftest.$ac_ext |
| 7660 | cat >>conftest.$ac_ext <<_ACEOF |
| 7661 | /* end confdefs.h. */ |
| 7662 | #include <stddef.h> |
| 7663 | int |
| 7664 | main () |
| 7665 | { |
| 7666 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7667 | test_array [0] = 0 |
| 7668 | |
| 7669 | ; |
| 7670 | return 0; |
| 7671 | } |
| 7672 | _ACEOF |
| 7673 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7674 | if { (ac_try="$ac_compile" |
| 7675 | case "(($ac_try" in |
| 7676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7677 | *) ac_try_echo=$ac_try;; |
| 7678 | esac |
| 7679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7680 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7681 | ac_status=$? |
| 7682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7683 | rm -f conftest.er1 |
| 7684 | cat conftest.err >&5 |
| 7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7686 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7688 | { (case "(($ac_try" in |
| 7689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7690 | *) ac_try_echo=$ac_try;; |
| 7691 | esac |
| 7692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7693 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7694 | ac_status=$? |
| 7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7696 | (exit $ac_status); }; } && |
| 7697 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7698 | { (case "(($ac_try" in |
| 7699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7700 | *) ac_try_echo=$ac_try;; |
| 7701 | esac |
| 7702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7703 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7704 | ac_status=$? |
| 7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7706 | (exit $ac_status); }; }; then |
| 7707 | ac_lo=$ac_mid; break |
| 7708 | else |
| 7709 | echo "$as_me: failed program was:" >&5 |
| 7710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7712 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7713 | if test $ac_mid -le $ac_hi; then |
| 7714 | ac_lo= ac_hi= |
| 7715 | break |
| 7716 | fi |
| 7717 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7719 | |
| 7720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7721 | done |
| 7722 | else |
| 7723 | echo "$as_me: failed program was:" >&5 |
| 7724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7726 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7727 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7728 | |
| 7729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7730 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7731 | |
| 7732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7733 | # Binary search between lo and hi bounds. |
| 7734 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7735 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7736 | cat >conftest.$ac_ext <<_ACEOF |
| 7737 | /* confdefs.h. */ |
| 7738 | _ACEOF |
| 7739 | cat confdefs.h >>conftest.$ac_ext |
| 7740 | cat >>conftest.$ac_ext <<_ACEOF |
| 7741 | /* end confdefs.h. */ |
| 7742 | #include <stddef.h> |
| 7743 | int |
| 7744 | main () |
| 7745 | { |
| 7746 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7747 | test_array [0] = 0 |
| 7748 | |
| 7749 | ; |
| 7750 | return 0; |
| 7751 | } |
| 7752 | _ACEOF |
| 7753 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7754 | if { (ac_try="$ac_compile" |
| 7755 | case "(($ac_try" in |
| 7756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7757 | *) ac_try_echo=$ac_try;; |
| 7758 | esac |
| 7759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7760 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7761 | ac_status=$? |
| 7762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7763 | rm -f conftest.er1 |
| 7764 | cat conftest.err >&5 |
| 7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7766 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7768 | { (case "(($ac_try" in |
| 7769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7770 | *) ac_try_echo=$ac_try;; |
| 7771 | esac |
| 7772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7773 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | ac_status=$? |
| 7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7776 | (exit $ac_status); }; } && |
| 7777 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7778 | { (case "(($ac_try" in |
| 7779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7780 | *) ac_try_echo=$ac_try;; |
| 7781 | esac |
| 7782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7783 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7784 | ac_status=$? |
| 7785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7786 | (exit $ac_status); }; }; then |
| 7787 | ac_hi=$ac_mid |
| 7788 | else |
| 7789 | echo "$as_me: failed program was:" >&5 |
| 7790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7792 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7793 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7794 | |
| 7795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7796 | done |
| 7797 | case $ac_lo in |
| 7798 | ?*) res_hi=$ac_lo;; |
| 7799 | '') result=? ;; |
| 7800 | esac |
| 7801 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7802 | cat >conftest.$ac_ext <<_ACEOF |
| 7803 | /* confdefs.h. */ |
| 7804 | _ACEOF |
| 7805 | cat confdefs.h >>conftest.$ac_ext |
| 7806 | cat >>conftest.$ac_ext <<_ACEOF |
| 7807 | /* end confdefs.h. */ |
| 7808 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7809 | static long int longval () { return ~(size_t)0 / 10; } |
| 7810 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7811 | #include <stdio.h> |
| 7812 | #include <stdlib.h> |
| 7813 | int |
| 7814 | main () |
| 7815 | { |
| 7816 | |
| 7817 | FILE *f = fopen ("conftest.val", "w"); |
| 7818 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7819 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7820 | if ((~(size_t)0 / 10) < 0) |
| 7821 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7822 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7823 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7824 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7825 | fprintf (f, "%ld\n", i); |
| 7826 | } |
| 7827 | else |
| 7828 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7829 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7830 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7831 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7832 | fprintf (f, "%lu\n", i); |
| 7833 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7834 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7835 | |
| 7836 | ; |
| 7837 | return 0; |
| 7838 | } |
| 7839 | _ACEOF |
| 7840 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7841 | if { (ac_try="$ac_link" |
| 7842 | case "(($ac_try" in |
| 7843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7844 | *) ac_try_echo=$ac_try;; |
| 7845 | esac |
| 7846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7847 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7848 | ac_status=$? |
| 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7851 | { (case "(($ac_try" in |
| 7852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7853 | *) ac_try_echo=$ac_try;; |
| 7854 | esac |
| 7855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7856 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7857 | ac_status=$? |
| 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7859 | (exit $ac_status); }; }; then |
| 7860 | res_hi=`cat conftest.val` |
| 7861 | else |
| 7862 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7863 | echo "$as_me: failed program was:" >&5 |
| 7864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7865 | |
| 7866 | ( exit $ac_status ) |
| 7867 | result=? |
| 7868 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7869 | 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] | 7870 | fi |
| 7871 | rm -f conftest.val |
| 7872 | if test "$cross_compiling" = yes; then |
| 7873 | # Depending upon the size, compute the lo and hi bounds. |
| 7874 | cat >conftest.$ac_ext <<_ACEOF |
| 7875 | /* confdefs.h. */ |
| 7876 | _ACEOF |
| 7877 | cat confdefs.h >>conftest.$ac_ext |
| 7878 | cat >>conftest.$ac_ext <<_ACEOF |
| 7879 | /* end confdefs.h. */ |
| 7880 | #include <stddef.h> |
| 7881 | int |
| 7882 | main () |
| 7883 | { |
| 7884 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7885 | test_array [0] = 0 |
| 7886 | |
| 7887 | ; |
| 7888 | return 0; |
| 7889 | } |
| 7890 | _ACEOF |
| 7891 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7892 | if { (ac_try="$ac_compile" |
| 7893 | case "(($ac_try" in |
| 7894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7895 | *) ac_try_echo=$ac_try;; |
| 7896 | esac |
| 7897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7898 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7899 | ac_status=$? |
| 7900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7901 | rm -f conftest.er1 |
| 7902 | cat conftest.err >&5 |
| 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7904 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7906 | { (case "(($ac_try" in |
| 7907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7908 | *) ac_try_echo=$ac_try;; |
| 7909 | esac |
| 7910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7911 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7912 | ac_status=$? |
| 7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7914 | (exit $ac_status); }; } && |
| 7915 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7916 | { (case "(($ac_try" in |
| 7917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7918 | *) ac_try_echo=$ac_try;; |
| 7919 | esac |
| 7920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7921 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7922 | ac_status=$? |
| 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); }; }; then |
| 7925 | ac_lo=0 ac_mid=0 |
| 7926 | while :; do |
| 7927 | cat >conftest.$ac_ext <<_ACEOF |
| 7928 | /* confdefs.h. */ |
| 7929 | _ACEOF |
| 7930 | cat confdefs.h >>conftest.$ac_ext |
| 7931 | cat >>conftest.$ac_ext <<_ACEOF |
| 7932 | /* end confdefs.h. */ |
| 7933 | #include <stddef.h> |
| 7934 | int |
| 7935 | main () |
| 7936 | { |
| 7937 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7938 | test_array [0] = 0 |
| 7939 | |
| 7940 | ; |
| 7941 | return 0; |
| 7942 | } |
| 7943 | _ACEOF |
| 7944 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7945 | if { (ac_try="$ac_compile" |
| 7946 | case "(($ac_try" in |
| 7947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7948 | *) ac_try_echo=$ac_try;; |
| 7949 | esac |
| 7950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7951 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7952 | ac_status=$? |
| 7953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7954 | rm -f conftest.er1 |
| 7955 | cat conftest.err >&5 |
| 7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7957 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7959 | { (case "(($ac_try" in |
| 7960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7961 | *) ac_try_echo=$ac_try;; |
| 7962 | esac |
| 7963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7964 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7965 | ac_status=$? |
| 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); }; } && |
| 7968 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7969 | { (case "(($ac_try" in |
| 7970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7971 | *) ac_try_echo=$ac_try;; |
| 7972 | esac |
| 7973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7974 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7975 | ac_status=$? |
| 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7977 | (exit $ac_status); }; }; then |
| 7978 | ac_hi=$ac_mid; break |
| 7979 | else |
| 7980 | echo "$as_me: failed program was:" >&5 |
| 7981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7983 | ac_lo=`expr $ac_mid + 1` |
| 7984 | if test $ac_lo -le $ac_mid; then |
| 7985 | ac_lo= ac_hi= |
| 7986 | break |
| 7987 | fi |
| 7988 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7989 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7990 | |
| 7991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7992 | done |
| 7993 | else |
| 7994 | echo "$as_me: failed program was:" >&5 |
| 7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7996 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 7997 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7998 | /* confdefs.h. */ |
| 7999 | _ACEOF |
| 8000 | cat confdefs.h >>conftest.$ac_ext |
| 8001 | cat >>conftest.$ac_ext <<_ACEOF |
| 8002 | /* end confdefs.h. */ |
| 8003 | #include <stddef.h> |
| 8004 | int |
| 8005 | main () |
| 8006 | { |
| 8007 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 8008 | test_array [0] = 0 |
| 8009 | |
| 8010 | ; |
| 8011 | return 0; |
| 8012 | } |
| 8013 | _ACEOF |
| 8014 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8015 | if { (ac_try="$ac_compile" |
| 8016 | case "(($ac_try" in |
| 8017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8018 | *) ac_try_echo=$ac_try;; |
| 8019 | esac |
| 8020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8021 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8022 | ac_status=$? |
| 8023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8024 | rm -f conftest.er1 |
| 8025 | cat conftest.err >&5 |
| 8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8027 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8029 | { (case "(($ac_try" in |
| 8030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8031 | *) ac_try_echo=$ac_try;; |
| 8032 | esac |
| 8033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8034 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8035 | ac_status=$? |
| 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); }; } && |
| 8038 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8039 | { (case "(($ac_try" in |
| 8040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8041 | *) ac_try_echo=$ac_try;; |
| 8042 | esac |
| 8043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8044 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8045 | ac_status=$? |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); }; }; then |
| 8048 | ac_hi=-1 ac_mid=-1 |
| 8049 | while :; do |
| 8050 | cat >conftest.$ac_ext <<_ACEOF |
| 8051 | /* confdefs.h. */ |
| 8052 | _ACEOF |
| 8053 | cat confdefs.h >>conftest.$ac_ext |
| 8054 | cat >>conftest.$ac_ext <<_ACEOF |
| 8055 | /* end confdefs.h. */ |
| 8056 | #include <stddef.h> |
| 8057 | int |
| 8058 | main () |
| 8059 | { |
| 8060 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 8061 | test_array [0] = 0 |
| 8062 | |
| 8063 | ; |
| 8064 | return 0; |
| 8065 | } |
| 8066 | _ACEOF |
| 8067 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8068 | if { (ac_try="$ac_compile" |
| 8069 | case "(($ac_try" in |
| 8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8071 | *) ac_try_echo=$ac_try;; |
| 8072 | esac |
| 8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8074 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8075 | ac_status=$? |
| 8076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8077 | rm -f conftest.er1 |
| 8078 | cat conftest.err >&5 |
| 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8080 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8082 | { (case "(($ac_try" in |
| 8083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8084 | *) ac_try_echo=$ac_try;; |
| 8085 | esac |
| 8086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8087 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8088 | ac_status=$? |
| 8089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8090 | (exit $ac_status); }; } && |
| 8091 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8092 | { (case "(($ac_try" in |
| 8093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8094 | *) ac_try_echo=$ac_try;; |
| 8095 | esac |
| 8096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8097 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8098 | ac_status=$? |
| 8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8100 | (exit $ac_status); }; }; then |
| 8101 | ac_lo=$ac_mid; break |
| 8102 | else |
| 8103 | echo "$as_me: failed program was:" >&5 |
| 8104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8106 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8107 | if test $ac_mid -le $ac_hi; then |
| 8108 | ac_lo= ac_hi= |
| 8109 | break |
| 8110 | fi |
| 8111 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8113 | |
| 8114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8115 | done |
| 8116 | else |
| 8117 | echo "$as_me: failed program was:" >&5 |
| 8118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8120 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8121 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8122 | |
| 8123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8124 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8125 | |
| 8126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8127 | # Binary search between lo and hi bounds. |
| 8128 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8129 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8130 | cat >conftest.$ac_ext <<_ACEOF |
| 8131 | /* confdefs.h. */ |
| 8132 | _ACEOF |
| 8133 | cat confdefs.h >>conftest.$ac_ext |
| 8134 | cat >>conftest.$ac_ext <<_ACEOF |
| 8135 | /* end confdefs.h. */ |
| 8136 | #include <stddef.h> |
| 8137 | int |
| 8138 | main () |
| 8139 | { |
| 8140 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8141 | test_array [0] = 0 |
| 8142 | |
| 8143 | ; |
| 8144 | return 0; |
| 8145 | } |
| 8146 | _ACEOF |
| 8147 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8148 | if { (ac_try="$ac_compile" |
| 8149 | case "(($ac_try" in |
| 8150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8151 | *) ac_try_echo=$ac_try;; |
| 8152 | esac |
| 8153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8154 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8155 | ac_status=$? |
| 8156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8157 | rm -f conftest.er1 |
| 8158 | cat conftest.err >&5 |
| 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8160 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8162 | { (case "(($ac_try" in |
| 8163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8164 | *) ac_try_echo=$ac_try;; |
| 8165 | esac |
| 8166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8167 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8168 | ac_status=$? |
| 8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8170 | (exit $ac_status); }; } && |
| 8171 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8172 | { (case "(($ac_try" in |
| 8173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8174 | *) ac_try_echo=$ac_try;; |
| 8175 | esac |
| 8176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8177 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8178 | ac_status=$? |
| 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8180 | (exit $ac_status); }; }; then |
| 8181 | ac_hi=$ac_mid |
| 8182 | else |
| 8183 | echo "$as_me: failed program was:" >&5 |
| 8184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8186 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8187 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8188 | |
| 8189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8190 | done |
| 8191 | case $ac_lo in |
| 8192 | ?*) res_lo=$ac_lo;; |
| 8193 | '') result=? ;; |
| 8194 | esac |
| 8195 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8196 | cat >conftest.$ac_ext <<_ACEOF |
| 8197 | /* confdefs.h. */ |
| 8198 | _ACEOF |
| 8199 | cat confdefs.h >>conftest.$ac_ext |
| 8200 | cat >>conftest.$ac_ext <<_ACEOF |
| 8201 | /* end confdefs.h. */ |
| 8202 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8203 | static long int longval () { return ~(size_t)0 % 10; } |
| 8204 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8205 | #include <stdio.h> |
| 8206 | #include <stdlib.h> |
| 8207 | int |
| 8208 | main () |
| 8209 | { |
| 8210 | |
| 8211 | FILE *f = fopen ("conftest.val", "w"); |
| 8212 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8213 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8214 | if ((~(size_t)0 % 10) < 0) |
| 8215 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8216 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8217 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8218 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8219 | fprintf (f, "%ld\n", i); |
| 8220 | } |
| 8221 | else |
| 8222 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8223 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8224 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8225 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8226 | fprintf (f, "%lu\n", i); |
| 8227 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8228 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8229 | |
| 8230 | ; |
| 8231 | return 0; |
| 8232 | } |
| 8233 | _ACEOF |
| 8234 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8235 | if { (ac_try="$ac_link" |
| 8236 | case "(($ac_try" in |
| 8237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8238 | *) ac_try_echo=$ac_try;; |
| 8239 | esac |
| 8240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8241 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8245 | { (case "(($ac_try" in |
| 8246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8247 | *) ac_try_echo=$ac_try;; |
| 8248 | esac |
| 8249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8250 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8251 | ac_status=$? |
| 8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8253 | (exit $ac_status); }; }; then |
| 8254 | res_lo=`cat conftest.val` |
| 8255 | else |
| 8256 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8257 | echo "$as_me: failed program was:" >&5 |
| 8258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8259 | |
| 8260 | ( exit $ac_status ) |
| 8261 | result=? |
| 8262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8263 | 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] | 8264 | fi |
| 8265 | rm -f conftest.val |
| 8266 | if test "$cross_compiling" = yes; then |
| 8267 | # Depending upon the size, compute the lo and hi bounds. |
| 8268 | cat >conftest.$ac_ext <<_ACEOF |
| 8269 | /* confdefs.h. */ |
| 8270 | _ACEOF |
| 8271 | cat confdefs.h >>conftest.$ac_ext |
| 8272 | cat >>conftest.$ac_ext <<_ACEOF |
| 8273 | /* end confdefs.h. */ |
| 8274 | #include <stddef.h> |
| 8275 | int |
| 8276 | main () |
| 8277 | { |
| 8278 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 8279 | test_array [0] = 0 |
| 8280 | |
| 8281 | ; |
| 8282 | return 0; |
| 8283 | } |
| 8284 | _ACEOF |
| 8285 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8286 | if { (ac_try="$ac_compile" |
| 8287 | case "(($ac_try" in |
| 8288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8289 | *) ac_try_echo=$ac_try;; |
| 8290 | esac |
| 8291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8292 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8293 | ac_status=$? |
| 8294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8295 | rm -f conftest.er1 |
| 8296 | cat conftest.err >&5 |
| 8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8298 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8300 | { (case "(($ac_try" in |
| 8301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8302 | *) ac_try_echo=$ac_try;; |
| 8303 | esac |
| 8304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8305 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8306 | ac_status=$? |
| 8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8308 | (exit $ac_status); }; } && |
| 8309 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8310 | { (case "(($ac_try" in |
| 8311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8312 | *) ac_try_echo=$ac_try;; |
| 8313 | esac |
| 8314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8315 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8316 | ac_status=$? |
| 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8318 | (exit $ac_status); }; }; then |
| 8319 | ac_lo=0 ac_mid=0 |
| 8320 | while :; do |
| 8321 | cat >conftest.$ac_ext <<_ACEOF |
| 8322 | /* confdefs.h. */ |
| 8323 | _ACEOF |
| 8324 | cat confdefs.h >>conftest.$ac_ext |
| 8325 | cat >>conftest.$ac_ext <<_ACEOF |
| 8326 | /* end confdefs.h. */ |
| 8327 | #include <stddef.h> |
| 8328 | int |
| 8329 | main () |
| 8330 | { |
| 8331 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8332 | test_array [0] = 0 |
| 8333 | |
| 8334 | ; |
| 8335 | return 0; |
| 8336 | } |
| 8337 | _ACEOF |
| 8338 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8339 | if { (ac_try="$ac_compile" |
| 8340 | case "(($ac_try" in |
| 8341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8342 | *) ac_try_echo=$ac_try;; |
| 8343 | esac |
| 8344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8345 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8346 | ac_status=$? |
| 8347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8348 | rm -f conftest.er1 |
| 8349 | cat conftest.err >&5 |
| 8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8351 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8353 | { (case "(($ac_try" in |
| 8354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8355 | *) ac_try_echo=$ac_try;; |
| 8356 | esac |
| 8357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8358 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8359 | ac_status=$? |
| 8360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8361 | (exit $ac_status); }; } && |
| 8362 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8363 | { (case "(($ac_try" in |
| 8364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8365 | *) ac_try_echo=$ac_try;; |
| 8366 | esac |
| 8367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8368 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8369 | ac_status=$? |
| 8370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8371 | (exit $ac_status); }; }; then |
| 8372 | ac_hi=$ac_mid; break |
| 8373 | else |
| 8374 | echo "$as_me: failed program was:" >&5 |
| 8375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8376 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8377 | ac_lo=`expr $ac_mid + 1` |
| 8378 | if test $ac_lo -le $ac_mid; then |
| 8379 | ac_lo= ac_hi= |
| 8380 | break |
| 8381 | fi |
| 8382 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8383 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8384 | |
| 8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8386 | done |
| 8387 | else |
| 8388 | echo "$as_me: failed program was:" >&5 |
| 8389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8390 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8391 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8392 | /* confdefs.h. */ |
| 8393 | _ACEOF |
| 8394 | cat confdefs.h >>conftest.$ac_ext |
| 8395 | cat >>conftest.$ac_ext <<_ACEOF |
| 8396 | /* end confdefs.h. */ |
| 8397 | #include <stddef.h> |
| 8398 | int |
| 8399 | main () |
| 8400 | { |
| 8401 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8402 | test_array [0] = 0 |
| 8403 | |
| 8404 | ; |
| 8405 | return 0; |
| 8406 | } |
| 8407 | _ACEOF |
| 8408 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8409 | if { (ac_try="$ac_compile" |
| 8410 | case "(($ac_try" in |
| 8411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8412 | *) ac_try_echo=$ac_try;; |
| 8413 | esac |
| 8414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8415 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8416 | ac_status=$? |
| 8417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8418 | rm -f conftest.er1 |
| 8419 | cat conftest.err >&5 |
| 8420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8421 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8422 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8423 | { (case "(($ac_try" in |
| 8424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8425 | *) ac_try_echo=$ac_try;; |
| 8426 | esac |
| 8427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8428 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8429 | ac_status=$? |
| 8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8431 | (exit $ac_status); }; } && |
| 8432 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8433 | { (case "(($ac_try" in |
| 8434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8435 | *) ac_try_echo=$ac_try;; |
| 8436 | esac |
| 8437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8438 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8439 | ac_status=$? |
| 8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8441 | (exit $ac_status); }; }; then |
| 8442 | ac_hi=-1 ac_mid=-1 |
| 8443 | while :; do |
| 8444 | cat >conftest.$ac_ext <<_ACEOF |
| 8445 | /* confdefs.h. */ |
| 8446 | _ACEOF |
| 8447 | cat confdefs.h >>conftest.$ac_ext |
| 8448 | cat >>conftest.$ac_ext <<_ACEOF |
| 8449 | /* end confdefs.h. */ |
| 8450 | #include <stddef.h> |
| 8451 | int |
| 8452 | main () |
| 8453 | { |
| 8454 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8455 | test_array [0] = 0 |
| 8456 | |
| 8457 | ; |
| 8458 | return 0; |
| 8459 | } |
| 8460 | _ACEOF |
| 8461 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8462 | if { (ac_try="$ac_compile" |
| 8463 | case "(($ac_try" in |
| 8464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8465 | *) ac_try_echo=$ac_try;; |
| 8466 | esac |
| 8467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8468 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8469 | ac_status=$? |
| 8470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8471 | rm -f conftest.er1 |
| 8472 | cat conftest.err >&5 |
| 8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8474 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8476 | { (case "(($ac_try" in |
| 8477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8478 | *) ac_try_echo=$ac_try;; |
| 8479 | esac |
| 8480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8481 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8482 | ac_status=$? |
| 8483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8484 | (exit $ac_status); }; } && |
| 8485 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8486 | { (case "(($ac_try" in |
| 8487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8488 | *) ac_try_echo=$ac_try;; |
| 8489 | esac |
| 8490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8491 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8492 | ac_status=$? |
| 8493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8494 | (exit $ac_status); }; }; then |
| 8495 | ac_lo=$ac_mid; break |
| 8496 | else |
| 8497 | echo "$as_me: failed program was:" >&5 |
| 8498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8500 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8501 | if test $ac_mid -le $ac_hi; then |
| 8502 | ac_lo= ac_hi= |
| 8503 | break |
| 8504 | fi |
| 8505 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8507 | |
| 8508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8509 | done |
| 8510 | else |
| 8511 | echo "$as_me: failed program was:" >&5 |
| 8512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8513 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8514 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8515 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8516 | |
| 8517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8518 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8519 | |
| 8520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8521 | # Binary search between lo and hi bounds. |
| 8522 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8523 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8524 | cat >conftest.$ac_ext <<_ACEOF |
| 8525 | /* confdefs.h. */ |
| 8526 | _ACEOF |
| 8527 | cat confdefs.h >>conftest.$ac_ext |
| 8528 | cat >>conftest.$ac_ext <<_ACEOF |
| 8529 | /* end confdefs.h. */ |
| 8530 | #include <stddef.h> |
| 8531 | int |
| 8532 | main () |
| 8533 | { |
| 8534 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8535 | test_array [0] = 0 |
| 8536 | |
| 8537 | ; |
| 8538 | return 0; |
| 8539 | } |
| 8540 | _ACEOF |
| 8541 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8542 | if { (ac_try="$ac_compile" |
| 8543 | case "(($ac_try" in |
| 8544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8545 | *) ac_try_echo=$ac_try;; |
| 8546 | esac |
| 8547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8548 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8549 | ac_status=$? |
| 8550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8551 | rm -f conftest.er1 |
| 8552 | cat conftest.err >&5 |
| 8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8554 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8556 | { (case "(($ac_try" in |
| 8557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8558 | *) ac_try_echo=$ac_try;; |
| 8559 | esac |
| 8560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8561 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8562 | ac_status=$? |
| 8563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8564 | (exit $ac_status); }; } && |
| 8565 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8566 | { (case "(($ac_try" in |
| 8567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8568 | *) ac_try_echo=$ac_try;; |
| 8569 | esac |
| 8570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8571 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8572 | ac_status=$? |
| 8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8574 | (exit $ac_status); }; }; then |
| 8575 | ac_hi=$ac_mid |
| 8576 | else |
| 8577 | echo "$as_me: failed program was:" >&5 |
| 8578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8579 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8580 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8581 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8582 | |
| 8583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8584 | done |
| 8585 | case $ac_lo in |
| 8586 | ?*) fits_in_uint=$ac_lo;; |
| 8587 | '') result=? ;; |
| 8588 | esac |
| 8589 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8590 | cat >conftest.$ac_ext <<_ACEOF |
| 8591 | /* confdefs.h. */ |
| 8592 | _ACEOF |
| 8593 | cat confdefs.h >>conftest.$ac_ext |
| 8594 | cat >>conftest.$ac_ext <<_ACEOF |
| 8595 | /* end confdefs.h. */ |
| 8596 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8597 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8598 | 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] | 8599 | #include <stdio.h> |
| 8600 | #include <stdlib.h> |
| 8601 | int |
| 8602 | main () |
| 8603 | { |
| 8604 | |
| 8605 | FILE *f = fopen ("conftest.val", "w"); |
| 8606 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8607 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8608 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8609 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8610 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8611 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8612 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8613 | fprintf (f, "%ld\n", i); |
| 8614 | } |
| 8615 | else |
| 8616 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8617 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8618 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8619 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8620 | fprintf (f, "%lu\n", i); |
| 8621 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8622 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8623 | |
| 8624 | ; |
| 8625 | return 0; |
| 8626 | } |
| 8627 | _ACEOF |
| 8628 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8629 | if { (ac_try="$ac_link" |
| 8630 | case "(($ac_try" in |
| 8631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8632 | *) ac_try_echo=$ac_try;; |
| 8633 | esac |
| 8634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8635 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8636 | ac_status=$? |
| 8637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8639 | { (case "(($ac_try" in |
| 8640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8641 | *) ac_try_echo=$ac_try;; |
| 8642 | esac |
| 8643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8644 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8645 | ac_status=$? |
| 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8647 | (exit $ac_status); }; }; then |
| 8648 | fits_in_uint=`cat conftest.val` |
| 8649 | else |
| 8650 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8651 | echo "$as_me: failed program was:" >&5 |
| 8652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8653 | |
| 8654 | ( exit $ac_status ) |
| 8655 | result=? |
| 8656 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8657 | 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] | 8658 | fi |
| 8659 | rm -f conftest.val |
| 8660 | if test "$fits_in_uint" = 1; then |
| 8661 | cat >conftest.$ac_ext <<_ACEOF |
| 8662 | /* confdefs.h. */ |
| 8663 | _ACEOF |
| 8664 | cat confdefs.h >>conftest.$ac_ext |
| 8665 | cat >>conftest.$ac_ext <<_ACEOF |
| 8666 | /* end confdefs.h. */ |
| 8667 | #include <stddef.h> |
| 8668 | extern size_t foo; |
| 8669 | extern unsigned long foo; |
| 8670 | |
| 8671 | int |
| 8672 | main () |
| 8673 | { |
| 8674 | |
| 8675 | ; |
| 8676 | return 0; |
| 8677 | } |
| 8678 | _ACEOF |
| 8679 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8680 | if { (ac_try="$ac_compile" |
| 8681 | case "(($ac_try" in |
| 8682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8683 | *) ac_try_echo=$ac_try;; |
| 8684 | esac |
| 8685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8686 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8687 | ac_status=$? |
| 8688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8689 | rm -f conftest.er1 |
| 8690 | cat conftest.err >&5 |
| 8691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8692 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8694 | { (case "(($ac_try" in |
| 8695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8696 | *) ac_try_echo=$ac_try;; |
| 8697 | esac |
| 8698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8699 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8700 | ac_status=$? |
| 8701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8702 | (exit $ac_status); }; } && |
| 8703 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8704 | { (case "(($ac_try" in |
| 8705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8706 | *) ac_try_echo=$ac_try;; |
| 8707 | esac |
| 8708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8709 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8710 | ac_status=$? |
| 8711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8712 | (exit $ac_status); }; }; then |
| 8713 | fits_in_uint=0 |
| 8714 | else |
| 8715 | echo "$as_me: failed program was:" >&5 |
| 8716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8718 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8720 | |
| 8721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8722 | fi |
| 8723 | if test -z "$result"; then |
| 8724 | if test "$fits_in_uint" = 1; then |
| 8725 | result="$res_hi$res_lo"U |
| 8726 | else |
| 8727 | result="$res_hi$res_lo"UL |
| 8728 | fi |
| 8729 | else |
| 8730 | result='~(size_t)0' |
| 8731 | fi |
| 8732 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8733 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8734 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8735 | if test "$result" != yes; then |
| 8736 | |
| 8737 | cat >>confdefs.h <<_ACEOF |
| 8738 | #define SIZE_MAX $result |
| 8739 | _ACEOF |
| 8740 | |
| 8741 | fi |
| 8742 | |
| 8743 | |
| 8744 | |
| 8745 | |
| 8746 | for ac_header in stdint.h |
| 8747 | do |
| 8748 | 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^] | 8749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8750 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8752 | 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] | 8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8754 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8755 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8756 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8757 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8758 | else |
| 8759 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8760 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8761 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8762 | cat >conftest.$ac_ext <<_ACEOF |
| 8763 | /* confdefs.h. */ |
| 8764 | _ACEOF |
| 8765 | cat confdefs.h >>conftest.$ac_ext |
| 8766 | cat >>conftest.$ac_ext <<_ACEOF |
| 8767 | /* end confdefs.h. */ |
| 8768 | $ac_includes_default |
| 8769 | #include <$ac_header> |
| 8770 | _ACEOF |
| 8771 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8772 | if { (ac_try="$ac_compile" |
| 8773 | case "(($ac_try" in |
| 8774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8775 | *) ac_try_echo=$ac_try;; |
| 8776 | esac |
| 8777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8778 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8779 | ac_status=$? |
| 8780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8781 | rm -f conftest.er1 |
| 8782 | cat conftest.err >&5 |
| 8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8784 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8786 | { (case "(($ac_try" in |
| 8787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8788 | *) ac_try_echo=$ac_try;; |
| 8789 | esac |
| 8790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8791 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8792 | ac_status=$? |
| 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8794 | (exit $ac_status); }; } && |
| 8795 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8796 | { (case "(($ac_try" in |
| 8797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8798 | *) ac_try_echo=$ac_try;; |
| 8799 | esac |
| 8800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8801 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8802 | ac_status=$? |
| 8803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8804 | (exit $ac_status); }; }; then |
| 8805 | ac_header_compiler=yes |
| 8806 | else |
| 8807 | echo "$as_me: failed program was:" >&5 |
| 8808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8810 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8811 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8812 | |
| 8813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8814 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8815 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8816 | |
| 8817 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8818 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8819 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8820 | cat >conftest.$ac_ext <<_ACEOF |
| 8821 | /* confdefs.h. */ |
| 8822 | _ACEOF |
| 8823 | cat confdefs.h >>conftest.$ac_ext |
| 8824 | cat >>conftest.$ac_ext <<_ACEOF |
| 8825 | /* end confdefs.h. */ |
| 8826 | #include <$ac_header> |
| 8827 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8828 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8829 | case "(($ac_try" in |
| 8830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8831 | *) ac_try_echo=$ac_try;; |
| 8832 | esac |
| 8833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8835 | ac_status=$? |
| 8836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8837 | rm -f conftest.er1 |
| 8838 | cat conftest.err >&5 |
| 8839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8840 | (exit $ac_status); } >/dev/null; then |
| 8841 | if test -s conftest.err; then |
| 8842 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8843 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8844 | else |
| 8845 | ac_cpp_err= |
| 8846 | fi |
| 8847 | else |
| 8848 | ac_cpp_err=yes |
| 8849 | fi |
| 8850 | if test -z "$ac_cpp_err"; then |
| 8851 | ac_header_preproc=yes |
| 8852 | else |
| 8853 | echo "$as_me: failed program was:" >&5 |
| 8854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8855 | |
| 8856 | ac_header_preproc=no |
| 8857 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8858 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8859 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8860 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8861 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8862 | |
| 8863 | # So? What about this header? |
| 8864 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8865 | yes:no: ) |
| 8866 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8867 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8869 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8870 | ac_header_preproc=yes |
| 8871 | ;; |
| 8872 | no:yes:* ) |
| 8873 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8874 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8875 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8876 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8877 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8878 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8879 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8880 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8881 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8882 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8883 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8884 | 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^] | 8885 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8886 | ;; |
| 8887 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8888 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8890 | 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] | 8891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8892 | else |
| 8893 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8894 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8897 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8898 | |
| 8899 | fi |
| 8900 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8901 | cat >>confdefs.h <<_ACEOF |
| 8902 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8903 | _ACEOF |
| 8904 | |
| 8905 | fi |
| 8906 | |
| 8907 | done |
| 8908 | |
| 8909 | |
| 8910 | |
| 8911 | if test "X$prefix" = "XNONE"; then |
| 8912 | acl_final_prefix="$ac_default_prefix" |
| 8913 | else |
| 8914 | acl_final_prefix="$prefix" |
| 8915 | fi |
| 8916 | if test "X$exec_prefix" = "XNONE"; then |
| 8917 | acl_final_exec_prefix='${prefix}' |
| 8918 | else |
| 8919 | acl_final_exec_prefix="$exec_prefix" |
| 8920 | fi |
| 8921 | acl_save_prefix="$prefix" |
| 8922 | prefix="$acl_final_prefix" |
| 8923 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8924 | prefix="$acl_save_prefix" |
| 8925 | |
| 8926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8927 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8928 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8929 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8930 | else |
| 8931 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8932 | fi |
| 8933 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8934 | # Prepare PATH_SEPARATOR. |
| 8935 | # The user is always right. |
| 8936 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8937 | echo "#! /bin/sh" >conf$$.sh |
| 8938 | echo "exit 0" >>conf$$.sh |
| 8939 | chmod +x conf$$.sh |
| 8940 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8941 | PATH_SEPARATOR=';' |
| 8942 | else |
| 8943 | PATH_SEPARATOR=: |
| 8944 | fi |
| 8945 | rm -f conf$$.sh |
| 8946 | fi |
| 8947 | ac_prog=ld |
| 8948 | if test "$GCC" = yes; then |
| 8949 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8950 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8951 | 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] | 8952 | case $host in |
| 8953 | *-*-mingw*) |
| 8954 | # gcc leaves a trailing carriage return which upsets mingw |
| 8955 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8956 | *) |
| 8957 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8958 | esac |
| 8959 | case $ac_prog in |
| 8960 | # Accept absolute paths. |
| 8961 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8962 | re_direlt='/[^/][^/]*/\.\./' |
| 8963 | # Canonicalize the path of ld |
| 8964 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8965 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8966 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8967 | done |
| 8968 | test -z "$LD" && LD="$ac_prog" |
| 8969 | ;; |
| 8970 | "") |
| 8971 | # If it fails, then pretend we aren't using GCC. |
| 8972 | ac_prog=ld |
| 8973 | ;; |
| 8974 | *) |
| 8975 | # If it is relative, then search for the first ld in PATH. |
| 8976 | with_gnu_ld=unknown |
| 8977 | ;; |
| 8978 | esac |
| 8979 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8980 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8981 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8982 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 8983 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8984 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8985 | fi |
| 8986 | if test "${acl_cv_path_LD+set}" = set; then |
| 8987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8988 | else |
| 8989 | if test -z "$LD"; then |
| 8990 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8991 | for ac_dir in $PATH; do |
| 8992 | test -z "$ac_dir" && ac_dir=. |
| 8993 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8994 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8995 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8996 | # but apparently some GNU ld's only accept -v. |
| 8997 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8998 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8999 | *GNU* | *'with BFD'*) |
| 9000 | test "$with_gnu_ld" != no && break ;; |
| 9001 | *) |
| 9002 | test "$with_gnu_ld" != yes && break ;; |
| 9003 | esac |
| 9004 | fi |
| 9005 | done |
| 9006 | IFS="$ac_save_ifs" |
| 9007 | else |
| 9008 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9009 | fi |
| 9010 | fi |
| 9011 | |
| 9012 | LD="$acl_cv_path_LD" |
| 9013 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9014 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 9015 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9016 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9018 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9019 | fi |
| 9020 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9021 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9022 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9023 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9024 | 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] | 9025 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 9026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9027 | else |
| 9028 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9029 | case `$LD -v 2>&1 </dev/null` in |
| 9030 | *GNU* | *'with BFD'*) |
| 9031 | acl_cv_prog_gnu_ld=yes ;; |
| 9032 | *) |
| 9033 | acl_cv_prog_gnu_ld=no ;; |
| 9034 | esac |
| 9035 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9036 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 9037 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9038 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 9039 | |
| 9040 | |
| 9041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9042 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 9043 | 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] | 9044 | if test "${acl_cv_rpath+set}" = set; then |
| 9045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9046 | else |
| 9047 | |
| 9048 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 9049 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 9050 | . ./conftest.sh |
| 9051 | rm -f ./conftest.sh |
| 9052 | acl_cv_rpath=done |
| 9053 | |
| 9054 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9055 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 9056 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9057 | wl="$acl_cv_wl" |
| 9058 | libext="$acl_cv_libext" |
| 9059 | shlibext="$acl_cv_shlibext" |
| 9060 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 9061 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 9062 | hardcode_direct="$acl_cv_hardcode_direct" |
| 9063 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9064 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9065 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9066 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9067 | else |
| 9068 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9069 | fi |
| 9070 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9071 | |
| 9072 | |
| 9073 | |
| 9074 | |
| 9075 | |
| 9076 | |
| 9077 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9078 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9079 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9080 | acl_save_prefix="$prefix" |
| 9081 | prefix="$acl_final_prefix" |
| 9082 | acl_save_exec_prefix="$exec_prefix" |
| 9083 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9084 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9085 | eval additional_includedir=\"$includedir\" |
| 9086 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9087 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9088 | exec_prefix="$acl_save_exec_prefix" |
| 9089 | prefix="$acl_save_prefix" |
| 9090 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9091 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9092 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9093 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9094 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9095 | if test "X$withval" = "Xno"; then |
| 9096 | use_additional=no |
| 9097 | else |
| 9098 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9099 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9100 | acl_save_prefix="$prefix" |
| 9101 | prefix="$acl_final_prefix" |
| 9102 | acl_save_exec_prefix="$exec_prefix" |
| 9103 | exec_prefix="$acl_final_exec_prefix" |
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 | eval additional_includedir=\"$includedir\" |
| 9106 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9107 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9108 | exec_prefix="$acl_save_exec_prefix" |
| 9109 | prefix="$acl_save_prefix" |
| 9110 | |
| 9111 | else |
| 9112 | additional_includedir="$withval/include" |
| 9113 | additional_libdir="$withval/lib" |
| 9114 | fi |
| 9115 | fi |
| 9116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9117 | fi |
| 9118 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9119 | LIBICONV= |
| 9120 | LTLIBICONV= |
| 9121 | INCICONV= |
| 9122 | rpathdirs= |
| 9123 | ltrpathdirs= |
| 9124 | names_already_handled= |
| 9125 | names_next_round='iconv ' |
| 9126 | while test -n "$names_next_round"; do |
| 9127 | names_this_round="$names_next_round" |
| 9128 | names_next_round= |
| 9129 | for name in $names_this_round; do |
| 9130 | already_handled= |
| 9131 | for n in $names_already_handled; do |
| 9132 | if test "$n" = "$name"; then |
| 9133 | already_handled=yes |
| 9134 | break |
| 9135 | fi |
| 9136 | done |
| 9137 | if test -z "$already_handled"; then |
| 9138 | names_already_handled="$names_already_handled $name" |
| 9139 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9140 | eval value=\"\$HAVE_LIB$uppername\" |
| 9141 | if test -n "$value"; then |
| 9142 | if test "$value" = yes; then |
| 9143 | eval value=\"\$LIB$uppername\" |
| 9144 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 9145 | eval value=\"\$LTLIB$uppername\" |
| 9146 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 9147 | else |
| 9148 | : |
| 9149 | fi |
| 9150 | else |
| 9151 | found_dir= |
| 9152 | found_la= |
| 9153 | found_so= |
| 9154 | found_a= |
| 9155 | if test $use_additional = yes; then |
| 9156 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9157 | found_dir="$additional_libdir" |
| 9158 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9159 | if test -f "$additional_libdir/lib$name.la"; then |
| 9160 | found_la="$additional_libdir/lib$name.la" |
| 9161 | fi |
| 9162 | else |
| 9163 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9164 | found_dir="$additional_libdir" |
| 9165 | found_a="$additional_libdir/lib$name.$libext" |
| 9166 | if test -f "$additional_libdir/lib$name.la"; then |
| 9167 | found_la="$additional_libdir/lib$name.la" |
| 9168 | fi |
| 9169 | fi |
| 9170 | fi |
| 9171 | fi |
| 9172 | if test "X$found_dir" = "X"; then |
| 9173 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9174 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9175 | acl_save_prefix="$prefix" |
| 9176 | prefix="$acl_final_prefix" |
| 9177 | acl_save_exec_prefix="$exec_prefix" |
| 9178 | exec_prefix="$acl_final_exec_prefix" |
| 9179 | eval x=\"$x\" |
| 9180 | exec_prefix="$acl_save_exec_prefix" |
| 9181 | prefix="$acl_save_prefix" |
| 9182 | |
| 9183 | case "$x" in |
| 9184 | -L*) |
| 9185 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9186 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9187 | found_dir="$dir" |
| 9188 | found_so="$dir/lib$name.$shlibext" |
| 9189 | if test -f "$dir/lib$name.la"; then |
| 9190 | found_la="$dir/lib$name.la" |
| 9191 | fi |
| 9192 | else |
| 9193 | if test -f "$dir/lib$name.$libext"; then |
| 9194 | found_dir="$dir" |
| 9195 | found_a="$dir/lib$name.$libext" |
| 9196 | if test -f "$dir/lib$name.la"; then |
| 9197 | found_la="$dir/lib$name.la" |
| 9198 | fi |
| 9199 | fi |
| 9200 | fi |
| 9201 | ;; |
| 9202 | esac |
| 9203 | if test "X$found_dir" != "X"; then |
| 9204 | break |
| 9205 | fi |
| 9206 | done |
| 9207 | fi |
| 9208 | if test "X$found_dir" != "X"; then |
| 9209 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9210 | if test "X$found_so" != "X"; then |
| 9211 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9212 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9213 | else |
| 9214 | haveit= |
| 9215 | for x in $ltrpathdirs; do |
| 9216 | if test "X$x" = "X$found_dir"; then |
| 9217 | haveit=yes |
| 9218 | break |
| 9219 | fi |
| 9220 | done |
| 9221 | if test -z "$haveit"; then |
| 9222 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9223 | fi |
| 9224 | if test "$hardcode_direct" = yes; then |
| 9225 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9226 | else |
| 9227 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9228 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9229 | haveit= |
| 9230 | for x in $rpathdirs; do |
| 9231 | if test "X$x" = "X$found_dir"; then |
| 9232 | haveit=yes |
| 9233 | break |
| 9234 | fi |
| 9235 | done |
| 9236 | if test -z "$haveit"; then |
| 9237 | rpathdirs="$rpathdirs $found_dir" |
| 9238 | fi |
| 9239 | else |
| 9240 | haveit= |
| 9241 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9242 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9243 | acl_save_prefix="$prefix" |
| 9244 | prefix="$acl_final_prefix" |
| 9245 | acl_save_exec_prefix="$exec_prefix" |
| 9246 | exec_prefix="$acl_final_exec_prefix" |
| 9247 | eval x=\"$x\" |
| 9248 | exec_prefix="$acl_save_exec_prefix" |
| 9249 | prefix="$acl_save_prefix" |
| 9250 | |
| 9251 | if test "X$x" = "X-L$found_dir"; then |
| 9252 | haveit=yes |
| 9253 | break |
| 9254 | fi |
| 9255 | done |
| 9256 | if test -z "$haveit"; then |
| 9257 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9258 | fi |
| 9259 | if test "$hardcode_minus_L" != no; then |
| 9260 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9261 | else |
| 9262 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9263 | fi |
| 9264 | fi |
| 9265 | fi |
| 9266 | fi |
| 9267 | else |
| 9268 | if test "X$found_a" != "X"; then |
| 9269 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9270 | else |
| 9271 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9272 | fi |
| 9273 | fi |
| 9274 | additional_includedir= |
| 9275 | case "$found_dir" in |
| 9276 | */lib | */lib/) |
| 9277 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9278 | additional_includedir="$basedir/include" |
| 9279 | ;; |
| 9280 | esac |
| 9281 | if test "X$additional_includedir" != "X"; then |
| 9282 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9283 | haveit= |
| 9284 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9285 | if test -n "$GCC"; then |
| 9286 | case $host_os in |
| 9287 | linux*) haveit=yes;; |
| 9288 | esac |
| 9289 | fi |
| 9290 | fi |
| 9291 | if test -z "$haveit"; then |
| 9292 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9293 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9294 | acl_save_prefix="$prefix" |
| 9295 | prefix="$acl_final_prefix" |
| 9296 | acl_save_exec_prefix="$exec_prefix" |
| 9297 | exec_prefix="$acl_final_exec_prefix" |
| 9298 | eval x=\"$x\" |
| 9299 | exec_prefix="$acl_save_exec_prefix" |
| 9300 | prefix="$acl_save_prefix" |
| 9301 | |
| 9302 | if test "X$x" = "X-I$additional_includedir"; then |
| 9303 | haveit=yes |
| 9304 | break |
| 9305 | fi |
| 9306 | done |
| 9307 | if test -z "$haveit"; then |
| 9308 | if test -d "$additional_includedir"; then |
| 9309 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9310 | fi |
| 9311 | fi |
| 9312 | fi |
| 9313 | fi |
| 9314 | fi |
| 9315 | if test -n "$found_la"; then |
| 9316 | save_libdir="$libdir" |
| 9317 | case "$found_la" in |
| 9318 | */* | *\\*) . "$found_la" ;; |
| 9319 | *) . "./$found_la" ;; |
| 9320 | esac |
| 9321 | libdir="$save_libdir" |
| 9322 | for dep in $dependency_libs; do |
| 9323 | case "$dep" in |
| 9324 | -L*) |
| 9325 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9326 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9327 | haveit= |
| 9328 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9329 | if test -n "$GCC"; then |
| 9330 | case $host_os in |
| 9331 | linux*) haveit=yes;; |
| 9332 | esac |
| 9333 | fi |
| 9334 | fi |
| 9335 | if test -z "$haveit"; then |
| 9336 | haveit= |
| 9337 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9338 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9339 | acl_save_prefix="$prefix" |
| 9340 | prefix="$acl_final_prefix" |
| 9341 | acl_save_exec_prefix="$exec_prefix" |
| 9342 | exec_prefix="$acl_final_exec_prefix" |
| 9343 | eval x=\"$x\" |
| 9344 | exec_prefix="$acl_save_exec_prefix" |
| 9345 | prefix="$acl_save_prefix" |
| 9346 | |
| 9347 | if test "X$x" = "X-L$additional_libdir"; then |
| 9348 | haveit=yes |
| 9349 | break |
| 9350 | fi |
| 9351 | done |
| 9352 | if test -z "$haveit"; then |
| 9353 | if test -d "$additional_libdir"; then |
| 9354 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9355 | fi |
| 9356 | fi |
| 9357 | haveit= |
| 9358 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9359 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9360 | acl_save_prefix="$prefix" |
| 9361 | prefix="$acl_final_prefix" |
| 9362 | acl_save_exec_prefix="$exec_prefix" |
| 9363 | exec_prefix="$acl_final_exec_prefix" |
| 9364 | eval x=\"$x\" |
| 9365 | exec_prefix="$acl_save_exec_prefix" |
| 9366 | prefix="$acl_save_prefix" |
| 9367 | |
| 9368 | if test "X$x" = "X-L$additional_libdir"; then |
| 9369 | haveit=yes |
| 9370 | break |
| 9371 | fi |
| 9372 | done |
| 9373 | if test -z "$haveit"; then |
| 9374 | if test -d "$additional_libdir"; then |
| 9375 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9376 | fi |
| 9377 | fi |
| 9378 | fi |
| 9379 | fi |
| 9380 | ;; |
| 9381 | -R*) |
| 9382 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9383 | if test "$enable_rpath" != no; then |
| 9384 | haveit= |
| 9385 | for x in $rpathdirs; do |
| 9386 | if test "X$x" = "X$dir"; then |
| 9387 | haveit=yes |
| 9388 | break |
| 9389 | fi |
| 9390 | done |
| 9391 | if test -z "$haveit"; then |
| 9392 | rpathdirs="$rpathdirs $dir" |
| 9393 | fi |
| 9394 | haveit= |
| 9395 | for x in $ltrpathdirs; do |
| 9396 | if test "X$x" = "X$dir"; then |
| 9397 | haveit=yes |
| 9398 | break |
| 9399 | fi |
| 9400 | done |
| 9401 | if test -z "$haveit"; then |
| 9402 | ltrpathdirs="$ltrpathdirs $dir" |
| 9403 | fi |
| 9404 | fi |
| 9405 | ;; |
| 9406 | -l*) |
| 9407 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9408 | ;; |
| 9409 | *.la) |
| 9410 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9411 | ;; |
| 9412 | *) |
| 9413 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9414 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9415 | ;; |
| 9416 | esac |
| 9417 | done |
| 9418 | fi |
| 9419 | else |
| 9420 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9421 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9422 | fi |
| 9423 | fi |
| 9424 | fi |
| 9425 | done |
| 9426 | done |
| 9427 | if test "X$rpathdirs" != "X"; then |
| 9428 | if test -n "$hardcode_libdir_separator"; then |
| 9429 | alldirs= |
| 9430 | for found_dir in $rpathdirs; do |
| 9431 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9432 | done |
| 9433 | acl_save_libdir="$libdir" |
| 9434 | libdir="$alldirs" |
| 9435 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9436 | libdir="$acl_save_libdir" |
| 9437 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9438 | else |
| 9439 | for found_dir in $rpathdirs; do |
| 9440 | acl_save_libdir="$libdir" |
| 9441 | libdir="$found_dir" |
| 9442 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9443 | libdir="$acl_save_libdir" |
| 9444 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9445 | done |
| 9446 | fi |
| 9447 | fi |
| 9448 | if test "X$ltrpathdirs" != "X"; then |
| 9449 | for found_dir in $ltrpathdirs; do |
| 9450 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9451 | done |
| 9452 | fi |
| 9453 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9454 | |
| 9455 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9457 | |
| 9458 | |
| 9459 | |
| 9460 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9461 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 9462 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9463 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 9464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9465 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9466 | cat >conftest.$ac_ext <<_ACEOF |
| 9467 | /* confdefs.h. */ |
| 9468 | _ACEOF |
| 9469 | cat confdefs.h >>conftest.$ac_ext |
| 9470 | cat >>conftest.$ac_ext <<_ACEOF |
| 9471 | /* end confdefs.h. */ |
| 9472 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9473 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9474 | int |
| 9475 | main () |
| 9476 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9477 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9478 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9479 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9480 | return 0; |
| 9481 | ; |
| 9482 | return 0; |
| 9483 | } |
| 9484 | _ACEOF |
| 9485 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9486 | if { (ac_try="$ac_compile" |
| 9487 | case "(($ac_try" in |
| 9488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9489 | *) ac_try_echo=$ac_try;; |
| 9490 | esac |
| 9491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9492 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9493 | ac_status=$? |
| 9494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9495 | rm -f conftest.er1 |
| 9496 | cat conftest.err >&5 |
| 9497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9498 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9500 | { (case "(($ac_try" in |
| 9501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9502 | *) ac_try_echo=$ac_try;; |
| 9503 | esac |
| 9504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9505 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9506 | ac_status=$? |
| 9507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9508 | (exit $ac_status); }; } && |
| 9509 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9510 | { (case "(($ac_try" in |
| 9511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9512 | *) ac_try_echo=$ac_try;; |
| 9513 | esac |
| 9514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9515 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9516 | ac_status=$? |
| 9517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9518 | (exit $ac_status); }; }; then |
| 9519 | ac_cv_type_ptrdiff_t=yes |
| 9520 | else |
| 9521 | echo "$as_me: failed program was:" >&5 |
| 9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9524 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9525 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9526 | |
| 9527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9528 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9529 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9530 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9531 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 9532 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9533 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9534 | |
| 9535 | cat >>confdefs.h <<\_ACEOF |
| 9536 | #define ptrdiff_t long |
| 9537 | _ACEOF |
| 9538 | |
| 9539 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9540 | fi |
| 9541 | |
| 9542 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9543 | |
| 9544 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9545 | |
| 9546 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9547 | |
| 9548 | |
| 9549 | |
| 9550 | |
| 9551 | |
| 9552 | 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] | 9553 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9554 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9555 | 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^] | 9556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9557 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9559 | 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] | 9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9561 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9562 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9563 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9564 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9565 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9566 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9567 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9569 | cat >conftest.$ac_ext <<_ACEOF |
| 9570 | /* confdefs.h. */ |
| 9571 | _ACEOF |
| 9572 | cat confdefs.h >>conftest.$ac_ext |
| 9573 | cat >>conftest.$ac_ext <<_ACEOF |
| 9574 | /* end confdefs.h. */ |
| 9575 | $ac_includes_default |
| 9576 | #include <$ac_header> |
| 9577 | _ACEOF |
| 9578 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9579 | if { (ac_try="$ac_compile" |
| 9580 | case "(($ac_try" in |
| 9581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9582 | *) ac_try_echo=$ac_try;; |
| 9583 | esac |
| 9584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9585 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9586 | ac_status=$? |
| 9587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9588 | rm -f conftest.er1 |
| 9589 | cat conftest.err >&5 |
| 9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9591 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9593 | { (case "(($ac_try" in |
| 9594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9595 | *) ac_try_echo=$ac_try;; |
| 9596 | esac |
| 9597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9598 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9599 | ac_status=$? |
| 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9601 | (exit $ac_status); }; } && |
| 9602 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9603 | { (case "(($ac_try" in |
| 9604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9605 | *) ac_try_echo=$ac_try;; |
| 9606 | esac |
| 9607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9608 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9609 | ac_status=$? |
| 9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9611 | (exit $ac_status); }; }; then |
| 9612 | ac_header_compiler=yes |
| 9613 | else |
| 9614 | echo "$as_me: failed program was:" >&5 |
| 9615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9616 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9617 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9618 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9619 | |
| 9620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9621 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9622 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9623 | |
| 9624 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9625 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9627 | cat >conftest.$ac_ext <<_ACEOF |
| 9628 | /* confdefs.h. */ |
| 9629 | _ACEOF |
| 9630 | cat confdefs.h >>conftest.$ac_ext |
| 9631 | cat >>conftest.$ac_ext <<_ACEOF |
| 9632 | /* end confdefs.h. */ |
| 9633 | #include <$ac_header> |
| 9634 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9636 | case "(($ac_try" in |
| 9637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9638 | *) ac_try_echo=$ac_try;; |
| 9639 | esac |
| 9640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9642 | ac_status=$? |
| 9643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9644 | rm -f conftest.er1 |
| 9645 | cat conftest.err >&5 |
| 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); } >/dev/null; then |
| 9648 | if test -s conftest.err; then |
| 9649 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9651 | else |
| 9652 | ac_cpp_err= |
| 9653 | fi |
| 9654 | else |
| 9655 | ac_cpp_err=yes |
| 9656 | fi |
| 9657 | if test -z "$ac_cpp_err"; then |
| 9658 | ac_header_preproc=yes |
| 9659 | else |
| 9660 | echo "$as_me: failed program was:" >&5 |
| 9661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9662 | |
| 9663 | ac_header_preproc=no |
| 9664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9665 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9667 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9668 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9669 | |
| 9670 | # So? What about this header? |
| 9671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9672 | yes:no: ) |
| 9673 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9677 | ac_header_preproc=yes |
| 9678 | ;; |
| 9679 | no:yes:* ) |
| 9680 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9682 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9683 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9684 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9686 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9687 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9690 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9691 | 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^] | 9692 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9693 | ;; |
| 9694 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9695 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9697 | 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] | 9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9699 | else |
| 9700 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9701 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9702 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9704 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9705 | |
| 9706 | fi |
| 9707 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9708 | cat >>confdefs.h <<_ACEOF |
| 9709 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9710 | _ACEOF |
| 9711 | |
| 9712 | fi |
| 9713 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9714 | done |
| 9715 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9716 | |
| 9717 | |
| 9718 | |
| 9719 | |
| 9720 | |
| 9721 | |
| 9722 | |
| 9723 | |
| 9724 | |
| 9725 | |
| 9726 | |
| 9727 | |
| 9728 | |
| 9729 | |
| 9730 | |
| 9731 | |
| 9732 | |
| 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | |
| 9738 | |
| 9739 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9740 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9741 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9742 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9743 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9744 | 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^] | 9745 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9746 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9747 | 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] | 9748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9749 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9750 | cat >conftest.$ac_ext <<_ACEOF |
| 9751 | /* confdefs.h. */ |
| 9752 | _ACEOF |
| 9753 | cat confdefs.h >>conftest.$ac_ext |
| 9754 | cat >>conftest.$ac_ext <<_ACEOF |
| 9755 | /* end confdefs.h. */ |
| 9756 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9758 | #define $ac_func innocuous_$ac_func |
| 9759 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9760 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9761 | which can conflict with char $ac_func (); below. |
| 9762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9763 | <limits.h> exists even on freestanding compilers. */ |
| 9764 | |
| 9765 | #ifdef __STDC__ |
| 9766 | # include <limits.h> |
| 9767 | #else |
| 9768 | # include <assert.h> |
| 9769 | #endif |
| 9770 | |
| 9771 | #undef $ac_func |
| 9772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9773 | /* Override any GCC internal prototype to avoid an error. |
| 9774 | Use char because int might match the return type of a GCC |
| 9775 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9776 | #ifdef __cplusplus |
| 9777 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9778 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9779 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9780 | /* The GNU C library defines this for functions which it implements |
| 9781 | to always fail with ENOSYS. Some functions are actually named |
| 9782 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9783 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9784 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9785 | #endif |
| 9786 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9787 | int |
| 9788 | main () |
| 9789 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9790 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9791 | ; |
| 9792 | return 0; |
| 9793 | } |
| 9794 | _ACEOF |
| 9795 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9796 | if { (ac_try="$ac_link" |
| 9797 | case "(($ac_try" in |
| 9798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9799 | *) ac_try_echo=$ac_try;; |
| 9800 | esac |
| 9801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9802 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9803 | ac_status=$? |
| 9804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9805 | rm -f conftest.er1 |
| 9806 | cat conftest.err >&5 |
| 9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9808 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9810 | { (case "(($ac_try" in |
| 9811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9812 | *) ac_try_echo=$ac_try;; |
| 9813 | esac |
| 9814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9815 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9816 | ac_status=$? |
| 9817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9818 | (exit $ac_status); }; } && |
| 9819 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9820 | { (case "(($ac_try" in |
| 9821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9822 | *) ac_try_echo=$ac_try;; |
| 9823 | esac |
| 9824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9825 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9826 | ac_status=$? |
| 9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9828 | (exit $ac_status); }; }; then |
| 9829 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9830 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9831 | echo "$as_me: failed program was:" >&5 |
| 9832 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9833 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9834 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9835 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9836 | |
| 9837 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9838 | conftest$ac_exeext conftest.$ac_ext |
| 9839 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9840 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9841 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9842 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9844 | cat >>confdefs.h <<_ACEOF |
| 9845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9846 | _ACEOF |
| 9847 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9848 | fi |
| 9849 | done |
| 9850 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9851 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9852 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9853 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9854 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9855 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9857 | else |
| 9858 | cat >conftest.$ac_ext <<_ACEOF |
| 9859 | /* confdefs.h. */ |
| 9860 | _ACEOF |
| 9861 | cat confdefs.h >>conftest.$ac_ext |
| 9862 | cat >>conftest.$ac_ext <<_ACEOF |
| 9863 | /* end confdefs.h. */ |
| 9864 | #include <stdio.h> |
| 9865 | int |
| 9866 | main () |
| 9867 | { |
| 9868 | |
| 9869 | #ifndef _snprintf |
| 9870 | char *p = (char *) _snprintf; |
| 9871 | #endif |
| 9872 | |
| 9873 | ; |
| 9874 | return 0; |
| 9875 | } |
| 9876 | _ACEOF |
| 9877 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9878 | if { (ac_try="$ac_compile" |
| 9879 | case "(($ac_try" in |
| 9880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9881 | *) ac_try_echo=$ac_try;; |
| 9882 | esac |
| 9883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9884 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9885 | ac_status=$? |
| 9886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9887 | rm -f conftest.er1 |
| 9888 | cat conftest.err >&5 |
| 9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9890 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9892 | { (case "(($ac_try" in |
| 9893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9894 | *) ac_try_echo=$ac_try;; |
| 9895 | esac |
| 9896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9897 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9898 | ac_status=$? |
| 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9900 | (exit $ac_status); }; } && |
| 9901 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9902 | { (case "(($ac_try" in |
| 9903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9904 | *) ac_try_echo=$ac_try;; |
| 9905 | esac |
| 9906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9907 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9908 | ac_status=$? |
| 9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9910 | (exit $ac_status); }; }; then |
| 9911 | ac_cv_have_decl__snprintf=yes |
| 9912 | else |
| 9913 | echo "$as_me: failed program was:" >&5 |
| 9914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9915 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9916 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9917 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9918 | |
| 9919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9920 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9921 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9922 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9923 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9924 | gt_value=1 |
| 9925 | else |
| 9926 | gt_value=0 |
| 9927 | fi |
| 9928 | |
| 9929 | cat >>confdefs.h <<_ACEOF |
| 9930 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9931 | _ACEOF |
| 9932 | |
| 9933 | |
| 9934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9935 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9936 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9937 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9939 | else |
| 9940 | cat >conftest.$ac_ext <<_ACEOF |
| 9941 | /* confdefs.h. */ |
| 9942 | _ACEOF |
| 9943 | cat confdefs.h >>conftest.$ac_ext |
| 9944 | cat >>conftest.$ac_ext <<_ACEOF |
| 9945 | /* end confdefs.h. */ |
| 9946 | #include <stdio.h> |
| 9947 | int |
| 9948 | main () |
| 9949 | { |
| 9950 | |
| 9951 | #ifndef _snwprintf |
| 9952 | char *p = (char *) _snwprintf; |
| 9953 | #endif |
| 9954 | |
| 9955 | ; |
| 9956 | return 0; |
| 9957 | } |
| 9958 | _ACEOF |
| 9959 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9960 | if { (ac_try="$ac_compile" |
| 9961 | case "(($ac_try" in |
| 9962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9963 | *) ac_try_echo=$ac_try;; |
| 9964 | esac |
| 9965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9966 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9967 | ac_status=$? |
| 9968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9969 | rm -f conftest.er1 |
| 9970 | cat conftest.err >&5 |
| 9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9972 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9974 | { (case "(($ac_try" in |
| 9975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9976 | *) ac_try_echo=$ac_try;; |
| 9977 | esac |
| 9978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9979 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9980 | ac_status=$? |
| 9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9982 | (exit $ac_status); }; } && |
| 9983 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9984 | { (case "(($ac_try" in |
| 9985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9986 | *) ac_try_echo=$ac_try;; |
| 9987 | esac |
| 9988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9989 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9990 | ac_status=$? |
| 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9992 | (exit $ac_status); }; }; then |
| 9993 | ac_cv_have_decl__snwprintf=yes |
| 9994 | else |
| 9995 | echo "$as_me: failed program was:" >&5 |
| 9996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9997 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 9998 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9999 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10000 | |
| 10001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10002 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10003 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 10004 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10005 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 10006 | gt_value=1 |
| 10007 | else |
| 10008 | gt_value=0 |
| 10009 | fi |
| 10010 | |
| 10011 | cat >>confdefs.h <<_ACEOF |
| 10012 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 10013 | _ACEOF |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10018 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 10019 | 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] | 10020 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 10021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10022 | else |
| 10023 | cat >conftest.$ac_ext <<_ACEOF |
| 10024 | /* confdefs.h. */ |
| 10025 | _ACEOF |
| 10026 | cat confdefs.h >>conftest.$ac_ext |
| 10027 | cat >>conftest.$ac_ext <<_ACEOF |
| 10028 | /* end confdefs.h. */ |
| 10029 | #include <stdio.h> |
| 10030 | int |
| 10031 | main () |
| 10032 | { |
| 10033 | |
| 10034 | #ifndef feof_unlocked |
| 10035 | char *p = (char *) feof_unlocked; |
| 10036 | #endif |
| 10037 | |
| 10038 | ; |
| 10039 | return 0; |
| 10040 | } |
| 10041 | _ACEOF |
| 10042 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10043 | if { (ac_try="$ac_compile" |
| 10044 | case "(($ac_try" in |
| 10045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10046 | *) ac_try_echo=$ac_try;; |
| 10047 | esac |
| 10048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10049 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10050 | ac_status=$? |
| 10051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10052 | rm -f conftest.er1 |
| 10053 | cat conftest.err >&5 |
| 10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10055 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10057 | { (case "(($ac_try" in |
| 10058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10059 | *) ac_try_echo=$ac_try;; |
| 10060 | esac |
| 10061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10062 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10063 | ac_status=$? |
| 10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10065 | (exit $ac_status); }; } && |
| 10066 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10067 | { (case "(($ac_try" in |
| 10068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10069 | *) ac_try_echo=$ac_try;; |
| 10070 | esac |
| 10071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10072 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10073 | ac_status=$? |
| 10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10075 | (exit $ac_status); }; }; then |
| 10076 | ac_cv_have_decl_feof_unlocked=yes |
| 10077 | else |
| 10078 | echo "$as_me: failed program was:" >&5 |
| 10079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10080 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10081 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10082 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10083 | |
| 10084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10085 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10086 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 10087 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10088 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 10089 | gt_value=1 |
| 10090 | else |
| 10091 | gt_value=0 |
| 10092 | fi |
| 10093 | |
| 10094 | cat >>confdefs.h <<_ACEOF |
| 10095 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 10096 | _ACEOF |
| 10097 | |
| 10098 | |
| 10099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10100 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 10101 | 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] | 10102 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10104 | else |
| 10105 | cat >conftest.$ac_ext <<_ACEOF |
| 10106 | /* confdefs.h. */ |
| 10107 | _ACEOF |
| 10108 | cat confdefs.h >>conftest.$ac_ext |
| 10109 | cat >>conftest.$ac_ext <<_ACEOF |
| 10110 | /* end confdefs.h. */ |
| 10111 | #include <stdio.h> |
| 10112 | int |
| 10113 | main () |
| 10114 | { |
| 10115 | |
| 10116 | #ifndef fgets_unlocked |
| 10117 | char *p = (char *) fgets_unlocked; |
| 10118 | #endif |
| 10119 | |
| 10120 | ; |
| 10121 | return 0; |
| 10122 | } |
| 10123 | _ACEOF |
| 10124 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10125 | if { (ac_try="$ac_compile" |
| 10126 | case "(($ac_try" in |
| 10127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10128 | *) ac_try_echo=$ac_try;; |
| 10129 | esac |
| 10130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10131 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10132 | ac_status=$? |
| 10133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10134 | rm -f conftest.er1 |
| 10135 | cat conftest.err >&5 |
| 10136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10137 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10139 | { (case "(($ac_try" in |
| 10140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10141 | *) ac_try_echo=$ac_try;; |
| 10142 | esac |
| 10143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10144 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10145 | ac_status=$? |
| 10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10147 | (exit $ac_status); }; } && |
| 10148 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10149 | { (case "(($ac_try" in |
| 10150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10151 | *) ac_try_echo=$ac_try;; |
| 10152 | esac |
| 10153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10154 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10155 | ac_status=$? |
| 10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10157 | (exit $ac_status); }; }; then |
| 10158 | ac_cv_have_decl_fgets_unlocked=yes |
| 10159 | else |
| 10160 | echo "$as_me: failed program was:" >&5 |
| 10161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10162 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10163 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10164 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10165 | |
| 10166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10167 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10168 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 10169 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10170 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 10171 | gt_value=1 |
| 10172 | else |
| 10173 | gt_value=0 |
| 10174 | fi |
| 10175 | |
| 10176 | cat >>confdefs.h <<_ACEOF |
| 10177 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 10178 | _ACEOF |
| 10179 | |
| 10180 | |
| 10181 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10182 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 10183 | 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] | 10184 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 10185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10186 | else |
| 10187 | cat >conftest.$ac_ext <<_ACEOF |
| 10188 | /* confdefs.h. */ |
| 10189 | _ACEOF |
| 10190 | cat confdefs.h >>conftest.$ac_ext |
| 10191 | cat >>conftest.$ac_ext <<_ACEOF |
| 10192 | /* end confdefs.h. */ |
| 10193 | #include <stdio.h> |
| 10194 | int |
| 10195 | main () |
| 10196 | { |
| 10197 | |
| 10198 | #ifndef getc_unlocked |
| 10199 | char *p = (char *) getc_unlocked; |
| 10200 | #endif |
| 10201 | |
| 10202 | ; |
| 10203 | return 0; |
| 10204 | } |
| 10205 | _ACEOF |
| 10206 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10207 | if { (ac_try="$ac_compile" |
| 10208 | case "(($ac_try" in |
| 10209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10210 | *) ac_try_echo=$ac_try;; |
| 10211 | esac |
| 10212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10213 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10214 | ac_status=$? |
| 10215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10216 | rm -f conftest.er1 |
| 10217 | cat conftest.err >&5 |
| 10218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10219 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10221 | { (case "(($ac_try" in |
| 10222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10223 | *) ac_try_echo=$ac_try;; |
| 10224 | esac |
| 10225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10226 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10227 | ac_status=$? |
| 10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10229 | (exit $ac_status); }; } && |
| 10230 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10231 | { (case "(($ac_try" in |
| 10232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10233 | *) ac_try_echo=$ac_try;; |
| 10234 | esac |
| 10235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10236 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10237 | ac_status=$? |
| 10238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10239 | (exit $ac_status); }; }; then |
| 10240 | ac_cv_have_decl_getc_unlocked=yes |
| 10241 | else |
| 10242 | echo "$as_me: failed program was:" >&5 |
| 10243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10244 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10245 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10246 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10247 | |
| 10248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10249 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10250 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 10251 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10252 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 10253 | gt_value=1 |
| 10254 | else |
| 10255 | gt_value=0 |
| 10256 | fi |
| 10257 | |
| 10258 | cat >>confdefs.h <<_ACEOF |
| 10259 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 10260 | _ACEOF |
| 10261 | |
| 10262 | |
| 10263 | |
| 10264 | case $gt_cv_func_printf_posix in |
| 10265 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10266 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10267 | esac |
| 10268 | |
| 10269 | if test "$ac_cv_func_asprintf" = yes; then |
| 10270 | HAVE_ASPRINTF=1 |
| 10271 | else |
| 10272 | HAVE_ASPRINTF=0 |
| 10273 | fi |
| 10274 | |
| 10275 | if test "$ac_cv_func_snprintf" = yes; then |
| 10276 | HAVE_SNPRINTF=1 |
| 10277 | else |
| 10278 | HAVE_SNPRINTF=0 |
| 10279 | fi |
| 10280 | |
| 10281 | if test "$ac_cv_func_wprintf" = yes; then |
| 10282 | HAVE_WPRINTF=1 |
| 10283 | else |
| 10284 | HAVE_WPRINTF=0 |
| 10285 | fi |
| 10286 | |
| 10287 | |
| 10288 | |
| 10289 | |
| 10290 | |
| 10291 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10292 | |
| 10293 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10294 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10295 | for element in $INCICONV; do |
| 10296 | haveit= |
| 10297 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10298 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10299 | acl_save_prefix="$prefix" |
| 10300 | prefix="$acl_final_prefix" |
| 10301 | acl_save_exec_prefix="$exec_prefix" |
| 10302 | exec_prefix="$acl_final_exec_prefix" |
| 10303 | eval x=\"$x\" |
| 10304 | exec_prefix="$acl_save_exec_prefix" |
| 10305 | prefix="$acl_save_prefix" |
| 10306 | |
| 10307 | if test "X$x" = "X$element"; then |
| 10308 | haveit=yes |
| 10309 | break |
| 10310 | fi |
| 10311 | done |
| 10312 | if test -z "$haveit"; then |
| 10313 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10314 | fi |
| 10315 | done |
| 10316 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10317 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10318 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10319 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10320 | if test "${am_cv_func_iconv+set}" = set; then |
| 10321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10322 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10323 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10324 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10325 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10326 | cat >conftest.$ac_ext <<_ACEOF |
| 10327 | /* confdefs.h. */ |
| 10328 | _ACEOF |
| 10329 | cat confdefs.h >>conftest.$ac_ext |
| 10330 | cat >>conftest.$ac_ext <<_ACEOF |
| 10331 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10332 | #include <stdlib.h> |
| 10333 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10334 | int |
| 10335 | main () |
| 10336 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10337 | iconv_t cd = iconv_open("",""); |
| 10338 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10339 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10340 | ; |
| 10341 | return 0; |
| 10342 | } |
| 10343 | _ACEOF |
| 10344 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10345 | if { (ac_try="$ac_link" |
| 10346 | case "(($ac_try" in |
| 10347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10348 | *) ac_try_echo=$ac_try;; |
| 10349 | esac |
| 10350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10351 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10352 | ac_status=$? |
| 10353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10354 | rm -f conftest.er1 |
| 10355 | cat conftest.err >&5 |
| 10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10357 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10359 | { (case "(($ac_try" in |
| 10360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10361 | *) ac_try_echo=$ac_try;; |
| 10362 | esac |
| 10363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10364 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10365 | ac_status=$? |
| 10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10367 | (exit $ac_status); }; } && |
| 10368 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10369 | { (case "(($ac_try" in |
| 10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10371 | *) ac_try_echo=$ac_try;; |
| 10372 | esac |
| 10373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10374 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10375 | ac_status=$? |
| 10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10377 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10378 | am_cv_func_iconv=yes |
| 10379 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10380 | echo "$as_me: failed program was:" >&5 |
| 10381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10382 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10383 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10385 | |
| 10386 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10387 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10388 | if test "$am_cv_func_iconv" != yes; then |
| 10389 | am_save_LIBS="$LIBS" |
| 10390 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10391 | cat >conftest.$ac_ext <<_ACEOF |
| 10392 | /* confdefs.h. */ |
| 10393 | _ACEOF |
| 10394 | cat confdefs.h >>conftest.$ac_ext |
| 10395 | cat >>conftest.$ac_ext <<_ACEOF |
| 10396 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10397 | #include <stdlib.h> |
| 10398 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10399 | int |
| 10400 | main () |
| 10401 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10402 | iconv_t cd = iconv_open("",""); |
| 10403 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10404 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10405 | ; |
| 10406 | return 0; |
| 10407 | } |
| 10408 | _ACEOF |
| 10409 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10410 | if { (ac_try="$ac_link" |
| 10411 | case "(($ac_try" in |
| 10412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10413 | *) ac_try_echo=$ac_try;; |
| 10414 | esac |
| 10415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10416 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10417 | ac_status=$? |
| 10418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10419 | rm -f conftest.er1 |
| 10420 | cat conftest.err >&5 |
| 10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10422 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10423 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10424 | { (case "(($ac_try" in |
| 10425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10426 | *) ac_try_echo=$ac_try;; |
| 10427 | esac |
| 10428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10429 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10430 | ac_status=$? |
| 10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10432 | (exit $ac_status); }; } && |
| 10433 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10434 | { (case "(($ac_try" in |
| 10435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10436 | *) ac_try_echo=$ac_try;; |
| 10437 | esac |
| 10438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10439 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10440 | ac_status=$? |
| 10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10442 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10443 | am_cv_lib_iconv=yes |
| 10444 | am_cv_func_iconv=yes |
| 10445 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10446 | echo "$as_me: failed program was:" >&5 |
| 10447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10448 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10449 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10450 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10451 | |
| 10452 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10453 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10454 | LIBS="$am_save_LIBS" |
| 10455 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10458 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10459 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10460 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10461 | |
| 10462 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10463 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10464 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10465 | |
| 10466 | fi |
| 10467 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10468 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 10469 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 10470 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 10471 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10472 | else |
| 10473 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10474 | LIBICONV= |
| 10475 | LTLIBICONV= |
| 10476 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10477 | |
| 10478 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10479 | |
| 10480 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10481 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10482 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10483 | if test "${am_cv_proto_iconv+set}" = set; then |
| 10484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10485 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10486 | |
| 10487 | cat >conftest.$ac_ext <<_ACEOF |
| 10488 | /* confdefs.h. */ |
| 10489 | _ACEOF |
| 10490 | cat confdefs.h >>conftest.$ac_ext |
| 10491 | cat >>conftest.$ac_ext <<_ACEOF |
| 10492 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10493 | |
| 10494 | #include <stdlib.h> |
| 10495 | #include <iconv.h> |
| 10496 | extern |
| 10497 | #ifdef __cplusplus |
| 10498 | "C" |
| 10499 | #endif |
| 10500 | #if defined(__STDC__) || defined(__cplusplus) |
| 10501 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10502 | #else |
| 10503 | size_t iconv(); |
| 10504 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10506 | int |
| 10507 | main () |
| 10508 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10510 | ; |
| 10511 | return 0; |
| 10512 | } |
| 10513 | _ACEOF |
| 10514 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10515 | if { (ac_try="$ac_compile" |
| 10516 | case "(($ac_try" in |
| 10517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10518 | *) ac_try_echo=$ac_try;; |
| 10519 | esac |
| 10520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10521 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10522 | ac_status=$? |
| 10523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10524 | rm -f conftest.er1 |
| 10525 | cat conftest.err >&5 |
| 10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10527 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10529 | { (case "(($ac_try" in |
| 10530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10531 | *) ac_try_echo=$ac_try;; |
| 10532 | esac |
| 10533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10534 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10535 | ac_status=$? |
| 10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10537 | (exit $ac_status); }; } && |
| 10538 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10539 | { (case "(($ac_try" in |
| 10540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10541 | *) ac_try_echo=$ac_try;; |
| 10542 | esac |
| 10543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10544 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10545 | ac_status=$? |
| 10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10547 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10548 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10549 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10550 | echo "$as_me: failed program was:" >&5 |
| 10551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10553 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10554 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10555 | |
| 10556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10557 | 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] | 10558 | fi |
| 10559 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10560 | 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^] | 10561 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10562 | }$am_cv_proto_iconv" >&5 |
| 10563 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10564 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10565 | |
| 10566 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10567 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10568 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10569 | |
| 10570 | fi |
| 10571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10572 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10573 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 10574 | 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] | 10575 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 10576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10577 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10578 | cat >conftest.$ac_ext <<_ACEOF |
| 10579 | /* confdefs.h. */ |
| 10580 | _ACEOF |
| 10581 | cat confdefs.h >>conftest.$ac_ext |
| 10582 | cat >>conftest.$ac_ext <<_ACEOF |
| 10583 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10584 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10585 | int |
| 10586 | main () |
| 10587 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10588 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10589 | ; |
| 10590 | return 0; |
| 10591 | } |
| 10592 | _ACEOF |
| 10593 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10594 | if { (ac_try="$ac_link" |
| 10595 | case "(($ac_try" in |
| 10596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10597 | *) ac_try_echo=$ac_try;; |
| 10598 | esac |
| 10599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10600 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10601 | ac_status=$? |
| 10602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10603 | rm -f conftest.er1 |
| 10604 | cat conftest.err >&5 |
| 10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10606 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10608 | { (case "(($ac_try" in |
| 10609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10610 | *) ac_try_echo=$ac_try;; |
| 10611 | esac |
| 10612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10613 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10614 | ac_status=$? |
| 10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10616 | (exit $ac_status); }; } && |
| 10617 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10618 | { (case "(($ac_try" in |
| 10619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10620 | *) ac_try_echo=$ac_try;; |
| 10621 | esac |
| 10622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10623 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10624 | ac_status=$? |
| 10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10626 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10627 | am_cv_langinfo_codeset=yes |
| 10628 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10629 | echo "$as_me: failed program was:" >&5 |
| 10630 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10632 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10633 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10634 | |
| 10635 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10636 | conftest$ac_exeext conftest.$ac_ext |
| 10637 | |
| 10638 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10639 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 10640 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10641 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10642 | |
| 10643 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10644 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10645 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10646 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10647 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10648 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10649 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10651 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 10652 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10653 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10655 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10656 | cat >conftest.$ac_ext <<_ACEOF |
| 10657 | /* confdefs.h. */ |
| 10658 | _ACEOF |
| 10659 | cat confdefs.h >>conftest.$ac_ext |
| 10660 | cat >>conftest.$ac_ext <<_ACEOF |
| 10661 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10662 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10663 | int |
| 10664 | main () |
| 10665 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10666 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10667 | ; |
| 10668 | return 0; |
| 10669 | } |
| 10670 | _ACEOF |
| 10671 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10672 | if { (ac_try="$ac_link" |
| 10673 | case "(($ac_try" in |
| 10674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10675 | *) ac_try_echo=$ac_try;; |
| 10676 | esac |
| 10677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10678 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10679 | ac_status=$? |
| 10680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10681 | rm -f conftest.er1 |
| 10682 | cat conftest.err >&5 |
| 10683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10684 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10686 | { (case "(($ac_try" in |
| 10687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10688 | *) ac_try_echo=$ac_try;; |
| 10689 | esac |
| 10690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10691 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10692 | ac_status=$? |
| 10693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10694 | (exit $ac_status); }; } && |
| 10695 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10696 | { (case "(($ac_try" in |
| 10697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10698 | *) ac_try_echo=$ac_try;; |
| 10699 | esac |
| 10700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10701 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10702 | ac_status=$? |
| 10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10704 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10705 | am_cv_val_LC_MESSAGES=yes |
| 10706 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10707 | echo "$as_me: failed program was:" >&5 |
| 10708 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10709 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10710 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10712 | |
| 10713 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10714 | conftest$ac_exeext conftest.$ac_ext |
| 10715 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10716 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10717 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10718 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10719 | |
| 10720 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10721 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10722 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10723 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10724 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10725 | |
| 10726 | fi |
| 10727 | |
| 10728 | for ac_prog in bison |
| 10729 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10730 | # 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] | 10731 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10732 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10734 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 10735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10736 | else |
| 10737 | if test -n "$INTLBISON"; then |
| 10738 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10739 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10741 | for as_dir in $PATH |
| 10742 | do |
| 10743 | IFS=$as_save_IFS |
| 10744 | test -z "$as_dir" && as_dir=. |
| 10745 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10746 | 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] | 10747 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10749 | break 2 |
| 10750 | fi |
| 10751 | done |
| 10752 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10753 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10754 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10755 | fi |
| 10756 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10758 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10759 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10760 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10761 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10762 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10763 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10764 | fi |
| 10765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10766 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10767 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10768 | done |
| 10769 | |
| 10770 | if test -z "$INTLBISON"; then |
| 10771 | ac_verc_fail=yes |
| 10772 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10773 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10774 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10775 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10776 | case $ac_prog_version in |
| 10777 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10778 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10779 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10780 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10781 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10782 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10783 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10784 | fi |
| 10785 | if test $ac_verc_fail = yes; then |
| 10786 | INTLBISON=: |
| 10787 | fi |
| 10788 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10789 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10790 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10791 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10792 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10793 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10794 | |
| 10795 | |
| 10796 | |
| 10797 | |
| 10798 | |
| 10799 | |
| 10800 | |
| 10801 | |
| 10802 | |
| 10803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10804 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10805 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 10806 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10807 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10808 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10809 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10810 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10811 | fi |
| 10812 | |
| 10813 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10814 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10815 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10816 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10817 | |
| 10818 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10819 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10820 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10821 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10822 | LIBINTL= |
| 10823 | LTLIBINTL= |
| 10824 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10825 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10826 | if test "$USE_NLS" = "yes"; then |
| 10827 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10828 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10829 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10830 | 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] | 10831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10832 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10833 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10834 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10835 | else |
| 10836 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10837 | fi |
| 10838 | |
| 10839 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10840 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10841 | |
| 10842 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10843 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10844 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10845 | |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10850 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10851 | 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] | 10852 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10854 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10855 | cat >conftest.$ac_ext <<_ACEOF |
| 10856 | /* confdefs.h. */ |
| 10857 | _ACEOF |
| 10858 | cat confdefs.h >>conftest.$ac_ext |
| 10859 | cat >>conftest.$ac_ext <<_ACEOF |
| 10860 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10861 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10862 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10863 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10864 | int |
| 10865 | main () |
| 10866 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10867 | bindtextdomain ("", ""); |
| 10868 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10869 | ; |
| 10870 | return 0; |
| 10871 | } |
| 10872 | _ACEOF |
| 10873 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10874 | if { (ac_try="$ac_link" |
| 10875 | case "(($ac_try" in |
| 10876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10877 | *) ac_try_echo=$ac_try;; |
| 10878 | esac |
| 10879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10880 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10881 | ac_status=$? |
| 10882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10883 | rm -f conftest.er1 |
| 10884 | cat conftest.err >&5 |
| 10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10886 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10888 | { (case "(($ac_try" in |
| 10889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10890 | *) ac_try_echo=$ac_try;; |
| 10891 | esac |
| 10892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10893 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10894 | ac_status=$? |
| 10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10896 | (exit $ac_status); }; } && |
| 10897 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10898 | { (case "(($ac_try" in |
| 10899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10900 | *) ac_try_echo=$ac_try;; |
| 10901 | esac |
| 10902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10903 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10904 | ac_status=$? |
| 10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10906 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10907 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10908 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10909 | echo "$as_me: failed program was:" >&5 |
| 10910 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10911 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10912 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10913 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10914 | |
| 10915 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10916 | conftest$ac_exeext conftest.$ac_ext |
| 10917 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10918 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10919 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10920 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10921 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10922 | |
| 10923 | |
| 10924 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10925 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10926 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10927 | acl_save_prefix="$prefix" |
| 10928 | prefix="$acl_final_prefix" |
| 10929 | acl_save_exec_prefix="$exec_prefix" |
| 10930 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10931 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10932 | eval additional_includedir=\"$includedir\" |
| 10933 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10934 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10935 | exec_prefix="$acl_save_exec_prefix" |
| 10936 | prefix="$acl_save_prefix" |
| 10937 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10939 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10940 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10941 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10942 | if test "X$withval" = "Xno"; then |
| 10943 | use_additional=no |
| 10944 | else |
| 10945 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10946 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10947 | acl_save_prefix="$prefix" |
| 10948 | prefix="$acl_final_prefix" |
| 10949 | acl_save_exec_prefix="$exec_prefix" |
| 10950 | exec_prefix="$acl_final_exec_prefix" |
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 | eval additional_includedir=\"$includedir\" |
| 10953 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10954 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10955 | exec_prefix="$acl_save_exec_prefix" |
| 10956 | prefix="$acl_save_prefix" |
| 10957 | |
| 10958 | else |
| 10959 | additional_includedir="$withval/include" |
| 10960 | additional_libdir="$withval/lib" |
| 10961 | fi |
| 10962 | fi |
| 10963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 10964 | fi |
| 10965 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10966 | LIBINTL= |
| 10967 | LTLIBINTL= |
| 10968 | INCINTL= |
| 10969 | rpathdirs= |
| 10970 | ltrpathdirs= |
| 10971 | names_already_handled= |
| 10972 | names_next_round='intl ' |
| 10973 | while test -n "$names_next_round"; do |
| 10974 | names_this_round="$names_next_round" |
| 10975 | names_next_round= |
| 10976 | for name in $names_this_round; do |
| 10977 | already_handled= |
| 10978 | for n in $names_already_handled; do |
| 10979 | if test "$n" = "$name"; then |
| 10980 | already_handled=yes |
| 10981 | break |
| 10982 | fi |
| 10983 | done |
| 10984 | if test -z "$already_handled"; then |
| 10985 | names_already_handled="$names_already_handled $name" |
| 10986 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10987 | eval value=\"\$HAVE_LIB$uppername\" |
| 10988 | if test -n "$value"; then |
| 10989 | if test "$value" = yes; then |
| 10990 | eval value=\"\$LIB$uppername\" |
| 10991 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10992 | eval value=\"\$LTLIB$uppername\" |
| 10993 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10994 | else |
| 10995 | : |
| 10996 | fi |
| 10997 | else |
| 10998 | found_dir= |
| 10999 | found_la= |
| 11000 | found_so= |
| 11001 | found_a= |
| 11002 | if test $use_additional = yes; then |
| 11003 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 11004 | found_dir="$additional_libdir" |
| 11005 | found_so="$additional_libdir/lib$name.$shlibext" |
| 11006 | if test -f "$additional_libdir/lib$name.la"; then |
| 11007 | found_la="$additional_libdir/lib$name.la" |
| 11008 | fi |
| 11009 | else |
| 11010 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 11011 | found_dir="$additional_libdir" |
| 11012 | found_a="$additional_libdir/lib$name.$libext" |
| 11013 | if test -f "$additional_libdir/lib$name.la"; then |
| 11014 | found_la="$additional_libdir/lib$name.la" |
| 11015 | fi |
| 11016 | fi |
| 11017 | fi |
| 11018 | fi |
| 11019 | if test "X$found_dir" = "X"; then |
| 11020 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11021 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11022 | acl_save_prefix="$prefix" |
| 11023 | prefix="$acl_final_prefix" |
| 11024 | acl_save_exec_prefix="$exec_prefix" |
| 11025 | exec_prefix="$acl_final_exec_prefix" |
| 11026 | eval x=\"$x\" |
| 11027 | exec_prefix="$acl_save_exec_prefix" |
| 11028 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11029 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11030 | case "$x" in |
| 11031 | -L*) |
| 11032 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 11033 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 11034 | found_dir="$dir" |
| 11035 | found_so="$dir/lib$name.$shlibext" |
| 11036 | if test -f "$dir/lib$name.la"; then |
| 11037 | found_la="$dir/lib$name.la" |
| 11038 | fi |
| 11039 | else |
| 11040 | if test -f "$dir/lib$name.$libext"; then |
| 11041 | found_dir="$dir" |
| 11042 | found_a="$dir/lib$name.$libext" |
| 11043 | if test -f "$dir/lib$name.la"; then |
| 11044 | found_la="$dir/lib$name.la" |
| 11045 | fi |
| 11046 | fi |
| 11047 | fi |
| 11048 | ;; |
| 11049 | esac |
| 11050 | if test "X$found_dir" != "X"; then |
| 11051 | break |
| 11052 | fi |
| 11053 | done |
| 11054 | fi |
| 11055 | if test "X$found_dir" != "X"; then |
| 11056 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11057 | if test "X$found_so" != "X"; then |
| 11058 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11059 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11060 | else |
| 11061 | haveit= |
| 11062 | for x in $ltrpathdirs; do |
| 11063 | if test "X$x" = "X$found_dir"; then |
| 11064 | haveit=yes |
| 11065 | break |
| 11066 | fi |
| 11067 | done |
| 11068 | if test -z "$haveit"; then |
| 11069 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11070 | fi |
| 11071 | if test "$hardcode_direct" = yes; then |
| 11072 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11073 | else |
| 11074 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11075 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11076 | haveit= |
| 11077 | for x in $rpathdirs; do |
| 11078 | if test "X$x" = "X$found_dir"; then |
| 11079 | haveit=yes |
| 11080 | break |
| 11081 | fi |
| 11082 | done |
| 11083 | if test -z "$haveit"; then |
| 11084 | rpathdirs="$rpathdirs $found_dir" |
| 11085 | fi |
| 11086 | else |
| 11087 | haveit= |
| 11088 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11089 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11090 | acl_save_prefix="$prefix" |
| 11091 | prefix="$acl_final_prefix" |
| 11092 | acl_save_exec_prefix="$exec_prefix" |
| 11093 | exec_prefix="$acl_final_exec_prefix" |
| 11094 | eval x=\"$x\" |
| 11095 | exec_prefix="$acl_save_exec_prefix" |
| 11096 | prefix="$acl_save_prefix" |
| 11097 | |
| 11098 | if test "X$x" = "X-L$found_dir"; then |
| 11099 | haveit=yes |
| 11100 | break |
| 11101 | fi |
| 11102 | done |
| 11103 | if test -z "$haveit"; then |
| 11104 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11105 | fi |
| 11106 | if test "$hardcode_minus_L" != no; then |
| 11107 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11108 | else |
| 11109 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11110 | fi |
| 11111 | fi |
| 11112 | fi |
| 11113 | fi |
| 11114 | else |
| 11115 | if test "X$found_a" != "X"; then |
| 11116 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11117 | else |
| 11118 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11119 | fi |
| 11120 | fi |
| 11121 | additional_includedir= |
| 11122 | case "$found_dir" in |
| 11123 | */lib | */lib/) |
| 11124 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11125 | additional_includedir="$basedir/include" |
| 11126 | ;; |
| 11127 | esac |
| 11128 | if test "X$additional_includedir" != "X"; then |
| 11129 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11130 | haveit= |
| 11131 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11132 | if test -n "$GCC"; then |
| 11133 | case $host_os in |
| 11134 | linux*) haveit=yes;; |
| 11135 | esac |
| 11136 | fi |
| 11137 | fi |
| 11138 | if test -z "$haveit"; then |
| 11139 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11140 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11141 | acl_save_prefix="$prefix" |
| 11142 | prefix="$acl_final_prefix" |
| 11143 | acl_save_exec_prefix="$exec_prefix" |
| 11144 | exec_prefix="$acl_final_exec_prefix" |
| 11145 | eval x=\"$x\" |
| 11146 | exec_prefix="$acl_save_exec_prefix" |
| 11147 | prefix="$acl_save_prefix" |
| 11148 | |
| 11149 | if test "X$x" = "X-I$additional_includedir"; then |
| 11150 | haveit=yes |
| 11151 | break |
| 11152 | fi |
| 11153 | done |
| 11154 | if test -z "$haveit"; then |
| 11155 | if test -d "$additional_includedir"; then |
| 11156 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11157 | fi |
| 11158 | fi |
| 11159 | fi |
| 11160 | fi |
| 11161 | fi |
| 11162 | if test -n "$found_la"; then |
| 11163 | save_libdir="$libdir" |
| 11164 | case "$found_la" in |
| 11165 | */* | *\\*) . "$found_la" ;; |
| 11166 | *) . "./$found_la" ;; |
| 11167 | esac |
| 11168 | libdir="$save_libdir" |
| 11169 | for dep in $dependency_libs; do |
| 11170 | case "$dep" in |
| 11171 | -L*) |
| 11172 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11173 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11174 | haveit= |
| 11175 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11176 | if test -n "$GCC"; then |
| 11177 | case $host_os in |
| 11178 | linux*) haveit=yes;; |
| 11179 | esac |
| 11180 | fi |
| 11181 | fi |
| 11182 | if test -z "$haveit"; then |
| 11183 | haveit= |
| 11184 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11185 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11186 | acl_save_prefix="$prefix" |
| 11187 | prefix="$acl_final_prefix" |
| 11188 | acl_save_exec_prefix="$exec_prefix" |
| 11189 | exec_prefix="$acl_final_exec_prefix" |
| 11190 | eval x=\"$x\" |
| 11191 | exec_prefix="$acl_save_exec_prefix" |
| 11192 | prefix="$acl_save_prefix" |
| 11193 | |
| 11194 | if test "X$x" = "X-L$additional_libdir"; then |
| 11195 | haveit=yes |
| 11196 | break |
| 11197 | fi |
| 11198 | done |
| 11199 | if test -z "$haveit"; then |
| 11200 | if test -d "$additional_libdir"; then |
| 11201 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11202 | fi |
| 11203 | fi |
| 11204 | haveit= |
| 11205 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11206 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11207 | acl_save_prefix="$prefix" |
| 11208 | prefix="$acl_final_prefix" |
| 11209 | acl_save_exec_prefix="$exec_prefix" |
| 11210 | exec_prefix="$acl_final_exec_prefix" |
| 11211 | eval x=\"$x\" |
| 11212 | exec_prefix="$acl_save_exec_prefix" |
| 11213 | prefix="$acl_save_prefix" |
| 11214 | |
| 11215 | if test "X$x" = "X-L$additional_libdir"; then |
| 11216 | haveit=yes |
| 11217 | break |
| 11218 | fi |
| 11219 | done |
| 11220 | if test -z "$haveit"; then |
| 11221 | if test -d "$additional_libdir"; then |
| 11222 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11223 | fi |
| 11224 | fi |
| 11225 | fi |
| 11226 | fi |
| 11227 | ;; |
| 11228 | -R*) |
| 11229 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11230 | if test "$enable_rpath" != no; then |
| 11231 | haveit= |
| 11232 | for x in $rpathdirs; do |
| 11233 | if test "X$x" = "X$dir"; then |
| 11234 | haveit=yes |
| 11235 | break |
| 11236 | fi |
| 11237 | done |
| 11238 | if test -z "$haveit"; then |
| 11239 | rpathdirs="$rpathdirs $dir" |
| 11240 | fi |
| 11241 | haveit= |
| 11242 | for x in $ltrpathdirs; do |
| 11243 | if test "X$x" = "X$dir"; then |
| 11244 | haveit=yes |
| 11245 | break |
| 11246 | fi |
| 11247 | done |
| 11248 | if test -z "$haveit"; then |
| 11249 | ltrpathdirs="$ltrpathdirs $dir" |
| 11250 | fi |
| 11251 | fi |
| 11252 | ;; |
| 11253 | -l*) |
| 11254 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11255 | ;; |
| 11256 | *.la) |
| 11257 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11258 | ;; |
| 11259 | *) |
| 11260 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11261 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11262 | ;; |
| 11263 | esac |
| 11264 | done |
| 11265 | fi |
| 11266 | else |
| 11267 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11268 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11269 | fi |
| 11270 | fi |
| 11271 | fi |
| 11272 | done |
| 11273 | done |
| 11274 | if test "X$rpathdirs" != "X"; then |
| 11275 | if test -n "$hardcode_libdir_separator"; then |
| 11276 | alldirs= |
| 11277 | for found_dir in $rpathdirs; do |
| 11278 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11279 | done |
| 11280 | acl_save_libdir="$libdir" |
| 11281 | libdir="$alldirs" |
| 11282 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11283 | libdir="$acl_save_libdir" |
| 11284 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11285 | else |
| 11286 | for found_dir in $rpathdirs; do |
| 11287 | acl_save_libdir="$libdir" |
| 11288 | libdir="$found_dir" |
| 11289 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11290 | libdir="$acl_save_libdir" |
| 11291 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11292 | done |
| 11293 | fi |
| 11294 | fi |
| 11295 | if test "X$ltrpathdirs" != "X"; then |
| 11296 | for found_dir in $ltrpathdirs; do |
| 11297 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11298 | done |
| 11299 | fi |
| 11300 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11301 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 11302 | 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] | 11303 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 11304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11305 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11306 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11307 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11308 | gt_save_LIBS="$LIBS" |
| 11309 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11310 | cat >conftest.$ac_ext <<_ACEOF |
| 11311 | /* confdefs.h. */ |
| 11312 | _ACEOF |
| 11313 | cat confdefs.h >>conftest.$ac_ext |
| 11314 | cat >>conftest.$ac_ext <<_ACEOF |
| 11315 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11316 | #include <libintl.h> |
| 11317 | extern int _nl_msg_cat_cntr; |
| 11318 | extern |
| 11319 | #ifdef __cplusplus |
| 11320 | "C" |
| 11321 | #endif |
| 11322 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11323 | int |
| 11324 | main () |
| 11325 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11326 | bindtextdomain ("", ""); |
| 11327 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11328 | ; |
| 11329 | return 0; |
| 11330 | } |
| 11331 | _ACEOF |
| 11332 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11333 | if { (ac_try="$ac_link" |
| 11334 | case "(($ac_try" in |
| 11335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11336 | *) ac_try_echo=$ac_try;; |
| 11337 | esac |
| 11338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11339 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11340 | ac_status=$? |
| 11341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11342 | rm -f conftest.er1 |
| 11343 | cat conftest.err >&5 |
| 11344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11345 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11347 | { (case "(($ac_try" in |
| 11348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11349 | *) ac_try_echo=$ac_try;; |
| 11350 | esac |
| 11351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11352 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11353 | ac_status=$? |
| 11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11355 | (exit $ac_status); }; } && |
| 11356 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11357 | { (case "(($ac_try" in |
| 11358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11359 | *) ac_try_echo=$ac_try;; |
| 11360 | esac |
| 11361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11362 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11363 | ac_status=$? |
| 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); }; }; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11366 | gt_cv_func_gnugettext1_libintl=yes |
| 11367 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11368 | echo "$as_me: failed program was:" >&5 |
| 11369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11370 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11371 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11372 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11373 | |
| 11374 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11375 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11376 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 11377 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11378 | cat >conftest.$ac_ext <<_ACEOF |
| 11379 | /* confdefs.h. */ |
| 11380 | _ACEOF |
| 11381 | cat confdefs.h >>conftest.$ac_ext |
| 11382 | cat >>conftest.$ac_ext <<_ACEOF |
| 11383 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11384 | #include <libintl.h> |
| 11385 | extern int _nl_msg_cat_cntr; |
| 11386 | extern |
| 11387 | #ifdef __cplusplus |
| 11388 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11389 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11390 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11391 | int |
| 11392 | main () |
| 11393 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11394 | bindtextdomain ("", ""); |
| 11395 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11396 | ; |
| 11397 | return 0; |
| 11398 | } |
| 11399 | _ACEOF |
| 11400 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11401 | if { (ac_try="$ac_link" |
| 11402 | case "(($ac_try" in |
| 11403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11404 | *) ac_try_echo=$ac_try;; |
| 11405 | esac |
| 11406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11407 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11408 | ac_status=$? |
| 11409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11410 | rm -f conftest.er1 |
| 11411 | cat conftest.err >&5 |
| 11412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11413 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11415 | { (case "(($ac_try" in |
| 11416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11417 | *) ac_try_echo=$ac_try;; |
| 11418 | esac |
| 11419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11420 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11421 | ac_status=$? |
| 11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11423 | (exit $ac_status); }; } && |
| 11424 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11425 | { (case "(($ac_try" in |
| 11426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11427 | *) ac_try_echo=$ac_try;; |
| 11428 | esac |
| 11429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11430 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11431 | ac_status=$? |
| 11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11433 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11434 | LIBINTL="$LIBINTL $LIBICONV" |
| 11435 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11436 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11437 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11438 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11439 | echo "$as_me: failed program was:" >&5 |
| 11440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11441 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11442 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11443 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11444 | |
| 11445 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11446 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11447 | fi |
| 11448 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11449 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11450 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11451 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 11452 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11453 | fi |
| 11454 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11455 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 11456 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11457 | && test "$PACKAGE" != gettext-runtime \ |
| 11458 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11459 | gt_use_preinstalled_gnugettext=yes |
| 11460 | else |
| 11461 | LIBINTL= |
| 11462 | LTLIBINTL= |
| 11463 | INCINTL= |
| 11464 | fi |
| 11465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11466 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11467 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11468 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11469 | fi |
| 11470 | fi |
| 11471 | |
| 11472 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11473 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11474 | USE_INCLUDED_LIBINTL=yes |
| 11475 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 11476 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 11477 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11478 | fi |
| 11479 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11480 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11481 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11482 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11483 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11484 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11485 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11486 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11487 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11488 | |
| 11489 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11490 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11491 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11492 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11493 | else |
| 11494 | USE_NLS=no |
| 11495 | fi |
| 11496 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11497 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11498 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 11499 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 11500 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11501 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11502 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11503 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 11504 | 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] | 11505 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11506 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11507 | gt_source="external libintl" |
| 11508 | else |
| 11509 | gt_source="libc" |
| 11510 | fi |
| 11511 | else |
| 11512 | gt_source="included intl directory" |
| 11513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11514 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 11515 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | fi |
| 11517 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11518 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11519 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11520 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11521 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11522 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 11523 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 11524 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 11525 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11526 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11527 | for element in $INCINTL; do |
| 11528 | haveit= |
| 11529 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11530 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11531 | acl_save_prefix="$prefix" |
| 11532 | prefix="$acl_final_prefix" |
| 11533 | acl_save_exec_prefix="$exec_prefix" |
| 11534 | exec_prefix="$acl_final_exec_prefix" |
| 11535 | eval x=\"$x\" |
| 11536 | exec_prefix="$acl_save_exec_prefix" |
| 11537 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11538 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11539 | if test "X$x" = "X$element"; then |
| 11540 | haveit=yes |
| 11541 | break |
| 11542 | fi |
| 11543 | done |
| 11544 | if test -z "$haveit"; then |
| 11545 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11546 | fi |
| 11547 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11548 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11549 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11550 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | cat >>confdefs.h <<\_ACEOF |
| 11553 | #define HAVE_GETTEXT 1 |
| 11554 | _ACEOF |
| 11555 | |
| 11556 | |
| 11557 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11558 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11559 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11560 | |
| 11561 | fi |
| 11562 | |
| 11563 | POSUB=po |
| 11564 | fi |
| 11565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11566 | |
| 11567 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11568 | BUILD_INCLUDED_LIBINTL=yes |
| 11569 | fi |
| 11570 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11571 | |
| 11572 | |
| 11573 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11574 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11575 | nls_cv_header_intl= |
| 11576 | nls_cv_header_libgt= |
| 11577 | |
| 11578 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11579 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11580 | |
| 11581 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11582 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11583 | |
| 11584 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11585 | |
| 11586 | |
| 11587 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 11588 | INTLOBJS="\$(GETTOBJS)" |
| 11589 | fi |
| 11590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11591 | |
| 11592 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11593 | |
| 11594 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11595 | |
| 11596 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11597 | |
| 11598 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11599 | |
| 11600 | |
| 11601 | |
| 11602 | |
| 11603 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11604 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 11605 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 11606 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 11607 | 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] | 11608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11609 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11610 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11611 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11612 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11613 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11614 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11615 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11616 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11617 | *@@@%%%=?*=@@@%%%*) |
| 11618 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11619 | *) |
| 11620 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11621 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11622 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11623 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11624 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 11625 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11626 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11627 | SET_MAKE= |
| 11628 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11630 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11631 | SET_MAKE="MAKE=${MAKE-make}" |
| 11632 | fi |
| 11633 | |
| 11634 | # Extract the first word of "ln", so it can be a program name with args. |
| 11635 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11636 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11638 | if test "${ac_cv_path_LN+set}" = set; then |
| 11639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11640 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11641 | case $LN in |
| 11642 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11643 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11644 | ;; |
| 11645 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11647 | for as_dir in $PATH |
| 11648 | do |
| 11649 | IFS=$as_save_IFS |
| 11650 | test -z "$as_dir" && as_dir=. |
| 11651 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11652 | 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] | 11653 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 11654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11655 | break 2 |
| 11656 | fi |
| 11657 | done |
| 11658 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11659 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11660 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11661 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11662 | ;; |
| 11663 | esac |
| 11664 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11665 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11666 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11667 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 11668 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11669 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11670 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11671 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11672 | fi |
| 11673 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11674 | |
| 11675 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 11676 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11677 | LN_S=$as_ln_s |
| 11678 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11679 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11680 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11681 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11682 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 11683 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11684 | fi |
| 11685 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11686 | # Extract the first word of "mv", so it can be a program name with args. |
| 11687 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11690 | if test "${ac_cv_path_MV+set}" = set; then |
| 11691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11692 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11693 | case $MV in |
| 11694 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11695 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11696 | ;; |
| 11697 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11699 | for as_dir in $PATH |
| 11700 | do |
| 11701 | IFS=$as_save_IFS |
| 11702 | test -z "$as_dir" && as_dir=. |
| 11703 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11704 | 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] | 11705 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 11706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11707 | break 2 |
| 11708 | fi |
| 11709 | done |
| 11710 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11711 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11712 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11713 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11714 | ;; |
| 11715 | esac |
| 11716 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11717 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11718 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11719 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 11720 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11721 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11723 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11724 | fi |
| 11725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11726 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11727 | # Extract the first word of "cp", so it can be a program name with args. |
| 11728 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11731 | if test "${ac_cv_path_CP+set}" = set; then |
| 11732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11733 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11734 | case $CP in |
| 11735 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11736 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11737 | ;; |
| 11738 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11740 | for as_dir in $PATH |
| 11741 | do |
| 11742 | IFS=$as_save_IFS |
| 11743 | test -z "$as_dir" && as_dir=. |
| 11744 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11745 | 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] | 11746 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 11747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11748 | break 2 |
| 11749 | fi |
| 11750 | done |
| 11751 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11752 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11753 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11754 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11755 | ;; |
| 11756 | esac |
| 11757 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11758 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11759 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11760 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 11761 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11762 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11763 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11764 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11765 | fi |
| 11766 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11767 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11768 | # Extract the first word of "rm", so it can be a program name with args. |
| 11769 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11770 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11772 | if test "${ac_cv_path_RM+set}" = set; then |
| 11773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11774 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11775 | case $RM in |
| 11776 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11777 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11778 | ;; |
| 11779 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11781 | for as_dir in $PATH |
| 11782 | do |
| 11783 | IFS=$as_save_IFS |
| 11784 | test -z "$as_dir" && as_dir=. |
| 11785 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11786 | 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] | 11787 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 11788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11789 | break 2 |
| 11790 | fi |
| 11791 | done |
| 11792 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11793 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11794 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11795 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11796 | ;; |
| 11797 | esac |
| 11798 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11799 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11800 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11801 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 11802 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11803 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11804 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11805 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11806 | fi |
| 11807 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11808 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11809 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11810 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11811 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11813 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 11814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11815 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11816 | case $CHMOD in |
| 11817 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11818 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11819 | ;; |
| 11820 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11822 | for as_dir in $PATH |
| 11823 | do |
| 11824 | IFS=$as_save_IFS |
| 11825 | test -z "$as_dir" && as_dir=. |
| 11826 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11827 | 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] | 11828 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 11829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11830 | break 2 |
| 11831 | fi |
| 11832 | done |
| 11833 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11834 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11835 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11836 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11837 | ;; |
| 11838 | esac |
| 11839 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11840 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11841 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11842 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11843 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11844 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11845 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11846 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11847 | fi |
| 11848 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11849 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11850 | for ac_prog in gawk mawk nawk awk |
| 11851 | do |
| 11852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11853 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11854 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11856 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11858 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11859 | if test -n "$AWK"; then |
| 11860 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11861 | else |
| 11862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11863 | for as_dir in $PATH |
| 11864 | do |
| 11865 | IFS=$as_save_IFS |
| 11866 | test -z "$as_dir" && as_dir=. |
| 11867 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11868 | 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] | 11869 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11871 | break 2 |
| 11872 | fi |
| 11873 | done |
| 11874 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11875 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11876 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11877 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11878 | fi |
| 11879 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11880 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11881 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11882 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11883 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11884 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11885 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11886 | fi |
| 11887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11888 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11889 | test -n "$AWK" && break |
| 11890 | done |
| 11891 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11892 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11893 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 11894 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11896 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11897 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11898 | then ac_cv_path_EGREP="$GREP -E" |
| 11899 | else |
| 11900 | # Extract the first word of "egrep" to use in msg output |
| 11901 | if test -z "$EGREP"; then |
| 11902 | set dummy egrep; ac_prog_name=$2 |
| 11903 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 11904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11905 | else |
| 11906 | ac_path_EGREP_found=false |
| 11907 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11909 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11910 | do |
| 11911 | IFS=$as_save_IFS |
| 11912 | test -z "$as_dir" && as_dir=. |
| 11913 | for ac_prog in egrep; do |
| 11914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11915 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 11916 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 11917 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 11918 | # Check for GNU $ac_path_EGREP |
| 11919 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11920 | *GNU*) |
| 11921 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11922 | *) |
| 11923 | ac_count=0 |
| 11924 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 11925 | while : |
| 11926 | do |
| 11927 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11928 | mv "conftest.tmp" "conftest.in" |
| 11929 | cp "conftest.in" "conftest.nl" |
| 11930 | echo 'EGREP' >> "conftest.nl" |
| 11931 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11932 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11933 | ac_count=`expr $ac_count + 1` |
| 11934 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11935 | # Best one so far, save it but keep looking for a better one |
| 11936 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11937 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11938 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11939 | # 10*(2^10) chars as input seems more than enough |
| 11940 | test $ac_count -gt 10 && break |
| 11941 | done |
| 11942 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11943 | esac |
| 11944 | |
| 11945 | |
| 11946 | $ac_path_EGREP_found && break 3 |
| 11947 | done |
| 11948 | done |
| 11949 | |
| 11950 | done |
| 11951 | IFS=$as_save_IFS |
| 11952 | |
| 11953 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11954 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11955 | |
| 11956 | EGREP="$ac_cv_path_EGREP" |
| 11957 | if test -z "$EGREP"; then |
| 11958 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11959 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11960 | { (exit 1); exit 1; }; } |
| 11961 | fi |
| 11962 | |
| 11963 | else |
| 11964 | ac_cv_path_EGREP=$EGREP |
| 11965 | fi |
| 11966 | |
| 11967 | |
| 11968 | fi |
| 11969 | fi |
| 11970 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11971 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11972 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11973 | |
| 11974 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11975 | # Extract the first word of "sed", so it can be a program name with args. |
| 11976 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11977 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11979 | if test "${ac_cv_path_SED+set}" = set; then |
| 11980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11981 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11982 | case $SED in |
| 11983 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11984 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11985 | ;; |
| 11986 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11988 | for as_dir in $PATH |
| 11989 | do |
| 11990 | IFS=$as_save_IFS |
| 11991 | test -z "$as_dir" && as_dir=. |
| 11992 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 11993 | 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] | 11994 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11996 | break 2 |
| 11997 | fi |
| 11998 | done |
| 11999 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12000 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12001 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12002 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 12003 | ;; |
| 12004 | esac |
| 12005 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12006 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12007 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12008 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12009 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12010 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12011 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12012 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12013 | fi |
| 12014 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12015 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12016 | # Extract the first word of "perl", so it can be a program name with args. |
| 12017 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12018 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | if test "${ac_cv_path_PERL+set}" = set; then |
| 12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12022 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | case $PERL in |
| 12024 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12025 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 12026 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12027 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12029 | for as_dir in $PATH |
| 12030 | do |
| 12031 | IFS=$as_save_IFS |
| 12032 | test -z "$as_dir" && as_dir=. |
| 12033 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12034 | 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] | 12035 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 12036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12037 | break 2 |
| 12038 | fi |
| 12039 | done |
| 12040 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12041 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12042 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12043 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 12044 | ;; |
| 12045 | esac |
| 12046 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12047 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12048 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12049 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 12050 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12051 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12053 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12054 | fi |
| 12055 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12056 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12057 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 12058 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12059 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12061 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 12062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12063 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12064 | case $LDCONFIG in |
| 12065 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12066 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 12067 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12068 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12070 | for as_dir in $PATH |
| 12071 | do |
| 12072 | IFS=$as_save_IFS |
| 12073 | test -z "$as_dir" && as_dir=. |
| 12074 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12075 | 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] | 12076 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12078 | break 2 |
| 12079 | fi |
| 12080 | done |
| 12081 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12082 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12083 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12084 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 12085 | ;; |
| 12086 | esac |
| 12087 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12088 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12089 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12090 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 12091 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12092 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12093 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12094 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12095 | fi |
| 12096 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12097 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12098 | if test -n "$ac_tool_prefix"; then |
| 12099 | # 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] | 12100 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12103 | if test "${ac_cv_prog_AR+set}" = set; then |
| 12104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12105 | else |
| 12106 | if test -n "$AR"; then |
| 12107 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12108 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12110 | for as_dir in $PATH |
| 12111 | do |
| 12112 | IFS=$as_save_IFS |
| 12113 | test -z "$as_dir" && as_dir=. |
| 12114 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12115 | 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] | 12116 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 12117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12118 | break 2 |
| 12119 | fi |
| 12120 | done |
| 12121 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12122 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12123 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12124 | fi |
| 12125 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12126 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12127 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12128 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 12129 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12130 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12131 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12132 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12133 | fi |
| 12134 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12135 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12136 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12137 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12138 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12139 | # Extract the first word of "ar", so it can be a program name with args. |
| 12140 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12143 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 12144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12145 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12146 | if test -n "$ac_ct_AR"; then |
| 12147 | 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] | 12148 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12150 | for as_dir in $PATH |
| 12151 | do |
| 12152 | IFS=$as_save_IFS |
| 12153 | test -z "$as_dir" && as_dir=. |
| 12154 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12155 | 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] | 12156 | ac_cv_prog_ac_ct_AR="ar" |
| 12157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12158 | break 2 |
| 12159 | fi |
| 12160 | done |
| 12161 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12162 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12163 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12164 | fi |
| 12165 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12166 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12167 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12168 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 12169 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12170 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12171 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12172 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12173 | fi |
| 12174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12175 | if test "x$ac_ct_AR" = x; then |
| 12176 | AR="ar" |
| 12177 | else |
| 12178 | case $cross_compiling:$ac_tool_warned in |
| 12179 | yes:) |
| 12180 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12181 | whose name does not start with the host triplet. If you think this |
| 12182 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12183 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12184 | whose name does not start with the host triplet. If you think this |
| 12185 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12186 | ac_tool_warned=yes ;; |
| 12187 | esac |
| 12188 | AR=$ac_ct_AR |
| 12189 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12190 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12191 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12192 | fi |
| 12193 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12194 | if test -n "$ac_tool_prefix"; then |
| 12195 | # 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] | 12196 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12197 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12199 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 12200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12201 | else |
| 12202 | if test -n "$RANLIB"; then |
| 12203 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12204 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12206 | for as_dir in $PATH |
| 12207 | do |
| 12208 | IFS=$as_save_IFS |
| 12209 | test -z "$as_dir" && as_dir=. |
| 12210 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12211 | 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] | 12212 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 12213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12214 | break 2 |
| 12215 | fi |
| 12216 | done |
| 12217 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12218 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12219 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12220 | fi |
| 12221 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12222 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12223 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12224 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 12225 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12226 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12227 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12228 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12229 | fi |
| 12230 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12231 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12233 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12234 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12235 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12236 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12237 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12239 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 12240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12241 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12242 | if test -n "$ac_ct_RANLIB"; then |
| 12243 | 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] | 12244 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12246 | for as_dir in $PATH |
| 12247 | do |
| 12248 | IFS=$as_save_IFS |
| 12249 | test -z "$as_dir" && as_dir=. |
| 12250 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12251 | 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] | 12252 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 12253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12254 | break 2 |
| 12255 | fi |
| 12256 | done |
| 12257 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12258 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12259 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12260 | fi |
| 12261 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12262 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12263 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12264 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 12265 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12266 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12267 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12268 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12269 | fi |
| 12270 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12271 | if test "x$ac_ct_RANLIB" = x; then |
| 12272 | RANLIB=":" |
| 12273 | else |
| 12274 | case $cross_compiling:$ac_tool_warned in |
| 12275 | yes:) |
| 12276 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12277 | whose name does not start with the host triplet. If you think this |
| 12278 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12279 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12280 | whose name does not start with the host triplet. If you think this |
| 12281 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12282 | ac_tool_warned=yes ;; |
| 12283 | esac |
| 12284 | RANLIB=$ac_ct_RANLIB |
| 12285 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12287 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12288 | fi |
| 12289 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12290 | if test -n "$ac_tool_prefix"; then |
| 12291 | # 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] | 12292 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12293 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12295 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 12296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12297 | else |
| 12298 | if test -n "$STRIP"; then |
| 12299 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12300 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12302 | for as_dir in $PATH |
| 12303 | do |
| 12304 | IFS=$as_save_IFS |
| 12305 | test -z "$as_dir" && as_dir=. |
| 12306 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12307 | 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] | 12308 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 12309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12310 | break 2 |
| 12311 | fi |
| 12312 | done |
| 12313 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12314 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12315 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12316 | fi |
| 12317 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12318 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12319 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12320 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 12321 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12322 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12324 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12325 | fi |
| 12326 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12328 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12329 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12330 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12331 | # Extract the first word of "strip", so it can be a program name with args. |
| 12332 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12333 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12335 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 12336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12337 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12338 | if test -n "$ac_ct_STRIP"; then |
| 12339 | 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] | 12340 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12342 | for as_dir in $PATH |
| 12343 | do |
| 12344 | IFS=$as_save_IFS |
| 12345 | test -z "$as_dir" && as_dir=. |
| 12346 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12347 | 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] | 12348 | ac_cv_prog_ac_ct_STRIP="strip" |
| 12349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12350 | break 2 |
| 12351 | fi |
| 12352 | done |
| 12353 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12354 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12355 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12356 | fi |
| 12357 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12358 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12359 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12360 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 12361 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12362 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12363 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12364 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12365 | fi |
| 12366 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12367 | if test "x$ac_ct_STRIP" = x; then |
| 12368 | STRIP=":" |
| 12369 | else |
| 12370 | case $cross_compiling:$ac_tool_warned in |
| 12371 | yes:) |
| 12372 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12373 | whose name does not start with the host triplet. If you think this |
| 12374 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12375 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12376 | whose name does not start with the host triplet. If you think this |
| 12377 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12378 | ac_tool_warned=yes ;; |
| 12379 | esac |
| 12380 | STRIP=$ac_ct_STRIP |
| 12381 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12382 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12383 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12384 | fi |
| 12385 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12386 | # Find a good install program. We prefer a C program (faster), |
| 12387 | # so one script is as good as another. But avoid the broken or |
| 12388 | # incompatible versions: |
| 12389 | # SysV /etc/install, /usr/sbin/install |
| 12390 | # SunOS /usr/etc/install |
| 12391 | # IRIX /sbin/install |
| 12392 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12393 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12394 | # 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] | 12395 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 12396 | # 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] | 12397 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12398 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12399 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 12400 | 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] | 12401 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12402 | if test "${ac_cv_path_install+set}" = set; then |
| 12403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12404 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12406 | for as_dir in $PATH |
| 12407 | do |
| 12408 | IFS=$as_save_IFS |
| 12409 | test -z "$as_dir" && as_dir=. |
| 12410 | # Account for people who put trailing slashes in PATH elements. |
| 12411 | case $as_dir/ in |
| 12412 | ./ | .// | /cC/* | \ |
| 12413 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 12414 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 12415 | /usr/ucb/* ) ;; |
| 12416 | *) |
| 12417 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 12418 | # Don't use installbsd from OSF since it installs stuff as root |
| 12419 | # by default. |
| 12420 | for ac_prog in ginstall scoinst install; do |
| 12421 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12422 | 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] | 12423 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12424 | 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] | 12425 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12426 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12427 | elif test $ac_prog = install && |
| 12428 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 12429 | # program-specific install script used by HP pwplus--don't use. |
| 12430 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12431 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12432 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 12433 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12434 | fi |
| 12435 | fi |
| 12436 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | done |
| 12438 | ;; |
| 12439 | esac |
| 12440 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12441 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12442 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12443 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12444 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12445 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12446 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12447 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12448 | # As a last resort, use the slow shell script. Don't cache a |
| 12449 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12450 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12451 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12452 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12453 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12454 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12455 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 12456 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12457 | |
| 12458 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 12459 | # It thinks the first close brace ends the variable substitution. |
| 12460 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 12461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12462 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12463 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12464 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 12465 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12466 | # See if we need a separate native compiler. |
| 12467 | if test $cross_compiling = no; then |
| 12468 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12469 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12470 | else |
| 12471 | for ac_prog in gcc cc |
| 12472 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12473 | # 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] | 12474 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12477 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 12478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12479 | else |
| 12480 | if test -n "$BUILD_CC"; then |
| 12481 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12482 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12484 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12485 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12486 | IFS=$as_save_IFS |
| 12487 | test -z "$as_dir" && as_dir=. |
| 12488 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12489 | 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] | 12490 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 12491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12492 | break 2 |
| 12493 | fi |
| 12494 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12495 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12496 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12498 | fi |
| 12499 | fi |
| 12500 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12501 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12502 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 12503 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12504 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12505 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12506 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12507 | fi |
| 12508 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12510 | test -n "$BUILD_CC" && break |
| 12511 | done |
| 12512 | |
| 12513 | fi |
| 12514 | |
| 12515 | |
| 12516 | |
| 12517 | |
| 12518 | |
| 12519 | |
| 12520 | |
| 12521 | |
| 12522 | |
| 12523 | |
| 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 12543 | |
| 12544 | 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] | 12545 | do |
| 12546 | 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^] | 12547 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12548 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12550 | 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] | 12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12552 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12553 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12555 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12556 | else |
| 12557 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12558 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12559 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12560 | cat >conftest.$ac_ext <<_ACEOF |
| 12561 | /* confdefs.h. */ |
| 12562 | _ACEOF |
| 12563 | cat confdefs.h >>conftest.$ac_ext |
| 12564 | cat >>conftest.$ac_ext <<_ACEOF |
| 12565 | /* end confdefs.h. */ |
| 12566 | $ac_includes_default |
| 12567 | #include <$ac_header> |
| 12568 | _ACEOF |
| 12569 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12570 | if { (ac_try="$ac_compile" |
| 12571 | case "(($ac_try" in |
| 12572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12573 | *) ac_try_echo=$ac_try;; |
| 12574 | esac |
| 12575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12576 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12577 | ac_status=$? |
| 12578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12579 | rm -f conftest.er1 |
| 12580 | cat conftest.err >&5 |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12584 | { (case "(($ac_try" in |
| 12585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12586 | *) ac_try_echo=$ac_try;; |
| 12587 | esac |
| 12588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12589 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12590 | ac_status=$? |
| 12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12592 | (exit $ac_status); }; } && |
| 12593 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12594 | { (case "(($ac_try" in |
| 12595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12596 | *) ac_try_echo=$ac_try;; |
| 12597 | esac |
| 12598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12599 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12600 | ac_status=$? |
| 12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12602 | (exit $ac_status); }; }; then |
| 12603 | ac_header_compiler=yes |
| 12604 | else |
| 12605 | echo "$as_me: failed program was:" >&5 |
| 12606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12608 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12609 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12610 | |
| 12611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12612 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12613 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12614 | |
| 12615 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12616 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12617 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12618 | cat >conftest.$ac_ext <<_ACEOF |
| 12619 | /* confdefs.h. */ |
| 12620 | _ACEOF |
| 12621 | cat confdefs.h >>conftest.$ac_ext |
| 12622 | cat >>conftest.$ac_ext <<_ACEOF |
| 12623 | /* end confdefs.h. */ |
| 12624 | #include <$ac_header> |
| 12625 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12626 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12627 | case "(($ac_try" in |
| 12628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12629 | *) ac_try_echo=$ac_try;; |
| 12630 | esac |
| 12631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12632 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12633 | ac_status=$? |
| 12634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12635 | rm -f conftest.er1 |
| 12636 | cat conftest.err >&5 |
| 12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12638 | (exit $ac_status); } >/dev/null; then |
| 12639 | if test -s conftest.err; then |
| 12640 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12641 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12642 | else |
| 12643 | ac_cpp_err= |
| 12644 | fi |
| 12645 | else |
| 12646 | ac_cpp_err=yes |
| 12647 | fi |
| 12648 | if test -z "$ac_cpp_err"; then |
| 12649 | ac_header_preproc=yes |
| 12650 | else |
| 12651 | echo "$as_me: failed program was:" >&5 |
| 12652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12653 | |
| 12654 | ac_header_preproc=no |
| 12655 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12656 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12657 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12658 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12659 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12660 | |
| 12661 | # So? What about this header? |
| 12662 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12663 | yes:no: ) |
| 12664 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12665 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12666 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12667 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12668 | ac_header_preproc=yes |
| 12669 | ;; |
| 12670 | no:yes:* ) |
| 12671 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12672 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12673 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12674 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12675 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12676 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12677 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12678 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12679 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12680 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12681 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12682 | 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^] | 12683 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12684 | ;; |
| 12685 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12686 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12687 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12688 | 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] | 12689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12690 | else |
| 12691 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12692 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12693 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12694 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12695 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12696 | |
| 12697 | fi |
| 12698 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12699 | cat >>confdefs.h <<_ACEOF |
| 12700 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12701 | _ACEOF |
| 12702 | |
| 12703 | fi |
| 12704 | |
| 12705 | done |
| 12706 | |
| 12707 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12708 | |
| 12709 | for ac_header in sys/disk.h sys/mount.h |
| 12710 | do |
| 12711 | 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^] | 12712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12714 | 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] | 12715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12716 | else |
| 12717 | cat >conftest.$ac_ext <<_ACEOF |
| 12718 | /* confdefs.h. */ |
| 12719 | _ACEOF |
| 12720 | cat confdefs.h >>conftest.$ac_ext |
| 12721 | cat >>conftest.$ac_ext <<_ACEOF |
| 12722 | /* end confdefs.h. */ |
| 12723 | |
| 12724 | #if HAVE_SYS_QUEUE_H |
| 12725 | #include <sys/queue.h> |
| 12726 | #endif |
| 12727 | |
| 12728 | |
| 12729 | #include <$ac_header> |
| 12730 | _ACEOF |
| 12731 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12732 | if { (ac_try="$ac_compile" |
| 12733 | case "(($ac_try" in |
| 12734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12735 | *) ac_try_echo=$ac_try;; |
| 12736 | esac |
| 12737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12738 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12739 | ac_status=$? |
| 12740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12741 | rm -f conftest.er1 |
| 12742 | cat conftest.err >&5 |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12746 | { (case "(($ac_try" in |
| 12747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12748 | *) ac_try_echo=$ac_try;; |
| 12749 | esac |
| 12750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12751 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12752 | ac_status=$? |
| 12753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12754 | (exit $ac_status); }; } && |
| 12755 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12756 | { (case "(($ac_try" in |
| 12757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12758 | *) ac_try_echo=$ac_try;; |
| 12759 | esac |
| 12760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12761 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12762 | ac_status=$? |
| 12763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12764 | (exit $ac_status); }; }; then |
| 12765 | eval "$as_ac_Header=yes" |
| 12766 | else |
| 12767 | echo "$as_me: failed program was:" >&5 |
| 12768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12769 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12770 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12771 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12772 | |
| 12773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12774 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12775 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12776 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12777 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12779 | cat >>confdefs.h <<_ACEOF |
| 12780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12781 | _ACEOF |
| 12782 | |
| 12783 | fi |
| 12784 | |
| 12785 | done |
| 12786 | |
| 12787 | |
| 12788 | for ac_header in net/if.h |
| 12789 | do |
| 12790 | 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^] | 12791 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12793 | 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] | 12794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12795 | else |
| 12796 | cat >conftest.$ac_ext <<_ACEOF |
| 12797 | /* confdefs.h. */ |
| 12798 | _ACEOF |
| 12799 | cat confdefs.h >>conftest.$ac_ext |
| 12800 | cat >>conftest.$ac_ext <<_ACEOF |
| 12801 | /* end confdefs.h. */ |
| 12802 | |
| 12803 | #if HAVE_SYS_TYPES_H |
| 12804 | #include <sys/types.h> |
| 12805 | #endif |
| 12806 | #if HAVE_SYS_SOCKET |
| 12807 | #include <sys/socket.h> |
| 12808 | #endif |
| 12809 | |
| 12810 | |
| 12811 | #include <$ac_header> |
| 12812 | _ACEOF |
| 12813 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12814 | if { (ac_try="$ac_compile" |
| 12815 | case "(($ac_try" in |
| 12816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12817 | *) ac_try_echo=$ac_try;; |
| 12818 | esac |
| 12819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12820 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12821 | ac_status=$? |
| 12822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12823 | rm -f conftest.er1 |
| 12824 | cat conftest.err >&5 |
| 12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12826 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12828 | { (case "(($ac_try" in |
| 12829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12830 | *) ac_try_echo=$ac_try;; |
| 12831 | esac |
| 12832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12833 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12834 | ac_status=$? |
| 12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12836 | (exit $ac_status); }; } && |
| 12837 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12838 | { (case "(($ac_try" in |
| 12839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12840 | *) ac_try_echo=$ac_try;; |
| 12841 | esac |
| 12842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12843 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12844 | ac_status=$? |
| 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12846 | (exit $ac_status); }; }; then |
| 12847 | eval "$as_ac_Header=yes" |
| 12848 | else |
| 12849 | echo "$as_me: failed program was:" >&5 |
| 12850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12852 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12853 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12854 | |
| 12855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12856 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12859 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12861 | cat >>confdefs.h <<_ACEOF |
| 12862 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12863 | _ACEOF |
| 12864 | |
| 12865 | fi |
| 12866 | |
| 12867 | done |
| 12868 | |
| 12869 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12870 | for ac_func in vprintf |
| 12871 | do |
| 12872 | 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^] | 12873 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12875 | 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] | 12876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12877 | else |
| 12878 | cat >conftest.$ac_ext <<_ACEOF |
| 12879 | /* confdefs.h. */ |
| 12880 | _ACEOF |
| 12881 | cat confdefs.h >>conftest.$ac_ext |
| 12882 | cat >>conftest.$ac_ext <<_ACEOF |
| 12883 | /* end confdefs.h. */ |
| 12884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12886 | #define $ac_func innocuous_$ac_func |
| 12887 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12888 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12889 | which can conflict with char $ac_func (); below. |
| 12890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12891 | <limits.h> exists even on freestanding compilers. */ |
| 12892 | |
| 12893 | #ifdef __STDC__ |
| 12894 | # include <limits.h> |
| 12895 | #else |
| 12896 | # include <assert.h> |
| 12897 | #endif |
| 12898 | |
| 12899 | #undef $ac_func |
| 12900 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12901 | /* Override any GCC internal prototype to avoid an error. |
| 12902 | Use char because int might match the return type of a GCC |
| 12903 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12904 | #ifdef __cplusplus |
| 12905 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12906 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12907 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12908 | /* The GNU C library defines this for functions which it implements |
| 12909 | to always fail with ENOSYS. Some functions are actually named |
| 12910 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12911 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12912 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12913 | #endif |
| 12914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12915 | int |
| 12916 | main () |
| 12917 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12918 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12919 | ; |
| 12920 | return 0; |
| 12921 | } |
| 12922 | _ACEOF |
| 12923 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12924 | if { (ac_try="$ac_link" |
| 12925 | case "(($ac_try" in |
| 12926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12927 | *) ac_try_echo=$ac_try;; |
| 12928 | esac |
| 12929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12930 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12931 | ac_status=$? |
| 12932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12933 | rm -f conftest.er1 |
| 12934 | cat conftest.err >&5 |
| 12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12936 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12938 | { (case "(($ac_try" in |
| 12939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12940 | *) ac_try_echo=$ac_try;; |
| 12941 | esac |
| 12942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12943 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12944 | ac_status=$? |
| 12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12946 | (exit $ac_status); }; } && |
| 12947 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12948 | { (case "(($ac_try" in |
| 12949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12950 | *) ac_try_echo=$ac_try;; |
| 12951 | esac |
| 12952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12953 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12954 | ac_status=$? |
| 12955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12956 | (exit $ac_status); }; }; then |
| 12957 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12958 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12959 | echo "$as_me: failed program was:" >&5 |
| 12960 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12961 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12962 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12964 | |
| 12965 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12966 | conftest$ac_exeext conftest.$ac_ext |
| 12967 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12968 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12969 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12970 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12971 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12972 | cat >>confdefs.h <<_ACEOF |
| 12973 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12974 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 12976 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12977 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12978 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12980 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12981 | cat >conftest.$ac_ext <<_ACEOF |
| 12982 | /* confdefs.h. */ |
| 12983 | _ACEOF |
| 12984 | cat confdefs.h >>conftest.$ac_ext |
| 12985 | cat >>conftest.$ac_ext <<_ACEOF |
| 12986 | /* end confdefs.h. */ |
| 12987 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12988 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12989 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12990 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12991 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12992 | which can conflict with char _doprnt (); below. |
| 12993 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12994 | <limits.h> exists even on freestanding compilers. */ |
| 12995 | |
| 12996 | #ifdef __STDC__ |
| 12997 | # include <limits.h> |
| 12998 | #else |
| 12999 | # include <assert.h> |
| 13000 | #endif |
| 13001 | |
| 13002 | #undef _doprnt |
| 13003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13004 | /* Override any GCC internal prototype to avoid an error. |
| 13005 | Use char because int might match the return type of a GCC |
| 13006 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13007 | #ifdef __cplusplus |
| 13008 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13009 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13010 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13011 | /* The GNU C library defines this for functions which it implements |
| 13012 | to always fail with ENOSYS. Some functions are actually named |
| 13013 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13014 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13015 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13016 | #endif |
| 13017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13018 | int |
| 13019 | main () |
| 13020 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13021 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13022 | ; |
| 13023 | return 0; |
| 13024 | } |
| 13025 | _ACEOF |
| 13026 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13027 | if { (ac_try="$ac_link" |
| 13028 | case "(($ac_try" in |
| 13029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13030 | *) ac_try_echo=$ac_try;; |
| 13031 | esac |
| 13032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13033 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13034 | ac_status=$? |
| 13035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13036 | rm -f conftest.er1 |
| 13037 | cat conftest.err >&5 |
| 13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13039 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13041 | { (case "(($ac_try" in |
| 13042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13043 | *) ac_try_echo=$ac_try;; |
| 13044 | esac |
| 13045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13046 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13047 | ac_status=$? |
| 13048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13049 | (exit $ac_status); }; } && |
| 13050 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13051 | { (case "(($ac_try" in |
| 13052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13053 | *) ac_try_echo=$ac_try;; |
| 13054 | esac |
| 13055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13056 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13057 | ac_status=$? |
| 13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13059 | (exit $ac_status); }; }; then |
| 13060 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13061 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13062 | echo "$as_me: failed program was:" >&5 |
| 13063 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13065 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13066 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13067 | |
| 13068 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13069 | conftest$ac_exeext conftest.$ac_ext |
| 13070 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13071 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 13072 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13073 | if test $ac_cv_func__doprnt = yes; then |
| 13074 | |
| 13075 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13076 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13077 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13078 | |
| 13079 | fi |
| 13080 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13081 | fi |
| 13082 | done |
| 13083 | |
| 13084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13085 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 13086 | 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] | 13087 | 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] | 13088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13089 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13090 | cat >conftest.$ac_ext <<_ACEOF |
| 13091 | /* confdefs.h. */ |
| 13092 | _ACEOF |
| 13093 | cat confdefs.h >>conftest.$ac_ext |
| 13094 | cat >>conftest.$ac_ext <<_ACEOF |
| 13095 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13096 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13097 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13098 | int |
| 13099 | main () |
| 13100 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13101 | static struct dirent ac_aggr; |
| 13102 | if (ac_aggr.d_reclen) |
| 13103 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13104 | ; |
| 13105 | return 0; |
| 13106 | } |
| 13107 | _ACEOF |
| 13108 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13109 | if { (ac_try="$ac_compile" |
| 13110 | case "(($ac_try" in |
| 13111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13112 | *) ac_try_echo=$ac_try;; |
| 13113 | esac |
| 13114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13115 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13116 | ac_status=$? |
| 13117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13118 | rm -f conftest.er1 |
| 13119 | cat conftest.err >&5 |
| 13120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13121 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13123 | { (case "(($ac_try" in |
| 13124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13125 | *) ac_try_echo=$ac_try;; |
| 13126 | esac |
| 13127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13128 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13129 | ac_status=$? |
| 13130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13131 | (exit $ac_status); }; } && |
| 13132 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13133 | { (case "(($ac_try" in |
| 13134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13135 | *) ac_try_echo=$ac_try;; |
| 13136 | esac |
| 13137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13138 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13139 | ac_status=$? |
| 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13141 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13142 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13143 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13144 | echo "$as_me: failed program was:" >&5 |
| 13145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13147 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13148 | /* confdefs.h. */ |
| 13149 | _ACEOF |
| 13150 | cat confdefs.h >>conftest.$ac_ext |
| 13151 | cat >>conftest.$ac_ext <<_ACEOF |
| 13152 | /* end confdefs.h. */ |
| 13153 | #include <dirent.h> |
| 13154 | |
| 13155 | int |
| 13156 | main () |
| 13157 | { |
| 13158 | static struct dirent ac_aggr; |
| 13159 | if (sizeof ac_aggr.d_reclen) |
| 13160 | return 0; |
| 13161 | ; |
| 13162 | return 0; |
| 13163 | } |
| 13164 | _ACEOF |
| 13165 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13166 | if { (ac_try="$ac_compile" |
| 13167 | case "(($ac_try" in |
| 13168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13169 | *) ac_try_echo=$ac_try;; |
| 13170 | esac |
| 13171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13172 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13173 | ac_status=$? |
| 13174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13175 | rm -f conftest.er1 |
| 13176 | cat conftest.err >&5 |
| 13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13178 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13180 | { (case "(($ac_try" in |
| 13181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13182 | *) ac_try_echo=$ac_try;; |
| 13183 | esac |
| 13184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13185 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13186 | ac_status=$? |
| 13187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13188 | (exit $ac_status); }; } && |
| 13189 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13190 | { (case "(($ac_try" in |
| 13191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13192 | *) ac_try_echo=$ac_try;; |
| 13193 | esac |
| 13194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13195 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13196 | ac_status=$? |
| 13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13198 | (exit $ac_status); }; }; then |
| 13199 | ac_cv_member_struct_dirent_d_reclen=yes |
| 13200 | else |
| 13201 | echo "$as_me: failed program was:" >&5 |
| 13202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13203 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13204 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13205 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13206 | |
| 13207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13208 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13209 | |
| 13210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13212 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 13213 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13214 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 13215 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13216 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13217 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13218 | |
| 13219 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13220 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13221 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 13222 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13223 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13225 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13226 | cat >conftest.$ac_ext <<_ACEOF |
| 13227 | /* confdefs.h. */ |
| 13228 | _ACEOF |
| 13229 | cat confdefs.h >>conftest.$ac_ext |
| 13230 | cat >>conftest.$ac_ext <<_ACEOF |
| 13231 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13232 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13233 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13234 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13235 | int |
| 13236 | main () |
| 13237 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13238 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13239 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13240 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13241 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13242 | ; |
| 13243 | return 0; |
| 13244 | } |
| 13245 | _ACEOF |
| 13246 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13247 | if { (ac_try="$ac_compile" |
| 13248 | case "(($ac_try" in |
| 13249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13250 | *) ac_try_echo=$ac_try;; |
| 13251 | esac |
| 13252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13253 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13254 | ac_status=$? |
| 13255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13256 | rm -f conftest.er1 |
| 13257 | cat conftest.err >&5 |
| 13258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13259 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13261 | { (case "(($ac_try" in |
| 13262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13263 | *) ac_try_echo=$ac_try;; |
| 13264 | esac |
| 13265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13266 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13267 | ac_status=$? |
| 13268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13269 | (exit $ac_status); }; } && |
| 13270 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13271 | { (case "(($ac_try" in |
| 13272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13273 | *) ac_try_echo=$ac_try;; |
| 13274 | esac |
| 13275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13276 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13277 | ac_status=$? |
| 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13279 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13280 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13281 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13282 | echo "$as_me: failed program was:" >&5 |
| 13283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13284 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13285 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13286 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13287 | |
| 13288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13289 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13290 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 13291 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13292 | if test $ac_cv_type_ssize_t = yes; then |
| 13293 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13294 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13295 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13296 | |
| 13297 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13298 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13299 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 13300 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13301 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13303 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13304 | cat >conftest.$ac_ext <<_ACEOF |
| 13305 | /* confdefs.h. */ |
| 13306 | _ACEOF |
| 13307 | cat confdefs.h >>conftest.$ac_ext |
| 13308 | cat >>conftest.$ac_ext <<_ACEOF |
| 13309 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13310 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13312 | int |
| 13313 | main () |
| 13314 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13315 | #ifndef llseek |
| 13316 | char *p = (char *) llseek; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13317 | return !p; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13318 | #endif |
| 13319 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13320 | ; |
| 13321 | return 0; |
| 13322 | } |
| 13323 | _ACEOF |
| 13324 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13325 | if { (ac_try="$ac_compile" |
| 13326 | case "(($ac_try" in |
| 13327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13328 | *) ac_try_echo=$ac_try;; |
| 13329 | esac |
| 13330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13331 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13332 | ac_status=$? |
| 13333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13334 | rm -f conftest.er1 |
| 13335 | cat conftest.err >&5 |
| 13336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13337 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13339 | { (case "(($ac_try" in |
| 13340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13341 | *) ac_try_echo=$ac_try;; |
| 13342 | esac |
| 13343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13344 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13345 | ac_status=$? |
| 13346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13347 | (exit $ac_status); }; } && |
| 13348 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13349 | { (case "(($ac_try" in |
| 13350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13351 | *) ac_try_echo=$ac_try;; |
| 13352 | esac |
| 13353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13354 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13355 | ac_status=$? |
| 13356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13357 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13358 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13359 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13360 | echo "$as_me: failed program was:" >&5 |
| 13361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13362 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13363 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13364 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13365 | |
| 13366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13367 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13368 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 13369 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13370 | if test $ac_cv_have_decl_llseek = yes; then |
| 13371 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13372 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13373 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13374 | |
| 13375 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13376 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13377 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 13378 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13379 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13381 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13382 | cat >conftest.$ac_ext <<_ACEOF |
| 13383 | /* confdefs.h. */ |
| 13384 | _ACEOF |
| 13385 | cat confdefs.h >>conftest.$ac_ext |
| 13386 | cat >>conftest.$ac_ext <<_ACEOF |
| 13387 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13388 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13389 | #define _LARGEFILE64_SOURCE |
| 13390 | #include <unistd.h> |
| 13391 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13392 | int |
| 13393 | main () |
| 13394 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13395 | #ifndef lseek64 |
| 13396 | char *p = (char *) lseek64; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13397 | return !p; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13398 | #endif |
| 13399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13400 | ; |
| 13401 | return 0; |
| 13402 | } |
| 13403 | _ACEOF |
| 13404 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13405 | if { (ac_try="$ac_compile" |
| 13406 | case "(($ac_try" in |
| 13407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13408 | *) ac_try_echo=$ac_try;; |
| 13409 | esac |
| 13410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13411 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13412 | ac_status=$? |
| 13413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13414 | rm -f conftest.er1 |
| 13415 | cat conftest.err >&5 |
| 13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13417 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13419 | { (case "(($ac_try" in |
| 13420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13421 | *) ac_try_echo=$ac_try;; |
| 13422 | esac |
| 13423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13424 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13425 | ac_status=$? |
| 13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13427 | (exit $ac_status); }; } && |
| 13428 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13429 | { (case "(($ac_try" in |
| 13430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13431 | *) ac_try_echo=$ac_try;; |
| 13432 | esac |
| 13433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13434 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13438 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13439 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13440 | echo "$as_me: failed program was:" >&5 |
| 13441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13442 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13443 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13444 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13445 | |
| 13446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13447 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13448 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 13449 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13450 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 13451 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13452 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13453 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13454 | |
| 13455 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13456 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13457 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13458 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13459 | ac_cv_sizeof_short=2 |
| 13460 | ac_cv_sizeof_int=4 |
| 13461 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 13462 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13463 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 13464 | 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] | 13465 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13466 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 13467 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13468 | if test "${ac_cv_type_short+set}" = set; then |
| 13469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13470 | else |
| 13471 | cat >conftest.$ac_ext <<_ACEOF |
| 13472 | /* confdefs.h. */ |
| 13473 | _ACEOF |
| 13474 | cat confdefs.h >>conftest.$ac_ext |
| 13475 | cat >>conftest.$ac_ext <<_ACEOF |
| 13476 | /* end confdefs.h. */ |
| 13477 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13478 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13479 | int |
| 13480 | main () |
| 13481 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13482 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13483 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13484 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13485 | return 0; |
| 13486 | ; |
| 13487 | return 0; |
| 13488 | } |
| 13489 | _ACEOF |
| 13490 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13491 | if { (ac_try="$ac_compile" |
| 13492 | case "(($ac_try" in |
| 13493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13494 | *) ac_try_echo=$ac_try;; |
| 13495 | esac |
| 13496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13497 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13498 | ac_status=$? |
| 13499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13500 | rm -f conftest.er1 |
| 13501 | cat conftest.err >&5 |
| 13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13503 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13505 | { (case "(($ac_try" in |
| 13506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13507 | *) ac_try_echo=$ac_try;; |
| 13508 | esac |
| 13509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13510 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13511 | ac_status=$? |
| 13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13513 | (exit $ac_status); }; } && |
| 13514 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13515 | { (case "(($ac_try" in |
| 13516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13517 | *) ac_try_echo=$ac_try;; |
| 13518 | esac |
| 13519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13520 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13521 | ac_status=$? |
| 13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13523 | (exit $ac_status); }; }; then |
| 13524 | ac_cv_type_short=yes |
| 13525 | else |
| 13526 | echo "$as_me: failed program was:" >&5 |
| 13527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13528 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13529 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13530 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13533 | fi |
| 13534 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 13535 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 13536 | |
| 13537 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 13538 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13539 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 13540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13541 | else |
| 13542 | if test "$ac_cv_type_short" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13543 | # 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] | 13544 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13545 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13546 | # This bug is HP SR number 8606223364. |
| 13547 | if test "$cross_compiling" = yes; then |
| 13548 | # Depending upon the size, compute the lo and hi bounds. |
| 13549 | cat >conftest.$ac_ext <<_ACEOF |
| 13550 | /* confdefs.h. */ |
| 13551 | _ACEOF |
| 13552 | cat confdefs.h >>conftest.$ac_ext |
| 13553 | cat >>conftest.$ac_ext <<_ACEOF |
| 13554 | /* end confdefs.h. */ |
| 13555 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13556 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13557 | int |
| 13558 | main () |
| 13559 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13560 | 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] | 13561 | test_array [0] = 0 |
| 13562 | |
| 13563 | ; |
| 13564 | return 0; |
| 13565 | } |
| 13566 | _ACEOF |
| 13567 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13568 | if { (ac_try="$ac_compile" |
| 13569 | case "(($ac_try" in |
| 13570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13571 | *) ac_try_echo=$ac_try;; |
| 13572 | esac |
| 13573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13574 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13575 | ac_status=$? |
| 13576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13577 | rm -f conftest.er1 |
| 13578 | cat conftest.err >&5 |
| 13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13580 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13582 | { (case "(($ac_try" in |
| 13583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13584 | *) ac_try_echo=$ac_try;; |
| 13585 | esac |
| 13586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13587 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13588 | ac_status=$? |
| 13589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13590 | (exit $ac_status); }; } && |
| 13591 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13592 | { (case "(($ac_try" in |
| 13593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13594 | *) ac_try_echo=$ac_try;; |
| 13595 | esac |
| 13596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13597 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13598 | ac_status=$? |
| 13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13600 | (exit $ac_status); }; }; then |
| 13601 | ac_lo=0 ac_mid=0 |
| 13602 | while :; do |
| 13603 | cat >conftest.$ac_ext <<_ACEOF |
| 13604 | /* confdefs.h. */ |
| 13605 | _ACEOF |
| 13606 | cat confdefs.h >>conftest.$ac_ext |
| 13607 | cat >>conftest.$ac_ext <<_ACEOF |
| 13608 | /* end confdefs.h. */ |
| 13609 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13610 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13611 | int |
| 13612 | main () |
| 13613 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13614 | 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] | 13615 | test_array [0] = 0 |
| 13616 | |
| 13617 | ; |
| 13618 | return 0; |
| 13619 | } |
| 13620 | _ACEOF |
| 13621 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13622 | if { (ac_try="$ac_compile" |
| 13623 | case "(($ac_try" in |
| 13624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13625 | *) ac_try_echo=$ac_try;; |
| 13626 | esac |
| 13627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13628 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13629 | ac_status=$? |
| 13630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13631 | rm -f conftest.er1 |
| 13632 | cat conftest.err >&5 |
| 13633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13634 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13636 | { (case "(($ac_try" in |
| 13637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13638 | *) ac_try_echo=$ac_try;; |
| 13639 | esac |
| 13640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13641 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13642 | ac_status=$? |
| 13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13644 | (exit $ac_status); }; } && |
| 13645 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13646 | { (case "(($ac_try" in |
| 13647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13648 | *) ac_try_echo=$ac_try;; |
| 13649 | esac |
| 13650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13651 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13652 | ac_status=$? |
| 13653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13654 | (exit $ac_status); }; }; then |
| 13655 | ac_hi=$ac_mid; break |
| 13656 | else |
| 13657 | echo "$as_me: failed program was:" >&5 |
| 13658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13660 | ac_lo=`expr $ac_mid + 1` |
| 13661 | if test $ac_lo -le $ac_mid; then |
| 13662 | ac_lo= ac_hi= |
| 13663 | break |
| 13664 | fi |
| 13665 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13667 | |
| 13668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13669 | done |
| 13670 | else |
| 13671 | echo "$as_me: failed program was:" >&5 |
| 13672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13673 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13674 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13675 | /* confdefs.h. */ |
| 13676 | _ACEOF |
| 13677 | cat confdefs.h >>conftest.$ac_ext |
| 13678 | cat >>conftest.$ac_ext <<_ACEOF |
| 13679 | /* end confdefs.h. */ |
| 13680 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13681 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13682 | int |
| 13683 | main () |
| 13684 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13685 | 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] | 13686 | test_array [0] = 0 |
| 13687 | |
| 13688 | ; |
| 13689 | return 0; |
| 13690 | } |
| 13691 | _ACEOF |
| 13692 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13693 | if { (ac_try="$ac_compile" |
| 13694 | case "(($ac_try" in |
| 13695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13696 | *) ac_try_echo=$ac_try;; |
| 13697 | esac |
| 13698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13699 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13700 | ac_status=$? |
| 13701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13702 | rm -f conftest.er1 |
| 13703 | cat conftest.err >&5 |
| 13704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13705 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13707 | { (case "(($ac_try" in |
| 13708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13709 | *) ac_try_echo=$ac_try;; |
| 13710 | esac |
| 13711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13712 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13713 | ac_status=$? |
| 13714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13715 | (exit $ac_status); }; } && |
| 13716 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13717 | { (case "(($ac_try" in |
| 13718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13719 | *) ac_try_echo=$ac_try;; |
| 13720 | esac |
| 13721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13722 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13723 | ac_status=$? |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); }; }; then |
| 13726 | ac_hi=-1 ac_mid=-1 |
| 13727 | while :; do |
| 13728 | cat >conftest.$ac_ext <<_ACEOF |
| 13729 | /* confdefs.h. */ |
| 13730 | _ACEOF |
| 13731 | cat confdefs.h >>conftest.$ac_ext |
| 13732 | cat >>conftest.$ac_ext <<_ACEOF |
| 13733 | /* end confdefs.h. */ |
| 13734 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13735 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13736 | int |
| 13737 | main () |
| 13738 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13739 | 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] | 13740 | test_array [0] = 0 |
| 13741 | |
| 13742 | ; |
| 13743 | return 0; |
| 13744 | } |
| 13745 | _ACEOF |
| 13746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13747 | if { (ac_try="$ac_compile" |
| 13748 | case "(($ac_try" in |
| 13749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13750 | *) ac_try_echo=$ac_try;; |
| 13751 | esac |
| 13752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13753 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13754 | ac_status=$? |
| 13755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13756 | rm -f conftest.er1 |
| 13757 | cat conftest.err >&5 |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13759 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13761 | { (case "(($ac_try" in |
| 13762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13763 | *) ac_try_echo=$ac_try;; |
| 13764 | esac |
| 13765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13766 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13767 | ac_status=$? |
| 13768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13769 | (exit $ac_status); }; } && |
| 13770 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13771 | { (case "(($ac_try" in |
| 13772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13773 | *) ac_try_echo=$ac_try;; |
| 13774 | esac |
| 13775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13776 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13777 | ac_status=$? |
| 13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13779 | (exit $ac_status); }; }; then |
| 13780 | ac_lo=$ac_mid; break |
| 13781 | else |
| 13782 | echo "$as_me: failed program was:" >&5 |
| 13783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13786 | if test $ac_mid -le $ac_hi; then |
| 13787 | ac_lo= ac_hi= |
| 13788 | break |
| 13789 | fi |
| 13790 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13792 | |
| 13793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13794 | done |
| 13795 | else |
| 13796 | echo "$as_me: failed program was:" >&5 |
| 13797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13799 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13800 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13801 | |
| 13802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13804 | |
| 13805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13806 | # Binary search between lo and hi bounds. |
| 13807 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13808 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13809 | cat >conftest.$ac_ext <<_ACEOF |
| 13810 | /* confdefs.h. */ |
| 13811 | _ACEOF |
| 13812 | cat confdefs.h >>conftest.$ac_ext |
| 13813 | cat >>conftest.$ac_ext <<_ACEOF |
| 13814 | /* end confdefs.h. */ |
| 13815 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13816 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13817 | int |
| 13818 | main () |
| 13819 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13820 | 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] | 13821 | test_array [0] = 0 |
| 13822 | |
| 13823 | ; |
| 13824 | return 0; |
| 13825 | } |
| 13826 | _ACEOF |
| 13827 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13828 | if { (ac_try="$ac_compile" |
| 13829 | case "(($ac_try" in |
| 13830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13831 | *) ac_try_echo=$ac_try;; |
| 13832 | esac |
| 13833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13834 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13835 | ac_status=$? |
| 13836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13837 | rm -f conftest.er1 |
| 13838 | cat conftest.err >&5 |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13840 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13842 | { (case "(($ac_try" in |
| 13843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13844 | *) ac_try_echo=$ac_try;; |
| 13845 | esac |
| 13846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13847 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13848 | ac_status=$? |
| 13849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13850 | (exit $ac_status); }; } && |
| 13851 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13852 | { (case "(($ac_try" in |
| 13853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13854 | *) ac_try_echo=$ac_try;; |
| 13855 | esac |
| 13856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13857 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13858 | ac_status=$? |
| 13859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13860 | (exit $ac_status); }; }; then |
| 13861 | ac_hi=$ac_mid |
| 13862 | else |
| 13863 | echo "$as_me: failed program was:" >&5 |
| 13864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13866 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13867 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13868 | |
| 13869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13870 | done |
| 13871 | case $ac_lo in |
| 13872 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13873 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13874 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13875 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13876 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13877 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13878 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13879 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13880 | cat >conftest.$ac_ext <<_ACEOF |
| 13881 | /* confdefs.h. */ |
| 13882 | _ACEOF |
| 13883 | cat confdefs.h >>conftest.$ac_ext |
| 13884 | cat >>conftest.$ac_ext <<_ACEOF |
| 13885 | /* end confdefs.h. */ |
| 13886 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13887 | typedef short ac__type_sizeof_; |
| 13888 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13889 | 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] | 13890 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13891 | #include <stdlib.h> |
| 13892 | int |
| 13893 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13894 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13895 | |
| 13896 | FILE *f = fopen ("conftest.val", "w"); |
| 13897 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13898 | return 1; |
| 13899 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13900 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13901 | long int i = longval (); |
| 13902 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13903 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13904 | fprintf (f, "%ld\n", i); |
| 13905 | } |
| 13906 | else |
| 13907 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13908 | unsigned long int i = ulongval (); |
| 13909 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13910 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13911 | fprintf (f, "%lu\n", i); |
| 13912 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13913 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13914 | |
| 13915 | ; |
| 13916 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13917 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13918 | _ACEOF |
| 13919 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13920 | if { (ac_try="$ac_link" |
| 13921 | case "(($ac_try" in |
| 13922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13923 | *) ac_try_echo=$ac_try;; |
| 13924 | esac |
| 13925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13926 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13927 | ac_status=$? |
| 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13930 | { (case "(($ac_try" in |
| 13931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13932 | *) ac_try_echo=$ac_try;; |
| 13933 | esac |
| 13934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13935 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13936 | ac_status=$? |
| 13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13938 | (exit $ac_status); }; }; then |
| 13939 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13940 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13942 | echo "$as_me: failed program was:" >&5 |
| 13943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13944 | |
| 13945 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13947 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13948 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13949 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13950 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13951 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13952 | 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] | 13953 | fi |
| 13954 | rm -f conftest.val |
| 13955 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13956 | ac_cv_sizeof_short=0 |
| 13957 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13959 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 13960 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13961 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13962 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13963 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13964 | |
| 13965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13966 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 13967 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13968 | if test "${ac_cv_type_int+set}" = set; then |
| 13969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13970 | else |
| 13971 | cat >conftest.$ac_ext <<_ACEOF |
| 13972 | /* confdefs.h. */ |
| 13973 | _ACEOF |
| 13974 | cat confdefs.h >>conftest.$ac_ext |
| 13975 | cat >>conftest.$ac_ext <<_ACEOF |
| 13976 | /* end confdefs.h. */ |
| 13977 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13978 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13979 | int |
| 13980 | main () |
| 13981 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13982 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13983 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13984 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13985 | return 0; |
| 13986 | ; |
| 13987 | return 0; |
| 13988 | } |
| 13989 | _ACEOF |
| 13990 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 13991 | if { (ac_try="$ac_compile" |
| 13992 | case "(($ac_try" in |
| 13993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13994 | *) ac_try_echo=$ac_try;; |
| 13995 | esac |
| 13996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13997 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | ac_status=$? |
| 13999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14000 | rm -f conftest.er1 |
| 14001 | cat conftest.err >&5 |
| 14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14003 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14005 | { (case "(($ac_try" in |
| 14006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14007 | *) ac_try_echo=$ac_try;; |
| 14008 | esac |
| 14009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14010 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14011 | ac_status=$? |
| 14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14013 | (exit $ac_status); }; } && |
| 14014 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14015 | { (case "(($ac_try" in |
| 14016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14017 | *) ac_try_echo=$ac_try;; |
| 14018 | esac |
| 14019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14020 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14021 | ac_status=$? |
| 14022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14023 | (exit $ac_status); }; }; then |
| 14024 | ac_cv_type_int=yes |
| 14025 | else |
| 14026 | echo "$as_me: failed program was:" >&5 |
| 14027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14029 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14030 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14033 | fi |
| 14034 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 14035 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 14036 | |
| 14037 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 14038 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14039 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 14040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14041 | else |
| 14042 | if test "$ac_cv_type_int" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14043 | # 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] | 14044 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14045 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14046 | # This bug is HP SR number 8606223364. |
| 14047 | if test "$cross_compiling" = yes; then |
| 14048 | # Depending upon the size, compute the lo and hi bounds. |
| 14049 | cat >conftest.$ac_ext <<_ACEOF |
| 14050 | /* confdefs.h. */ |
| 14051 | _ACEOF |
| 14052 | cat confdefs.h >>conftest.$ac_ext |
| 14053 | cat >>conftest.$ac_ext <<_ACEOF |
| 14054 | /* end confdefs.h. */ |
| 14055 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14056 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14057 | int |
| 14058 | main () |
| 14059 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14060 | 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] | 14061 | test_array [0] = 0 |
| 14062 | |
| 14063 | ; |
| 14064 | return 0; |
| 14065 | } |
| 14066 | _ACEOF |
| 14067 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14068 | if { (ac_try="$ac_compile" |
| 14069 | case "(($ac_try" in |
| 14070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14071 | *) ac_try_echo=$ac_try;; |
| 14072 | esac |
| 14073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14074 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14075 | ac_status=$? |
| 14076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14077 | rm -f conftest.er1 |
| 14078 | cat conftest.err >&5 |
| 14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14080 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14082 | { (case "(($ac_try" in |
| 14083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14084 | *) ac_try_echo=$ac_try;; |
| 14085 | esac |
| 14086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14087 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14088 | ac_status=$? |
| 14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14090 | (exit $ac_status); }; } && |
| 14091 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14092 | { (case "(($ac_try" in |
| 14093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14094 | *) ac_try_echo=$ac_try;; |
| 14095 | esac |
| 14096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14097 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14098 | ac_status=$? |
| 14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14100 | (exit $ac_status); }; }; then |
| 14101 | ac_lo=0 ac_mid=0 |
| 14102 | while :; do |
| 14103 | cat >conftest.$ac_ext <<_ACEOF |
| 14104 | /* confdefs.h. */ |
| 14105 | _ACEOF |
| 14106 | cat confdefs.h >>conftest.$ac_ext |
| 14107 | cat >>conftest.$ac_ext <<_ACEOF |
| 14108 | /* end confdefs.h. */ |
| 14109 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14110 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14111 | int |
| 14112 | main () |
| 14113 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14114 | 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] | 14115 | test_array [0] = 0 |
| 14116 | |
| 14117 | ; |
| 14118 | return 0; |
| 14119 | } |
| 14120 | _ACEOF |
| 14121 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14122 | if { (ac_try="$ac_compile" |
| 14123 | case "(($ac_try" in |
| 14124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14125 | *) ac_try_echo=$ac_try;; |
| 14126 | esac |
| 14127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14128 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14129 | ac_status=$? |
| 14130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14131 | rm -f conftest.er1 |
| 14132 | cat conftest.err >&5 |
| 14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14134 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14136 | { (case "(($ac_try" in |
| 14137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14138 | *) ac_try_echo=$ac_try;; |
| 14139 | esac |
| 14140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14141 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14142 | ac_status=$? |
| 14143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14144 | (exit $ac_status); }; } && |
| 14145 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14146 | { (case "(($ac_try" in |
| 14147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14148 | *) ac_try_echo=$ac_try;; |
| 14149 | esac |
| 14150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14151 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14152 | ac_status=$? |
| 14153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14154 | (exit $ac_status); }; }; then |
| 14155 | ac_hi=$ac_mid; break |
| 14156 | else |
| 14157 | echo "$as_me: failed program was:" >&5 |
| 14158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14159 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14160 | ac_lo=`expr $ac_mid + 1` |
| 14161 | if test $ac_lo -le $ac_mid; then |
| 14162 | ac_lo= ac_hi= |
| 14163 | break |
| 14164 | fi |
| 14165 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14166 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14167 | |
| 14168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14169 | done |
| 14170 | else |
| 14171 | echo "$as_me: failed program was:" >&5 |
| 14172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14173 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14174 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14175 | /* confdefs.h. */ |
| 14176 | _ACEOF |
| 14177 | cat confdefs.h >>conftest.$ac_ext |
| 14178 | cat >>conftest.$ac_ext <<_ACEOF |
| 14179 | /* end confdefs.h. */ |
| 14180 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14181 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14182 | int |
| 14183 | main () |
| 14184 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14185 | 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] | 14186 | test_array [0] = 0 |
| 14187 | |
| 14188 | ; |
| 14189 | return 0; |
| 14190 | } |
| 14191 | _ACEOF |
| 14192 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14193 | if { (ac_try="$ac_compile" |
| 14194 | case "(($ac_try" in |
| 14195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14196 | *) ac_try_echo=$ac_try;; |
| 14197 | esac |
| 14198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14199 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14200 | ac_status=$? |
| 14201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14202 | rm -f conftest.er1 |
| 14203 | cat conftest.err >&5 |
| 14204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14205 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14207 | { (case "(($ac_try" in |
| 14208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14209 | *) ac_try_echo=$ac_try;; |
| 14210 | esac |
| 14211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14212 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14213 | ac_status=$? |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); }; } && |
| 14216 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14217 | { (case "(($ac_try" in |
| 14218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14219 | *) ac_try_echo=$ac_try;; |
| 14220 | esac |
| 14221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14222 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14223 | ac_status=$? |
| 14224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14225 | (exit $ac_status); }; }; then |
| 14226 | ac_hi=-1 ac_mid=-1 |
| 14227 | while :; do |
| 14228 | cat >conftest.$ac_ext <<_ACEOF |
| 14229 | /* confdefs.h. */ |
| 14230 | _ACEOF |
| 14231 | cat confdefs.h >>conftest.$ac_ext |
| 14232 | cat >>conftest.$ac_ext <<_ACEOF |
| 14233 | /* end confdefs.h. */ |
| 14234 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14235 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14236 | int |
| 14237 | main () |
| 14238 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14239 | 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] | 14240 | test_array [0] = 0 |
| 14241 | |
| 14242 | ; |
| 14243 | return 0; |
| 14244 | } |
| 14245 | _ACEOF |
| 14246 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14247 | if { (ac_try="$ac_compile" |
| 14248 | case "(($ac_try" in |
| 14249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14250 | *) ac_try_echo=$ac_try;; |
| 14251 | esac |
| 14252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14253 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14254 | ac_status=$? |
| 14255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14256 | rm -f conftest.er1 |
| 14257 | cat conftest.err >&5 |
| 14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14259 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14261 | { (case "(($ac_try" in |
| 14262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14263 | *) ac_try_echo=$ac_try;; |
| 14264 | esac |
| 14265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14266 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14267 | ac_status=$? |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); }; } && |
| 14270 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14271 | { (case "(($ac_try" in |
| 14272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14273 | *) ac_try_echo=$ac_try;; |
| 14274 | esac |
| 14275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14276 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); }; }; then |
| 14280 | ac_lo=$ac_mid; break |
| 14281 | else |
| 14282 | echo "$as_me: failed program was:" >&5 |
| 14283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14284 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14285 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14286 | if test $ac_mid -le $ac_hi; then |
| 14287 | ac_lo= ac_hi= |
| 14288 | break |
| 14289 | fi |
| 14290 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14291 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14292 | |
| 14293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14294 | done |
| 14295 | else |
| 14296 | echo "$as_me: failed program was:" >&5 |
| 14297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14298 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14299 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14300 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14301 | |
| 14302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14303 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14304 | |
| 14305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14306 | # Binary search between lo and hi bounds. |
| 14307 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14308 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14309 | cat >conftest.$ac_ext <<_ACEOF |
| 14310 | /* confdefs.h. */ |
| 14311 | _ACEOF |
| 14312 | cat confdefs.h >>conftest.$ac_ext |
| 14313 | cat >>conftest.$ac_ext <<_ACEOF |
| 14314 | /* end confdefs.h. */ |
| 14315 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14316 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14317 | int |
| 14318 | main () |
| 14319 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14320 | 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] | 14321 | test_array [0] = 0 |
| 14322 | |
| 14323 | ; |
| 14324 | return 0; |
| 14325 | } |
| 14326 | _ACEOF |
| 14327 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14328 | if { (ac_try="$ac_compile" |
| 14329 | case "(($ac_try" in |
| 14330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14331 | *) ac_try_echo=$ac_try;; |
| 14332 | esac |
| 14333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14334 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14335 | ac_status=$? |
| 14336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14337 | rm -f conftest.er1 |
| 14338 | cat conftest.err >&5 |
| 14339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14340 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14342 | { (case "(($ac_try" in |
| 14343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14344 | *) ac_try_echo=$ac_try;; |
| 14345 | esac |
| 14346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14347 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14348 | ac_status=$? |
| 14349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14350 | (exit $ac_status); }; } && |
| 14351 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14352 | { (case "(($ac_try" in |
| 14353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14354 | *) ac_try_echo=$ac_try;; |
| 14355 | esac |
| 14356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14357 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14358 | ac_status=$? |
| 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14360 | (exit $ac_status); }; }; then |
| 14361 | ac_hi=$ac_mid |
| 14362 | else |
| 14363 | echo "$as_me: failed program was:" >&5 |
| 14364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14366 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14367 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14368 | |
| 14369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14370 | done |
| 14371 | case $ac_lo in |
| 14372 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14373 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14374 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14375 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14376 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14377 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14378 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14379 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14380 | cat >conftest.$ac_ext <<_ACEOF |
| 14381 | /* confdefs.h. */ |
| 14382 | _ACEOF |
| 14383 | cat confdefs.h >>conftest.$ac_ext |
| 14384 | cat >>conftest.$ac_ext <<_ACEOF |
| 14385 | /* end confdefs.h. */ |
| 14386 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14387 | typedef int ac__type_sizeof_; |
| 14388 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14389 | 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] | 14390 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14391 | #include <stdlib.h> |
| 14392 | int |
| 14393 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14394 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14395 | |
| 14396 | FILE *f = fopen ("conftest.val", "w"); |
| 14397 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14398 | return 1; |
| 14399 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14400 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14401 | long int i = longval (); |
| 14402 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14403 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14404 | fprintf (f, "%ld\n", i); |
| 14405 | } |
| 14406 | else |
| 14407 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14408 | unsigned long int i = ulongval (); |
| 14409 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14410 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14411 | fprintf (f, "%lu\n", i); |
| 14412 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14413 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14414 | |
| 14415 | ; |
| 14416 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14417 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | _ACEOF |
| 14419 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14420 | if { (ac_try="$ac_link" |
| 14421 | case "(($ac_try" in |
| 14422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14423 | *) ac_try_echo=$ac_try;; |
| 14424 | esac |
| 14425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14426 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14427 | ac_status=$? |
| 14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14430 | { (case "(($ac_try" in |
| 14431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14432 | *) ac_try_echo=$ac_try;; |
| 14433 | esac |
| 14434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14435 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14436 | ac_status=$? |
| 14437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14438 | (exit $ac_status); }; }; then |
| 14439 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14440 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14441 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14442 | echo "$as_me: failed program was:" >&5 |
| 14443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14444 | |
| 14445 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14446 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14447 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14448 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14449 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14450 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14451 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14452 | 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] | 14453 | fi |
| 14454 | rm -f conftest.val |
| 14455 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14456 | ac_cv_sizeof_int=0 |
| 14457 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14458 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14459 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14460 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14461 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14462 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14463 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14464 | |
| 14465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14466 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 14467 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14468 | if test "${ac_cv_type_long+set}" = set; then |
| 14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14470 | else |
| 14471 | cat >conftest.$ac_ext <<_ACEOF |
| 14472 | /* confdefs.h. */ |
| 14473 | _ACEOF |
| 14474 | cat confdefs.h >>conftest.$ac_ext |
| 14475 | cat >>conftest.$ac_ext <<_ACEOF |
| 14476 | /* end confdefs.h. */ |
| 14477 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14478 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14479 | int |
| 14480 | main () |
| 14481 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14482 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14483 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14484 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14485 | return 0; |
| 14486 | ; |
| 14487 | return 0; |
| 14488 | } |
| 14489 | _ACEOF |
| 14490 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14491 | if { (ac_try="$ac_compile" |
| 14492 | case "(($ac_try" in |
| 14493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14494 | *) ac_try_echo=$ac_try;; |
| 14495 | esac |
| 14496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14497 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14498 | ac_status=$? |
| 14499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14500 | rm -f conftest.er1 |
| 14501 | cat conftest.err >&5 |
| 14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14503 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14505 | { (case "(($ac_try" in |
| 14506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14507 | *) ac_try_echo=$ac_try;; |
| 14508 | esac |
| 14509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14510 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14511 | ac_status=$? |
| 14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14513 | (exit $ac_status); }; } && |
| 14514 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14515 | { (case "(($ac_try" in |
| 14516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14517 | *) ac_try_echo=$ac_try;; |
| 14518 | esac |
| 14519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14520 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14521 | ac_status=$? |
| 14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14523 | (exit $ac_status); }; }; then |
| 14524 | ac_cv_type_long=yes |
| 14525 | else |
| 14526 | echo "$as_me: failed program was:" >&5 |
| 14527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14528 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14529 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14530 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14533 | fi |
| 14534 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 14535 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 14536 | |
| 14537 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 14538 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14539 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 14540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14541 | else |
| 14542 | if test "$ac_cv_type_long" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14543 | # 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] | 14544 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14545 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14546 | # This bug is HP SR number 8606223364. |
| 14547 | if test "$cross_compiling" = yes; then |
| 14548 | # Depending upon the size, compute the lo and hi bounds. |
| 14549 | cat >conftest.$ac_ext <<_ACEOF |
| 14550 | /* confdefs.h. */ |
| 14551 | _ACEOF |
| 14552 | cat confdefs.h >>conftest.$ac_ext |
| 14553 | cat >>conftest.$ac_ext <<_ACEOF |
| 14554 | /* end confdefs.h. */ |
| 14555 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14556 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14557 | int |
| 14558 | main () |
| 14559 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14560 | 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] | 14561 | test_array [0] = 0 |
| 14562 | |
| 14563 | ; |
| 14564 | return 0; |
| 14565 | } |
| 14566 | _ACEOF |
| 14567 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14568 | if { (ac_try="$ac_compile" |
| 14569 | case "(($ac_try" in |
| 14570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14571 | *) ac_try_echo=$ac_try;; |
| 14572 | esac |
| 14573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14574 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14575 | ac_status=$? |
| 14576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14577 | rm -f conftest.er1 |
| 14578 | cat conftest.err >&5 |
| 14579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14580 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14582 | { (case "(($ac_try" in |
| 14583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14584 | *) ac_try_echo=$ac_try;; |
| 14585 | esac |
| 14586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14587 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14588 | ac_status=$? |
| 14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14590 | (exit $ac_status); }; } && |
| 14591 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14592 | { (case "(($ac_try" in |
| 14593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14594 | *) ac_try_echo=$ac_try;; |
| 14595 | esac |
| 14596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14597 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14598 | ac_status=$? |
| 14599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14600 | (exit $ac_status); }; }; then |
| 14601 | ac_lo=0 ac_mid=0 |
| 14602 | while :; do |
| 14603 | cat >conftest.$ac_ext <<_ACEOF |
| 14604 | /* confdefs.h. */ |
| 14605 | _ACEOF |
| 14606 | cat confdefs.h >>conftest.$ac_ext |
| 14607 | cat >>conftest.$ac_ext <<_ACEOF |
| 14608 | /* end confdefs.h. */ |
| 14609 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14610 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14611 | int |
| 14612 | main () |
| 14613 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14614 | 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] | 14615 | test_array [0] = 0 |
| 14616 | |
| 14617 | ; |
| 14618 | return 0; |
| 14619 | } |
| 14620 | _ACEOF |
| 14621 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14622 | if { (ac_try="$ac_compile" |
| 14623 | case "(($ac_try" in |
| 14624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14625 | *) ac_try_echo=$ac_try;; |
| 14626 | esac |
| 14627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14628 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14629 | ac_status=$? |
| 14630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14631 | rm -f conftest.er1 |
| 14632 | cat conftest.err >&5 |
| 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14634 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14636 | { (case "(($ac_try" in |
| 14637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14638 | *) ac_try_echo=$ac_try;; |
| 14639 | esac |
| 14640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14641 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14642 | ac_status=$? |
| 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14644 | (exit $ac_status); }; } && |
| 14645 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14646 | { (case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); }; }; then |
| 14655 | ac_hi=$ac_mid; break |
| 14656 | else |
| 14657 | echo "$as_me: failed program was:" >&5 |
| 14658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14660 | ac_lo=`expr $ac_mid + 1` |
| 14661 | if test $ac_lo -le $ac_mid; then |
| 14662 | ac_lo= ac_hi= |
| 14663 | break |
| 14664 | fi |
| 14665 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14667 | |
| 14668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14669 | done |
| 14670 | else |
| 14671 | echo "$as_me: failed program was:" >&5 |
| 14672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14673 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14674 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14675 | /* confdefs.h. */ |
| 14676 | _ACEOF |
| 14677 | cat confdefs.h >>conftest.$ac_ext |
| 14678 | cat >>conftest.$ac_ext <<_ACEOF |
| 14679 | /* end confdefs.h. */ |
| 14680 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14681 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14682 | int |
| 14683 | main () |
| 14684 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14685 | 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] | 14686 | test_array [0] = 0 |
| 14687 | |
| 14688 | ; |
| 14689 | return 0; |
| 14690 | } |
| 14691 | _ACEOF |
| 14692 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14693 | if { (ac_try="$ac_compile" |
| 14694 | case "(($ac_try" in |
| 14695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14696 | *) ac_try_echo=$ac_try;; |
| 14697 | esac |
| 14698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14699 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14700 | ac_status=$? |
| 14701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14702 | rm -f conftest.er1 |
| 14703 | cat conftest.err >&5 |
| 14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14705 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14707 | { (case "(($ac_try" in |
| 14708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14709 | *) ac_try_echo=$ac_try;; |
| 14710 | esac |
| 14711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14712 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14713 | ac_status=$? |
| 14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14715 | (exit $ac_status); }; } && |
| 14716 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14717 | { (case "(($ac_try" in |
| 14718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14719 | *) ac_try_echo=$ac_try;; |
| 14720 | esac |
| 14721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14722 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14723 | ac_status=$? |
| 14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14725 | (exit $ac_status); }; }; then |
| 14726 | ac_hi=-1 ac_mid=-1 |
| 14727 | while :; do |
| 14728 | cat >conftest.$ac_ext <<_ACEOF |
| 14729 | /* confdefs.h. */ |
| 14730 | _ACEOF |
| 14731 | cat confdefs.h >>conftest.$ac_ext |
| 14732 | cat >>conftest.$ac_ext <<_ACEOF |
| 14733 | /* end confdefs.h. */ |
| 14734 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14735 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14736 | int |
| 14737 | main () |
| 14738 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14739 | 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] | 14740 | test_array [0] = 0 |
| 14741 | |
| 14742 | ; |
| 14743 | return 0; |
| 14744 | } |
| 14745 | _ACEOF |
| 14746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14747 | if { (ac_try="$ac_compile" |
| 14748 | case "(($ac_try" in |
| 14749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14750 | *) ac_try_echo=$ac_try;; |
| 14751 | esac |
| 14752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14753 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14754 | ac_status=$? |
| 14755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14756 | rm -f conftest.er1 |
| 14757 | cat conftest.err >&5 |
| 14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14759 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14761 | { (case "(($ac_try" in |
| 14762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14763 | *) ac_try_echo=$ac_try;; |
| 14764 | esac |
| 14765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14766 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14767 | ac_status=$? |
| 14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14769 | (exit $ac_status); }; } && |
| 14770 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14771 | { (case "(($ac_try" in |
| 14772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14773 | *) ac_try_echo=$ac_try;; |
| 14774 | esac |
| 14775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14776 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14777 | ac_status=$? |
| 14778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14779 | (exit $ac_status); }; }; then |
| 14780 | ac_lo=$ac_mid; break |
| 14781 | else |
| 14782 | echo "$as_me: failed program was:" >&5 |
| 14783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14786 | if test $ac_mid -le $ac_hi; then |
| 14787 | ac_lo= ac_hi= |
| 14788 | break |
| 14789 | fi |
| 14790 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14792 | |
| 14793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14794 | done |
| 14795 | else |
| 14796 | echo "$as_me: failed program was:" >&5 |
| 14797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14799 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14800 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14801 | |
| 14802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14804 | |
| 14805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14806 | # Binary search between lo and hi bounds. |
| 14807 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14808 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14809 | cat >conftest.$ac_ext <<_ACEOF |
| 14810 | /* confdefs.h. */ |
| 14811 | _ACEOF |
| 14812 | cat confdefs.h >>conftest.$ac_ext |
| 14813 | cat >>conftest.$ac_ext <<_ACEOF |
| 14814 | /* end confdefs.h. */ |
| 14815 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14816 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14817 | int |
| 14818 | main () |
| 14819 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14820 | 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] | 14821 | test_array [0] = 0 |
| 14822 | |
| 14823 | ; |
| 14824 | return 0; |
| 14825 | } |
| 14826 | _ACEOF |
| 14827 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14828 | if { (ac_try="$ac_compile" |
| 14829 | case "(($ac_try" in |
| 14830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14831 | *) ac_try_echo=$ac_try;; |
| 14832 | esac |
| 14833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14834 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14835 | ac_status=$? |
| 14836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14837 | rm -f conftest.er1 |
| 14838 | cat conftest.err >&5 |
| 14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14840 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14842 | { (case "(($ac_try" in |
| 14843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14844 | *) ac_try_echo=$ac_try;; |
| 14845 | esac |
| 14846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14847 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14848 | ac_status=$? |
| 14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14850 | (exit $ac_status); }; } && |
| 14851 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14852 | { (case "(($ac_try" in |
| 14853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14854 | *) ac_try_echo=$ac_try;; |
| 14855 | esac |
| 14856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14857 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14858 | ac_status=$? |
| 14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14860 | (exit $ac_status); }; }; then |
| 14861 | ac_hi=$ac_mid |
| 14862 | else |
| 14863 | echo "$as_me: failed program was:" >&5 |
| 14864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14866 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14867 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14868 | |
| 14869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14870 | done |
| 14871 | case $ac_lo in |
| 14872 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14873 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14874 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14875 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14876 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14877 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14878 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14879 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14880 | cat >conftest.$ac_ext <<_ACEOF |
| 14881 | /* confdefs.h. */ |
| 14882 | _ACEOF |
| 14883 | cat confdefs.h >>conftest.$ac_ext |
| 14884 | cat >>conftest.$ac_ext <<_ACEOF |
| 14885 | /* end confdefs.h. */ |
| 14886 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14887 | typedef long ac__type_sizeof_; |
| 14888 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14889 | 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] | 14890 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14891 | #include <stdlib.h> |
| 14892 | int |
| 14893 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14894 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14895 | |
| 14896 | FILE *f = fopen ("conftest.val", "w"); |
| 14897 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14898 | return 1; |
| 14899 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14900 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14901 | long int i = longval (); |
| 14902 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14903 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14904 | fprintf (f, "%ld\n", i); |
| 14905 | } |
| 14906 | else |
| 14907 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14908 | unsigned long int i = ulongval (); |
| 14909 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14910 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14911 | fprintf (f, "%lu\n", i); |
| 14912 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14913 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14914 | |
| 14915 | ; |
| 14916 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14917 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14918 | _ACEOF |
| 14919 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14920 | if { (ac_try="$ac_link" |
| 14921 | case "(($ac_try" in |
| 14922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14923 | *) ac_try_echo=$ac_try;; |
| 14924 | esac |
| 14925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14926 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14927 | ac_status=$? |
| 14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14930 | { (case "(($ac_try" in |
| 14931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14932 | *) ac_try_echo=$ac_try;; |
| 14933 | esac |
| 14934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14935 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14936 | ac_status=$? |
| 14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14938 | (exit $ac_status); }; }; then |
| 14939 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14940 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14942 | echo "$as_me: failed program was:" >&5 |
| 14943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14944 | |
| 14945 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14947 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14948 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14949 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14950 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14951 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14952 | 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] | 14953 | fi |
| 14954 | rm -f conftest.val |
| 14955 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14956 | ac_cv_sizeof_long=0 |
| 14957 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14959 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 14960 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14961 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14962 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14963 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14964 | |
| 14965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14966 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 14967 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14968 | if test "${ac_cv_type_long_long+set}" = set; then |
| 14969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14970 | else |
| 14971 | cat >conftest.$ac_ext <<_ACEOF |
| 14972 | /* confdefs.h. */ |
| 14973 | _ACEOF |
| 14974 | cat confdefs.h >>conftest.$ac_ext |
| 14975 | cat >>conftest.$ac_ext <<_ACEOF |
| 14976 | /* end confdefs.h. */ |
| 14977 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14978 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14979 | int |
| 14980 | main () |
| 14981 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14982 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14983 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14984 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14985 | return 0; |
| 14986 | ; |
| 14987 | return 0; |
| 14988 | } |
| 14989 | _ACEOF |
| 14990 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 14991 | if { (ac_try="$ac_compile" |
| 14992 | case "(($ac_try" in |
| 14993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14994 | *) ac_try_echo=$ac_try;; |
| 14995 | esac |
| 14996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14997 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14998 | ac_status=$? |
| 14999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15000 | rm -f conftest.er1 |
| 15001 | cat conftest.err >&5 |
| 15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15003 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15005 | { (case "(($ac_try" in |
| 15006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15007 | *) ac_try_echo=$ac_try;; |
| 15008 | esac |
| 15009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15010 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15011 | ac_status=$? |
| 15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15013 | (exit $ac_status); }; } && |
| 15014 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15015 | { (case "(($ac_try" in |
| 15016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15017 | *) ac_try_echo=$ac_try;; |
| 15018 | esac |
| 15019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15020 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15021 | ac_status=$? |
| 15022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15023 | (exit $ac_status); }; }; then |
| 15024 | ac_cv_type_long_long=yes |
| 15025 | else |
| 15026 | echo "$as_me: failed program was:" >&5 |
| 15027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15029 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15030 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15033 | fi |
| 15034 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 15035 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 15036 | |
| 15037 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 15038 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15039 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 15040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15041 | else |
| 15042 | if test "$ac_cv_type_long_long" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15043 | # 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] | 15044 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15045 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15046 | # This bug is HP SR number 8606223364. |
| 15047 | if test "$cross_compiling" = yes; then |
| 15048 | # Depending upon the size, compute the lo and hi bounds. |
| 15049 | cat >conftest.$ac_ext <<_ACEOF |
| 15050 | /* confdefs.h. */ |
| 15051 | _ACEOF |
| 15052 | cat confdefs.h >>conftest.$ac_ext |
| 15053 | cat >>conftest.$ac_ext <<_ACEOF |
| 15054 | /* end confdefs.h. */ |
| 15055 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15056 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15057 | int |
| 15058 | main () |
| 15059 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15060 | 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] | 15061 | test_array [0] = 0 |
| 15062 | |
| 15063 | ; |
| 15064 | return 0; |
| 15065 | } |
| 15066 | _ACEOF |
| 15067 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15068 | if { (ac_try="$ac_compile" |
| 15069 | case "(($ac_try" in |
| 15070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15071 | *) ac_try_echo=$ac_try;; |
| 15072 | esac |
| 15073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15074 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15075 | ac_status=$? |
| 15076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15077 | rm -f conftest.er1 |
| 15078 | cat conftest.err >&5 |
| 15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15080 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15082 | { (case "(($ac_try" in |
| 15083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15084 | *) ac_try_echo=$ac_try;; |
| 15085 | esac |
| 15086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15087 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15088 | ac_status=$? |
| 15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15090 | (exit $ac_status); }; } && |
| 15091 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15092 | { (case "(($ac_try" in |
| 15093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15094 | *) ac_try_echo=$ac_try;; |
| 15095 | esac |
| 15096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15097 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15098 | ac_status=$? |
| 15099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15100 | (exit $ac_status); }; }; then |
| 15101 | ac_lo=0 ac_mid=0 |
| 15102 | while :; do |
| 15103 | cat >conftest.$ac_ext <<_ACEOF |
| 15104 | /* confdefs.h. */ |
| 15105 | _ACEOF |
| 15106 | cat confdefs.h >>conftest.$ac_ext |
| 15107 | cat >>conftest.$ac_ext <<_ACEOF |
| 15108 | /* end confdefs.h. */ |
| 15109 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15110 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15111 | int |
| 15112 | main () |
| 15113 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15114 | 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] | 15115 | test_array [0] = 0 |
| 15116 | |
| 15117 | ; |
| 15118 | return 0; |
| 15119 | } |
| 15120 | _ACEOF |
| 15121 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15122 | if { (ac_try="$ac_compile" |
| 15123 | case "(($ac_try" in |
| 15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15125 | *) ac_try_echo=$ac_try;; |
| 15126 | esac |
| 15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15128 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15129 | ac_status=$? |
| 15130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15131 | rm -f conftest.er1 |
| 15132 | cat conftest.err >&5 |
| 15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15134 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15136 | { (case "(($ac_try" in |
| 15137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15138 | *) ac_try_echo=$ac_try;; |
| 15139 | esac |
| 15140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15141 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15142 | ac_status=$? |
| 15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15144 | (exit $ac_status); }; } && |
| 15145 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15146 | { (case "(($ac_try" in |
| 15147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15148 | *) ac_try_echo=$ac_try;; |
| 15149 | esac |
| 15150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15151 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15152 | ac_status=$? |
| 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15154 | (exit $ac_status); }; }; then |
| 15155 | ac_hi=$ac_mid; break |
| 15156 | else |
| 15157 | echo "$as_me: failed program was:" >&5 |
| 15158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15159 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15160 | ac_lo=`expr $ac_mid + 1` |
| 15161 | if test $ac_lo -le $ac_mid; then |
| 15162 | ac_lo= ac_hi= |
| 15163 | break |
| 15164 | fi |
| 15165 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15166 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15167 | |
| 15168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15169 | done |
| 15170 | else |
| 15171 | echo "$as_me: failed program was:" >&5 |
| 15172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15173 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15174 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15175 | /* confdefs.h. */ |
| 15176 | _ACEOF |
| 15177 | cat confdefs.h >>conftest.$ac_ext |
| 15178 | cat >>conftest.$ac_ext <<_ACEOF |
| 15179 | /* end confdefs.h. */ |
| 15180 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15181 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15182 | int |
| 15183 | main () |
| 15184 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15185 | 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] | 15186 | test_array [0] = 0 |
| 15187 | |
| 15188 | ; |
| 15189 | return 0; |
| 15190 | } |
| 15191 | _ACEOF |
| 15192 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15193 | if { (ac_try="$ac_compile" |
| 15194 | case "(($ac_try" in |
| 15195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15196 | *) ac_try_echo=$ac_try;; |
| 15197 | esac |
| 15198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15199 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15200 | ac_status=$? |
| 15201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15202 | rm -f conftest.er1 |
| 15203 | cat conftest.err >&5 |
| 15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15205 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15207 | { (case "(($ac_try" in |
| 15208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15209 | *) ac_try_echo=$ac_try;; |
| 15210 | esac |
| 15211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15212 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15213 | ac_status=$? |
| 15214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15215 | (exit $ac_status); }; } && |
| 15216 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15217 | { (case "(($ac_try" in |
| 15218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15219 | *) ac_try_echo=$ac_try;; |
| 15220 | esac |
| 15221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15222 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15223 | ac_status=$? |
| 15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15225 | (exit $ac_status); }; }; then |
| 15226 | ac_hi=-1 ac_mid=-1 |
| 15227 | while :; do |
| 15228 | cat >conftest.$ac_ext <<_ACEOF |
| 15229 | /* confdefs.h. */ |
| 15230 | _ACEOF |
| 15231 | cat confdefs.h >>conftest.$ac_ext |
| 15232 | cat >>conftest.$ac_ext <<_ACEOF |
| 15233 | /* end confdefs.h. */ |
| 15234 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15235 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15236 | int |
| 15237 | main () |
| 15238 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15239 | 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] | 15240 | test_array [0] = 0 |
| 15241 | |
| 15242 | ; |
| 15243 | return 0; |
| 15244 | } |
| 15245 | _ACEOF |
| 15246 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15247 | if { (ac_try="$ac_compile" |
| 15248 | case "(($ac_try" in |
| 15249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15250 | *) ac_try_echo=$ac_try;; |
| 15251 | esac |
| 15252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15253 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15254 | ac_status=$? |
| 15255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15256 | rm -f conftest.er1 |
| 15257 | cat conftest.err >&5 |
| 15258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15259 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15261 | { (case "(($ac_try" in |
| 15262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15263 | *) ac_try_echo=$ac_try;; |
| 15264 | esac |
| 15265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15266 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15267 | ac_status=$? |
| 15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15269 | (exit $ac_status); }; } && |
| 15270 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15271 | { (case "(($ac_try" in |
| 15272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15273 | *) ac_try_echo=$ac_try;; |
| 15274 | esac |
| 15275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15276 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15277 | ac_status=$? |
| 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15279 | (exit $ac_status); }; }; then |
| 15280 | ac_lo=$ac_mid; break |
| 15281 | else |
| 15282 | echo "$as_me: failed program was:" >&5 |
| 15283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15284 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15285 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15286 | if test $ac_mid -le $ac_hi; then |
| 15287 | ac_lo= ac_hi= |
| 15288 | break |
| 15289 | fi |
| 15290 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15291 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15292 | |
| 15293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15294 | done |
| 15295 | else |
| 15296 | echo "$as_me: failed program was:" >&5 |
| 15297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15298 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15299 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15300 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15301 | |
| 15302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15303 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15304 | |
| 15305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15306 | # Binary search between lo and hi bounds. |
| 15307 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15308 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15309 | cat >conftest.$ac_ext <<_ACEOF |
| 15310 | /* confdefs.h. */ |
| 15311 | _ACEOF |
| 15312 | cat confdefs.h >>conftest.$ac_ext |
| 15313 | cat >>conftest.$ac_ext <<_ACEOF |
| 15314 | /* end confdefs.h. */ |
| 15315 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15316 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15317 | int |
| 15318 | main () |
| 15319 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15320 | 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] | 15321 | test_array [0] = 0 |
| 15322 | |
| 15323 | ; |
| 15324 | return 0; |
| 15325 | } |
| 15326 | _ACEOF |
| 15327 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15328 | if { (ac_try="$ac_compile" |
| 15329 | case "(($ac_try" in |
| 15330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15331 | *) ac_try_echo=$ac_try;; |
| 15332 | esac |
| 15333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15334 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15335 | ac_status=$? |
| 15336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15337 | rm -f conftest.er1 |
| 15338 | cat conftest.err >&5 |
| 15339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15340 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15342 | { (case "(($ac_try" in |
| 15343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15344 | *) ac_try_echo=$ac_try;; |
| 15345 | esac |
| 15346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15347 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15348 | ac_status=$? |
| 15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15350 | (exit $ac_status); }; } && |
| 15351 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15352 | { (case "(($ac_try" in |
| 15353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15354 | *) ac_try_echo=$ac_try;; |
| 15355 | esac |
| 15356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15357 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15358 | ac_status=$? |
| 15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15360 | (exit $ac_status); }; }; then |
| 15361 | ac_hi=$ac_mid |
| 15362 | else |
| 15363 | echo "$as_me: failed program was:" >&5 |
| 15364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15366 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15367 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15368 | |
| 15369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15370 | done |
| 15371 | case $ac_lo in |
| 15372 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15373 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15374 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15375 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15376 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15377 | { (exit 77); exit 77; }; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15378 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15379 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15380 | cat >conftest.$ac_ext <<_ACEOF |
| 15381 | /* confdefs.h. */ |
| 15382 | _ACEOF |
| 15383 | cat confdefs.h >>conftest.$ac_ext |
| 15384 | cat >>conftest.$ac_ext <<_ACEOF |
| 15385 | /* end confdefs.h. */ |
| 15386 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15387 | typedef long long ac__type_sizeof_; |
| 15388 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 15389 | 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] | 15390 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15391 | #include <stdlib.h> |
| 15392 | int |
| 15393 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15394 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15395 | |
| 15396 | FILE *f = fopen ("conftest.val", "w"); |
| 15397 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15398 | return 1; |
| 15399 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15400 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15401 | long int i = longval (); |
| 15402 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 15403 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15404 | fprintf (f, "%ld\n", i); |
| 15405 | } |
| 15406 | else |
| 15407 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15408 | unsigned long int i = ulongval (); |
| 15409 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 15410 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15411 | fprintf (f, "%lu\n", i); |
| 15412 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15413 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15414 | |
| 15415 | ; |
| 15416 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15417 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15418 | _ACEOF |
| 15419 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15420 | if { (ac_try="$ac_link" |
| 15421 | case "(($ac_try" in |
| 15422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15423 | *) ac_try_echo=$ac_try;; |
| 15424 | esac |
| 15425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15426 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15427 | ac_status=$? |
| 15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15430 | { (case "(($ac_try" in |
| 15431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15432 | *) ac_try_echo=$ac_try;; |
| 15433 | esac |
| 15434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15435 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15436 | ac_status=$? |
| 15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15438 | (exit $ac_status); }; }; then |
| 15439 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15440 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15441 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15442 | echo "$as_me: failed program was:" >&5 |
| 15443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15444 | |
| 15445 | ( exit $ac_status ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15446 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15447 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15448 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15449 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15450 | { (exit 77); exit 77; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15451 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15452 | 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] | 15453 | fi |
| 15454 | rm -f conftest.val |
| 15455 | else |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15456 | ac_cv_sizeof_long_long=0 |
| 15457 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15458 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15459 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 15460 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15461 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15462 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15463 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15464 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15465 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15466 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 15467 | SIZEOF_INT=$ac_cv_sizeof_int |
| 15468 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15469 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 15470 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15471 | |
| 15472 | |
| 15473 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15474 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15475 | 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] | 15476 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15478 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15479 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15480 | cat >conftest.$ac_ext <<_ACEOF |
| 15481 | /* confdefs.h. */ |
| 15482 | _ACEOF |
| 15483 | cat confdefs.h >>conftest.$ac_ext |
| 15484 | cat >>conftest.$ac_ext <<_ACEOF |
| 15485 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15486 | #include <sys/types.h> |
| 15487 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15488 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15489 | int |
| 15490 | main () |
| 15491 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15492 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15493 | bogus endian macros |
| 15494 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15495 | |
| 15496 | ; |
| 15497 | return 0; |
| 15498 | } |
| 15499 | _ACEOF |
| 15500 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15501 | if { (ac_try="$ac_compile" |
| 15502 | case "(($ac_try" in |
| 15503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15504 | *) ac_try_echo=$ac_try;; |
| 15505 | esac |
| 15506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15507 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15508 | ac_status=$? |
| 15509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15510 | rm -f conftest.er1 |
| 15511 | cat conftest.err >&5 |
| 15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15513 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15515 | { (case "(($ac_try" in |
| 15516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15517 | *) ac_try_echo=$ac_try;; |
| 15518 | esac |
| 15519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15520 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15521 | ac_status=$? |
| 15522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15523 | (exit $ac_status); }; } && |
| 15524 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15525 | { (case "(($ac_try" in |
| 15526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15527 | *) ac_try_echo=$ac_try;; |
| 15528 | esac |
| 15529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15530 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15531 | ac_status=$? |
| 15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15533 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15534 | # 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] | 15535 | cat >conftest.$ac_ext <<_ACEOF |
| 15536 | /* confdefs.h. */ |
| 15537 | _ACEOF |
| 15538 | cat confdefs.h >>conftest.$ac_ext |
| 15539 | cat >>conftest.$ac_ext <<_ACEOF |
| 15540 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15541 | #include <sys/types.h> |
| 15542 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15544 | int |
| 15545 | main () |
| 15546 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15547 | #if BYTE_ORDER != BIG_ENDIAN |
| 15548 | not big endian |
| 15549 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15550 | |
| 15551 | ; |
| 15552 | return 0; |
| 15553 | } |
| 15554 | _ACEOF |
| 15555 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15556 | if { (ac_try="$ac_compile" |
| 15557 | case "(($ac_try" in |
| 15558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15559 | *) ac_try_echo=$ac_try;; |
| 15560 | esac |
| 15561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15562 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15563 | ac_status=$? |
| 15564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15565 | rm -f conftest.er1 |
| 15566 | cat conftest.err >&5 |
| 15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15568 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15570 | { (case "(($ac_try" in |
| 15571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15572 | *) ac_try_echo=$ac_try;; |
| 15573 | esac |
| 15574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15575 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15576 | ac_status=$? |
| 15577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15578 | (exit $ac_status); }; } && |
| 15579 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15580 | { (case "(($ac_try" in |
| 15581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15582 | *) ac_try_echo=$ac_try;; |
| 15583 | esac |
| 15584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15585 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15586 | ac_status=$? |
| 15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15588 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15589 | ac_cv_c_bigendian=yes |
| 15590 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15591 | echo "$as_me: failed program was:" >&5 |
| 15592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15593 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15594 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15595 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15596 | |
| 15597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15598 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15599 | echo "$as_me: failed program was:" >&5 |
| 15600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15602 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15603 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15604 | # try to guess the endianness by grepping values into an object file |
| 15605 | ac_cv_c_bigendian=unknown |
| 15606 | cat >conftest.$ac_ext <<_ACEOF |
| 15607 | /* confdefs.h. */ |
| 15608 | _ACEOF |
| 15609 | cat confdefs.h >>conftest.$ac_ext |
| 15610 | cat >>conftest.$ac_ext <<_ACEOF |
| 15611 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15612 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15613 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15614 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15615 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15616 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15617 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15618 | int |
| 15619 | main () |
| 15620 | { |
| 15621 | _ascii (); _ebcdic (); |
| 15622 | ; |
| 15623 | return 0; |
| 15624 | } |
| 15625 | _ACEOF |
| 15626 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15627 | if { (ac_try="$ac_compile" |
| 15628 | case "(($ac_try" in |
| 15629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15630 | *) ac_try_echo=$ac_try;; |
| 15631 | esac |
| 15632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15633 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15634 | ac_status=$? |
| 15635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15636 | rm -f conftest.er1 |
| 15637 | cat conftest.err >&5 |
| 15638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15639 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15641 | { (case "(($ac_try" in |
| 15642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15643 | *) ac_try_echo=$ac_try;; |
| 15644 | esac |
| 15645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15646 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15647 | ac_status=$? |
| 15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15649 | (exit $ac_status); }; } && |
| 15650 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15651 | { (case "(($ac_try" in |
| 15652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15653 | *) ac_try_echo=$ac_try;; |
| 15654 | esac |
| 15655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15656 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15657 | ac_status=$? |
| 15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15659 | (exit $ac_status); }; }; then |
| 15660 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15661 | ac_cv_c_bigendian=yes |
| 15662 | fi |
| 15663 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15664 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15665 | ac_cv_c_bigendian=no |
| 15666 | else |
| 15667 | # finding both strings is unlikely to happen, but who knows? |
| 15668 | ac_cv_c_bigendian=unknown |
| 15669 | fi |
| 15670 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15671 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15672 | echo "$as_me: failed program was:" >&5 |
| 15673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15674 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15675 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15676 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15677 | |
| 15678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15679 | else |
| 15680 | cat >conftest.$ac_ext <<_ACEOF |
| 15681 | /* confdefs.h. */ |
| 15682 | _ACEOF |
| 15683 | cat confdefs.h >>conftest.$ac_ext |
| 15684 | cat >>conftest.$ac_ext <<_ACEOF |
| 15685 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15686 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15687 | int |
| 15688 | main () |
| 15689 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15690 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15691 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15692 | union |
| 15693 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15694 | long int l; |
| 15695 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15696 | } u; |
| 15697 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15698 | return u.c[sizeof (long int) - 1] == 1; |
| 15699 | |
| 15700 | ; |
| 15701 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15702 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15703 | _ACEOF |
| 15704 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15705 | if { (ac_try="$ac_link" |
| 15706 | case "(($ac_try" in |
| 15707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15708 | *) ac_try_echo=$ac_try;; |
| 15709 | esac |
| 15710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15711 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15712 | ac_status=$? |
| 15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15715 | { (case "(($ac_try" in |
| 15716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15717 | *) ac_try_echo=$ac_try;; |
| 15718 | esac |
| 15719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15720 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15721 | ac_status=$? |
| 15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15723 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15724 | ac_cv_c_bigendian=no |
| 15725 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15726 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15727 | echo "$as_me: failed program was:" >&5 |
| 15728 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15730 | ( exit $ac_status ) |
| 15731 | ac_cv_c_bigendian=yes |
| 15732 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15733 | 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] | 15734 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15735 | |
| 15736 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15737 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15738 | |
| 15739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15741 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15742 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15743 | case $ac_cv_c_bigendian in |
| 15744 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15745 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15746 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15747 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15748 | _ACEOF |
| 15749 | ;; |
| 15750 | no) |
| 15751 | ;; |
| 15752 | *) |
| 15753 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 15754 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15755 | echo "$as_me: error: unknown endianness |
| 15756 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15757 | { (exit 1); exit 1; }; } ;; |
| 15758 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15759 | |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15760 | /bin/sh $ac_aux_dir/parse-types.sh |
| 15761 | ASM_TYPES_HEADER=./asm_types.h |
| 15762 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15763 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15764 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15765 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15766 | 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^] | 15767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15768 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15769 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15770 | 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] | 15771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15773 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15774 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15775 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15776 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15777 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15778 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15779 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15780 | cat >conftest.$ac_ext <<_ACEOF |
| 15781 | /* confdefs.h. */ |
| 15782 | _ACEOF |
| 15783 | cat confdefs.h >>conftest.$ac_ext |
| 15784 | cat >>conftest.$ac_ext <<_ACEOF |
| 15785 | /* end confdefs.h. */ |
| 15786 | $ac_includes_default |
| 15787 | #include <$ac_header> |
| 15788 | _ACEOF |
| 15789 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15790 | if { (ac_try="$ac_compile" |
| 15791 | case "(($ac_try" in |
| 15792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15793 | *) ac_try_echo=$ac_try;; |
| 15794 | esac |
| 15795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15796 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15797 | ac_status=$? |
| 15798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15799 | rm -f conftest.er1 |
| 15800 | cat conftest.err >&5 |
| 15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15802 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15804 | { (case "(($ac_try" in |
| 15805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15806 | *) ac_try_echo=$ac_try;; |
| 15807 | esac |
| 15808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15809 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15810 | ac_status=$? |
| 15811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15812 | (exit $ac_status); }; } && |
| 15813 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15814 | { (case "(($ac_try" in |
| 15815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15816 | *) ac_try_echo=$ac_try;; |
| 15817 | esac |
| 15818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15819 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15820 | ac_status=$? |
| 15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15822 | (exit $ac_status); }; }; then |
| 15823 | ac_header_compiler=yes |
| 15824 | else |
| 15825 | echo "$as_me: failed program was:" >&5 |
| 15826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15827 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15828 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15829 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15830 | |
| 15831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15832 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15833 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15834 | |
| 15835 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15836 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15837 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15838 | cat >conftest.$ac_ext <<_ACEOF |
| 15839 | /* confdefs.h. */ |
| 15840 | _ACEOF |
| 15841 | cat confdefs.h >>conftest.$ac_ext |
| 15842 | cat >>conftest.$ac_ext <<_ACEOF |
| 15843 | /* end confdefs.h. */ |
| 15844 | #include <$ac_header> |
| 15845 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15846 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15847 | case "(($ac_try" in |
| 15848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15849 | *) ac_try_echo=$ac_try;; |
| 15850 | esac |
| 15851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15852 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15853 | ac_status=$? |
| 15854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15855 | rm -f conftest.er1 |
| 15856 | cat conftest.err >&5 |
| 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15858 | (exit $ac_status); } >/dev/null; then |
| 15859 | if test -s conftest.err; then |
| 15860 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15861 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15862 | else |
| 15863 | ac_cpp_err= |
| 15864 | fi |
| 15865 | else |
| 15866 | ac_cpp_err=yes |
| 15867 | fi |
| 15868 | if test -z "$ac_cpp_err"; then |
| 15869 | ac_header_preproc=yes |
| 15870 | else |
| 15871 | echo "$as_me: failed program was:" >&5 |
| 15872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15873 | |
| 15874 | ac_header_preproc=no |
| 15875 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15877 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15878 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15879 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15880 | |
| 15881 | # So? What about this header? |
| 15882 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15883 | yes:no: ) |
| 15884 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15885 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15887 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15888 | ac_header_preproc=yes |
| 15889 | ;; |
| 15890 | no:yes:* ) |
| 15891 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15892 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15893 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15894 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15895 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15896 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15897 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15898 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15900 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15901 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15902 | 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^] | 15903 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15904 | ;; |
| 15905 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15906 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15908 | 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] | 15909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15910 | else |
| 15911 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15912 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15913 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15914 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15915 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15916 | |
| 15917 | fi |
| 15918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15919 | cat >>confdefs.h <<_ACEOF |
| 15920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15921 | _ACEOF |
| 15922 | |
| 15923 | fi |
| 15924 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15925 | done |
| 15926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15927 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 15928 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15929 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 15930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15931 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15932 | cat >conftest.$ac_ext <<_ACEOF |
| 15933 | /* confdefs.h. */ |
| 15934 | _ACEOF |
| 15935 | cat confdefs.h >>conftest.$ac_ext |
| 15936 | cat >>conftest.$ac_ext <<_ACEOF |
| 15937 | /* end confdefs.h. */ |
| 15938 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15939 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15940 | int |
| 15941 | main () |
| 15942 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15943 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15944 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15945 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15946 | return 0; |
| 15947 | ; |
| 15948 | return 0; |
| 15949 | } |
| 15950 | _ACEOF |
| 15951 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15952 | if { (ac_try="$ac_compile" |
| 15953 | case "(($ac_try" in |
| 15954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15955 | *) ac_try_echo=$ac_try;; |
| 15956 | esac |
| 15957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15958 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15959 | ac_status=$? |
| 15960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15961 | rm -f conftest.er1 |
| 15962 | cat conftest.err >&5 |
| 15963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15964 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15966 | { (case "(($ac_try" in |
| 15967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15968 | *) ac_try_echo=$ac_try;; |
| 15969 | esac |
| 15970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15971 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15972 | ac_status=$? |
| 15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15974 | (exit $ac_status); }; } && |
| 15975 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15976 | { (case "(($ac_try" in |
| 15977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15978 | *) ac_try_echo=$ac_try;; |
| 15979 | esac |
| 15980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15981 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15982 | ac_status=$? |
| 15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15984 | (exit $ac_status); }; }; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15985 | ac_cv_type_intptr_t=yes |
| 15986 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15987 | echo "$as_me: failed program was:" >&5 |
| 15988 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15989 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15990 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15991 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15992 | |
| 15993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15994 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 15995 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 15996 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15997 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15998 | |
| 15999 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 16000 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16001 | _ACEOF |
| 16002 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 16003 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16004 | fi |
| 16005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16006 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 16007 | 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] | 16008 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 16009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16010 | else |
| 16011 | cat >conftest.$ac_ext <<_ACEOF |
| 16012 | /* confdefs.h. */ |
| 16013 | _ACEOF |
| 16014 | cat confdefs.h >>conftest.$ac_ext |
| 16015 | cat >>conftest.$ac_ext <<_ACEOF |
| 16016 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16017 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16018 | int |
| 16019 | main () |
| 16020 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16021 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16022 | ; |
| 16023 | return 0; |
| 16024 | } |
| 16025 | _ACEOF |
| 16026 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16027 | if { (ac_try="$ac_compile" |
| 16028 | case "(($ac_try" in |
| 16029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16030 | *) ac_try_echo=$ac_try;; |
| 16031 | esac |
| 16032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16033 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16034 | ac_status=$? |
| 16035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16036 | rm -f conftest.er1 |
| 16037 | cat conftest.err >&5 |
| 16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16039 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16041 | { (case "(($ac_try" in |
| 16042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16043 | *) ac_try_echo=$ac_try;; |
| 16044 | esac |
| 16045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16046 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16047 | ac_status=$? |
| 16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16049 | (exit $ac_status); }; } && |
| 16050 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16051 | { (case "(($ac_try" in |
| 16052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16053 | *) ac_try_echo=$ac_try;; |
| 16054 | esac |
| 16055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16056 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16057 | ac_status=$? |
| 16058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16059 | (exit $ac_status); }; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16060 | e2fsprogs_cv_struct_st_flags=yes |
| 16061 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16062 | echo "$as_me: failed program was:" >&5 |
| 16063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16065 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16066 | fi |
| 16067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16069 | fi |
| 16070 | |
| 16071 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 16072 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16073 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16074 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 16075 | 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] | 16076 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 16077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16078 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16079 | cat >conftest.$ac_ext <<_ACEOF |
| 16080 | /* confdefs.h. */ |
| 16081 | _ACEOF |
| 16082 | cat confdefs.h >>conftest.$ac_ext |
| 16083 | cat >>conftest.$ac_ext <<_ACEOF |
| 16084 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16085 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16086 | int |
| 16087 | main () |
| 16088 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16089 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16090 | ; |
| 16091 | return 0; |
| 16092 | } |
| 16093 | _ACEOF |
| 16094 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16095 | if { (ac_try="$ac_compile" |
| 16096 | case "(($ac_try" in |
| 16097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16098 | *) ac_try_echo=$ac_try;; |
| 16099 | esac |
| 16100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16101 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16102 | ac_status=$? |
| 16103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16104 | rm -f conftest.er1 |
| 16105 | cat conftest.err >&5 |
| 16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16107 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16109 | { (case "(($ac_try" in |
| 16110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16111 | *) ac_try_echo=$ac_try;; |
| 16112 | esac |
| 16113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16114 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16115 | ac_status=$? |
| 16116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16117 | (exit $ac_status); }; } && |
| 16118 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16119 | { (case "(($ac_try" in |
| 16120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16121 | *) ac_try_echo=$ac_try;; |
| 16122 | esac |
| 16123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16124 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16125 | ac_status=$? |
| 16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16127 | (exit $ac_status); }; }; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16128 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 16129 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16130 | echo "$as_me: failed program was:" >&5 |
| 16131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16132 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16133 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16134 | fi |
| 16135 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16137 | fi |
| 16138 | |
| 16139 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 16140 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16141 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16142 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16143 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16144 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16145 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 16146 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16147 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16148 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 16149 | 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] | 16150 | 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] | 16151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16152 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16153 | cat >conftest.$ac_ext <<_ACEOF |
| 16154 | /* confdefs.h. */ |
| 16155 | _ACEOF |
| 16156 | cat confdefs.h >>conftest.$ac_ext |
| 16157 | cat >>conftest.$ac_ext <<_ACEOF |
| 16158 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16159 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16160 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16161 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16162 | int |
| 16163 | main () |
| 16164 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16165 | static struct sockaddr ac_aggr; |
| 16166 | if (ac_aggr.sa_len) |
| 16167 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16168 | ; |
| 16169 | return 0; |
| 16170 | } |
| 16171 | _ACEOF |
| 16172 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16173 | if { (ac_try="$ac_compile" |
| 16174 | case "(($ac_try" in |
| 16175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16176 | *) ac_try_echo=$ac_try;; |
| 16177 | esac |
| 16178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16179 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16180 | ac_status=$? |
| 16181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16182 | rm -f conftest.er1 |
| 16183 | cat conftest.err >&5 |
| 16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16185 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16187 | { (case "(($ac_try" in |
| 16188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16189 | *) ac_try_echo=$ac_try;; |
| 16190 | esac |
| 16191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16192 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16193 | ac_status=$? |
| 16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16195 | (exit $ac_status); }; } && |
| 16196 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16197 | { (case "(($ac_try" in |
| 16198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16199 | *) ac_try_echo=$ac_try;; |
| 16200 | esac |
| 16201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16202 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16203 | ac_status=$? |
| 16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16205 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16206 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16207 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16208 | echo "$as_me: failed program was:" >&5 |
| 16209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16210 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16211 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16212 | /* confdefs.h. */ |
| 16213 | _ACEOF |
| 16214 | cat confdefs.h >>conftest.$ac_ext |
| 16215 | cat >>conftest.$ac_ext <<_ACEOF |
| 16216 | /* end confdefs.h. */ |
| 16217 | #include <sys/types.h> |
| 16218 | #include <sys/socket.h> |
| 16219 | |
| 16220 | int |
| 16221 | main () |
| 16222 | { |
| 16223 | static struct sockaddr ac_aggr; |
| 16224 | if (sizeof ac_aggr.sa_len) |
| 16225 | return 0; |
| 16226 | ; |
| 16227 | return 0; |
| 16228 | } |
| 16229 | _ACEOF |
| 16230 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16231 | if { (ac_try="$ac_compile" |
| 16232 | case "(($ac_try" in |
| 16233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16234 | *) ac_try_echo=$ac_try;; |
| 16235 | esac |
| 16236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16237 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16238 | ac_status=$? |
| 16239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16240 | rm -f conftest.er1 |
| 16241 | cat conftest.err >&5 |
| 16242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16243 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16245 | { (case "(($ac_try" in |
| 16246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16247 | *) ac_try_echo=$ac_try;; |
| 16248 | esac |
| 16249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16250 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16251 | ac_status=$? |
| 16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16253 | (exit $ac_status); }; } && |
| 16254 | { ac_try='test -s conftest.$ac_objext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16255 | { (case "(($ac_try" in |
| 16256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16257 | *) ac_try_echo=$ac_try;; |
| 16258 | esac |
| 16259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16260 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16261 | ac_status=$? |
| 16262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16263 | (exit $ac_status); }; }; then |
| 16264 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 16265 | else |
| 16266 | echo "$as_me: failed program was:" >&5 |
| 16267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16268 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16269 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16270 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16271 | |
| 16272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16273 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16274 | |
| 16275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16276 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16277 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 16278 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16279 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16280 | |
| 16281 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16282 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16283 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 16284 | |
| 16285 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16286 | |
| 16287 | |
| 16288 | |
| 16289 | |
| 16290 | |
| 16291 | |
| 16292 | |
| 16293 | |
| 16294 | |
| 16295 | |
| 16296 | |
| 16297 | |
| 16298 | |
| 16299 | |
| 16300 | |
| 16301 | |
| 16302 | |
| 16303 | |
| 16304 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 16305 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 16306 | |
| 16307 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 16308 | |
| 16309 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom 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] | 16310 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16311 | 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^] | 16312 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16313 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16314 | 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] | 16315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16316 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16317 | cat >conftest.$ac_ext <<_ACEOF |
| 16318 | /* confdefs.h. */ |
| 16319 | _ACEOF |
| 16320 | cat confdefs.h >>conftest.$ac_ext |
| 16321 | cat >>conftest.$ac_ext <<_ACEOF |
| 16322 | /* end confdefs.h. */ |
| 16323 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16324 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16325 | #define $ac_func innocuous_$ac_func |
| 16326 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16327 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16328 | which can conflict with char $ac_func (); below. |
| 16329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16330 | <limits.h> exists even on freestanding compilers. */ |
| 16331 | |
| 16332 | #ifdef __STDC__ |
| 16333 | # include <limits.h> |
| 16334 | #else |
| 16335 | # include <assert.h> |
| 16336 | #endif |
| 16337 | |
| 16338 | #undef $ac_func |
| 16339 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16340 | /* Override any GCC internal prototype to avoid an error. |
| 16341 | Use char because int might match the return type of a GCC |
| 16342 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16343 | #ifdef __cplusplus |
| 16344 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16345 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16346 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16347 | /* The GNU C library defines this for functions which it implements |
| 16348 | to always fail with ENOSYS. Some functions are actually named |
| 16349 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16350 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16351 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16352 | #endif |
| 16353 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16354 | int |
| 16355 | main () |
| 16356 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16357 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16358 | ; |
| 16359 | return 0; |
| 16360 | } |
| 16361 | _ACEOF |
| 16362 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16363 | if { (ac_try="$ac_link" |
| 16364 | case "(($ac_try" in |
| 16365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16366 | *) ac_try_echo=$ac_try;; |
| 16367 | esac |
| 16368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16369 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16370 | ac_status=$? |
| 16371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16372 | rm -f conftest.er1 |
| 16373 | cat conftest.err >&5 |
| 16374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16375 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16377 | { (case "(($ac_try" in |
| 16378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16379 | *) ac_try_echo=$ac_try;; |
| 16380 | esac |
| 16381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16382 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16383 | ac_status=$? |
| 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16385 | (exit $ac_status); }; } && |
| 16386 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16387 | { (case "(($ac_try" in |
| 16388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16389 | *) ac_try_echo=$ac_try;; |
| 16390 | esac |
| 16391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16392 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16393 | ac_status=$? |
| 16394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16395 | (exit $ac_status); }; }; then |
| 16396 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16397 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16398 | echo "$as_me: failed program was:" >&5 |
| 16399 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 16400 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16401 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16402 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16403 | |
| 16404 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16405 | conftest$ac_exeext conftest.$ac_ext |
| 16406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16407 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16409 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16410 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16411 | cat >>confdefs.h <<_ACEOF |
| 16412 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16413 | _ACEOF |
| 16414 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16415 | fi |
| 16416 | done |
| 16417 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16418 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16419 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 16420 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16421 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 16422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16423 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16424 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16425 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16426 | cat >conftest.$ac_ext <<_ACEOF |
| 16427 | /* confdefs.h. */ |
| 16428 | _ACEOF |
| 16429 | cat confdefs.h >>conftest.$ac_ext |
| 16430 | cat >>conftest.$ac_ext <<_ACEOF |
| 16431 | /* end confdefs.h. */ |
| 16432 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16433 | /* Override any GCC internal prototype to avoid an error. |
| 16434 | Use char because int might match the return type of a GCC |
| 16435 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16436 | #ifdef __cplusplus |
| 16437 | extern "C" |
| 16438 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16439 | char socket (); |
| 16440 | int |
| 16441 | main () |
| 16442 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16443 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16444 | ; |
| 16445 | return 0; |
| 16446 | } |
| 16447 | _ACEOF |
| 16448 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16449 | if { (ac_try="$ac_link" |
| 16450 | case "(($ac_try" in |
| 16451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16452 | *) ac_try_echo=$ac_try;; |
| 16453 | esac |
| 16454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16455 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16456 | ac_status=$? |
| 16457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16458 | rm -f conftest.er1 |
| 16459 | cat conftest.err >&5 |
| 16460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16461 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16463 | { (case "(($ac_try" in |
| 16464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16465 | *) ac_try_echo=$ac_try;; |
| 16466 | esac |
| 16467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16468 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16469 | ac_status=$? |
| 16470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16471 | (exit $ac_status); }; } && |
| 16472 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16473 | { (case "(($ac_try" in |
| 16474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16475 | *) ac_try_echo=$ac_try;; |
| 16476 | esac |
| 16477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16478 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16479 | ac_status=$? |
| 16480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16481 | (exit $ac_status); }; }; then |
| 16482 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16484 | echo "$as_me: failed program was:" >&5 |
| 16485 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16486 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16487 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16489 | |
| 16490 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16491 | conftest$ac_exeext conftest.$ac_ext |
| 16492 | LIBS=$ac_check_lib_save_LIBS |
| 16493 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16494 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 16495 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16496 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16497 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16498 | fi |
| 16499 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16500 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16501 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16502 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16503 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16504 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16506 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16507 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16508 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16509 | cat >conftest.$ac_ext <<_ACEOF |
| 16510 | /* confdefs.h. */ |
| 16511 | _ACEOF |
| 16512 | cat confdefs.h >>conftest.$ac_ext |
| 16513 | cat >>conftest.$ac_ext <<_ACEOF |
| 16514 | /* end confdefs.h. */ |
| 16515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16516 | /* Override any GCC internal prototype to avoid an error. |
| 16517 | Use char because int might match the return type of a GCC |
| 16518 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16519 | #ifdef __cplusplus |
| 16520 | extern "C" |
| 16521 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16522 | char dlopen (); |
| 16523 | int |
| 16524 | main () |
| 16525 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16526 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16527 | ; |
| 16528 | return 0; |
| 16529 | } |
| 16530 | _ACEOF |
| 16531 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16532 | if { (ac_try="$ac_link" |
| 16533 | case "(($ac_try" in |
| 16534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16535 | *) ac_try_echo=$ac_try;; |
| 16536 | esac |
| 16537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16538 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16539 | ac_status=$? |
| 16540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16541 | rm -f conftest.er1 |
| 16542 | cat conftest.err >&5 |
| 16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16544 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16546 | { (case "(($ac_try" in |
| 16547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16548 | *) ac_try_echo=$ac_try;; |
| 16549 | esac |
| 16550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16551 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16552 | ac_status=$? |
| 16553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16554 | (exit $ac_status); }; } && |
| 16555 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16556 | { (case "(($ac_try" in |
| 16557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16558 | *) ac_try_echo=$ac_try;; |
| 16559 | esac |
| 16560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16561 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16562 | ac_status=$? |
| 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); }; }; then |
| 16565 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16566 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16567 | echo "$as_me: failed program was:" >&5 |
| 16568 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16570 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16572 | |
| 16573 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16574 | conftest$ac_exeext conftest.$ac_ext |
| 16575 | LIBS=$ac_check_lib_save_LIBS |
| 16576 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16577 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16578 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16579 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16580 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16581 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16582 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16583 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16584 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16585 | fi |
| 16586 | |
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 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 16589 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16590 | if test "${ac_cv_have_optreset+set}" = set; then |
| 16591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16592 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16593 | cat >conftest.$ac_ext <<_ACEOF |
| 16594 | /* confdefs.h. */ |
| 16595 | _ACEOF |
| 16596 | cat confdefs.h >>conftest.$ac_ext |
| 16597 | cat >>conftest.$ac_ext <<_ACEOF |
| 16598 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16599 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16600 | |
| 16601 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16603 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16604 | ac_cv_have_optreset=yes |
| 16605 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16606 | ac_cv_have_optreset=no |
| 16607 | fi |
| 16608 | rm -f conftest* |
| 16609 | |
| 16610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16611 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 16612 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16613 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16614 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16615 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16616 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16617 | |
| 16618 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16619 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 16620 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16621 | if diff -u $0 $0 >& /dev/null ; then |
| 16622 | UNI_DIFF_OPTS=-u |
| 16623 | else |
| 16624 | UNI_DIFF_OPTS=-c |
| 16625 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16626 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 16627 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16628 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16629 | case "$host_os" in |
| 16630 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16631 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16632 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16633 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16634 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16635 | ;; |
| 16636 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16637 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16638 | CYGWIN_CMT="#" |
| 16639 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16640 | case "$host_os" in |
| 16641 | linux*) |
| 16642 | LINUX_CMT= |
| 16643 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16644 | cygwin) |
| 16645 | CYGWIN_CMT= |
| 16646 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16647 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16648 | esac |
| 16649 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16650 | |
| 16651 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16652 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16653 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16654 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 16655 | root_prefix=""; |
| 16656 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16657 | fi |
| 16658 | ;; |
| 16659 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16660 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16661 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16662 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16663 | prefix="/usr"; |
| 16664 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 16665 | if test "$mandir" = '${prefix}/man' ; then |
| 16666 | echo "...and mandir defaults to /usr/share/man" |
| 16667 | mandir=/usr/share/man |
| 16668 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16669 | fi |
| 16670 | ;; |
| 16671 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16672 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 16673 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16674 | root_prefix="$ac_default_prefix" |
| 16675 | else |
| 16676 | root_prefix="$prefix" |
| 16677 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 16678 | root_bindir=$bindir |
| 16679 | root_sbindir=$sbindir |
| 16680 | root_libdir=$libdir |
| 16681 | root_sysconfdir=$sysconfdir |
| 16682 | else |
| 16683 | root_bindir='${root_prefix}/bin' |
| 16684 | root_sbindir='${root_prefix}/sbin' |
| 16685 | root_libdir='${root_prefix}/lib' |
| 16686 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16687 | fi |
| 16688 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16689 | |
| 16690 | |
| 16691 | |
| 16692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16693 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 16694 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16695 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 16696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16697 | else |
| 16698 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16699 | cat >conftest.$ac_ext <<_ACEOF |
| 16700 | /* confdefs.h. */ |
| 16701 | _ACEOF |
| 16702 | cat confdefs.h >>conftest.$ac_ext |
| 16703 | cat >>conftest.$ac_ext <<_ACEOF |
| 16704 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16705 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16706 | int |
| 16707 | main () |
| 16708 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16709 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16710 | ; |
| 16711 | return 0; |
| 16712 | } |
| 16713 | _ACEOF |
| 16714 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16715 | if { (ac_try="$ac_link" |
| 16716 | case "(($ac_try" in |
| 16717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16718 | *) ac_try_echo=$ac_try;; |
| 16719 | esac |
| 16720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16721 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16722 | ac_status=$? |
| 16723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16724 | rm -f conftest.er1 |
| 16725 | cat conftest.err >&5 |
| 16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16727 | (exit $ac_status); } && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16729 | { (case "(($ac_try" in |
| 16730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16731 | *) ac_try_echo=$ac_try;; |
| 16732 | esac |
| 16733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16734 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16735 | ac_status=$? |
| 16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16737 | (exit $ac_status); }; } && |
| 16738 | { ac_try='test -s conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16739 | { (case "(($ac_try" in |
| 16740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16741 | *) ac_try_echo=$ac_try;; |
| 16742 | esac |
| 16743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16744 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16745 | ac_status=$? |
| 16746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16747 | (exit $ac_status); }; }; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16748 | ac_cv_e2fsprogs_use_static=yes |
| 16749 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16750 | echo "$as_me: failed program was:" >&5 |
| 16751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16753 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16754 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16755 | |
| 16756 | rm -f core conftest.err conftest.$ac_objext \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16757 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16758 | LDFLAGS=$SAVE_LDFLAGS |
| 16759 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16760 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16761 | case "$host_os" in |
| 16762 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16763 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16764 | ;; |
| 16765 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16766 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 16767 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 16768 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16769 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16770 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16771 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16772 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16773 | case "$host_os" in |
| 16774 | darwin*) |
| 16775 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16776 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16777 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16778 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16779 | |
| 16780 | ;; |
| 16781 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16782 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 16783 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 16784 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16785 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16786 | if test "$cross_compiling" = yes ; then |
| 16787 | DO_TEST_SUITE= |
| 16788 | else |
| 16789 | DO_TEST_SUITE=check |
| 16790 | fi |
| 16791 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 16792 | INTL_FLAGS= |
| 16793 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 16794 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 16795 | fi |
| 16796 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 16797 | if test $cross_compiling = no; then |
| 16798 | BUILD_CFLAGS="$CFLAGS" |
| 16799 | BUILD_LDFLAGS="$LDFLAGS" |
| 16800 | else |
| 16801 | BUILD_CFLAGS= |
| 16802 | BUILD_LDFLAGS= |
| 16803 | fi |
| 16804 | |
| 16805 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16806 | test -d lib || mkdir lib |
| 16807 | test -d include || mkdir include |
| 16808 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16809 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 16810 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 16811 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 16812 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 16813 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16814 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 16815 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 16816 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 16817 | 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] | 16818 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16819 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 16820 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 16821 | if test -d `dirname ${srcdir}/$i` ; then |
| 16822 | outlist="$outlist $i" |
| 16823 | fi |
| 16824 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16825 | ac_config_files="$ac_config_files $outlist" |
| 16826 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16827 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16828 | # This file is a shell script that caches the results of configure |
| 16829 | # 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] | 16830 | # scripts and configure runs, see configure's option --config-cache. |
| 16831 | # It is not useful on other systems. If it contains results you don't |
| 16832 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16833 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16834 | # config.status only pays attention to the cache file if you give it |
| 16835 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16836 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16837 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16838 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16839 | # following values. |
| 16840 | |
| 16841 | _ACEOF |
| 16842 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 16843 | # The following way of writing the cache mishandles newlines in values, |
| 16844 | # 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^] | 16845 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16846 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16847 | # 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^] | 16848 | ( |
| 16849 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16850 | eval ac_val=\$$ac_var |
| 16851 | case $ac_val in #( |
| 16852 | *${as_nl}*) |
| 16853 | case $ac_var in #( |
| 16854 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 16855 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 16856 | esac |
| 16857 | case $ac_var in #( |
| 16858 | _ | IFS | as_nl) ;; #( |
| 16859 | *) $as_unset $ac_var ;; |
| 16860 | esac ;; |
| 16861 | esac |
| 16862 | done |
| 16863 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16864 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16865 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16866 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16867 | # `set' does not quote correctly, so add quotes (double-quote |
| 16868 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16869 | sed -n \ |
| 16870 | "s/'/'\\\\''/g; |
| 16871 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16872 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16873 | *) |
| 16874 | # `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^] | 16875 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16876 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16877 | esac | |
| 16878 | sort |
| 16879 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16880 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16881 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16882 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16883 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16884 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16885 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16886 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16887 | :end' >>confcache |
| 16888 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16889 | if test -w "$cache_file"; then |
| 16890 | test "x$cache_file" != "x/dev/null" && |
| 16891 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16892 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16893 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16894 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16895 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16896 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16897 | fi |
| 16898 | fi |
| 16899 | rm -f confcache |
| 16900 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16901 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16902 | # Let make expand exec_prefix. |
| 16903 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16904 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16905 | # Transform confdefs.h into DEFS. |
| 16906 | # Protect against shell expansion while executing Makefile rules. |
| 16907 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16908 | # |
| 16909 | # 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^] | 16910 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16911 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16912 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16913 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16914 | :clear |
| 16915 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16916 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16917 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16918 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16919 | b any |
| 16920 | :quote |
| 16921 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 16922 | s/\[/\\&/g |
| 16923 | s/\]/\\&/g |
| 16924 | s/\$/$$/g |
| 16925 | H |
| 16926 | :any |
| 16927 | ${ |
| 16928 | g |
| 16929 | s/^\n// |
| 16930 | s/\n/ /g |
| 16931 | p |
| 16932 | } |
| 16933 | ' |
| 16934 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16935 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16936 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16937 | ac_libobjs= |
| 16938 | ac_ltlibobjs= |
| 16939 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16940 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16941 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16942 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 16943 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16944 | # will be set to the directory where LIBOBJS objects are built. |
| 16945 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16946 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16947 | done |
| 16948 | LIBOBJS=$ac_libobjs |
| 16949 | |
| 16950 | LTLIBOBJS=$ac_ltlibobjs |
| 16951 | |
| 16952 | |
| 16953 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16954 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16955 | ac_clean_files_save=$ac_clean_files |
| 16956 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16957 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16958 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16959 | cat >$CONFIG_STATUS <<_ACEOF |
| 16960 | #! $SHELL |
| 16961 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16962 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16963 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16964 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16965 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16966 | debug=false |
| 16967 | ac_cs_recheck=false |
| 16968 | ac_cs_silent=false |
| 16969 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16970 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16971 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16972 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16973 | ## --------------------- ## |
| 16974 | ## M4sh Initialization. ## |
| 16975 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16976 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16977 | # Be Bourne compatible |
| 16978 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16979 | emulate sh |
| 16980 | NULLCMD=: |
| 16981 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 16982 | # is contrary to our usage. Disable this feature. |
| 16983 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16984 | setopt NO_GLOB_SUBST |
| 16985 | else |
| 16986 | 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] | 16987 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16988 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16989 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16990 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16991 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 16992 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16993 | # Avoid depending upon Character Ranges. |
| 16994 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16995 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16996 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16997 | as_cr_digits='0123456789' |
| 16998 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16999 | |
| 17000 | # The user is always right. |
| 17001 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17002 | echo "#! /bin/sh" >conf$$.sh |
| 17003 | echo "exit 0" >>conf$$.sh |
| 17004 | chmod +x conf$$.sh |
| 17005 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 17006 | PATH_SEPARATOR=';' |
| 17007 | else |
| 17008 | PATH_SEPARATOR=: |
| 17009 | fi |
| 17010 | rm -f conf$$.sh |
| 17011 | fi |
| 17012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17013 | # Support unset when possible. |
| 17014 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 17015 | as_unset=unset |
| 17016 | else |
| 17017 | as_unset=false |
| 17018 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17020 | |
| 17021 | # IFS |
| 17022 | # We need space, tab and new line, in precisely that order. Quoting is |
| 17023 | # there to prevent editors from complaining about space-tab. |
| 17024 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 17025 | # splitting by setting IFS to empty value.) |
| 17026 | as_nl=' |
| 17027 | ' |
| 17028 | IFS=" "" $as_nl" |
| 17029 | |
| 17030 | # Find who we are. Look in the path if we contain no directory separator. |
| 17031 | case $0 in |
| 17032 | *[\\/]* ) as_myself=$0 ;; |
| 17033 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17034 | for as_dir in $PATH |
| 17035 | do |
| 17036 | IFS=$as_save_IFS |
| 17037 | test -z "$as_dir" && as_dir=. |
| 17038 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17039 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17040 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17042 | ;; |
| 17043 | esac |
| 17044 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17045 | # in which case we are not to be found in the path. |
| 17046 | if test "x$as_myself" = x; then |
| 17047 | as_myself=$0 |
| 17048 | fi |
| 17049 | if test ! -f "$as_myself"; then |
| 17050 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 17051 | { (exit 1); exit 1; } |
| 17052 | fi |
| 17053 | |
| 17054 | # Work around bugs in pre-3.0 UWIN ksh. |
| 17055 | for as_var in ENV MAIL MAILPATH |
| 17056 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17057 | done |
| 17058 | PS1='$ ' |
| 17059 | PS2='> ' |
| 17060 | PS4='+ ' |
| 17061 | |
| 17062 | # NLS nuisances. |
| 17063 | for as_var in \ |
| 17064 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 17065 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 17066 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17067 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17068 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 17069 | eval $as_var=C; export $as_var |
| 17070 | else |
| 17071 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 17072 | fi |
| 17073 | done |
| 17074 | |
| 17075 | # Required to use basename. |
| 17076 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17077 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 17078 | as_expr=expr |
| 17079 | else |
| 17080 | as_expr=false |
| 17081 | fi |
| 17082 | |
| 17083 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 17084 | as_basename=basename |
| 17085 | else |
| 17086 | as_basename=false |
| 17087 | fi |
| 17088 | |
| 17089 | |
| 17090 | # Name of the executable. |
| 17091 | as_me=`$as_basename -- "$0" || |
| 17092 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17093 | X"$0" : 'X\(//\)$' \| \ |
| 17094 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 17095 | echo X/"$0" | |
| 17096 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 17097 | s//\1/ |
| 17098 | q |
| 17099 | } |
| 17100 | /^X\/\(\/\/\)$/{ |
| 17101 | s//\1/ |
| 17102 | q |
| 17103 | } |
| 17104 | /^X\/\(\/\).*/{ |
| 17105 | s//\1/ |
| 17106 | q |
| 17107 | } |
| 17108 | s/.*/./; q'` |
| 17109 | |
| 17110 | # CDPATH. |
| 17111 | $as_unset CDPATH |
| 17112 | |
| 17113 | |
| 17114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17115 | as_lineno_1=$LINENO |
| 17116 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17117 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17118 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17120 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17121 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17122 | # line-number line after each line using $LINENO; the second 'sed' |
| 17123 | # does the real work. The second script uses 'N' to pair each |
| 17124 | # line-number line with the line containing $LINENO, and appends |
| 17125 | # trailing '-' during substitution so that $LINENO is not a special |
| 17126 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17127 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17128 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 17129 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 17130 | sed -n ' |
| 17131 | p |
| 17132 | /[$]LINENO/= |
| 17133 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17134 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17135 | s/[$]LINENO.*/&-/ |
| 17136 | t lineno |
| 17137 | b |
| 17138 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17139 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17140 | :loop |
| 17141 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17142 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17143 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17144 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17145 | chmod +x "$as_me.lineno" || |
| 17146 | { 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] | 17147 | { (exit 1); exit 1; }; } |
| 17148 | |
| 17149 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17150 | # (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^] | 17151 | # original and so on. Autoconf is especially sensitive to this). |
| 17152 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17153 | # Exit status is that of the last command. |
| 17154 | exit |
| 17155 | } |
| 17156 | |
| 17157 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17158 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 17159 | as_dirname=dirname |
| 17160 | else |
| 17161 | as_dirname=false |
| 17162 | fi |
| 17163 | |
| 17164 | ECHO_C= ECHO_N= ECHO_T= |
| 17165 | case `echo -n x` in |
| 17166 | -n*) |
| 17167 | case `echo 'x\c'` in |
| 17168 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 17169 | *) ECHO_C='\c';; |
| 17170 | esac;; |
| 17171 | *) |
| 17172 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17173 | esac |
| 17174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17175 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 17176 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17177 | as_expr=expr |
| 17178 | else |
| 17179 | as_expr=false |
| 17180 | fi |
| 17181 | |
| 17182 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17183 | if test -d conf$$.dir; then |
| 17184 | rm -f conf$$.dir/conf$$.file |
| 17185 | else |
| 17186 | rm -f conf$$.dir |
| 17187 | mkdir conf$$.dir |
| 17188 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17189 | echo >conf$$.file |
| 17190 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17191 | as_ln_s='ln -s' |
| 17192 | # ... but there are two gotchas: |
| 17193 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 17194 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 17195 | # In both cases, we have to default to `cp -p'. |
| 17196 | 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] | 17197 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17198 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17199 | as_ln_s=ln |
| 17200 | else |
| 17201 | as_ln_s='cp -p' |
| 17202 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17203 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 17204 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17205 | |
| 17206 | if mkdir -p . 2>/dev/null; then |
| 17207 | as_mkdir_p=: |
| 17208 | else |
| 17209 | test -d ./-p && rmdir ./-p |
| 17210 | as_mkdir_p=false |
| 17211 | fi |
| 17212 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17213 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 17214 | # systems may use methods other than mode bits to determine executability. |
| 17215 | cat >conf$$.file <<_ASEOF |
| 17216 | #! /bin/sh |
| 17217 | exit 0 |
| 17218 | _ASEOF |
| 17219 | chmod +x conf$$.file |
| 17220 | if test -x conf$$.file >/dev/null 2>&1; then |
| 17221 | as_executable_p="test -x" |
| 17222 | else |
| 17223 | as_executable_p=: |
| 17224 | fi |
| 17225 | rm -f conf$$.file |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17226 | |
| 17227 | # Sed expression to map a string onto a valid CPP name. |
| 17228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17229 | |
| 17230 | # Sed expression to map a string onto a valid variable name. |
| 17231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17232 | |
| 17233 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17234 | exec 6>&1 |
| 17235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17236 | # 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] | 17237 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17238 | # values after options handling. |
| 17239 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17240 | This file was extended by $as_me, which was |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17241 | generated by GNU Autoconf 2.60. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17242 | |
| 17243 | CONFIG_FILES = $CONFIG_FILES |
| 17244 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17245 | CONFIG_LINKS = $CONFIG_LINKS |
| 17246 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17247 | $ $0 $@ |
| 17248 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17249 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17250 | " |
| 17251 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17252 | _ACEOF |
| 17253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17254 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17255 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17256 | config_files="$ac_config_files" |
| 17257 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17258 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17259 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17260 | |
| 17261 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17262 | ac_cs_usage="\ |
| 17263 | \`$as_me' instantiates files from templates according to the |
| 17264 | current configuration. |
| 17265 | |
| 17266 | Usage: $0 [OPTIONS] [FILE]... |
| 17267 | |
| 17268 | -h, --help print this help, then exit |
| 17269 | -V, --version print version number, then exit |
| 17270 | -q, --quiet do not print progress messages |
| 17271 | -d, --debug don't remove temporary files |
| 17272 | --recheck update $as_me by reconfiguring in the same conditions |
| 17273 | --file=FILE[:TEMPLATE] |
| 17274 | instantiate the configuration file FILE |
| 17275 | |
| 17276 | Configuration files: |
| 17277 | $config_files |
| 17278 | |
| 17279 | Configuration commands: |
| 17280 | $config_commands |
| 17281 | |
| 17282 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17284 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17285 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17286 | ac_cs_version="\\ |
| 17287 | config.status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17288 | configured by $0, generated by GNU Autoconf 2.60, |
| 17289 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17290 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17291 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17292 | This config.status script is free software; the Free Software Foundation |
| 17293 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17294 | |
| 17295 | ac_pwd='$ac_pwd' |
| 17296 | srcdir='$srcdir' |
| 17297 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17298 | _ACEOF |
| 17299 | |
| 17300 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17301 | # If no file are specified by the user, then we need to provide default |
| 17302 | # value. By we need to know if files were specified by the user. |
| 17303 | ac_need_defaults=: |
| 17304 | while test $# != 0 |
| 17305 | do |
| 17306 | case $1 in |
| 17307 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17308 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17309 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17310 | ac_shift=: |
| 17311 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17312 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17313 | ac_option=$1 |
| 17314 | ac_optarg=$2 |
| 17315 | ac_shift=shift |
| 17316 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17317 | esac |
| 17318 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17319 | case $ac_option in |
| 17320 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17321 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17322 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17323 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 17324 | echo "$ac_cs_version"; exit ;; |
| 17325 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17326 | debug=: ;; |
| 17327 | --file | --fil | --fi | --f ) |
| 17328 | $ac_shift |
| 17329 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 17330 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17331 | --he | --h | --help | --hel | -h ) |
| 17332 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17333 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17334 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17335 | ac_cs_silent=: ;; |
| 17336 | |
| 17337 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17338 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 17339 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17340 | { (exit 1); exit 1; }; } ;; |
| 17341 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17342 | *) ac_config_targets="$ac_config_targets $1" |
| 17343 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17344 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17345 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17346 | shift |
| 17347 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17348 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17349 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17350 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17351 | if $ac_cs_silent; then |
| 17352 | exec 6>/dev/null |
| 17353 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17354 | fi |
| 17355 | |
| 17356 | _ACEOF |
| 17357 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17358 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17359 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 17360 | CONFIG_SHELL=$SHELL |
| 17361 | export CONFIG_SHELL |
| 17362 | 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] | 17363 | fi |
| 17364 | |
| 17365 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17366 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17367 | exec 5>>config.log |
| 17368 | { |
| 17369 | echo |
| 17370 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17371 | ## Running $as_me. ## |
| 17372 | _ASBOX |
| 17373 | echo "$ac_log" |
| 17374 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17375 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17376 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17377 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17378 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17379 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17380 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17381 | # 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] | 17382 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17383 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17384 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17385 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 17386 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17387 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17388 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17389 | _ACEOF |
| 17390 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17391 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17392 | |
| 17393 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17394 | for ac_config_target in $ac_config_targets |
| 17395 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17396 | case $ac_config_target in |
| 17397 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 17398 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 17399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17400 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17401 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17402 | { (exit 1); exit 1; }; };; |
| 17403 | esac |
| 17404 | done |
| 17405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17407 | # If the user did not use the arguments to specify the items to instantiate, |
| 17408 | # then the envvar interface is used. Set only those that are not. |
| 17409 | # We use the long form for the default assignment because of an extremely |
| 17410 | # bizarre bug on SunOS 4.1.3. |
| 17411 | if $ac_need_defaults; then |
| 17412 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17413 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 17414 | fi |
| 17415 | |
| 17416 | # 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^] | 17417 | # 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] | 17418 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17419 | # Hook for its removal unless debugging. |
| 17420 | # Note that there is a small window in which the directory will not be cleaned: |
| 17421 | # 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] | 17422 | $debug || |
| 17423 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17424 | tmp= |
| 17425 | trap 'exit_status=$? |
| 17426 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17427 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17428 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17429 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17430 | # Create a (secure) tmp directory for tmp files. |
| 17431 | |
| 17432 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17433 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17434 | test -n "$tmp" && test -d "$tmp" |
| 17435 | } || |
| 17436 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17437 | tmp=./conf$$-$RANDOM |
| 17438 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17439 | } || |
| 17440 | { |
| 17441 | echo "$me: cannot create a temporary directory in ." >&2 |
| 17442 | { (exit 1); exit 1; } |
| 17443 | } |
| 17444 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17445 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17446 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17447 | # |
| 17448 | |
| 17449 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17450 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17451 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17452 | |
| 17453 | _ACEOF |
| 17454 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17455 | # Create sed commands to just substitute file output variables. |
| 17456 | |
| 17457 | # Remaining file output variables are in a fragment that also has non-file |
| 17458 | # output varibles. |
| 17459 | |
| 17460 | |
| 17461 | |
| 17462 | ac_delim='%!_!# ' |
| 17463 | for ac_last_try in false false false false false :; do |
| 17464 | cat >conf$$subs.sed <<_ACEOF |
| 17465 | SHELL!$SHELL$ac_delim |
| 17466 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 17467 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 17468 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 17469 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 17470 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 17471 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 17472 | exec_prefix!$exec_prefix$ac_delim |
| 17473 | prefix!$prefix$ac_delim |
| 17474 | program_transform_name!$program_transform_name$ac_delim |
| 17475 | bindir!$bindir$ac_delim |
| 17476 | sbindir!$sbindir$ac_delim |
| 17477 | libexecdir!$libexecdir$ac_delim |
| 17478 | datarootdir!$datarootdir$ac_delim |
| 17479 | datadir!$datadir$ac_delim |
| 17480 | sysconfdir!$sysconfdir$ac_delim |
| 17481 | sharedstatedir!$sharedstatedir$ac_delim |
| 17482 | localstatedir!$localstatedir$ac_delim |
| 17483 | includedir!$includedir$ac_delim |
| 17484 | oldincludedir!$oldincludedir$ac_delim |
| 17485 | docdir!$docdir$ac_delim |
| 17486 | infodir!$infodir$ac_delim |
| 17487 | htmldir!$htmldir$ac_delim |
| 17488 | dvidir!$dvidir$ac_delim |
| 17489 | pdfdir!$pdfdir$ac_delim |
| 17490 | psdir!$psdir$ac_delim |
| 17491 | libdir!$libdir$ac_delim |
| 17492 | localedir!$localedir$ac_delim |
| 17493 | mandir!$mandir$ac_delim |
| 17494 | DEFS!$DEFS$ac_delim |
| 17495 | ECHO_C!$ECHO_C$ac_delim |
| 17496 | ECHO_N!$ECHO_N$ac_delim |
| 17497 | ECHO_T!$ECHO_T$ac_delim |
| 17498 | LIBS!$LIBS$ac_delim |
| 17499 | build_alias!$build_alias$ac_delim |
| 17500 | host_alias!$host_alias$ac_delim |
| 17501 | target_alias!$target_alias$ac_delim |
| 17502 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 17503 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 17504 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 17505 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
| 17506 | build!$build$ac_delim |
| 17507 | build_cpu!$build_cpu$ac_delim |
| 17508 | build_vendor!$build_vendor$ac_delim |
| 17509 | build_os!$build_os$ac_delim |
| 17510 | host!$host$ac_delim |
| 17511 | host_cpu!$host_cpu$ac_delim |
| 17512 | host_vendor!$host_vendor$ac_delim |
| 17513 | host_os!$host_os$ac_delim |
| 17514 | CC!$CC$ac_delim |
| 17515 | CFLAGS!$CFLAGS$ac_delim |
| 17516 | LDFLAGS!$LDFLAGS$ac_delim |
| 17517 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 17518 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 17519 | EXEEXT!$EXEEXT$ac_delim |
| 17520 | OBJEXT!$OBJEXT$ac_delim |
| 17521 | LD!$LD$ac_delim |
| 17522 | CPP!$CPP$ac_delim |
| 17523 | GREP!$GREP$ac_delim |
| 17524 | EGREP!$EGREP$ac_delim |
| 17525 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 17526 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 17527 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 17528 | ELF_CMT!$ELF_CMT$ac_delim |
| 17529 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 17530 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 17531 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 17532 | LIB_EXT!$LIB_EXT$ac_delim |
| 17533 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 17534 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
| 17535 | SWAPFS_CMT!$SWAPFS_CMT$ac_delim |
| 17536 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 17537 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 17538 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 17539 | E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim |
| 17540 | FSCK_PROG!$FSCK_PROG$ac_delim |
| 17541 | _ACEOF |
| 17542 | |
| 17543 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 17544 | break |
| 17545 | elif $ac_last_try; then |
| 17546 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17547 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17548 | { (exit 1); exit 1; }; } |
| 17549 | else |
| 17550 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17551 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17552 | done |
| 17553 | |
| 17554 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 17555 | if test -n "$ac_eof"; then |
| 17556 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 17557 | ac_eof=`expr $ac_eof + 1` |
| 17558 | fi |
| 17559 | |
| 17560 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17561 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 17562 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17563 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 17564 | r $MCONFIG |
| 17565 | d |
| 17566 | } |
| 17567 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 17568 | r $MAKEFILE_ELF |
| 17569 | d |
| 17570 | } |
| 17571 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 17572 | r $MAKEFILE_BSDLIB |
| 17573 | d |
| 17574 | } |
| 17575 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 17576 | r $MAKEFILE_PROFILE |
| 17577 | d |
| 17578 | } |
| 17579 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 17580 | r $MAKEFILE_CHECKER |
| 17581 | d |
| 17582 | } |
| 17583 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 17584 | r $MAKEFILE_LIBRARY |
| 17585 | d |
| 17586 | } |
| 17587 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 17588 | r $ASM_TYPES_HEADER |
| 17589 | d |
| 17590 | } |
| 17591 | _ACEOF |
| 17592 | sed ' |
| 17593 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 17594 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 17595 | :n |
| 17596 | t n |
| 17597 | s/'"$ac_delim"'$/,g/; t |
| 17598 | s/$/\\/; p |
| 17599 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 17600 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 17601 | rm -f conf$$subs.sed |
| 17602 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17603 | CEOF$ac_eof |
| 17604 | _ACEOF |
| 17605 | |
| 17606 | |
| 17607 | ac_delim='%!_!# ' |
| 17608 | for ac_last_try in false false false false false :; do |
| 17609 | cat >conf$$subs.sed <<_ACEOF |
| 17610 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 17611 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 17612 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
| 17613 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 17614 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 17615 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 17616 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
| 17617 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 17618 | PACKAGE!$PACKAGE$ac_delim |
| 17619 | VERSION!$VERSION$ac_delim |
| 17620 | SET_MAKE!$SET_MAKE$ac_delim |
| 17621 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 17622 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 17623 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 17624 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 17625 | USE_NLS!$USE_NLS$ac_delim |
| 17626 | MSGFMT!$MSGFMT$ac_delim |
| 17627 | GMSGFMT!$GMSGFMT$ac_delim |
| 17628 | XGETTEXT!$XGETTEXT$ac_delim |
| 17629 | MSGMERGE!$MSGMERGE$ac_delim |
| 17630 | RANLIB!$RANLIB$ac_delim |
| 17631 | ALLOCA!$ALLOCA$ac_delim |
| 17632 | GLIBC21!$GLIBC21$ac_delim |
| 17633 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 17634 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 17635 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 17636 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 17637 | LIBICONV!$LIBICONV$ac_delim |
| 17638 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 17639 | INTLBISON!$INTLBISON$ac_delim |
| 17640 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 17641 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 17642 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 17643 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 17644 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 17645 | GENCAT!$GENCAT$ac_delim |
| 17646 | INTLOBJS!$INTLOBJS$ac_delim |
| 17647 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 17648 | INTLLIBS!$INTLLIBS$ac_delim |
| 17649 | LIBINTL!$LIBINTL$ac_delim |
| 17650 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 17651 | POSUB!$POSUB$ac_delim |
| 17652 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 17653 | LN!$LN$ac_delim |
| 17654 | LN_S!$LN_S$ac_delim |
| 17655 | MV!$MV$ac_delim |
| 17656 | CP!$CP$ac_delim |
| 17657 | RM!$RM$ac_delim |
| 17658 | CHMOD!$CHMOD$ac_delim |
| 17659 | AWK!$AWK$ac_delim |
| 17660 | SED!$SED$ac_delim |
| 17661 | PERL!$PERL$ac_delim |
| 17662 | LDCONFIG!$LDCONFIG$ac_delim |
| 17663 | AR!$AR$ac_delim |
| 17664 | STRIP!$STRIP$ac_delim |
| 17665 | BUILD_CC!$BUILD_CC$ac_delim |
| 17666 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 17667 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 17668 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 17669 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 17670 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 17671 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 17672 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 17673 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 17674 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 17675 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 17676 | root_prefix!$root_prefix$ac_delim |
| 17677 | root_bindir!$root_bindir$ac_delim |
| 17678 | root_sbindir!$root_sbindir$ac_delim |
| 17679 | root_libdir!$root_libdir$ac_delim |
| 17680 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 17681 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 17682 | SS_DIR!$SS_DIR$ac_delim |
| 17683 | ET_DIR!$ET_DIR$ac_delim |
| 17684 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 17685 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 17686 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 17687 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 17688 | LIBOBJS!$LIBOBJS$ac_delim |
| 17689 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 17690 | _ACEOF |
| 17691 | |
| 17692 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then |
| 17693 | break |
| 17694 | elif $ac_last_try; then |
| 17695 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17696 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17697 | { (exit 1); exit 1; }; } |
| 17698 | else |
| 17699 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 17700 | fi |
| 17701 | done |
| 17702 | |
| 17703 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 17704 | if test -n "$ac_eof"; then |
| 17705 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 17706 | ac_eof=`expr $ac_eof + 1` |
| 17707 | fi |
| 17708 | |
| 17709 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17710 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 17711 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 17712 | _ACEOF |
| 17713 | sed ' |
| 17714 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 17715 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 17716 | :n |
| 17717 | t n |
| 17718 | s/'"$ac_delim"'$/,g/; t |
| 17719 | s/$/\\/; p |
| 17720 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 17721 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 17722 | rm -f conf$$subs.sed |
| 17723 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17724 | :end |
| 17725 | s/|#_!!_#|//g |
| 17726 | CEOF$ac_eof |
| 17727 | _ACEOF |
| 17728 | |
| 17729 | |
| 17730 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17731 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17732 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17733 | # (actually we leave an empty line to preserve line numbers). |
| 17734 | if test "x$srcdir" = x.; then |
| 17735 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17736 | s/:*\$(srcdir):*/:/ |
| 17737 | s/:*\${srcdir}:*/:/ |
| 17738 | s/:*@srcdir@:*/:/ |
| 17739 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17740 | s/:*$// |
| 17741 | s/^[^=]*=[ ]*$// |
| 17742 | }' |
| 17743 | fi |
| 17744 | |
| 17745 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17746 | fi # test -n "$CONFIG_FILES" |
| 17747 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17748 | |
| 17749 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 17750 | do |
| 17751 | case $ac_tag in |
| 17752 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17753 | esac |
| 17754 | case $ac_mode$ac_tag in |
| 17755 | :[FHL]*:*);; |
| 17756 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 17757 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 17758 | { (exit 1); exit 1; }; };; |
| 17759 | :[FH]-) ac_tag=-:-;; |
| 17760 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17761 | esac |
| 17762 | ac_save_IFS=$IFS |
| 17763 | IFS=: |
| 17764 | set x $ac_tag |
| 17765 | IFS=$ac_save_IFS |
| 17766 | shift |
| 17767 | ac_file=$1 |
| 17768 | shift |
| 17769 | |
| 17770 | case $ac_mode in |
| 17771 | :L) ac_source=$1;; |
| 17772 | :[FH]) |
| 17773 | ac_file_inputs= |
| 17774 | for ac_f |
| 17775 | do |
| 17776 | case $ac_f in |
| 17777 | -) ac_f="$tmp/stdin";; |
| 17778 | *) # Look for the file first in the build tree, then in the source tree |
| 17779 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17780 | # because $ac_f cannot contain `:'. |
| 17781 | test -f "$ac_f" || |
| 17782 | case $ac_f in |
| 17783 | [\\/$]*) false;; |
| 17784 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17785 | esac || |
| 17786 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17787 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 17788 | { (exit 1); exit 1; }; };; |
| 17789 | esac |
| 17790 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 17791 | done |
| 17792 | |
| 17793 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17794 | # use $as_me), people would be surprised to read: |
| 17795 | # /* config.h. Generated by config.status. */ |
| 17796 | configure_input="Generated from "`IFS=: |
| 17797 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 17798 | if test x"$ac_file" != x-; then |
| 17799 | configure_input="$ac_file. $configure_input" |
| 17800 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17801 | echo "$as_me: creating $ac_file" >&6;} |
| 17802 | fi |
| 17803 | |
| 17804 | case $ac_tag in |
| 17805 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 17806 | esac |
| 17807 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17808 | esac |
| 17809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17810 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17811 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17812 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17813 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17814 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17815 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17816 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17817 | s//\1/ |
| 17818 | q |
| 17819 | } |
| 17820 | /^X\(\/\/\)[^/].*/{ |
| 17821 | s//\1/ |
| 17822 | q |
| 17823 | } |
| 17824 | /^X\(\/\/\)$/{ |
| 17825 | s//\1/ |
| 17826 | q |
| 17827 | } |
| 17828 | /^X\(\/\).*/{ |
| 17829 | s//\1/ |
| 17830 | q |
| 17831 | } |
| 17832 | s/.*/./; q'` |
| 17833 | { as_dir="$ac_dir" |
| 17834 | case $as_dir in #( |
| 17835 | -*) as_dir=./$as_dir;; |
| 17836 | esac |
| 17837 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17838 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17839 | while :; do |
| 17840 | case $as_dir in #( |
| 17841 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 17842 | *) as_qdir=$as_dir;; |
| 17843 | esac |
| 17844 | as_dirs="'$as_qdir' $as_dirs" |
| 17845 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17846 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17847 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17848 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17849 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17850 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17852 | s//\1/ |
| 17853 | q |
| 17854 | } |
| 17855 | /^X\(\/\/\)[^/].*/{ |
| 17856 | s//\1/ |
| 17857 | q |
| 17858 | } |
| 17859 | /^X\(\/\/\)$/{ |
| 17860 | s//\1/ |
| 17861 | q |
| 17862 | } |
| 17863 | /^X\(\/\).*/{ |
| 17864 | s//\1/ |
| 17865 | q |
| 17866 | } |
| 17867 | s/.*/./; q'` |
| 17868 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17869 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17870 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17871 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17872 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17873 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17874 | ac_builddir=. |
| 17875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17876 | case "$ac_dir" in |
| 17877 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17878 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17879 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17880 | # A ".." for each directory in $ac_dir_suffix. |
| 17881 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 17882 | case $ac_top_builddir_sub in |
| 17883 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17884 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17885 | esac ;; |
| 17886 | esac |
| 17887 | ac_abs_top_builddir=$ac_pwd |
| 17888 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17889 | # for backward compatibility: |
| 17890 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17891 | |
| 17892 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17893 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17894 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17895 | ac_top_srcdir=$ac_top_builddir_sub |
| 17896 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17897 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17898 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17899 | ac_top_srcdir=$srcdir |
| 17900 | ac_abs_top_srcdir=$srcdir ;; |
| 17901 | *) # Relative name. |
| 17902 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17903 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17904 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17905 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17906 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17907 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17909 | case $ac_mode in |
| 17910 | :F) |
| 17911 | # |
| 17912 | # CONFIG_FILE |
| 17913 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17914 | |
| 17915 | case $INSTALL in |
| 17916 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17917 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17918 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17919 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17920 | |
| 17921 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17922 | # If the template does not know about datarootdir, expand it. |
| 17923 | # FIXME: This hack should be removed a few years after 2.60. |
| 17924 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17925 | |
| 17926 | case `sed -n '/datarootdir/ { |
| 17927 | p |
| 17928 | q |
| 17929 | } |
| 17930 | /@datadir@/p |
| 17931 | /@docdir@/p |
| 17932 | /@infodir@/p |
| 17933 | /@localedir@/p |
| 17934 | /@mandir@/p |
| 17935 | ' $ac_file_inputs` in |
| 17936 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17937 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17938 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17939 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17940 | _ACEOF |
| 17941 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17942 | ac_datarootdir_hack=' |
| 17943 | s&@datadir@&$datadir&g |
| 17944 | s&@docdir@&$docdir&g |
| 17945 | s&@infodir@&$infodir&g |
| 17946 | s&@localedir@&$localedir&g |
| 17947 | s&@mandir@&$mandir&g |
| 17948 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17949 | esac |
| 17950 | _ACEOF |
| 17951 | |
| 17952 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17953 | # Shell code in configure.ac might set extrasub. |
| 17954 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17955 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17956 | sed "$ac_vpsub |
| 17957 | $extrasub |
| 17958 | _ACEOF |
| 17959 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17960 | :t |
| 17961 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17962 | s&@configure_input@&$configure_input&;t t |
| 17963 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17964 | s&@srcdir@&$ac_srcdir&;t t |
| 17965 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17966 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17967 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17968 | s&@builddir@&$ac_builddir&;t t |
| 17969 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17970 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17971 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17972 | $ac_datarootdir_hack |
| 17973 | " $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] | 17974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17975 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17976 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17977 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 17978 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17979 | which seems to be undefined. Please make sure it is defined." >&5 |
| 17980 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17981 | 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] | 17982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17983 | rm -f "$tmp/stdin" |
| 17984 | case $ac_file in |
| 17985 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 17986 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 17987 | esac |
| 17988 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17989 | |
| 17990 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 17991 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 17992 | echo "$as_me: executing $ac_file commands" >&6;} |
| 17993 | ;; |
| 17994 | esac |
| 17995 | |
| 17996 | |
| 17997 | case $ac_file$ac_mode in |
| 17998 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17999 | for ac_file in $CONFIG_FILES; do |
| 18000 | # Support "outfile[:infile[:infile...]]" |
| 18001 | case "$ac_file" in |
| 18002 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 18003 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18004 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 18005 | case "$ac_file" in */Makefile.in) |
| 18006 | # Adjust a relative srcdir. |
| 18007 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 18008 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 18009 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 18010 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 18011 | # In autoconf-2.50 it is called $srcdir. |
| 18012 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 18013 | case "$ac_given_srcdir" in |
| 18014 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 18015 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 18016 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 18017 | esac |
| 18018 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 18019 | rm -f "$ac_dir/POTFILES" |
| 18020 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 18021 | 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] | 18022 | POMAKEFILEDEPS="POTFILES.in" |
| 18023 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18024 | # on $ac_dir but don't depend on user-specified configuration |
| 18025 | # parameters. |
| 18026 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 18027 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18028 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18029 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 18030 | fi |
| 18031 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 18032 | # Hide the ALL_LINGUAS assigment from automake. |
| 18033 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18034 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 18035 | else |
| 18036 | # The set of available languages was given in configure.in. |
| 18037 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18038 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18039 | # Compute POFILES |
| 18040 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 18041 | # Compute UPDATEPOFILES |
| 18042 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 18043 | # Compute DUMMYPOFILES |
| 18044 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 18045 | # Compute GMOFILES |
| 18046 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18047 | case "$ac_given_srcdir" in |
| 18048 | .) srcdirpre= ;; |
| 18049 | *) srcdirpre='$(srcdir)/' ;; |
| 18050 | esac |
| 18051 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18052 | UPDATEPOFILES= |
| 18053 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18054 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18055 | for lang in $ALL_LINGUAS; do |
| 18056 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18057 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 18058 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18059 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 18060 | done |
| 18061 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 18062 | # environment variable. |
| 18063 | INST_LINGUAS= |
| 18064 | if test -n "$ALL_LINGUAS"; then |
| 18065 | for presentlang in $ALL_LINGUAS; do |
| 18066 | useit=no |
| 18067 | if test "%UNSET%" != "$LINGUAS"; then |
| 18068 | desiredlanguages="$LINGUAS" |
| 18069 | else |
| 18070 | desiredlanguages="$ALL_LINGUAS" |
| 18071 | fi |
| 18072 | for desiredlang in $desiredlanguages; do |
| 18073 | # Use the presentlang catalog if desiredlang is |
| 18074 | # a. equal to presentlang, or |
| 18075 | # b. a variant of presentlang (because in this case, |
| 18076 | # presentlang can be used as a fallback for messages |
| 18077 | # which are not translated in the desiredlang catalog). |
| 18078 | case "$desiredlang" in |
| 18079 | "$presentlang"*) useit=yes;; |
| 18080 | esac |
| 18081 | done |
| 18082 | if test $useit = yes; then |
| 18083 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 18084 | fi |
| 18085 | done |
| 18086 | fi |
| 18087 | CATALOGS= |
| 18088 | if test -n "$INST_LINGUAS"; then |
| 18089 | for lang in $INST_LINGUAS; do |
| 18090 | CATALOGS="$CATALOGS $lang.gmo" |
| 18091 | done |
| 18092 | fi |
| 18093 | 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] | 18094 | 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] | 18095 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 18096 | if test -f "$f"; then |
| 18097 | case "$f" in |
| 18098 | *.orig | *.bak | *~) ;; |
| 18099 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 18100 | esac |
| 18101 | fi |
| 18102 | done |
| 18103 | fi |
| 18104 | ;; |
| 18105 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18106 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 18107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame^] | 18108 | esac |
| 18109 | done # for ac_tag |
| 18110 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18111 | |
| 18112 | { (exit 0); exit 0; } |
| 18113 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 18114 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18115 | ac_clean_files=$ac_clean_files_save |
| 18116 | |
| 18117 | |
| 18118 | # configure is writing to config.log, and then calls config.status. |
| 18119 | # config.status does its own redirection, appending to config.log. |
| 18120 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18121 | # by configure, so config.status won't be able to write to it; its |
| 18122 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18123 | # effectively closing config.log, so it can be properly (re)opened and |
| 18124 | # appended to by config.status. When coming back to configure, we |
| 18125 | # need to make the FD available again. |
| 18126 | if test "$no_create" != yes; then |
| 18127 | ac_cs_success=: |
| 18128 | ac_config_status_args= |
| 18129 | test "$silent" = yes && |
| 18130 | ac_config_status_args="$ac_config_status_args --quiet" |
| 18131 | exec 5>/dev/null |
| 18132 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 18133 | exec 5>>config.log |
| 18134 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18135 | # would make configure fail if this is the last instruction. |
| 18136 | $ac_cs_success || { (exit 1); exit 1; } |
| 18137 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 18138 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 18139 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 18140 | |